(vl-collect-new-names-from-orignames keep-orignames mods) → keep-newnames
Function:
(defun vl-collect-new-names-from-orignames (keep-orignames mods) (declare (xargs :guard (and (string-listp keep-orignames) (vl-modulelist-p mods)))) (let ((__function__ 'vl-collect-new-names-from-orignames)) (declare (ignorable __function__)) (b* (((when (atom mods)) nil) ((vl-module x1) (car mods)) ((when (member-equal x1.origname (string-list-fix keep-orignames))) (cons x1.name (vl-collect-new-names-from-orignames keep-orignames (cdr mods))))) (vl-collect-new-names-from-orignames keep-orignames (cdr mods)))))
Theorem:
(defthm string-listp-of-vl-collect-new-names-from-orignames (b* ((keep-newnames (vl-collect-new-names-from-orignames keep-orignames mods))) (string-listp keep-newnames)) :rule-classes :rewrite)