#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*/ putchar(int);
int foo1(int i, int j, int k, int l, int m, int n, int o, int p, int q, int r,
         int s, int t) {
  putchar(i);
  putchar(j);
  putchar(k);
  putchar(l);
  putchar(m);
  putchar(n);
  putchar(o);
  putchar(p);
  putchar(q);
  putchar(r);
  putchar(s);
  putchar(t);
  return 0;
}


x86 assembly (clang, -O0):
<foo1>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    0x38(%rbp),%eax
mov    0x30(%rbp),%eax
mov    0x28(%rbp),%eax
mov    0x20(%rbp),%eax
mov    0x18(%rbp),%eax
mov    0x10(%rbp),%eax
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    %edx,-0xc(%rbp)
mov    %ecx,-0x10(%rbp)
mov    %r8d,-0x14(%rbp)
mov    %r9d,-0x18(%rbp)
mov    -0x4(%rbp),%edi
call   1030 <putchar@plt>
mov    -0x8(%rbp),%edi
call   1030 <putchar@plt>
mov    -0xc(%rbp),%edi
call   1030 <putchar@plt>
mov    -0x10(%rbp),%edi
call   1030 <putchar@plt>
mov    -0x14(%rbp),%edi
call   1030 <putchar@plt>
mov    -0x18(%rbp),%edi
call   1030 <putchar@plt>
mov    0x10(%rbp),%edi
call   1030 <putchar@plt>
mov    0x18(%rbp),%edi
call   1030 <putchar@plt>
mov    0x20(%rbp),%edi
call   1030 <putchar@plt>
mov    0x28(%rbp),%edi
call   1030 <putchar@plt>
mov    0x30(%rbp),%edi
call   1030 <putchar@plt>
mov    0x38(%rbp),%edi
call   1030 <putchar@plt>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<foo1>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
push   %rax
mov    %r9d,%ebx
mov    %r8d,%r14d
mov    %ecx,%r15d
mov    %edx,%r12d
mov    %esi,%r13d
mov    0x40(%rsp),%ebp
call   1030 <putchar@plt>
mov    %r13d,%edi
call   1030 <putchar@plt>
mov    %r12d,%edi
call   1030 <putchar@plt>
mov    %r15d,%edi
call   1030 <putchar@plt>
mov    %r14d,%edi
call   1030 <putchar@plt>
mov    %ebx,%edi
call   1030 <putchar@plt>
mov    %ebp,%edi
call   1030 <putchar@plt>
mov    0x48(%rsp),%edi
call   1030 <putchar@plt>
mov    0x50(%rsp),%edi
call   1030 <putchar@plt>
mov    0x58(%rsp),%edi
call   1030 <putchar@plt>
mov    0x60(%rsp),%edi
call   1030 <putchar@plt>
mov    0x68(%rsp),%edi
call   1030 <putchar@plt>
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
define i32 @foo1(i32 %0, i32 %1, i32 %2, i32 %3, i32 %4, i32 %5, i32 %6, i32 %7, i32 %8, i32 %9, i32 %10, i32 %11) {
%13 = alloca i32
%14 = alloca i32
%15 = alloca i32
%16 = alloca i32
%17 = alloca i32
%18 = alloca i32
%19 = alloca i32
%20 = alloca i32
%21 = alloca i32
%22 = alloca i32
%23 = alloca i32
%24 = alloca i32
store i32 %0, i32* %13
store i32 %1, i32* %14
store i32 %2, i32* %15
store i32 %3, i32* %16
store i32 %4, i32* %17
store i32 %5, i32* %18
store i32 %6, i32* %19
store i32 %7, i32* %20
store i32 %8, i32* %21
store i32 %9, i32* %22
store i32 %10, i32* %23
store i32 %11, i32* %24
%25 = load i32, i32* %13
%26 = call i32 @putchar(i32 %25)
%27 = load i32, i32* %14
%28 = call i32 @putchar(i32 %27)
%29 = load i32, i32* %15
%30 = call i32 @putchar(i32 %29)
%31 = load i32, i32* %16
%32 = call i32 @putchar(i32 %31)
%33 = load i32, i32* %17
%34 = call i32 @putchar(i32 %33)
%35 = load i32, i32* %18
%36 = call i32 @putchar(i32 %35)
%37 = load i32, i32* %19
%38 = call i32 @putchar(i32 %37)
%39 = load i32, i32* %20
%40 = call i32 @putchar(i32 %39)
%41 = load i32, i32* %21
%42 = call i32 @putchar(i32 %41)
%43 = load i32, i32* %22
%44 = call i32 @putchar(i32 %43)
%45 = load i32, i32* %23
%46 = call i32 @putchar(i32 %45)
%47 = load i32, i32* %24
%48 = call i32 @putchar(i32 %47)
ret i32 0
}

LLVM IR (-O2):
define i32 @foo1(i32 %0, i32 %1, i32 %2, i32 %3, i32 %4, i32 %5, i32 %6, i32 %7, i32 %8, i32 %9, i32 %10, i32 %11) {
%13 = tail call i32 @putchar(i32 %0)
%14 = tail call i32 @putchar(i32 %1)
%15 = tail call i32 @putchar(i32 %2)
%16 = tail call i32 @putchar(i32 %3)
%17 = tail call i32 @putchar(i32 %4)
%18 = tail call i32 @putchar(i32 %5)
%19 = tail call i32 @putchar(i32 %6)
%20 = tail call i32 @putchar(i32 %7)
%21 = tail call i32 @putchar(i32 %8)
%22 = tail call i32 @putchar(i32 %9)
%23 = tail call i32 @putchar(i32 %10)
%24 = tail call i32 @putchar(i32 %11)
ret i32 0
}