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