High-level accessor: get the character from an vl-echar-p.
(vl-echar->char x) → char
Function:
(defun vl-echar->char$inline (x) (declare (xargs :guard (vl-echar-p x))) (let ((__function__ 'vl-echar->char)) (declare (ignorable __function__)) (the character (code-char (the (unsigned-byte 8) (vl-echarpack->code (vl-echar-raw->pack x)))))))
Theorem:
(defthm characterp-of-vl-echar->char (b* ((char (vl-echar->char$inline x))) (characterp char)) :rule-classes :type-prescription)
Theorem:
(defthm vl-echar->char$inline-of-vl-echar-fix-x (equal (vl-echar->char$inline (vl-echar-fix x)) (vl-echar->char$inline x)))
Theorem:
(defthm vl-echar->char$inline-vl-echar-raw-equiv-congruence-on-x (implies (vl-echar-raw-equiv x x-equiv) (equal (vl-echar->char$inline x) (vl-echar->char$inline x-equiv))) :rule-classes :congruence)
Theorem:
(defthm vl-echar->char-of-vl-echar (equal (vl-echar->char (vl-echar char loc)) (char-fix char)))