Gather all top-level expressions from a vl-initial-p.
(vl-initial-allexprs x) → exprs
Function:
(defun vl-initial-allexprs (x) (declare (xargs :guard (vl-initial-p x))) (let ((__function__ 'vl-initial-allexprs)) (declare (ignorable __function__)) (mbe :logic (b* ((x (vl-initial-fix x))) (vl-stmt-allexprs (vl-initial->stmt x))) :exec (with-local-nrev (vl-initial-allexprs-nrev x nrev)))))
Theorem:
(defthm vl-exprlist-p-of-vl-initial-allexprs (b* ((exprs (vl-initial-allexprs x))) (vl-exprlist-p exprs)) :rule-classes :rewrite)
Theorem:
(defthm true-listp-of-vl-initial-allexprs (true-listp (vl-initial-allexprs x)) :rule-classes :type-prescription)
Theorem:
(defthm vl-initial-allexprs-nrev-removal (equal (vl-initial-allexprs-nrev x nrev) (append nrev (vl-initial-allexprs x))))
Theorem:
(defthm vl-initial-allexprs-of-vl-initial-fix-x (equal (vl-initial-allexprs (vl-initial-fix x)) (vl-initial-allexprs x)))
Theorem:
(defthm vl-initial-allexprs-vl-initial-equiv-congruence-on-x (implies (vl-initial-equiv x x-equiv) (equal (vl-initial-allexprs x) (vl-initial-allexprs x-equiv))) :rule-classes :congruence)