Globally suppress certain kinds of warnings.
(vl-warninglist-lint-ignoreall x mashed-ignore-list) → new-warnings
Function:
(defun vl-warninglist-lint-ignoreall (x mashed-ignore-list) (declare (xargs :guard (and (vl-warninglist-p x) (string-listp mashed-ignore-list)))) (let ((__function__ 'vl-warninglist-lint-ignoreall)) (declare (ignorable __function__)) (b* ((mashed-ignore-list (string-list-fix mashed-ignore-list)) ((when (atom x)) nil) (type1 (vl-warning->type (car x))) (type1-mash (vl-warning-type-mash type1)) ((when (member-equal type1-mash mashed-ignore-list)) (vl-warninglist-lint-ignoreall (cdr x) mashed-ignore-list))) (cons (vl-warning-fix (car x)) (vl-warninglist-lint-ignoreall (cdr x) mashed-ignore-list)))))
Theorem:
(defthm vl-warninglist-p-of-vl-warninglist-lint-ignoreall (b* ((new-warnings (vl-warninglist-lint-ignoreall x mashed-ignore-list))) (vl-warninglist-p new-warnings)) :rule-classes :rewrite)
Theorem:
(defthm vl-warninglist-lint-ignoreall-of-vl-warninglist-fix-x (equal (vl-warninglist-lint-ignoreall (vl-warninglist-fix x) mashed-ignore-list) (vl-warninglist-lint-ignoreall x mashed-ignore-list)))
Theorem:
(defthm vl-warninglist-lint-ignoreall-vl-warninglist-equiv-congruence-on-x (implies (vl-warninglist-equiv x x-equiv) (equal (vl-warninglist-lint-ignoreall x mashed-ignore-list) (vl-warninglist-lint-ignoreall x-equiv mashed-ignore-list))) :rule-classes :congruence)
Theorem:
(defthm vl-warninglist-lint-ignoreall-of-string-list-fix-mashed-ignore-list (equal (vl-warninglist-lint-ignoreall x (string-list-fix mashed-ignore-list)) (vl-warninglist-lint-ignoreall x mashed-ignore-list)))
Theorem:
(defthm vl-warninglist-lint-ignoreall-string-list-equiv-congruence-on-mashed-ignore-list (implies (str::string-list-equiv mashed-ignore-list mashed-ignore-list-equiv) (equal (vl-warninglist-lint-ignoreall x mashed-ignore-list) (vl-warninglist-lint-ignoreall x mashed-ignore-list-equiv))) :rule-classes :congruence)