#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 *, char, long, long, int, long long);
void printfn(int a, short b, double C, float D, signed char E, char F, void *G,
             double *H, int I, long long J) {
  printf("%d, %d, %f, %f, %d\n", a, b, C, D, E);
  printf("%d, %ld, %ld, %d, %lld\n", F, (long)G, (long)H, I, J);
}


x86 assembly (clang, -O0):
<printfn>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    %cl,%al
mov    %dl,%cl
mov    %si,%dx
mov    0x18(%rbp),%rsi
mov    0x10(%rbp),%esi
mov    %edi,-0x4(%rbp)
mov    %dx,-0x6(%rbp)
movsd  %xmm0,-0x10(%rbp)
movss  %xmm1,-0x14(%rbp)
mov    %cl,-0x15(%rbp)
mov    %al,-0x16(%rbp)
mov    %r8,-0x20(%rbp)
mov    %r9,-0x28(%rbp)
mov    -0x4(%rbp),%eax
movswq -0x6(%rbp),%rdx
cvttsd2si -0x10(%rbp),%rcx
cvttss2si -0x14(%rbp),%r8d
movsbq -0x15(%rbp),%r9
lea    0xe9b(%rip),%rdi
movsbl %al,%esi
call   1030 <printf@plt>
mov    -0x16(%rbp),%al
mov    -0x20(%rbp),%rdx
mov    -0x28(%rbp),%rcx
mov    0x10(%rbp),%r8d
mov    0x18(%rbp),%r9
lea    0xe8d(%rip),%rdi
movsbl %al,%esi
call   1030 <printf@plt>
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<printfn>:
push   %rbp
push   %r15
push   %r14
push   %r12
push   %rbx
mov    %r9,%r14
mov    %r8,%r15
mov    %ecx,%r12d
mov    0x30(%rsp),%ebx
mov    0x38(%rsp),%rbp
cvttsd2si %xmm0,%rcx
movslq %esi,%rax
cvttss2si %xmm1,%r8d
movslq %edx,%r9
movsbl %dil,%esi
lea    0xebb(%rip),%rdi
mov    %rax,%rdx
call   1030 <printf@plt>
lea    0xec0(%rip),%rdi
mov    %r12d,%esi
mov    %r15,%rdx
mov    %r14,%rcx
mov    %ebx,%r8d
mov    %rbp,%r9
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
pop    %rbp
jmp    1030 <printf@plt>

LLVM IR (-O0):
@.str = [20 x i8] c"%d, %d, %f, %f, %d\0A\00"
@.str.1 = [24 x i8] c"%d, %ld, %ld, %d, %lld\0A\00"
define void @printfn(i32 %0, i16 signext %1, double %2, float %3, i8 signext %4, i8 signext %5, i8* %6, double* %7, i32 %8, i64 %9) {
%11 = alloca i32
%12 = alloca i16
%13 = alloca double
%14 = alloca float
%15 = alloca i8
%16 = alloca i8
%17 = alloca i8*
%18 = alloca double*
%19 = alloca i32
%20 = alloca i64
store i32 %0, i32* %11
store i16 %1, i16* %12
store double %2, double* %13
store float %3, float* %14
store i8 %4, i8* %15
store i8 %5, i8* %16
store i8* %6, i8** %17
store double* %7, double** %18
store i32 %8, i32* %19
store i64 %9, i64* %20
%21 = load i32, i32* %11
%22 = trunc i32 %21 to i8
%23 = load i16, i16* %12
%24 = sext i16 %23 to i64
%25 = load double, double* %13
%26 = fptosi double %25 to i64
%27 = load float, float* %14
%28 = fptosi float %27 to i32
%29 = load i8, i8* %15
%30 = sext i8 %29 to i64
%31 = call i32 @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str, i64 0, i64 0), i8 signext %22, i64 %24, i64 %26, i32 %28, i64 %30)
%32 = load i8, i8* %16
%33 = load i8*, i8** %17
%34 = ptrtoint i8* %33 to i64
%35 = load double*, double** %18
%36 = ptrtoint double* %35 to i64
%37 = load i32, i32* %19
%38 = load i64, i64* %20
%39 = call i32 @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.1, i64 0, i64 0), i8 signext %32, i64 %34, i64 %36, i32 %37, i64 %38)
ret void
}

LLVM IR (-O2):
@.str = [20 x i8] c"%d, %d, %f, %f, %d\0A\00"
@.str.1 = [24 x i8] c"%d, %ld, %ld, %d, %lld\0A\00"
define void @printfn(i32 %0, i16 signext %1, double %2, float %3, i8 signext %4, i8 signext %5, i8* %6, double* %7, i32 %8, i64 %9) {
%11 = trunc i32 %0 to i8
%12 = sext i16 %1 to i64
%13 = fptosi double %2 to i64
%14 = fptosi float %3 to i32
%15 = sext i8 %4 to i64
%16 = tail call i32 @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str, i64 0, i64 0), i8 signext %11, i64 %12, i64 %13, i32 %14, i64 %15)
%17 = ptrtoint i8* %6 to i64
%18 = ptrtoint double* %7 to i64
%19 = tail call i32 @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.1, i64 0, i64 0), i8 signext %5, i64 %17, i64 %18, i32 %8, i64 %9)
ret void
}