(vl-make-descalist x) → alist
Function:
(defun vl-make-descalist (x) (declare (xargs :guard (vl-descriptionlist-p x))) (let ((__function__ 'vl-make-descalist)) (declare (ignorable __function__)) (b* (((when (atom x)) nil) (x1 (vl-description-fix (car x))) (name1 (vl-description->name x1)) ((unless name1) (vl-make-descalist (cdr x)))) (hons-acons name1 x1 (vl-make-descalist (cdr x))))))
Theorem:
(defthm vl-descalist-p-of-vl-make-descalist (b* ((alist (vl-make-descalist x))) (vl-descalist-p alist)) :rule-classes :rewrite)
Theorem:
(defthm vl-make-descalist-of-vl-descriptionlist-fix-x (equal (vl-make-descalist (vl-descriptionlist-fix x)) (vl-make-descalist x)))
Theorem:
(defthm vl-make-descalist-vl-descriptionlist-equiv-congruence-on-x (implies (vl-descriptionlist-equiv x x-equiv) (equal (vl-make-descalist x) (vl-make-descalist x-equiv))) :rule-classes :congruence)