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