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