Skip to main content

cancelled_difference_minuend

Function cancelled_difference_minuend 

Source
pub(crate) fn cancelled_difference_minuend<'a>(
    left: &'a SymExpr,
    right: &'a SymExpr,
) -> Option<&'a SymExpr>
Expand description

Returns a for the sum (a - b) + b in either operand order.

Word addition and subtraction wrap modulo 2^256, so the terms cancel for every operand.