Bitwise exclusive disjunction of a value of type
Function:
(defun bitxor-uchar-ushort (x y) (declare (xargs :guard (and (ucharp x) (ushortp y)))) (bitxor-sint-sint (sint-from-uchar x) (sint-from-ushort y)))
Theorem:
(defthm sintp-of-bitxor-uchar-ushort (sintp (bitxor-uchar-ushort x y)))
Theorem:
(defthm bitxor-uchar-ushort-of-uchar-fix-x (equal (bitxor-uchar-ushort (uchar-fix x) y) (bitxor-uchar-ushort x y)))
Theorem:
(defthm bitxor-uchar-ushort-uchar-equiv-congruence-on-x (implies (uchar-equiv x x-equiv) (equal (bitxor-uchar-ushort x y) (bitxor-uchar-ushort x-equiv y))) :rule-classes :congruence)
Theorem:
(defthm bitxor-uchar-ushort-of-ushort-fix-y (equal (bitxor-uchar-ushort x (ushort-fix y)) (bitxor-uchar-ushort x y)))
Theorem:
(defthm bitxor-uchar-ushort-ushort-equiv-congruence-on-y (implies (ushort-equiv y y-equiv) (equal (bitxor-uchar-ushort x y) (bitxor-uchar-ushort x y-equiv))) :rule-classes :congruence)