#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 a();
int b();
int /*<<< orphan*/ c();
int /*<<< orphan*/ d();
int /*<<< orphan*/ e();
int /*<<< orphan*/ f();
int /*<<< orphan*/ printf(char *, int, int, int /*<<< orphan*/,
                          int /*<<< orphan*/, int /*<<< orphan*/,
                          int /*<<< orphan*/);
int main(int argc, char **argv) {
  printf("Hello, %c, %d, %ld, %c, %d, %ld\n", a(), b(), c(), d(), e(), f());
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    $0x0,%al
call   1090 <a@plt>
mov    %eax,-0x24(%rbp)
mov    $0x0,%al
call   1040 <b@plt>
mov    %eax,-0x20(%rbp)
mov    $0x0,%al
call   1080 <c@plt>
mov    %eax,-0x1c(%rbp)
mov    $0x0,%al
call   1030 <d@plt>
mov    %eax,-0x18(%rbp)
mov    $0x0,%al
call   1070 <e@plt>
mov    %eax,-0x14(%rbp)
mov    $0x0,%al
call   1050 <f@plt>
mov    -0x24(%rbp),%esi
mov    -0x20(%rbp),%edx
mov    -0x1c(%rbp),%ecx
mov    -0x18(%rbp),%r8d
mov    -0x14(%rbp),%r9d
lea    0xe29(%rip),%rdi
mov    %eax,(%rsp)
call   1060 <printf@plt>
xor    %eax,%eax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r12
push   %rbx
sub    $0x10,%rsp
xor    %eax,%eax
call   1090 <a@plt>
mov    %eax,%r14d
xor    %eax,%eax
call   1040 <b@plt>
mov    %eax,%r15d
xor    %eax,%eax
call   1080 <c@plt>
mov    %eax,%r12d
xor    %eax,%eax
call   1030 <d@plt>
mov    %eax,%ebp
xor    %eax,%eax
call   1070 <e@plt>
mov    %eax,%ebx
xor    %eax,%eax
call   1050 <f@plt>
mov    %eax,(%rsp)
lea    0xe43(%rip),%rdi
mov    %r14d,%esi
mov    %r15d,%edx
mov    %r12d,%ecx
mov    %ebp,%r8d
mov    %ebx,%r9d
call   1060 <printf@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [33 x i8] c"Hello, %c, %d, %ld, %c, %d, %ld\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%6 = call i32 (...) @a()
%7 = call i32 (...) @b()
%8 = call i32 (...) @c()
%9 = call i32 (...) @d()
%10 = call i32 (...) @e()
%11 = call i32 (...) @f()
%12 = call i32 @printf(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str, i64 0, i64 0), i32 %6, i32 %7, i32 %8, i32 %9, i32 %10, i32 %11)
ret i32 0
}

LLVM IR (-O2):
@.str = [33 x i8] c"Hello, %c, %d, %ld, %c, %d, %ld\0A\00"
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = tail call i32 (...) @a()
%4 = tail call i32 (...) @b()
%5 = tail call i32 (...) @c()
%6 = tail call i32 (...) @d()
%7 = tail call i32 (...) @e()
%8 = tail call i32 (...) @f()
%9 = tail call i32 @printf(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str, i64 0, i64 0), i32 %3, i32 %4, i32 %5, i32 %6, i32 %7, i32 %8)
ret i32 0
}