Skip to content

Commit

Permalink
add test
Browse files Browse the repository at this point in the history
  • Loading branch information
reb-ddm committed Jan 12, 2024
2 parents 97f25be + 3b9ad39 commit 51359ef
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/cdomains/apron/linearTwoVarEqualityDomain.apron.ml
Original file line number Diff line number Diff line change
Expand Up @@ -724,11 +724,10 @@ struct
let xi = Environment.var_of_dim t.env i in
let coeff_vars =
(Coeff.s_of_int (-1), xi) :: (match var_opt with
| None -> []
| Some var_index ->
let var = Environment.var_of_dim t.env var_index in
if i = var_index then []
else [(Coeff.s_of_int 1, var)])
| Some var_index when i <> var_index ->
let var = Environment.var_of_dim t.env var_index in
[(Coeff.s_of_int 1, var)]
| _ -> [] )
in
let cst = Coeff.s_of_int (Z.to_int const) in
let lincons = Lincons1.make (Linexpr1.make t.env) Lincons1.EQ in
Expand Down

0 comments on commit 51359ef

Please sign in to comment.