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