Check if any warning is marked as fatal.
(vl-some-warning-fatalp x suppress-fatals) → bool
Function:
(defun vl-some-warning-fatalp (x suppress-fatals) (declare (xargs :guard (and (vl-warninglist-p x) (symbol-listp suppress-fatals)))) (let ((__function__ 'vl-some-warning-fatalp)) (declare (ignorable __function__)) (cond ((atom x) nil) ((and (vl-warning->fatalp (car x)) (not (member-eq (vl-warning->type (car x)) (acl2::symbol-list-fix suppress-fatals)))) t) (t (vl-some-warning-fatalp (cdr x) suppress-fatals)))))
Theorem:
(defthm booleanp-of-vl-some-warning-fatalp (b* ((bool (vl-some-warning-fatalp x suppress-fatals))) (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 suppress-fatals) nil)))
Theorem:
(defthm vl-some-warning-fatalp-of-cons (equal (vl-some-warning-fatalp (cons a x) suppress-fatals) (or (if (and (vl-warning->fatalp a) (not (member (vl-warning->type a) (acl2::symbol-list-fix suppress-fatals)))) t nil) (vl-some-warning-fatalp x suppress-fatals))))
Theorem:
(defthm vl-some-warning-fatalp-of-append (equal (vl-some-warning-fatalp (append x y) suppress-fatals) (or (vl-some-warning-fatalp x suppress-fatals) (vl-some-warning-fatalp y suppress-fatals))))
Theorem:
(defthm vl-some-warning-fatalp-of-list-fix (equal (vl-some-warning-fatalp (list-fix x) suppress-fatals) (vl-some-warning-fatalp x suppress-fatals)))
Theorem:
(defthm vl-some-warning-fatalp-preserves-set-equiv (implies (set-equiv x x-equiv) (equal (vl-some-warning-fatalp x suppress-fatals) (vl-some-warning-fatalp x-equiv suppress-fatals))) :rule-classes (:congruence))
Theorem:
(defthm vl-some-warning-fatalp-of-vl-warninglist-fix-x (equal (vl-some-warning-fatalp (vl-warninglist-fix x) suppress-fatals) (vl-some-warning-fatalp x suppress-fatals)))
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 suppress-fatals) (vl-some-warning-fatalp x-equiv suppress-fatals))) :rule-classes :congruence)
Theorem:
(defthm vl-some-warning-fatalp-of-symbol-list-fix-suppress-fatals (equal (vl-some-warning-fatalp x (acl2::symbol-list-fix suppress-fatals)) (vl-some-warning-fatalp x suppress-fatals)))
Theorem:
(defthm vl-some-warning-fatalp-symbol-list-equiv-congruence-on-suppress-fatals (implies (acl2::symbol-list-equiv suppress-fatals suppress-fatals-equiv) (equal (vl-some-warning-fatalp x suppress-fatals) (vl-some-warning-fatalp x suppress-fatals-equiv))) :rule-classes :congruence)