Recognizer for snippet-mismatch structures.
(snippet-mismatch-p x) → *
Function:
(defun snippet-mismatch-p (x) (declare (xargs :guard t)) (let ((__function__ 'snippet-mismatch-p)) (declare (ignorable __function__)) (and (mbe :logic (and (alistp x) (equal (strip-cars x) '(input-bytes expected-bytes actual-bytes))) :exec (fty::alist-with-carsp x '(input-bytes expected-bytes actual-bytes))) (b* ((input-bytes (cdr (std::da-nth 0 x))) (expected-bytes (cdr (std::da-nth 1 x))) (actual-bytes (cdr (std::da-nth 2 x)))) (and (my-byte-listp input-bytes) (my-byte-listp expected-bytes) (my-byte-listp actual-bytes))))))
Theorem:
(defthm consp-when-snippet-mismatch-p (implies (snippet-mismatch-p x) (consp x)) :rule-classes :compound-recognizer)