Debian Codegraph @

testsuite/systemtap.context/uprobe_stmt_num.c

raw
1 #include <stdlib.h>
2
3 static int
4 func2 (int x, int y)
5 {
6 return x + y;
7 }
8
9 static int
10 func (int arg)
11 {
12 int x = 16;
13 int y = arg - x;
14 int z = func2(x, y);
15 return x + y + z;
16 }
17
18 int
19 main (int argc, char *argv[], char *envp[])
20 {
21 // Note: Passing to srand to force evaluation of func().
22 srand(func(42));
23 return 0;
24 }