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