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 6dd45b3 commit 4d8159cCopy full SHA for 4d8159c
cpp/ql/lib/experimental/semmle/code/cpp/semantic/analysis/FloatDelta.qll
@@ -16,14 +16,5 @@ module FloatDelta implements DeltaSig {
16
Delta fromInt(int n) { result = n }
17
18
bindingset[f]
19
- Delta fromFloat(float f) {
20
- result =
21
- min(float diff, float res |
22
- diff = (res - f) and res = f.ceil()
23
- or
24
- diff = (f - res) and res = f.floor()
25
- |
26
- res order by diff
27
- )
28
- }
+ Delta fromFloat(float f) { result = f }
29
}
0 commit comments