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