Get the origwidth field from a vl-weirdint.
(vl-weirdint->origwidth x) → origwidth
This is an ordinary field accessor created by defprod.
Function:
(defun vl-weirdint->origwidth$inline (x) (declare (xargs :guard (vl-weirdint-p x))) (declare (xargs :guard t)) (let ((__function__ 'vl-weirdint->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-weirdint->origwidth (b* ((origwidth (vl-weirdint->origwidth$inline x))) (posp origwidth)) :rule-classes :type-prescription)
Theorem:
(defthm vl-weirdint->origwidth$inline-of-vl-weirdint-fix-x (equal (vl-weirdint->origwidth$inline (vl-weirdint-fix x)) (vl-weirdint->origwidth$inline x)))
Theorem:
(defthm vl-weirdint->origwidth$inline-vl-weirdint-equiv-congruence-on-x (implies (vl-weirdint-equiv x x-equiv) (equal (vl-weirdint->origwidth$inline x) (vl-weirdint->origwidth$inline x-equiv))) :rule-classes :congruence)