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