(vl-collect-modules-from-descriptions x) → mods
Function:
(defun vl-collect-modules-from-descriptions (x) (declare (xargs :guard (vl-descriptionlist-p x))) (let ((__function__ 'vl-collect-modules-from-descriptions)) (declare (ignorable __function__)) (b* (((when (atom x)) nil) (x1 (vl-description-fix (car x))) ((when (eq (tag x1) :vl-module)) (cons x1 (vl-collect-modules-from-descriptions (cdr x))))) (vl-collect-modules-from-descriptions (cdr x)))))
Theorem:
(defthm vl-modulelist-p-of-vl-collect-modules-from-descriptions (b* ((mods (vl-collect-modules-from-descriptions x))) (vl-modulelist-p mods)) :rule-classes :rewrite)