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