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