Evaluate the content of a hex string.
(eval-hex-string-content content) → bytes
We return a byte for the first element, followed by zero or more bytes for the remaining elements.
Function:
(defun eval-hex-string-content (content) (declare (xargs :guard (hex-string-contentp content))) (let ((__function__ 'eval-hex-string-content)) (declare (ignorable __function__)) (b* (((hex-string-content content) content)) (cons (eval-hex-pair content.first) (eval-hex-string-rest-element-list content.rest)))))
Theorem:
(defthm ubyte8-listp-of-eval-hex-string-content (b* ((bytes (eval-hex-string-content content))) (ubyte8-listp bytes)) :rule-classes :rewrite)
Theorem:
(defthm eval-hex-string-content-of-hex-string-content-fix-content (equal (eval-hex-string-content (hex-string-content-fix content)) (eval-hex-string-content content)))
Theorem:
(defthm eval-hex-string-content-hex-string-content-equiv-congruence-on-content (implies (hex-string-content-equiv content content-equiv) (equal (eval-hex-string-content content) (eval-hex-string-content content-equiv))) :rule-classes :congruence)