Skip to content

Commit 6b95d96

Browse files
committed
Fix "coefficient is not int" in wrong case in SharedFunctions
1 parent 5f45f6a commit 6b95d96

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/cdomains/apron/sharedFunctions.apron.ml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -288,8 +288,10 @@ struct
288288
else
289289
false, Const (CInt(i,ILongLong,None))
290290
else
291-
(M.warn ~category:Analyzer "Invariant Apron: coefficient is not int: %a" Scalar.pretty c; raise Unsupported_Linexpr1)
292-
| None -> raise Unsupported_Linexpr1)
291+
raise Unsupported_Linexpr1
292+
| None ->
293+
M.warn ~category:Analyzer "Invariant Apron: coefficient is not int: %a" Scalar.pretty c;
294+
raise Unsupported_Linexpr1)
293295
| _ -> raise Unsupported_Linexpr1
294296

295297
(** Returned boolean indicates whether returned expression should be negated. *)

0 commit comments

Comments
 (0)