(vl-always-ifmerge x warnings) → (mv warnings new-x)
Function:
(defun vl-always-ifmerge (x warnings) (declare (xargs :guard (and (vl-always-p x) (vl-warninglist-p warnings)))) (let ((__function__ 'vl-always-ifmerge)) (declare (ignorable __function__)) (b* (((vl-always x) x) ((mv warnings stmt-list) (vl-stmt-ifmerge x.stmt nil warnings x)) (new-stmt (if (equal (len stmt-list) 1) (car stmt-list) (make-vl-blockstmt :sequentialp t :stmts stmt-list)))) (mv warnings (change-vl-always x :stmt new-stmt)))))
Theorem:
(defthm vl-warninglist-p-of-vl-always-ifmerge.warnings (b* (((mv ?warnings ?new-x) (vl-always-ifmerge x warnings))) (vl-warninglist-p warnings)) :rule-classes :rewrite)
Theorem:
(defthm vl-always-p-of-vl-always-ifmerge.new-x (b* (((mv ?warnings ?new-x) (vl-always-ifmerge x warnings))) (vl-always-p new-x)) :rule-classes :rewrite)