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