Check if any warning is marked as fatal.
(vl-some-warning-fatalp x) → bool
Function:
(defun vl-some-warning-fatalp (x) (declare (xargs :guard (vl-warninglist-p x))) (let ((__function__ 'vl-some-warning-fatalp)) (declare (ignorable __function__)) (cond ((atom x) nil) ((vl-warning->fatalp (car x)) t) (t (vl-some-warning-fatalp (cdr x))))))
Theorem:
(defthm booleanp-of-vl-some-warning-fatalp (b* ((bool (vl-some-warning-fatalp x))) (booleanp bool)) :rule-classes :type-prescription)
Theorem:
(defthm vl-some-warning-fatalp-when-not-consp (implies (not (consp x)) (equal (vl-some-warning-fatalp x) nil)))
Theorem:
(defthm vl-some-warning-fatalp-of-cons (equal (vl-some-warning-fatalp (cons a x)) (or (if (vl-warning->fatalp a) t nil) (vl-some-warning-fatalp x))))
Theorem:
(defthm vl-some-warning-fatalp-of-append (equal (vl-some-warning-fatalp (append x y)) (or (vl-some-warning-fatalp x) (vl-some-warning-fatalp y))))
Theorem:
(defthm vl-some-warning-fatalp-of-list-fix (equal (vl-some-warning-fatalp (list-fix x)) (vl-some-warning-fatalp x)))
Theorem:
(defthm vl-some-warning-fatalp-preserves-set-equiv (implies (set-equiv x x-equiv) (equal (vl-some-warning-fatalp x) (vl-some-warning-fatalp x-equiv))) :rule-classes (:congruence))
Theorem:
(defthm vl-some-warning-fatalp-of-vl-warninglist-fix-x (equal (vl-some-warning-fatalp (vl-warninglist-fix x)) (vl-some-warning-fatalp x)))
Theorem:
(defthm vl-some-warning-fatalp-vl-warninglist-equiv-congruence-on-x (implies (vl-warninglist-equiv x x-equiv) (equal (vl-some-warning-fatalp x) (vl-some-warning-fatalp x-equiv))) :rule-classes :congruence)