(vl-portdecl-condcheck x tests-above) → warnings
Function:
(defun vl-portdecl-condcheck (x tests-above) (declare (xargs :guard (and (vl-portdecl-p x) (vl-exprlist-p tests-above)))) (let ((__function__ 'vl-portdecl-condcheck)) (declare (ignorable __function__)) (b* (((vl-portdecl x) (vl-portdecl-fix x))) (b* ((warnings (vl-datatype-condcheck x.type tests-above)) (warnings1 (vl-maybe-expr-condcheck x.default tests-above)) (warnings (vl-warningtree-cons warnings1 warnings)) (warnings1 (vl-atts-condcheck x.atts tests-above)) (warnings (vl-warningtree-cons warnings1 warnings))) warnings))))
Theorem:
(defthm vl-warningtree-p-of-vl-portdecl-condcheck (b* ((warnings (vl-portdecl-condcheck x tests-above))) (vl-warningtree-p warnings)) :rule-classes :rewrite)
Theorem:
(defthm vl-portdecl-condcheck-of-vl-portdecl-fix-x (equal (vl-portdecl-condcheck (vl-portdecl-fix x) tests-above) (vl-portdecl-condcheck x tests-above)))
Theorem:
(defthm vl-portdecl-condcheck-vl-portdecl-equiv-congruence-on-x (implies (vl-portdecl-equiv x x-equiv) (equal (vl-portdecl-condcheck x tests-above) (vl-portdecl-condcheck x-equiv tests-above))) :rule-classes :congruence)
Theorem:
(defthm vl-portdecl-condcheck-of-vl-exprlist-fix-tests-above (equal (vl-portdecl-condcheck x (vl-exprlist-fix tests-above)) (vl-portdecl-condcheck x tests-above)))
Theorem:
(defthm vl-portdecl-condcheck-vl-exprlist-equiv-congruence-on-tests-above (implies (vl-exprlist-equiv tests-above tests-above-equiv) (equal (vl-portdecl-condcheck x tests-above) (vl-portdecl-condcheck x tests-above-equiv))) :rule-classes :congruence)