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