brillig_vm::arithmetic

Function evaluate_binary_int_op_u1

Source
fn evaluate_binary_int_op_u1(
    op: &BinaryIntOp,
    lhs: bool,
    rhs: bool,
) -> Result<bool, BrilligArithmeticError>
Expand description

Evaluates binary operations on 1-bit unsigned integers (booleans).

§Returns

§Panics

If an operation other than Add, Sub, Mul, Div, And, Or, Xor, Equals, LessThan, or LessThanEquals is supplied as an argument.