#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*/ print_int(int);
int /*<<< orphan*/ print_string(char *);
void indirect(int w, int x, int y, int z) {
  print_int(w);
  print_string(" ");
  print_int(x);
  print_string(" ");
  print_int(y);
  print_string(" ");
  print_int(z);
  print_string("\n");
}


x86 assembly (clang, -O0):
<indirect>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    %edx,-0xc(%rbp)
mov    %ecx,-0x10(%rbp)
mov    -0x4(%rbp),%edi
call   1040 <print_int@plt>
lea    0xebd(%rip),%rdi
call   1030 <print_string@plt>
mov    -0x8(%rbp),%edi
call   1040 <print_int@plt>
lea    0xea9(%rip),%rdi
call   1030 <print_string@plt>
mov    -0xc(%rbp),%edi
call   1040 <print_int@plt>
lea    0xe95(%rip),%rdi
call   1030 <print_string@plt>
mov    -0x10(%rbp),%edi
call   1040 <print_int@plt>
lea    0xe83(%rip),%rdi
call   1030 <print_string@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<indirect>:
push   %rbp
push   %r15
push   %r14
push   %rbx
push   %rax
mov    %ecx,%r14d
mov    %edx,%r15d
mov    %esi,%ebx
call   1040 <print_int@plt>
lea    0xec5(%rip),%rbp
mov    %rbp,%rdi
call   1030 <print_string@plt>
mov    %ebx,%edi
call   1040 <print_int@plt>
mov    %rbp,%rdi
call   1030 <print_string@plt>
mov    %r15d,%edi
call   1040 <print_int@plt>
mov    %rbp,%rdi
call   1030 <print_string@plt>
mov    %r14d,%edi
call   1040 <print_int@plt>
lea    0xe91(%rip),%rdi
add    $0x8,%rsp
pop    %rbx
pop    %r14
pop    %r15
pop    %rbp
jmp    1030 <print_string@plt>

LLVM IR (-O0):
@.str = [2 x i8] c" \00"
@.str.1 = [2 x i8] c"\0A\00"
define void @indirect(i32 %0, i32 %1, i32 %2, i32 %3) {
%5 = alloca i32
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
store i32 %0, i32* %5
store i32 %1, i32* %6
store i32 %2, i32* %7
store i32 %3, i32* %8
%9 = load i32, i32* %5
%10 = call i32 @print_int(i32 %9)
%11 = call i32 @print_string(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%12 = load i32, i32* %6
%13 = call i32 @print_int(i32 %12)
%14 = call i32 @print_string(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%15 = load i32, i32* %7
%16 = call i32 @print_int(i32 %15)
%17 = call i32 @print_string(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%18 = load i32, i32* %8
%19 = call i32 @print_int(i32 %18)
%20 = call i32 @print_string(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [2 x i8] c" \00"
@.str.1 = [2 x i8] c"\0A\00"
define void @indirect(i32 %0, i32 %1, i32 %2, i32 %3) {
%5 = tail call i32 @print_int(i32 %0)
%6 = tail call i32 @print_string(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%7 = tail call i32 @print_int(i32 %1)
%8 = tail call i32 @print_string(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%9 = tail call i32 @print_int(i32 %2)
%10 = tail call i32 @print_string(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%11 = tail call i32 @print_int(i32 %3)
%12 = tail call i32 @print_string(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
ret void
}