Generate a new name for an unparameterized module.
(vl-unparam-basename origname paramdecls ifportalist include-default) → new-name
Function:
(defun vl-unparam-basename (origname paramdecls ifportalist include-default) (declare (xargs :guard (and (stringp origname) (vl-paramdecllist-p paramdecls) (vl-ifport-alist-p ifportalist) (booleanp include-default)))) (let ((__function__ 'vl-unparam-basename)) (declare (ignorable __function__)) (with-local-ps (vl-ps-seq (vl-print-str origname) (vl-unparam-basename-paramdecls paramdecls include-default) (vl-unparam-basename-ifports ifportalist)))))
Theorem:
(defthm stringp-of-vl-unparam-basename (b* ((new-name (vl-unparam-basename origname paramdecls ifportalist include-default))) (stringp new-name)) :rule-classes :type-prescription)
Theorem:
(defthm vl-unparam-basename-of-str-fix-origname (equal (vl-unparam-basename (str-fix origname) paramdecls ifportalist include-default) (vl-unparam-basename origname paramdecls ifportalist include-default)))
Theorem:
(defthm vl-unparam-basename-streqv-congruence-on-origname (implies (streqv origname origname-equiv) (equal (vl-unparam-basename origname paramdecls ifportalist include-default) (vl-unparam-basename origname-equiv paramdecls ifportalist include-default))) :rule-classes :congruence)
Theorem:
(defthm vl-unparam-basename-of-vl-paramdecllist-fix-paramdecls (equal (vl-unparam-basename origname (vl-paramdecllist-fix paramdecls) ifportalist include-default) (vl-unparam-basename origname paramdecls ifportalist include-default)))
Theorem:
(defthm vl-unparam-basename-vl-paramdecllist-equiv-congruence-on-paramdecls (implies (vl-paramdecllist-equiv paramdecls paramdecls-equiv) (equal (vl-unparam-basename origname paramdecls ifportalist include-default) (vl-unparam-basename origname paramdecls-equiv ifportalist include-default))) :rule-classes :congruence)
Theorem:
(defthm vl-unparam-basename-of-vl-ifport-alist-fix-ifportalist (equal (vl-unparam-basename origname paramdecls (vl-ifport-alist-fix ifportalist) include-default) (vl-unparam-basename origname paramdecls ifportalist include-default)))
Theorem:
(defthm vl-unparam-basename-vl-ifport-alist-equiv-congruence-on-ifportalist (implies (vl-ifport-alist-equiv ifportalist ifportalist-equiv) (equal (vl-unparam-basename origname paramdecls ifportalist include-default) (vl-unparam-basename origname paramdecls ifportalist-equiv include-default))) :rule-classes :congruence)
Theorem:
(defthm vl-unparam-basename-of-bool-fix-include-default (equal (vl-unparam-basename origname paramdecls ifportalist (acl2::bool-fix include-default)) (vl-unparam-basename origname paramdecls ifportalist include-default)))
Theorem:
(defthm vl-unparam-basename-iff-congruence-on-include-default (implies (iff include-default include-default-equiv) (equal (vl-unparam-basename origname paramdecls ifportalist include-default) (vl-unparam-basename origname paramdecls ifportalist include-default-equiv))) :rule-classes :congruence)