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