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