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