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