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