(moddb-elab-mod-stats modidx moddb) → (mv * * * *)
Function:
(defun moddb-elab-mod-stats (modidx moddb) (declare (xargs :stobjs (moddb))) (declare (xargs :guard (and (natp modidx) (moddb-basics-ok moddb)))) (declare (xargs :guard (< modidx (moddb->nmods moddb)))) (let ((__function__ 'moddb-elab-mod-stats)) (declare (ignorable __function__)) (b* (((stobj-get ninsts nwires totalinsts totalwires) ((elab-mod (moddb->modsi modidx moddb))) (mv (elab-mod-ninsts elab-mod) (elab-mod-nwires elab-mod) (elab-mod->totalinsts elab-mod) (elab-mod->totalwires elab-mod)))) (mv ninsts nwires totalinsts totalwires))))
Theorem:
(defthm moddb-elab-mod-stats-of-nfix-modidx (equal (moddb-elab-mod-stats (nfix modidx) moddb) (moddb-elab-mod-stats modidx moddb)))
Theorem:
(defthm moddb-elab-mod-stats-nat-equiv-congruence-on-modidx (implies (nat-equiv modidx modidx-equiv) (equal (moddb-elab-mod-stats modidx moddb) (moddb-elab-mod-stats modidx-equiv moddb))) :rule-classes :congruence)
Theorem:
(defthm moddb-elab-mod-stats-of-moddb-fix-moddb (equal (moddb-elab-mod-stats modidx (moddb-fix moddb)) (moddb-elab-mod-stats modidx moddb)))
Theorem:
(defthm moddb-elab-mod-stats-moddb-equiv-congruence-on-moddb (implies (moddb-equiv moddb moddb-equiv) (equal (moddb-elab-mod-stats modidx moddb) (moddb-elab-mod-stats modidx moddb-equiv))) :rule-classes :congruence)