Get the cchars field from a cconst.
(cconst->cchars x) → cchars
This is an ordinary field accessor created by fty::defprod.
Function:
(defun cconst->cchars$inline (x) (declare (xargs :guard (cconstp x))) (declare (xargs :guard t)) (let ((__function__ 'cconst->cchars)) (declare (ignorable __function__)) (mbe :logic (b* ((x (and t x))) (c-char-list-fix (cdr (std::da-nth 1 x)))) :exec (cdr (std::da-nth 1 x)))))
Theorem:
(defthm c-char-listp-of-cconst->cchars (b* ((cchars (cconst->cchars$inline x))) (c-char-listp cchars)) :rule-classes :rewrite)
Theorem:
(defthm cconst->cchars$inline-of-cconst-fix-x (equal (cconst->cchars$inline (cconst-fix x)) (cconst->cchars$inline x)))
Theorem:
(defthm cconst->cchars$inline-cconst-equiv-congruence-on-x (implies (cconst-equiv x x-equiv) (equal (cconst->cchars$inline x) (cconst->cchars$inline x-equiv))) :rule-classes :congruence)