Recognizer for compustate structures.
(compustatep x) → *
Function:
(defun compustatep (x) (declare (xargs :guard t)) (let ((__function__ 'compustatep)) (declare (ignorable __function__)) (and (mbe :logic (and (alistp x) (equal (strip-cars x) '(static frames heap))) :exec (fty::alist-with-carsp x '(static frames heap))) (b* ((static (cdr (std::da-nth 0 x))) (frames (cdr (std::da-nth 1 x))) (heap (cdr (std::da-nth 2 x)))) (and (scopep static) (frame-listp frames) (heapp heap))))))
Theorem:
(defthm consp-when-compustatep (implies (compustatep x) (consp x)) :rule-classes :compound-recognizer)