Debian Codegraph @

tools/spgen/examples/disj.c

raw
1 int main(int *arg) {
2 int m = function(arg);
3
4 // should not match, lacks assignment to 30
5 if (*arg < 0) {
6 some_function(10);
7 m = *arg;
8 }
9
10 // should match!
11 if (*arg < 1) {
12 some_function(20);
13 m = 30;
14 }
15
16 // should not match, contains some_function call to 0
17 if (*arg < 10) {
18 m = 30;
19 some_function(0);
20 }
21
22 // should match!
23 if (*arg < 100) {
24 this(5);
25 }
26
27 return m;
28 }
29