1extern int g1, g2;
2extern void foo(int n);
3
4int main() {
5 int i, j;
6 for (i = 0; i < 1000; i++)
7 for (j = 0; j < 1000; j++)
8 foo(n: i * j);
9
10 if (g2 - g1 == 280001)
11 return 0;
12 return 1;
13}
14

source code of compiler-rt/test/profile/Inputs/instrprof-shared-main.c