We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ef71e73 commit 34c1199Copy full SHA for 34c1199
tests/unit/cdomains/floatDomainTest.ml
@@ -265,7 +265,10 @@ struct
265
266
let test_FI_div_zero_result_top =
267
QCheck.Test.make ~name:"test_FI_div_zero_result_top" (FI.arbitrary ()) (fun arg ->
268
- FI.is_top (FI.div arg (FI.of_const 0.)))
+ let res = FI.div arg (FI.of_const 0.) in
269
+ if FI.equal arg fi_zero
270
+ then FI.equal res (FI.nan ())
271
+ else FI.is_top res)
272
273
let test_FI_accurate_neg =
274
QCheck.Test.make ~name:"test_FI_accurate_neg" QCheck.float (fun arg ->
0 commit comments