Get the kind (tag) of a c-char structure.
(c-char-kind x) → kind
Function:
(defun c-char-kind$inline (x) (declare (xargs :guard (c-char-p x))) (let ((__function__ 'c-char-kind)) (declare (ignorable __function__)) (mbe :logic (cond ((or (atom x) (eq (car x) :char)) :char) (t :escape)) :exec (car x))))
Theorem:
(defthm c-char-kind-possibilities (or (equal (c-char-kind x) :char) (equal (c-char-kind x) :escape)) :rule-classes ((:forward-chaining :trigger-terms ((c-char-kind x)))))