#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*/ printf(char *, int, ...);
extern int Bar9(int one, int two, int three, int four, int five, int six,
                int seven, int eight, int nine) {
  int sum = 0;
  printf(" Hello from Bar10: one = %d, two = %d\n ", one, two);
  printf(" three = %d, four = %d, five = %d, six = %d\n ", three, four, five,
         six);
  printf(" seven = %d, eight = %d, nine = %d \n ", seven, eight, nine);
  sum = one + two + three + four + five + six + seven + eight + nine;
  printf(" sum = %d\n", sum);
  return sum;
}


x86 assembly (clang, -O0):
<Bar9>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
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)
movl   $0x0,-0x1c(%rbp)
mov    -0x4(%rbp),%esi
mov    -0x8(%rbp),%edx
lea    0xeb7(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0xc(%rbp),%esi
mov    -0x10(%rbp),%edx
mov    -0x14(%rbp),%ecx
mov    -0x18(%rbp),%r8d
lea    0xec4(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    0x10(%rbp),%esi
mov    0x18(%rbp),%edx
mov    0x20(%rbp),%ecx
lea    0xedb(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x4(%rbp),%eax
add    -0x8(%rbp),%eax
add    -0xc(%rbp),%eax
add    -0x10(%rbp),%eax
add    -0x14(%rbp),%eax
add    -0x18(%rbp),%eax
add    0x10(%rbp),%eax
add    0x18(%rbp),%eax
add    0x20(%rbp),%eax
mov    %eax,-0x1c(%rbp)
mov    -0x1c(%rbp),%esi
lea    0xed2(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x1c(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<Bar9>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
push   %rax
mov    %r9d,%r15d
mov    %r8d,%ebp
mov    %ecx,%r14d
mov    %edx,%r12d
mov    %esi,%ebx
mov    %edi,%r13d
lea    0xecd(%rip),%rdi
mov    %r13d,%esi
mov    %ebx,%edx
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xee2(%rip),%rdi
mov    %r12d,%esi
mov    %r14d,%edx
mov    %ebp,%ecx
mov    %r15d,%r8d
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xef7(%rip),%rdi
mov    0x40(%rsp),%esi
mov    0x48(%rsp),%edx
mov    0x50(%rsp),%ecx
xor    %eax,%eax
call   1030 <printf@plt>
add    %r13d,%ebx
add    %r12d,%ebx
add    %r14d,%ebx
add    %ebp,%ebx
add    %r15d,%ebx
add    0x40(%rsp),%ebx
add    0x48(%rsp),%ebx
add    0x50(%rsp),%ebx
lea    0xee9(%rip),%rdi
mov    %ebx,%esi
xor    %eax,%eax
call   1030 <printf@plt>
mov    %ebx,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [40 x i8] c" Hello from Bar10: one = %d, two = %d\0A \00"
@.str.1 = [46 x i8] c" three = %d, four = %d, five = %d, six = %d\0A \00"
@.str.2 = [38 x i8] c" seven = %d, eight = %d, nine = %d \0A \00"
@.str.3 = [11 x i8] c" sum = %d\0A\00"
define i32 @Bar9(i32 %0, i32 %1, i32 %2, i32 %3, i32 %4, i32 %5, i32 %6, i32 %7, i32 %8) {
%10 = alloca i32
%11 = alloca i32
%12 = alloca i32
%13 = alloca i32
%14 = alloca i32
%15 = alloca i32
%16 = alloca i32
%17 = alloca i32
%18 = alloca i32
%19 = alloca i32
store i32 %0, i32* %10
store i32 %1, i32* %11
store i32 %2, i32* %12
store i32 %3, i32* %13
store i32 %4, i32* %14
store i32 %5, i32* %15
store i32 %6, i32* %16
store i32 %7, i32* %17
store i32 %8, i32* %18
store i32 0, i32* %19
%20 = load i32, i32* %10
%21 = load i32, i32* %11
%22 = call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str, i64 0, i64 0), i32 %20, i32 %21)
%23 = load i32, i32* %12
%24 = load i32, i32* %13
%25 = load i32, i32* %14
%26 = load i32, i32* %15
%27 = call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([46 x i8], [46 x i8]* @.str.1, i64 0, i64 0), i32 %23, i32 %24, i32 %25, i32 %26)
%28 = load i32, i32* %16
%29 = load i32, i32* %17
%30 = load i32, i32* %18
%31 = call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.2, i64 0, i64 0), i32 %28, i32 %29, i32 %30)
%32 = load i32, i32* %10
%33 = load i32, i32* %11
%34 = add nsw i32 %32, %33
%35 = load i32, i32* %12
%36 = add nsw i32 %34, %35
%37 = load i32, i32* %13
%38 = add nsw i32 %36, %37
%39 = load i32, i32* %14
%40 = add nsw i32 %38, %39
%41 = load i32, i32* %15
%42 = add nsw i32 %40, %41
%43 = load i32, i32* %16
%44 = add nsw i32 %42, %43
%45 = load i32, i32* %17
%46 = add nsw i32 %44, %45
%47 = load i32, i32* %18
%48 = add nsw i32 %46, %47
store i32 %48, i32* %19
%49 = load i32, i32* %19
%50 = call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.3, i64 0, i64 0), i32 %49)
%51 = load i32, i32* %19
ret i32 %51
}

LLVM IR (-O2):
@.str = [40 x i8] c" Hello from Bar10: one = %d, two = %d\0A \00"
@.str.1 = [46 x i8] c" three = %d, four = %d, five = %d, six = %d\0A \00"
@.str.2 = [38 x i8] c" seven = %d, eight = %d, nine = %d \0A \00"
@.str.3 = [11 x i8] c" sum = %d\0A\00"
define i32 @Bar9(i32 %0, i32 %1, i32 %2, i32 %3, i32 %4, i32 %5, i32 %6, i32 %7, i32 %8) {
%10 = tail call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str, i64 0, i64 0), i32 %0, i32 %1)
%11 = tail call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([46 x i8], [46 x i8]* @.str.1, i64 0, i64 0), i32 %2, i32 %3, i32 %4, i32 %5)
%12 = tail call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.2, i64 0, i64 0), i32 %6, i32 %7, i32 %8)
%13 = add nsw i32 %1, %0
%14 = add nsw i32 %13, %2
%15 = add nsw i32 %14, %3
%16 = add nsw i32 %15, %4
%17 = add nsw i32 %16, %5
%18 = add nsw i32 %17, %6
%19 = add nsw i32 %18, %7
%20 = add nsw i32 %19, %8
%21 = tail call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.3, i64 0, i64 0), i32 %20)
ret i32 %20
}