(vl-namefactory-namedb-fix mod namedb) → new-db
Function:
(defun vl-namefactory-namedb-fix$inline (mod namedb) (declare (xargs :guard (and (vl-maybe-module-p mod) (vl-namedb-p namedb)))) (declare (xargs :guard (vl-namefactory-namedb-okp mod namedb))) (let ((__function__ 'vl-namefactory-namedb-fix)) (declare (ignorable __function__)) (mbe :logic (b* ((mod (vl-maybe-module-fix mod)) (namedb (vl-namedb-fix namedb))) (if (vl-namefactory-namedb-okp mod namedb) namedb (vl-empty-namedb))) :exec namedb)))
Theorem:
(defthm return-type-of-vl-namefactory-namedb-fix (b* ((new-db (vl-namefactory-namedb-fix$inline mod namedb))) (and (vl-namedb-p new-db) (vl-namefactory-namedb-okp mod new-db))) :rule-classes :rewrite)
Theorem:
(defthm vl-namefactory-namedb-fix-when-vl-namefactory-namedb-okp (implies (vl-namefactory-namedb-okp mod namedb) (equal (vl-namefactory-namedb-fix mod namedb) (vl-namedb-fix namedb))))
Theorem:
(defthm vl-namefactory-namedb-fix$inline-of-vl-maybe-module-fix-mod (equal (vl-namefactory-namedb-fix$inline (vl-maybe-module-fix mod) namedb) (vl-namefactory-namedb-fix$inline mod namedb)))
Theorem:
(defthm vl-namefactory-namedb-fix$inline-vl-maybe-module-equiv-congruence-on-mod (implies (vl-maybe-module-equiv mod mod-equiv) (equal (vl-namefactory-namedb-fix$inline mod namedb) (vl-namefactory-namedb-fix$inline mod-equiv namedb))) :rule-classes :congruence)
Theorem:
(defthm vl-namefactory-namedb-fix$inline-of-vl-namedb-fix-namedb (equal (vl-namefactory-namedb-fix$inline mod (vl-namedb-fix namedb)) (vl-namefactory-namedb-fix$inline mod namedb)))
Theorem:
(defthm vl-namefactory-namedb-fix$inline-vl-namedb-equiv-congruence-on-namedb (implies (vl-namedb-equiv namedb namedb-equiv) (equal (vl-namefactory-namedb-fix$inline mod namedb) (vl-namefactory-namedb-fix$inline mod namedb-equiv))) :rule-classes :congruence)