#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 /*<<< orphan*/ loop();
int /*<<< orphan*/ setup();
int main(int argc, char *argv[]) {
  setup();
  for (int i = 0; i < 50; i++) {
    loop();
  }
  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)
mov    $0x0,%al
call   1040 <setup@plt>
movl   $0x0,-0x14(%rbp)
cmpl   $0x32,-0x14(%rbp)
jge    1163 <main+0x43>
mov    $0x0,%al
call   1030 <loop@plt>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    1144 <main+0x24>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
xor    %eax,%eax
call   1040 <setup@plt>
xor    %eax,%eax
call   1030 <loop@plt>
xor    %eax,%eax
call   1030 <loop@plt>
xor    %eax,%eax
call   1030 <loop@plt>
xor    %eax,%eax
call   1030 <loop@plt>
xor    %eax,%eax
call   1030 <loop@plt>
xor    %eax,%eax
call   1030 <loop@plt>
xor    %eax,%eax
call   1030 <loop@plt>
xor    %eax,%eax
call   1030 <loop@plt>
xor    %eax,%eax
call   1030 <loop@plt>
xor    %eax,%eax
call   1030 <loop@plt>
xor    %eax,%eax
call   1030 <loop@plt>
xor    %eax,%eax
call   1030 <loop@plt>
xor    %eax,%eax
call   1030 <loop@plt>
xor    %eax,%eax
call   1030 <loop@plt>
xor    %eax,%eax
call   1030 <loop@plt>
xor    %eax,%eax
call   1030 <loop@plt>
xor    %eax,%eax
call   1030 <loop@plt>
xor    %eax,%eax
call   1030 <loop@plt>
xor    %eax,%eax
call   1030 <loop@plt>
xor    %eax,%eax
call   1030 <loop@plt>
xor    %eax,%eax
call   1030 <loop@plt>
xor    %eax,%eax
call   1030 <loop@plt>
xor    %eax,%eax
call   1030 <loop@plt>
xor    %eax,%eax
call   1030 <loop@plt>
xor    %eax,%eax
call   1030 <loop@plt>
xor    %eax,%eax
call   1030 <loop@plt>
xor    %eax,%eax
call   1030 <loop@plt>
xor    %eax,%eax
call   1030 <loop@plt>
xor    %eax,%eax
call   1030 <loop@plt>
xor    %eax,%eax
call   1030 <loop@plt>
xor    %eax,%eax
call   1030 <loop@plt>
xor    %eax,%eax
call   1030 <loop@plt>
xor    %eax,%eax
call   1030 <loop@plt>
xor    %eax,%eax
call   1030 <loop@plt>
xor    %eax,%eax
call   1030 <loop@plt>
xor    %eax,%eax
call   1030 <loop@plt>
xor    %eax,%eax
call   1030 <loop@plt>
xor    %eax,%eax
call   1030 <loop@plt>
xor    %eax,%eax
call   1030 <loop@plt>
xor    %eax,%eax
call   1030 <loop@plt>
xor    %eax,%eax
call   1030 <loop@plt>
xor    %eax,%eax
call   1030 <loop@plt>
xor    %eax,%eax
call   1030 <loop@plt>
xor    %eax,%eax
call   1030 <loop@plt>
xor    %eax,%eax
call   1030 <loop@plt>
xor    %eax,%eax
call   1030 <loop@plt>
xor    %eax,%eax
call   1030 <loop@plt>
xor    %eax,%eax
call   1030 <loop@plt>
xor    %eax,%eax
call   1030 <loop@plt>
xor    %eax,%eax
call   1030 <loop@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i32
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%7 = call i32 (...) @setup()
store i32 0, i32* %6
br label %8
8: ; preds = %13, %2
%9 = load i32, i32* %6
%10 = icmp slt i32 %9, 50
br i1 %10, label %11, label %16
11: ; preds = %8
%12 = call i32 (...) @loop()
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
ret i32 0
}

LLVM IR (-O2):
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = tail call i32 (...) @setup()
%4 = tail call i32 (...) @loop()
%5 = tail call i32 (...) @loop()
%6 = tail call i32 (...) @loop()
%7 = tail call i32 (...) @loop()
%8 = tail call i32 (...) @loop()
%9 = tail call i32 (...) @loop()
%10 = tail call i32 (...) @loop()
%11 = tail call i32 (...) @loop()
%12 = tail call i32 (...) @loop()
%13 = tail call i32 (...) @loop()
%14 = tail call i32 (...) @loop()
%15 = tail call i32 (...) @loop()
%16 = tail call i32 (...) @loop()
%17 = tail call i32 (...) @loop()
%18 = tail call i32 (...) @loop()
%19 = tail call i32 (...) @loop()
%20 = tail call i32 (...) @loop()
%21 = tail call i32 (...) @loop()
%22 = tail call i32 (...) @loop()
%23 = tail call i32 (...) @loop()
%24 = tail call i32 (...) @loop()
%25 = tail call i32 (...) @loop()
%26 = tail call i32 (...) @loop()
%27 = tail call i32 (...) @loop()
%28 = tail call i32 (...) @loop()
%29 = tail call i32 (...) @loop()
%30 = tail call i32 (...) @loop()
%31 = tail call i32 (...) @loop()
%32 = tail call i32 (...) @loop()
%33 = tail call i32 (...) @loop()
%34 = tail call i32 (...) @loop()
%35 = tail call i32 (...) @loop()
%36 = tail call i32 (...) @loop()
%37 = tail call i32 (...) @loop()
%38 = tail call i32 (...) @loop()
%39 = tail call i32 (...) @loop()
%40 = tail call i32 (...) @loop()
%41 = tail call i32 (...) @loop()
%42 = tail call i32 (...) @loop()
%43 = tail call i32 (...) @loop()
%44 = tail call i32 (...) @loop()
%45 = tail call i32 (...) @loop()
%46 = tail call i32 (...) @loop()
%47 = tail call i32 (...) @loop()
%48 = tail call i32 (...) @loop()
%49 = tail call i32 (...) @loop()
%50 = tail call i32 (...) @loop()
%51 = tail call i32 (...) @loop()
%52 = tail call i32 (...) @loop()
%53 = tail call i32 (...) @loop()
ret i32 0
}