Recognizer for cconst structures.
(cconstp x) → *
Function:
(defun cconstp (x) (declare (xargs :guard t)) (let ((__function__ 'cconstp)) (declare (ignorable __function__)) (and (mbe :logic (and (alistp x) (equal (strip-cars x) '(prefix? cchars))) :exec (fty::alist-with-carsp x '(prefix? cchars))) (b* ((prefix? (cdr (std::da-nth 0 x))) (cchars (cdr (std::da-nth 1 x)))) (and (cprefix-optionp prefix?) (c-char-listp cchars))))))
Theorem:
(defthm consp-when-cconstp (implies (cconstp x) (consp x)) :rule-classes :compound-recognizer)