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