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