We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents fa7b637 + 8688982 commit df5edaaCopy full SHA for df5edaa
1 file changed
src/analyses/baseInvariant.ml
@@ -293,12 +293,9 @@ struct
293
let inv_bin_int (a, b) ikind c op =
294
let warn_and_top_on_zero x =
295
if ID.equal_to Z.zero x = `Eq then
296
- (M.error ~category:M.Category.Integer.div_by_zero ~tags:[CWE 369] "Must Undefined Behavior: Second argument of div or mod is 0, continuing with top";
297
- Checks.error Checks.Category.DivisionByZero "Must Undefined Behavior: Second argument of div or mod is 0, continuing with top";
298
- ID.top_of ikind)
299
- else (
300
- Checks.safe Checks.Category.DivisionByZero;
301
- x)
+ ID.top_of ikind
+ else
+ x
302
in
303
let meet_bin a' b' = id_meet_down ~old:a ~c:a', id_meet_down ~old:b ~c:b' in
304
let meet_com oi = (* commutative *)
0 commit comments