#define NULL ((void *)0)
typedef unsigned long size_t; // Customize by platform.
typedef long intptr_t;
typedef unsigned long uintptr_t;
typedef long scalar_t__; // Either arithmetic or pointer type.
/* By default, we understand bool (as a convenience). */
typedef int bool;
#define false 0
#define true 1

/* Forward declarations */

/* Type definitions */

/* Variables and functions */
int f_103x();
int f_1x();
int f_2x();
int f_3x();
int f_65535x();
int f_997x();
int main(int argc, char **argv) {
  int i, a;
  for (i = 0; i < 1; i++)
    a = f_1x();
  for (i = 0; i < 2; i++)
    a = f_2x();
  for (i = 0; i < 3; i++)
    a = f_3x();
  for (i = 0; i < 103; i++)
    a = f_103x();
  for (i = 0; i < 997; i++)
    a = f_997x();
  for (i = 0; i < 65535; i++)
    a = f_65535x();
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movl   $0x0,-0x14(%rbp)
cmpl   $0x1,-0x14(%rbp)
jge    119f <main+0x3f>
mov    $0x0,%al
call   1080 <f_1x@plt>
mov    %eax,-0x18(%rbp)
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    117d <main+0x1d>
movl   $0x0,-0x14(%rbp)
cmpl   $0x2,-0x14(%rbp)
jge    11c8 <main+0x68>
mov    $0x0,%al
call   1060 <f_2x@plt>
mov    %eax,-0x18(%rbp)
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    11a6 <main+0x46>
movl   $0x0,-0x14(%rbp)
cmpl   $0x3,-0x14(%rbp)
jge    11f1 <main+0x91>
mov    $0x0,%al
call   1070 <f_3x@plt>
mov    %eax,-0x18(%rbp)
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    11cf <main+0x6f>
movl   $0x0,-0x14(%rbp)
cmpl   $0x67,-0x14(%rbp)
jge    121a <main+0xba>
mov    $0x0,%al
call   1050 <f_103x@plt>
mov    %eax,-0x18(%rbp)
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    11f8 <main+0x98>
movl   $0x0,-0x14(%rbp)
cmpl   $0x3e5,-0x14(%rbp)
jge    1246 <main+0xe6>
mov    $0x0,%al
call   1030 <f_997x@plt>
mov    %eax,-0x18(%rbp)
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    1221 <main+0xc1>
movl   $0x0,-0x14(%rbp)
cmpl   $0xffff,-0x14(%rbp)
jge    1272 <main+0x112>
mov    $0x0,%al
call   1040 <f_65535x@plt>
mov    %eax,-0x18(%rbp)
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    124d <main+0xed>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
xor    %eax,%eax
call   1080 <f_1x@plt>
xor    %eax,%eax
call   1060 <f_2x@plt>
xor    %eax,%eax
call   1060 <f_2x@plt>
xor    %eax,%eax
call   1070 <f_3x@plt>
xor    %eax,%eax
call   1070 <f_3x@plt>
xor    %eax,%eax
call   1070 <f_3x@plt>
mov    $0x67,%ebx
xor    %eax,%eax
call   1050 <f_103x@plt>
add    $0xffffffff,%ebx
jne    1190 <main+0x30>
mov    $0x3e5,%ebx
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
xor    %eax,%eax
call   1030 <f_997x@plt>
add    $0xffffffff,%ebx
jne    11b0 <main+0x50>
mov    $0xffff,%ebx
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
xor    %eax,%eax
call   1040 <f_65535x@plt>
add    $0xffffffff,%ebx
jne    11d0 <main+0x70>
xor    %eax,%eax
pop    %rbx
ret

LLVM IR (-O0):
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i32
%7 = alloca i32
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
store i32 0, i32* %6
br label %8
8: ; preds = %13, %2
%9 = load i32, i32* %6
%10 = icmp slt i32 %9, 1
br i1 %10, label %11, label %16
11: ; preds = %8
%12 = call i32 (...) @f_1x()
store i32 %12, i32* %7
br label %13
13: ; preds = %11
%14 = load i32, i32* %6
%15 = add nsw i32 %14, 1
store i32 %15, i32* %6
br label %8
16: ; preds = %8
store i32 0, i32* %6
br label %17
17: ; preds = %22, %16
%18 = load i32, i32* %6
%19 = icmp slt i32 %18, 2
br i1 %19, label %20, label %25
20: ; preds = %17
%21 = call i32 (...) @f_2x()
store i32 %21, i32* %7
br label %22
22: ; preds = %20
%23 = load i32, i32* %6
%24 = add nsw i32 %23, 1
store i32 %24, i32* %6
br label %17
25: ; preds = %17
store i32 0, i32* %6
br label %26
26: ; preds = %31, %25
%27 = load i32, i32* %6
%28 = icmp slt i32 %27, 3
br i1 %28, label %29, label %34
29: ; preds = %26
%30 = call i32 (...) @f_3x()
store i32 %30, i32* %7
br label %31
31: ; preds = %29
%32 = load i32, i32* %6
%33 = add nsw i32 %32, 1
store i32 %33, i32* %6
br label %26
34: ; preds = %26
store i32 0, i32* %6
br label %35
35: ; preds = %40, %34
%36 = load i32, i32* %6
%37 = icmp slt i32 %36, 103
br i1 %37, label %38, label %43
38: ; preds = %35
%39 = call i32 (...) @f_103x()
store i32 %39, i32* %7
br label %40
40: ; preds = %38
%41 = load i32, i32* %6
%42 = add nsw i32 %41, 1
store i32 %42, i32* %6
br label %35
43: ; preds = %35
store i32 0, i32* %6
br label %44
44: ; preds = %49, %43
%45 = load i32, i32* %6
%46 = icmp slt i32 %45, 997
br i1 %46, label %47, label %52
47: ; preds = %44
%48 = call i32 (...) @f_997x()
store i32 %48, i32* %7
br label %49
49: ; preds = %47
%50 = load i32, i32* %6
%51 = add nsw i32 %50, 1
store i32 %51, i32* %6
br label %44
52: ; preds = %44
store i32 0, i32* %6
br label %53
53: ; preds = %58, %52
%54 = load i32, i32* %6
%55 = icmp slt i32 %54, 65535
br i1 %55, label %56, label %61
56: ; preds = %53
%57 = call i32 (...) @f_65535x()
store i32 %57, i32* %7
br label %58
58: ; preds = %56
%59 = load i32, i32* %6
%60 = add nsw i32 %59, 1
store i32 %60, i32* %6
br label %53
61: ; preds = %53
ret i32 0
}

LLVM IR (-O2):
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = tail call i32 (...) @f_1x()
%4 = tail call i32 (...) @f_2x()
%5 = tail call i32 (...) @f_2x()
%6 = tail call i32 (...) @f_3x()
%7 = tail call i32 (...) @f_3x()
%8 = tail call i32 (...) @f_3x()
br label %9
9: ; preds = %2, %9
%10 = phi i32 [ %12, %9 ], [ 0, %2 ]
%11 = tail call i32 (...) @f_103x()
%12 = add nuw nsw i32 %10, 1
%13 = icmp eq i32 %12, 103
br i1 %13, label %14, label %9
14: ; preds = %9, %14
%15 = phi i32 [ %17, %14 ], [ 0, %9 ]
%16 = tail call i32 (...) @f_997x()
%17 = add nuw nsw i32 %15, 1
%18 = icmp eq i32 %17, 997
br i1 %18, label %19, label %14
19: ; preds = %14, %19
%20 = phi i32 [ %22, %19 ], [ 0, %14 ]
%21 = tail call i32 (...) @f_65535x()
%22 = add nuw nsw i32 %20, 1
%23 = icmp eq i32 %22, 65535
br i1 %23, label %24, label %19
24: ; preds = %19
ret i32 0
}