#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 *, ...);
void printArgsNoRet(int a1, float a2, char a3, double a4, char *a5, int a6,
                    float a7, char a8, double a9, char *a10, int a11, float a12,
                    char a13, double a14, char *a15) {
  printf("\nprintArgsNoRet with 15 arguments:\n");
  printf("\tArgs 1-5  : %d %f %c %f %c\n", a1, a2, a3, a4, *a5);
  printf("\tArgs 6-10 : %d %f %c %f %c\n", a6, a7, a8, a9, *a10);
  printf("\tArgs 11-14: %d %f %c %f %c\n", a11, a12, a13, a14, *a15);
  printf("\n");
  return;
}


x86 assembly (clang, -O0):
<printArgsNoRet>:
push   %rbp
mov    %rsp,%rbp
sub    $0x50,%rsp
mov    %r8b,%al
mov    0x20(%rbp),%r8
mov    0x18(%rbp),%r8b
mov    0x10(%rbp),%r8d
mov    %edi,-0x4(%rbp)
movss  %xmm0,-0x8(%rbp)
mov    %sil,-0x9(%rbp)
movsd  %xmm1,-0x18(%rbp)
mov    %rdx,-0x20(%rbp)
mov    %ecx,-0x24(%rbp)
movss  %xmm2,-0x28(%rbp)
mov    %al,-0x29(%rbp)
movsd  %xmm3,-0x38(%rbp)
mov    %r9,-0x40(%rbp)
movss  %xmm4,-0x44(%rbp)
movsd  %xmm5,-0x50(%rbp)
lea    0xe9f(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x4(%rbp),%esi
movss  -0x8(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
movsbl -0x9(%rbp),%edx
movsd  -0x18(%rbp),%xmm1
mov    -0x20(%rbp),%rax
movsbl (%rax),%ecx
lea    0xe99(%rip),%rdi
mov    $0x2,%al
call   1030 <printf@plt>
mov    -0x24(%rbp),%esi
movss  -0x28(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
movsbl -0x29(%rbp),%edx
movsd  -0x38(%rbp),%xmm1
mov    -0x40(%rbp),%rax
movsbl (%rax),%ecx
lea    0xe8c(%rip),%rdi
mov    $0x2,%al
call   1030 <printf@plt>
mov    0x10(%rbp),%esi
movss  -0x44(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
movsbl 0x18(%rbp),%edx
movsd  -0x50(%rbp),%xmm1
mov    0x20(%rbp),%rax
movsbl (%rax),%ecx
lea    0xe7f(%rip),%rdi
mov    $0x2,%al
call   1030 <printf@plt>
lea    0xe35(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
add    $0x50,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<printArgsNoRet>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x38,%rsp
movsd  %xmm5,0x30(%rsp)
movss  %xmm4,0x1c(%rsp)
mov    %r9,%r13
movsd  %xmm3,0x28(%rsp)
mov    %r8d,0x10(%rsp)
movss  %xmm2,0xc(%rsp)
mov    %ecx,%ebp
mov    %rdx,%rbx
movsd  %xmm1,0x20(%rsp)
mov    %esi,%r14d
movss  %xmm0,0x8(%rsp)
mov    %edi,%r15d
mov    0x70(%rsp),%eax
mov    %eax,0x14(%rsp)
movsbl 0x78(%rsp),%eax
mov    %eax,0x18(%rsp)
mov    0x80(%rsp),%r12
lea    0xec2(%rip),%rdi
call   1040 <puts@plt>
movss  0x8(%rsp),%xmm0
cvtss2sd %xmm0,%xmm0
movsbl (%rbx),%ecx
lea    0xe52(%rip),%rdi
mov    %r15d,%esi
mov    %r14d,%edx
movsd  0x20(%rsp),%xmm1
mov    $0x2,%al
call   1050 <printf@plt>
movss  0xc(%rsp),%xmm0
cvtss2sd %xmm0,%xmm0
movsbl 0x0(%r13),%ecx
lea    0xe46(%rip),%rdi
mov    %ebp,%esi
mov    0x10(%rsp),%edx
movsd  0x28(%rsp),%xmm1
mov    $0x2,%al
call   1050 <printf@plt>
movss  0x1c(%rsp),%xmm0
cvtss2sd %xmm0,%xmm0
movsbl (%r12),%ecx
lea    0xe3a(%rip),%rdi
mov    0x14(%rsp),%esi
mov    0x18(%rsp),%edx
movsd  0x30(%rsp),%xmm1
mov    $0x2,%al
call   1050 <printf@plt>
mov    $0xa,%edi
add    $0x38,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
jmp    1030 <putchar@plt>

LLVM IR (-O0):
@.str = [36 x i8] c"\0AprintArgsNoRet with 15 arguments:\0A\00"
@.str.1 = [29 x i8] c"\09Args 1-5 : %d %f %c %f %c\0A\00"
@.str.2 = [29 x i8] c"\09Args 6-10 : %d %f %c %f %c\0A\00"
@.str.3 = [29 x i8] c"\09Args 11-14: %d %f %c %f %c\0A\00"
@.str.4 = [2 x i8] c"\0A\00"
define void @printArgsNoRet(i32 %0, float %1, i8 signext %2, double %3, i8* %4, i32 %5, float %6, i8 signext %7, double %8, i8* %9, i32 %10, float %11, i8 signext %12, double %13, i8* %14) {
%16 = alloca i32
%17 = alloca float
%18 = alloca i8
%19 = alloca double
%20 = alloca i8*
%21 = alloca i32
%22 = alloca float
%23 = alloca i8
%24 = alloca double
%25 = alloca i8*
%26 = alloca i32
%27 = alloca float
%28 = alloca i8
%29 = alloca double
%30 = alloca i8*
store i32 %0, i32* %16
store float %1, float* %17
store i8 %2, i8* %18
store double %3, double* %19
store i8* %4, i8** %20
store i32 %5, i32* %21
store float %6, float* %22
store i8 %7, i8* %23
store double %8, double* %24
store i8* %9, i8** %25
store i32 %10, i32* %26
store float %11, float* %27
store i8 %12, i8* %28
store double %13, double* %29
store i8* %14, i8** %30
%31 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str, i64 0, i64 0))
%32 = load i32, i32* %16
%33 = load float, float* %17
%34 = fpext float %33 to double
%35 = load i8, i8* %18
%36 = sext i8 %35 to i32
%37 = load double, double* %19
%38 = load i8*, i8** %20
%39 = load i8, i8* %38
%40 = sext i8 %39 to i32
%41 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.1, i64 0, i64 0), i32 %32, double %34, i32 %36, double %37, i32 %40)
%42 = load i32, i32* %21
%43 = load float, float* %22
%44 = fpext float %43 to double
%45 = load i8, i8* %23
%46 = sext i8 %45 to i32
%47 = load double, double* %24
%48 = load i8*, i8** %25
%49 = load i8, i8* %48
%50 = sext i8 %49 to i32
%51 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.2, i64 0, i64 0), i32 %42, double %44, i32 %46, double %47, i32 %50)
%52 = load i32, i32* %26
%53 = load float, float* %27
%54 = fpext float %53 to double
%55 = load i8, i8* %28
%56 = sext i8 %55 to i32
%57 = load double, double* %29
%58 = load i8*, i8** %30
%59 = load i8, i8* %58
%60 = sext i8 %59 to i32
%61 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.3, i64 0, i64 0), i32 %52, double %54, i32 %56, double %57, i32 %60)
%62 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str.1 = [29 x i8] c"\09Args 1-5 : %d %f %c %f %c\0A\00"
@.str.2 = [29 x i8] c"\09Args 6-10 : %d %f %c %f %c\0A\00"
@.str.3 = [29 x i8] c"\09Args 11-14: %d %f %c %f %c\0A\00"
@str = [35 x i8] c"\0AprintArgsNoRet with 15 arguments:\00"
define void @printArgsNoRet(i32 %0, float %1, i8 signext %2, double %3, i8* nocapture %4, i32 %5, float %6, i8 signext %7, double %8, i8* nocapture %9, i32 %10, float %11, i8 signext %12, double %13, i8* nocapture %14) {
%16 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([35 x i8], [35 x i8]* @str, i64 0, i64 0))
%17 = fpext float %1 to double
%18 = sext i8 %2 to i32
%19 = load i8, i8* %4
%20 = sext i8 %19 to i32
%21 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([29 x i8], [29 x i8]* @.str.1, i64 0, i64 0), i32 %0, double %17, i32 %18, double %3, i32 %20)
%22 = fpext float %6 to double
%23 = sext i8 %7 to i32
%24 = load i8, i8* %9
%25 = sext i8 %24 to i32
%26 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([29 x i8], [29 x i8]* @.str.2, i64 0, i64 0), i32 %5, double %22, i32 %23, double %8, i32 %25)
%27 = fpext float %11 to double
%28 = sext i8 %12 to i32
%29 = load i8, i8* %14
%30 = sext i8 %29 to i32
%31 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([29 x i8], [29 x i8]* @.str.3, i64 0, i64 0), i32 %10, double %27, i32 %28, double %13, i32 %30)
%32 = tail call i32 @putchar(i32 10)
ret void
}