1void __llvm_profile_initialize_file(void);
2int __llvm_orderfile_dump(void);
3
4__attribute__((noinline)) int f(int a);
5
6__attribute__((noinline)) int g(int a);
7
8int main(int argc, const char *argv[]) {
9 int a = f(a: argc);
10 int t = 0;
11 for (int i = 0; i < argc; i++)
12 t += g(a);
13 f(a: t);
14 __llvm_profile_initialize_file();
15 __llvm_orderfile_dump();
16 return 0;
17}
18

source code of compiler-rt/test/profile/Inputs/instrprof-order-file.c