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