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