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