(vl-modinst-split x delta) → (mv new-x delta)
Function:
(defun vl-modinst-split (x delta) (declare (xargs :guard (and (vl-modinst-p x) (vl-delta-p delta)))) (let ((__function__ 'vl-modinst-split)) (declare (ignorable __function__)) (b* (((vl-modinst x) x) ((mv new-args delta) (vl-arguments-split x.portargs x delta)) (x-prime (change-vl-modinst x :portargs new-args))) (mv x-prime delta))))
Theorem:
(defthm vl-modinst-p-of-vl-modinst-split.new-x (implies (and (force (vl-modinst-p x)) (force (vl-delta-p delta))) (b* (((mv ?new-x ?delta) (vl-modinst-split x delta))) (vl-modinst-p new-x))) :rule-classes :rewrite)
Theorem:
(defthm vl-delta-p-of-vl-modinst-split.delta (implies (and (force (vl-modinst-p x)) (force (vl-delta-p delta))) (b* (((mv ?new-x ?delta) (vl-modinst-split x delta))) (vl-delta-p delta))) :rule-classes :rewrite)