Get the decls field from a transunit.
(transunit->decls x) → decls
This is an ordinary field accessor created by fty::defprod.
Function:
(defun transunit->decls$inline (x) (declare (xargs :guard (transunitp x))) (declare (xargs :guard t)) (let ((__function__ 'transunit->decls)) (declare (ignorable __function__)) (mbe :logic (b* ((x (and t x))) (extdecl-list-fix (cdr (std::da-nth 0 x)))) :exec (cdr (std::da-nth 0 x)))))
Theorem:
(defthm extdecl-listp-of-transunit->decls (b* ((decls (transunit->decls$inline x))) (extdecl-listp decls)) :rule-classes :rewrite)
Theorem:
(defthm transunit->decls$inline-of-transunit-fix-x (equal (transunit->decls$inline (transunit-fix x)) (transunit->decls$inline x)))
Theorem:
(defthm transunit->decls$inline-transunit-equiv-congruence-on-x (implies (transunit-equiv x x-equiv) (equal (transunit->decls$inline x) (transunit->decls$inline x-equiv))) :rule-classes :congruence)