#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*/ doTest(size_t);
int main(int argc, char **argv) {
  size_t i;
  for (i = 0; i < 32; i++)
    doTest(i);
  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)
movq   $0x0,-0x18(%rbp)
cmpq   $0x20,-0x18(%rbp)
jae    1153 <main+0x43>
mov    -0x18(%rbp),%rdi
call   1030 <doTest@plt>
mov    -0x18(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x18(%rbp)
jmp    112e <main+0x1e>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
xor    %edi,%edi
call   1030 <doTest@plt>
mov    $0x1,%edi
call   1030 <doTest@plt>
mov    $0x2,%edi
call   1030 <doTest@plt>
mov    $0x3,%edi
call   1030 <doTest@plt>
mov    $0x4,%edi
call   1030 <doTest@plt>
mov    $0x5,%edi
call   1030 <doTest@plt>
mov    $0x6,%edi
call   1030 <doTest@plt>
mov    $0x7,%edi
call   1030 <doTest@plt>
mov    $0x8,%edi
call   1030 <doTest@plt>
mov    $0x9,%edi
call   1030 <doTest@plt>
mov    $0xa,%edi
call   1030 <doTest@plt>
mov    $0xb,%edi
call   1030 <doTest@plt>
mov    $0xc,%edi
call   1030 <doTest@plt>
mov    $0xd,%edi
call   1030 <doTest@plt>
mov    $0xe,%edi
call   1030 <doTest@plt>
mov    $0xf,%edi
call   1030 <doTest@plt>
mov    $0x10,%edi
call   1030 <doTest@plt>
mov    $0x11,%edi
call   1030 <doTest@plt>
mov    $0x12,%edi
call   1030 <doTest@plt>
mov    $0x13,%edi
call   1030 <doTest@plt>
mov    $0x14,%edi
call   1030 <doTest@plt>
mov    $0x15,%edi
call   1030 <doTest@plt>
mov    $0x16,%edi
call   1030 <doTest@plt>
mov    $0x17,%edi
call   1030 <doTest@plt>
mov    $0x18,%edi
call   1030 <doTest@plt>
mov    $0x19,%edi
call   1030 <doTest@plt>
mov    $0x1a,%edi
call   1030 <doTest@plt>
mov    $0x1b,%edi
call   1030 <doTest@plt>
mov    $0x1c,%edi
call   1030 <doTest@plt>
mov    $0x1d,%edi
call   1030 <doTest@plt>
mov    $0x1e,%edi
call   1030 <doTest@plt>
mov    $0x1f,%edi
call   1030 <doTest@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 i64
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
store i64 0, i64* %6
br label %7
7: ; preds = %13, %2
%8 = load i64, i64* %6
%9 = icmp ult i64 %8, 32
br i1 %9, label %10, label %16
10: ; preds = %7
%11 = load i64, i64* %6
%12 = call i32 @doTest(i64 %11)
br label %13
13: ; preds = %10
%14 = load i64, i64* %6
%15 = add i64 %14, 1
store i64 %15, i64* %6
br label %7
16: ; preds = %7
ret i32 0
}

LLVM IR (-O2):
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = tail call i32 @doTest(i64 0)
%4 = tail call i32 @doTest(i64 1)
%5 = tail call i32 @doTest(i64 2)
%6 = tail call i32 @doTest(i64 3)
%7 = tail call i32 @doTest(i64 4)
%8 = tail call i32 @doTest(i64 5)
%9 = tail call i32 @doTest(i64 6)
%10 = tail call i32 @doTest(i64 7)
%11 = tail call i32 @doTest(i64 8)
%12 = tail call i32 @doTest(i64 9)
%13 = tail call i32 @doTest(i64 10)
%14 = tail call i32 @doTest(i64 11)
%15 = tail call i32 @doTest(i64 12)
%16 = tail call i32 @doTest(i64 13)
%17 = tail call i32 @doTest(i64 14)
%18 = tail call i32 @doTest(i64 15)
%19 = tail call i32 @doTest(i64 16)
%20 = tail call i32 @doTest(i64 17)
%21 = tail call i32 @doTest(i64 18)
%22 = tail call i32 @doTest(i64 19)
%23 = tail call i32 @doTest(i64 20)
%24 = tail call i32 @doTest(i64 21)
%25 = tail call i32 @doTest(i64 22)
%26 = tail call i32 @doTest(i64 23)
%27 = tail call i32 @doTest(i64 24)
%28 = tail call i32 @doTest(i64 25)
%29 = tail call i32 @doTest(i64 26)
%30 = tail call i32 @doTest(i64 27)
%31 = tail call i32 @doTest(i64 28)
%32 = tail call i32 @doTest(i64 29)
%33 = tail call i32 @doTest(i64 30)
%34 = tail call i32 @doTest(i64 31)
ret i32 0
}