TZT boolean operations exhaustiveness
Answers the following item of %(2023Q3) MIR: check TZT test suite exhaustiveness:
Control structures.
For each one of the instructions below:
- report the name of a TZT test that contains the instruction and declares the expected result of interpretation. None can be used when the test is missing.
Instructions:
-
AND: bool : booland_bool-bool* -
AND: nat : natand_nat-nat_0{0,1,2}.tzfor most cases, none for 0 (left and right) and none forAND-ing non-0 values that results in a 0 -
AND: int : natand_nat-nat_0{3,4}.tzfor most cases, none for 0 (left and right) and none forAND-ing non-0 values that results in a 0 -
AND: bytes : bytesNone -
NOT: boolnot_bool* -
NOT: natnot_nat0{0,1,2}* -
NOT: intnot_int*,not_nat0{3,4,5,6,7}(these should be renamed) -
NOT: bytesNone -
OR: bool : boolor_bool-bool* -
OR: nat : nator_nat-nat* -
OR: bytes : bytesNone -
XOR: bool : boolxor_bool-bool* -
XOR: nat : natxor_nat-nat* -
XOR: bytes : bytesNone
See the analysis for more details.
Edited by Nicolas Ayache