(vl-always-increwrite x) → new-x
Function:
(defun vl-always-increwrite (x) (declare (xargs :guard (vl-always-p x))) (let ((__function__ 'vl-always-increwrite)) (declare (ignorable __function__)) (b* (((vl-always x) (vl-always-fix x))) (b* ((stmt (vl-stmt-increwrite-flat x.stmt))) (change-vl-always x :stmt stmt)))))
Theorem:
(defthm vl-always-p-of-vl-always-increwrite (b* ((new-x (vl-always-increwrite x))) (vl-always-p new-x)) :rule-classes :rewrite)
Theorem:
(defthm vl-always-increwrite-of-vl-always-fix-x (equal (vl-always-increwrite (vl-always-fix x)) (vl-always-increwrite x)))
Theorem:
(defthm vl-always-increwrite-vl-always-equiv-congruence-on-x (implies (vl-always-equiv x x-equiv) (equal (vl-always-increwrite x) (vl-always-increwrite x-equiv))) :rule-classes :congruence)