Skip to main content

normalize_ite_branch_cmp

Function normalize_ite_branch_cmp 

Source
fn normalize_ite_branch_cmp(
    cx: &mut SymCx,
    op: SymCmpOp,
    left: &SymExpr,
    right: &SymExpr,
) -> Option<SymBoolExpr>
Expand description

Compares an ite against one of its own branches, as in ite(c, a, b) < b => c && a < b. Fires only when one branch comparison folds to false, so the expression never grows; for a strict comparison the branch equal to the other operand always does. Equality is left to SymBoolExpr::ite_eq_arm.