(vl-blockitem-strip x) → new-x
Function:
(defun vl-blockitem-strip (x) (declare (xargs :guard (vl-blockitem-p x))) (let ((__function__ 'vl-blockitem-strip)) (declare (ignorable __function__)) (let ((x (vl-blockitem-fix x))) (common-lisp::case (tag x) ((:vl-vardecl) (b* ((x.vl-vardecl (vl-vardecl-strip x))) x.vl-vardecl)) ((:vl-paramdecl) (b* ((x.vl-paramdecl (vl-paramdecl-strip x))) x.vl-paramdecl)) ((:vl-import) (b* ((x.vl-import (vl-import-strip x))) x.vl-import)) ((:vl-typedef) (b* ((x.vl-typedef (vl-typedef-strip x))) x.vl-typedef)) (otherwise (b* ((x.vl-letdecl (vl-letdecl-strip x))) x.vl-letdecl))))))
Theorem:
(defthm vl-blockitem-p-of-vl-blockitem-strip (b* ((new-x (vl-blockitem-strip x))) (vl-blockitem-p new-x)) :rule-classes :rewrite)
Theorem:
(defthm vl-blockitem-strip-of-vl-blockitem-fix-x (equal (vl-blockitem-strip (vl-blockitem-fix x)) (vl-blockitem-strip x)))
Theorem:
(defthm vl-blockitem-strip-vl-blockitem-equiv-congruence-on-x (implies (vl-blockitem-equiv x x-equiv) (equal (vl-blockitem-strip x) (vl-blockitem-strip x-equiv))) :rule-classes :congruence)