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