Skip to content

Commit

Permalink
Fix LinearTwoVarEqualityDomain indentation (PR #1466)
Browse files Browse the repository at this point in the history
  • Loading branch information
sim642 committed Jun 12, 2024
1 parent f4c380f commit 60ecfe7
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/cdomains/apron/linearTwoVarEqualityDomain.apron.ml
Original file line number Diff line number Diff line change
Expand Up @@ -249,13 +249,13 @@ module EqualitiesConjunction = struct
if nontrivial econ i then (* i cannot occur on any other rhs apart from itself *)
set_rhs econ i (Rhs.subst (get_rhs econ i) i (Some (coeff,j), offs, divi))
else (* var_i = var_i, i.e. it may occur on the rhs of other equalities *)
(* so now, we transform with the inverse of the transformer: *)
let inv = snd (inverse i (coeff,j,offs,divi)) in
IntMap.fold (fun k v acc ->
match v with
| (Some (c,x),o,d) when x=i-> set_rhs acc k (Rhs.subst inv i v)
| _ -> acc
) (snd econ) econ
(* so now, we transform with the inverse of the transformer: *)
let inv = snd (inverse i (coeff,j,offs,divi)) in
IntMap.fold (fun k v acc ->
match v with
| (Some (c,x),o,d) when x=i-> set_rhs acc k (Rhs.subst inv i v)
| _ -> acc
) (snd econ) econ

end

Expand Down

0 comments on commit 60ecfe7

Please sign in to comment.