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