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