#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*/ pp();
void direct() {
  int i;
  for (i = 0; i < 32; i++)
    pp();
}


x86 assembly (clang, -O0):
<direct>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
cmpl   $0x20,-0x4(%rbp)
jge    113e <direct+0x2e>
mov    $0x0,%al
call   1030 <pp@plt>
mov    -0x4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x4(%rbp)
jmp    111f <direct+0xf>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<direct>:
push   %rax
xor    %eax,%eax
call   1030 <pp@plt>
xor    %eax,%eax
call   1030 <pp@plt>
xor    %eax,%eax
call   1030 <pp@plt>
xor    %eax,%eax
call   1030 <pp@plt>
xor    %eax,%eax
call   1030 <pp@plt>
xor    %eax,%eax
call   1030 <pp@plt>
xor    %eax,%eax
call   1030 <pp@plt>
xor    %eax,%eax
call   1030 <pp@plt>
xor    %eax,%eax
call   1030 <pp@plt>
xor    %eax,%eax
call   1030 <pp@plt>
xor    %eax,%eax
call   1030 <pp@plt>
xor    %eax,%eax
call   1030 <pp@plt>
xor    %eax,%eax
call   1030 <pp@plt>
xor    %eax,%eax
call   1030 <pp@plt>
xor    %eax,%eax
call   1030 <pp@plt>
xor    %eax,%eax
call   1030 <pp@plt>
xor    %eax,%eax
call   1030 <pp@plt>
xor    %eax,%eax
call   1030 <pp@plt>
xor    %eax,%eax
call   1030 <pp@plt>
xor    %eax,%eax
call   1030 <pp@plt>
xor    %eax,%eax
call   1030 <pp@plt>
xor    %eax,%eax
call   1030 <pp@plt>
xor    %eax,%eax
call   1030 <pp@plt>
xor    %eax,%eax
call   1030 <pp@plt>
xor    %eax,%eax
call   1030 <pp@plt>
xor    %eax,%eax
call   1030 <pp@plt>
xor    %eax,%eax
call   1030 <pp@plt>
xor    %eax,%eax
call   1030 <pp@plt>
xor    %eax,%eax
call   1030 <pp@plt>
xor    %eax,%eax
call   1030 <pp@plt>
xor    %eax,%eax
call   1030 <pp@plt>
xor    %eax,%eax
pop    %rcx
jmp    1030 <pp@plt>

LLVM IR (-O0):
define void @direct() {
%1 = alloca i32
store i32 0, i32* %1
br label %2
2: ; preds = %7, %0
%3 = load i32, i32* %1
%4 = icmp slt i32 %3, 32
br i1 %4, label %5, label %10
5: ; preds = %2
%6 = call i32 (...) @pp()
br label %7
7: ; preds = %5
%8 = load i32, i32* %1
%9 = add nsw i32 %8, 1
store i32 %9, i32* %1
br label %2
10: ; preds = %2
ret void
}

LLVM IR (-O2):
define void @direct() {
%1 = tail call i32 (...) @pp()
%2 = tail call i32 (...) @pp()
%3 = tail call i32 (...) @pp()
%4 = tail call i32 (...) @pp()
%5 = tail call i32 (...) @pp()
%6 = tail call i32 (...) @pp()
%7 = tail call i32 (...) @pp()
%8 = tail call i32 (...) @pp()
%9 = tail call i32 (...) @pp()
%10 = tail call i32 (...) @pp()
%11 = tail call i32 (...) @pp()
%12 = tail call i32 (...) @pp()
%13 = tail call i32 (...) @pp()
%14 = tail call i32 (...) @pp()
%15 = tail call i32 (...) @pp()
%16 = tail call i32 (...) @pp()
%17 = tail call i32 (...) @pp()
%18 = tail call i32 (...) @pp()
%19 = tail call i32 (...) @pp()
%20 = tail call i32 (...) @pp()
%21 = tail call i32 (...) @pp()
%22 = tail call i32 (...) @pp()
%23 = tail call i32 (...) @pp()
%24 = tail call i32 (...) @pp()
%25 = tail call i32 (...) @pp()
%26 = tail call i32 (...) @pp()
%27 = tail call i32 (...) @pp()
%28 = tail call i32 (...) @pp()
%29 = tail call i32 (...) @pp()
%30 = tail call i32 (...) @pp()
%31 = tail call i32 (...) @pp()
%32 = tail call i32 (...) @pp()
ret void
}