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