Skip to content

Commit 871a783

Browse files
committed
Make scalewith mandatory argument in SharedFunctions.CilOfApron
1 parent 00cceab commit 871a783

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/cdomains/apron/sharedFunctions.apron.ml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -273,16 +273,16 @@ struct
273273

274274
let longlong = TInt(ILongLong,[])
275275

276-
let int_of_coeff_warn ?scalewith ?round coeff =
277-
match int_of_coeff ?scalewith ?round coeff with
276+
let int_of_coeff_warn ~scalewith coeff =
277+
match int_of_coeff ~scalewith coeff with
278278
| Some i -> i
279279
| None ->
280280
M.warn ~category:Analyzer "Invariant Apron: coefficient is not int: %a" Coeff.pretty coeff;
281281
raise Unsupported_Linexpr1
282282

283283
(** Returned boolean indicates whether returned expression should be negated. *)
284284
let coeff_to_const ~scalewith (c:Coeff.union_5) =
285-
let i = int_of_coeff_warn ?scalewith c in
285+
let i = int_of_coeff_warn ~scalewith c in
286286
let ci,truncation = truncateCilint ILongLong i in
287287
if truncation = NoTruncation then
288288
if Z.compare i Z.zero >= 0 then
@@ -316,7 +316,7 @@ struct
316316
raise Unsupported_Linexpr1
317317

318318
(** Returned booleans indicates whether returned expressions should be negated. *)
319-
let cil_exp_of_linexpr1 ?scalewith (linexpr1:Linexpr1.t) =
319+
let cil_exp_of_linexpr1 ~scalewith (linexpr1:Linexpr1.t) =
320320
let terms =
321321
let c = Linexpr1.get_cst linexpr1 in
322322
if Coeff.is_zero c then

0 commit comments

Comments
 (0)