(vl-remove-nameless-descriptions x) → new-x
Function:
(defun vl-remove-nameless-descriptions (x) (declare (xargs :guard (vl-descriptionlist-p x))) (let ((__function__ 'vl-remove-nameless-descriptions)) (declare (ignorable __function__)) (cond ((atom x) nil) ((not (vl-description->origname (car x))) (vl-remove-nameless-descriptions (cdr x))) (t (cons (vl-description-fix (car x)) (vl-remove-nameless-descriptions (cdr x)))))))
Theorem:
(defthm vl-descriptionlist-p-of-vl-remove-nameless-descriptions (b* ((new-x (vl-remove-nameless-descriptions x))) (vl-descriptionlist-p new-x)) :rule-classes :rewrite)