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