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