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