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 304cfd6 commit ed4ce85Copy full SHA for ed4ce85
src/cdomains/addressDomain.ml
@@ -125,7 +125,7 @@ struct
125
else remove Addr.NullPtr x
126
in
127
match is_top x, is_top y with
128
- | true, true -> uop x y
+ | true, true -> no_null (no_null (uop x y) x) y
129
| false, true -> no_null x y
130
| true, false -> no_null y x
131
| false, false -> cop x y
tests/regression/27-inv_invariants/15-unknown-null-ptr.c
@@ -6,10 +6,10 @@ int main() {
6
if (r == NULL)
7
assert(r == NULL);
8
else
9
- assert(r != NULL); // TODO
+ assert(r != NULL);
10
11
if (r != NULL)
12
13
14
15
0 commit comments