Bitwise inclusive disjunction of a value of type
Function:
(defun bitior-ulong-sshort (x y) (declare (xargs :guard (and (ulongp x) (sshortp y)))) (bitior-ulong-ulong x (ulong-from-sshort y)))
Theorem:
(defthm ulongp-of-bitior-ulong-sshort (ulongp (bitior-ulong-sshort x y)))
Theorem:
(defthm bitior-ulong-sshort-of-ulong-fix-x (equal (bitior-ulong-sshort (ulong-fix x) y) (bitior-ulong-sshort x y)))
Theorem:
(defthm bitior-ulong-sshort-ulong-equiv-congruence-on-x (implies (ulong-equiv x x-equiv) (equal (bitior-ulong-sshort x y) (bitior-ulong-sshort x-equiv y))) :rule-classes :congruence)
Theorem:
(defthm bitior-ulong-sshort-of-sshort-fix-y (equal (bitior-ulong-sshort x (sshort-fix y)) (bitior-ulong-sshort x y)))
Theorem:
(defthm bitior-ulong-sshort-sshort-equiv-congruence-on-y (implies (sshort-equiv y y-equiv) (equal (bitior-ulong-sshort x y) (bitior-ulong-sshort x y-equiv))) :rule-classes :congruence)