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