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