Boolean Operations
These mnemonics operate on boolean values. See CandleVM boolean opcodes for runtime behavior.
| CASM mnemonic | CandleVM opcode | Operands | Behavior |
|---|---|---|---|
and | And | destination, left, right | Writes the boolean AND of the source registers. |
or | Or | destination, left, right | Writes the boolean OR of the source registers. |
xor | Xor | destination, left, right | Writes the boolean exclusive OR of the source registers. |
not | Not | destination, source | Writes the logical negation of the source register. |
These operations are not short-circuit expressions: both operands of a binary instruction are already evaluated values in registers.