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