Recognizer for vl-warning structures.
(vl-warning-p x) → *
Function:
(defun vl-warning-p (x) (declare (xargs :guard t)) (let ((__function__ 'vl-warning-p)) (declare (ignorable __function__)) (and (consp x) (eq (car x) :vl-warning) (mbe :logic (and (alistp (cdr x)) (equal (strip-cars (cdr x)) '(type fatalp msg args fn))) :exec (fty::alist-with-carsp (cdr x) '(type fatalp msg args fn))) (b* ((type (cdr (std::da-nth 0 (cdr x)))) (fatalp (cdr (std::da-nth 1 (cdr x)))) (msg (cdr (std::da-nth 2 (cdr x)))) (args (cdr (std::da-nth 3 (cdr x)))) (fn (cdr (std::da-nth 4 (cdr x))))) (and (symbolp type) (booleanp fatalp) (stringp msg) (true-listp args) (symbolp fn))))))
Theorem:
(defthm consp-when-vl-warning-p (implies (vl-warning-p x) (consp x)) :rule-classes :compound-recognizer)