@@ -276,21 +276,21 @@ struct
276276 match c with
277277 | Scalar c ->
278278 (match int_of_scalar ?scalewith c with
279- | Some i ->
280- let ci,truncation = truncateCilint ILongLong i in
281- if truncation = NoTruncation then
282- if Z. compare i Z. zero > = 0 then
283- false , Const (CInt (i,ILongLong ,None ))
284- else
285- (* attempt to negate if that does not cause an overflow *)
286- let cneg, truncation = truncateCilint ILongLong (Z. neg i) in
287- if truncation = NoTruncation then
288- true , Const (CInt ((Z. neg i),ILongLong ,None ))
289- else
290- false , Const (CInt (i,ILongLong ,None ))
291- else
292- (M. warn ~category: Analyzer " Invariant Apron: coefficient is not int: %a" Scalar. pretty c; raise Unsupported_Linexpr1 )
293- | None -> raise Unsupported_Linexpr1 )
279+ | Some i ->
280+ let ci,truncation = truncateCilint ILongLong i in
281+ if truncation = NoTruncation then
282+ if Z. compare i Z. zero > = 0 then
283+ false , Const (CInt (i,ILongLong ,None ))
284+ else
285+ (* attempt to negate if that does not cause an overflow *)
286+ let cneg, truncation = truncateCilint ILongLong (Z. neg i) in
287+ if truncation = NoTruncation then
288+ true , Const (CInt ((Z. neg i),ILongLong ,None ))
289+ else
290+ false , Const (CInt (i,ILongLong ,None ))
291+ else
292+ (M. warn ~category: Analyzer " Invariant Apron: coefficient is not int: %a" Scalar. pretty c; raise Unsupported_Linexpr1 )
293+ | None -> raise Unsupported_Linexpr1 )
294294 | _ -> raise Unsupported_Linexpr1
295295
296296 (* * Returned boolean indicates whether returned expression should be negated. *)
0 commit comments