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