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