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