1int add(int a, int b) { return a + b; }
2int minus(int a, int b) { return a - b; }
3int multiple(int a, int b) { return a * b; }
4int divide(int a, int b) {
5 if (b == 0)
6 return 0;
7 return a / b;
8}
9
10int main() {
11 int a = 16;
12 int b = 8;
13
14 for (int i = 1; i < 1000000; i++) {
15 add(a, b);
16 minus(a, b);
17 multiple(a, b);
18 divide(a, b);
19 }
20
21 return 0;
22}
23

source code of bolt/test/perf2bolt/Inputs/perf_test.c