#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*/ exit(int /*<<< orphan*/);
int /*<<< orphan*/ printf(char *);
int /*<<< orphan*/ test20();
main() {
  int i;
  printf("Test  2 ");
  for (i = 0; i < 19; i++) {
    test20();
  }
  printf("ok\n");
  exit(0);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xeba(%rip),%rdi
call   1030 <printf@plt>
movl   $0x0,-0x8(%rbp)
cmpl   $0x13,-0x8(%rbp)
jge    1171 <main+0x41>
mov    $0x0,%al
call   1050 <test20@plt>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    1152 <main+0x22>
lea    0xe91(%rip),%rdi
call   1030 <printf@plt>
xor    %edi,%edi
call   1040 <exit@plt>

x86 assembly (clang, -O2):
<main>:
push   %rax
lea    0xeb8(%rip),%rdi
call   1040 <printf@plt>
xor    %eax,%eax
call   1060 <test20@plt>
xor    %eax,%eax
call   1060 <test20@plt>
xor    %eax,%eax
call   1060 <test20@plt>
xor    %eax,%eax
call   1060 <test20@plt>
xor    %eax,%eax
call   1060 <test20@plt>
xor    %eax,%eax
call   1060 <test20@plt>
xor    %eax,%eax
call   1060 <test20@plt>
xor    %eax,%eax
call   1060 <test20@plt>
xor    %eax,%eax
call   1060 <test20@plt>
xor    %eax,%eax
call   1060 <test20@plt>
xor    %eax,%eax
call   1060 <test20@plt>
xor    %eax,%eax
call   1060 <test20@plt>
xor    %eax,%eax
call   1060 <test20@plt>
xor    %eax,%eax
call   1060 <test20@plt>
xor    %eax,%eax
call   1060 <test20@plt>
xor    %eax,%eax
call   1060 <test20@plt>
xor    %eax,%eax
call   1060 <test20@plt>
xor    %eax,%eax
call   1060 <test20@plt>
xor    %eax,%eax
call   1060 <test20@plt>
lea    0xe30(%rip),%rdi
call   1030 <puts@plt>
xor    %edi,%edi
call   1050 <exit@plt>

LLVM IR (-O0):
@.str = [9 x i8] c"Test 2 \00"
@.str.1 = [4 x i8] c"ok\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
store i32 0, i32* %1
%3 = call i32 @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0))
store i32 0, i32* %2
br label %4
4: ; preds = %9, %0
%5 = load i32, i32* %2
%6 = icmp slt i32 %5, 19
br i1 %6, label %7, label %12
7: ; preds = %4
%8 = call i32 (...) @test20()
br label %9
9: ; preds = %7
%10 = load i32, i32* %2
%11 = add nsw i32 %10, 1
store i32 %11, i32* %2
br label %4
12: ; preds = %4
%13 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0))
%14 = call i32 @exit(i32 0)
unreachable
}

LLVM IR (-O2):
@.str = [9 x i8] c"Test 2 \00"
@str = [3 x i8] c"ok\00"
define i32 @main() {
%1 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0))
%2 = tail call i32 (...) @test20()
%3 = tail call i32 (...) @test20()
%4 = tail call i32 (...) @test20()
%5 = tail call i32 (...) @test20()
%6 = tail call i32 (...) @test20()
%7 = tail call i32 (...) @test20()
%8 = tail call i32 (...) @test20()
%9 = tail call i32 (...) @test20()
%10 = tail call i32 (...) @test20()
%11 = tail call i32 (...) @test20()
%12 = tail call i32 (...) @test20()
%13 = tail call i32 (...) @test20()
%14 = tail call i32 (...) @test20()
%15 = tail call i32 (...) @test20()
%16 = tail call i32 (...) @test20()
%17 = tail call i32 (...) @test20()
%18 = tail call i32 (...) @test20()
%19 = tail call i32 (...) @test20()
%20 = tail call i32 (...) @test20()
%21 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @str, i64 0, i64 0))
%22 = tail call i32 @exit(i32 0)
unreachable
}