Skip to content

Commit c4b2874

Browse files
committed
Remove division by zero error message during base invariant
Discovered in #1838 (comment). Should be redundant due to #1764.
1 parent 3b66ba0 commit c4b2874

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/analyses/baseInvariant.ml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -292,8 +292,7 @@ struct
292292
let inv_bin_int (a, b) ikind c op =
293293
let warn_and_top_on_zero x =
294294
if GobOption.exists (Z.equal Z.zero) (ID.to_int x) then
295-
(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";
296-
ID.top_of ikind)
295+
ID.top_of ikind
297296
else
298297
x
299298
in

0 commit comments

Comments
 (0)