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