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