Gather all top-level expressions from a vl-module-p.
(vl-module-allexprs x) → exprs
Function:
(defun vl-module-allexprs (x) (declare (xargs :guard (vl-module-p x))) (let ((__function__ 'vl-module-allexprs)) (declare (ignorable __function__)) (mbe :logic (b* ((x (vl-module-fix x))) (b* (((vl-module x) x)) (append (vl-portlist-allexprs x.ports) (vl-portdecllist-allexprs x.portdecls) (vl-assignlist-allexprs x.assigns) (vl-vardecllist-allexprs x.vardecls) (vl-paramdecllist-allexprs x.paramdecls) (vl-fundecllist-allexprs x.fundecls) (vl-taskdecllist-allexprs x.taskdecls) (vl-modinstlist-allexprs x.modinsts) (vl-gateinstlist-allexprs x.gateinsts) (vl-alwayslist-allexprs x.alwayses) (vl-initiallist-allexprs x.initials) (vl-aliaslist-allexprs x.aliases)))) :exec (with-local-nrev (vl-module-allexprs-nrev x nrev)))))
Theorem:
(defthm vl-exprlist-p-of-vl-module-allexprs (b* ((exprs (vl-module-allexprs x))) (vl-exprlist-p exprs)) :rule-classes :rewrite)
Theorem:
(defthm true-listp-of-vl-module-allexprs (true-listp (vl-module-allexprs x)) :rule-classes :type-prescription)
Theorem:
(defthm vl-module-allexprs-nrev-removal (equal (vl-module-allexprs-nrev x nrev) (append nrev (vl-module-allexprs x))))
Theorem:
(defthm vl-module-allexprs-of-vl-module-fix-x (equal (vl-module-allexprs (vl-module-fix x)) (vl-module-allexprs x)))
Theorem:
(defthm vl-module-allexprs-vl-module-equiv-congruence-on-x (implies (vl-module-equiv x x-equiv) (equal (vl-module-allexprs x) (vl-module-allexprs x-equiv))) :rule-classes :congruence)