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