Recognizer for run-snippet-info structures.
(run-snippet-info-p x) → *
Function:
(defun run-snippet-info-p (x) (declare (xargs :guard t)) (let ((__function__ 'run-snippet-info-p)) (declare (ignorable __function__)) (and (mbe :logic (and (alistp x) (equal (strip-cars x) '(input-size output-size snip-addr ret-addr step-count))) :exec (fty::alist-with-carsp x '(input-size output-size snip-addr ret-addr step-count))) (b* ((input-size (cdr (std::da-nth 0 x))) (output-size (cdr (std::da-nth 1 x))) (snip-addr (cdr (std::da-nth 2 x))) (ret-addr (cdr (std::da-nth 3 x))) (step-count (cdr (std::da-nth 4 x)))) (and (natp input-size) (posp output-size) (canonical-address-p snip-addr) (canonical-address-p ret-addr) (natp step-count))))))
Theorem:
(defthm consp-when-run-snippet-info-p (implies (run-snippet-info-p x) (consp x)) :rule-classes :compound-recognizer)