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