Like obs-constprop, but overwrites the original network instead of returning a new one.
(obs-constprop! aignet config state) → (mv new-aignet new-state)
Function:
(defun obs-constprop! (aignet config state) (declare (xargs :stobjs (aignet state))) (declare (xargs :guard (obs-constprop-config-p config))) (let ((__function__ 'obs-constprop!)) (declare (ignorable __function__)) (b* (((local-stobjs aignet-tmp) (mv aignet state aignet-tmp)) ((mv aignet-tmp state) (obs-constprop-core aignet aignet-tmp config state)) (aignet (aignet-prune-comb aignet-tmp aignet (obs-constprop-config->gatesimp config)))) (mv aignet state aignet-tmp))))
Theorem:
(defthm num-ins-of-obs-constprop! (b* (((mv ?new-aignet ?new-state) (obs-constprop! aignet config state))) (equal (stype-count :pi new-aignet) (stype-count :pi aignet))))
Theorem:
(defthm num-regs-of-obs-constprop! (b* (((mv ?new-aignet ?new-state) (obs-constprop! aignet config state))) (equal (stype-count :reg new-aignet) (stype-count :reg aignet))))
Theorem:
(defthm num-outs-of-obs-constprop! (b* (((mv ?new-aignet ?new-state) (obs-constprop! aignet config state))) (equal (stype-count :po new-aignet) (stype-count :po aignet))))
Theorem:
(defthm obs-constprop!-comb-equivalent (b* (((mv ?new-aignet ?new-state) (obs-constprop! aignet config state))) (comb-equiv new-aignet aignet)))
Theorem:
(defthm w-state-of-obs-constprop! (b* (((mv ?new-aignet ?new-state) (obs-constprop! aignet config state))) (equal (w new-state) (w state))))
Theorem:
(defthm obs-constprop!-of-node-list-fix-aignet (equal (obs-constprop! (node-list-fix aignet) config state) (obs-constprop! aignet config state)))
Theorem:
(defthm obs-constprop!-node-list-equiv-congruence-on-aignet (implies (node-list-equiv aignet aignet-equiv) (equal (obs-constprop! aignet config state) (obs-constprop! aignet-equiv config state))) :rule-classes :congruence)
Theorem:
(defthm obs-constprop!-of-obs-constprop-config-fix-config (equal (obs-constprop! aignet (obs-constprop-config-fix config) state) (obs-constprop! aignet config state)))
Theorem:
(defthm obs-constprop!-obs-constprop-config-equiv-congruence-on-config (implies (obs-constprop-config-equiv config config-equiv) (equal (obs-constprop! aignet config state) (obs-constprop! aignet config-equiv state))) :rule-classes :congruence)