(vl-interface-add-enumname-declarations x) → new-x
Function:
(defun vl-interface-add-enumname-declarations (x) (declare (xargs :guard (vl-interface-p x))) (let ((__function__ 'vl-interface-add-enumname-declarations)) (declare (ignorable __function__)) (b* (((vl-interface x) (vl-interface-fix x)) ((unless x.parse-temps) x) ((mv warnings items seen) (vl-genelementlist-enumname-declarations (vl-parse-temps->loaditems x.parse-temps) nil)) (- (fast-alist-free seen))) (change-vl-interface x :parse-temps (change-vl-parse-temps x.parse-temps :loaditems items) :warnings (append-without-guard warnings x.warnings)))))
Theorem:
(defthm vl-interface-p-of-vl-interface-add-enumname-declarations (b* ((new-x (vl-interface-add-enumname-declarations x))) (vl-interface-p new-x)) :rule-classes :rewrite)
Theorem:
(defthm vl-interface-add-enumname-declarations-of-vl-interface-fix-x (equal (vl-interface-add-enumname-declarations (vl-interface-fix x)) (vl-interface-add-enumname-declarations x)))
Theorem:
(defthm vl-interface-add-enumname-declarations-vl-interface-equiv-congruence-on-x (implies (vl-interface-equiv x x-equiv) (equal (vl-interface-add-enumname-declarations x) (vl-interface-add-enumname-declarations x-equiv))) :rule-classes :congruence)