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