Projects vl-gateinst-dirassign across a list of vl-gateinst-ps.
(vl-gateinstlist-dirassign x warnings) → (mv warnings new-x)
Function:
(defun vl-gateinstlist-dirassign (x warnings) (declare (xargs :guard (and (vl-gateinstlist-p x) (vl-warninglist-p warnings)))) (let ((__function__ 'vl-gateinstlist-dirassign)) (declare (ignorable __function__)) (b* (((when (atom x)) (mv (ok) nil)) ((mv warnings car-prime) (vl-gateinst-dirassign (car x) warnings)) ((mv warnings cdr-prime) (vl-gateinstlist-dirassign (cdr x) warnings))) (mv warnings (cons car-prime cdr-prime)))))
Theorem:
(defthm vl-warninglist-p-of-vl-gateinstlist-dirassign.warnings (b* (((mv ?warnings ?new-x) (vl-gateinstlist-dirassign x warnings))) (vl-warninglist-p warnings)) :rule-classes :rewrite)
Theorem:
(defthm vl-gateinstlist-p-of-vl-gateinstlist-dirassign.new-x (b* (((mv ?warnings ?new-x) (vl-gateinstlist-dirassign x warnings))) (vl-gateinstlist-p new-x)) :rule-classes :rewrite)
Theorem:
(defthm vl-gateinstlist-dirassign-of-vl-gateinstlist-fix-x (equal (vl-gateinstlist-dirassign (vl-gateinstlist-fix x) warnings) (vl-gateinstlist-dirassign x warnings)))
Theorem:
(defthm vl-gateinstlist-dirassign-vl-gateinstlist-equiv-congruence-on-x (implies (vl-gateinstlist-equiv x x-equiv) (equal (vl-gateinstlist-dirassign x warnings) (vl-gateinstlist-dirassign x-equiv warnings))) :rule-classes :congruence)
Theorem:
(defthm vl-gateinstlist-dirassign-of-vl-warninglist-fix-warnings (equal (vl-gateinstlist-dirassign x (vl-warninglist-fix warnings)) (vl-gateinstlist-dirassign x warnings)))
Theorem:
(defthm vl-gateinstlist-dirassign-vl-warninglist-equiv-congruence-on-warnings (implies (vl-warninglist-equiv warnings warnings-equiv) (equal (vl-gateinstlist-dirassign x warnings) (vl-gateinstlist-dirassign x warnings-equiv))) :rule-classes :congruence)