We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0492c36 commit 219cd77Copy full SHA for 219cd77
2 files changed
src/analyses/base.ml
@@ -185,7 +185,7 @@ struct
185
@see C11 7.12.14, 6.5.8, 6.5.9 *)
186
let fd_binary_pred = function
187
| Some b -> ID.of_bool IInt b
188
- | None -> ID.top_of IInt (* TODO: [0,1] interval instead? *)
+ | None -> ID.of_interval IInt (Z.zero, Z.one)
189
190
let unop_ID = function
191
| Neg -> ID.neg
tests/regression/57-floats/01-base.c
@@ -25,8 +25,8 @@ int main()
25
26
__goblint_check((a < 10.) == 1);
27
__goblint_check((a > 10.) == 0);
28
- __goblint_check((x == 2.) >= 0); // TODO
29
- __goblint_check((x == 2.) <= 1); // TODO
+ __goblint_check((x == 2.) >= 0);
+ __goblint_check((x == 2.) <= 1);
30
31
__goblint_check(c == 2.f); // SUCCESS
32
__goblint_check(c < 10.f); // SUCCESS
0 commit comments