Convert from type
Function:
(defun uchar-from-sshort (x) (declare (xargs :guard (sshortp x))) (let ((__function__ 'uchar-from-sshort)) (declare (ignorable __function__)) (uchar-from-integer-mod (integer-from-sshort x))))
Theorem:
(defthm ucharp-of-uchar-from-sshort (b* ((result (uchar-from-sshort x))) (ucharp result)) :rule-classes :rewrite)
Theorem:
(defthm uchar-from-sshort-of-sshort-fix-x (equal (uchar-from-sshort (sshort-fix x)) (uchar-from-sshort x)))
Theorem:
(defthm uchar-from-sshort-sshort-equiv-congruence-on-x (implies (sshort-equiv x x-equiv) (equal (uchar-from-sshort x) (uchar-from-sshort x-equiv))) :rule-classes :congruence)