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