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