#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 */
typedef float ulong;

/* Variables and functions */
int EXIT_SUCCESS;
int /*<<< orphan*/ printf(char *, short, float, float, float, double, float,
                          float, double, char *);
int printResults(char *fn, short protect, ulong inSize, ulong outSize, float t1,
                 float t2, double error) {
  float mb = 1024.0 * 1024.0;
  printf("|  %02d  | %07.3f | %08.4f | %06.2f | %06.1f | %08.3f | %06.3f | "
         "%011.7f | %s \n",
         protect, inSize / mb, outSize / mb, (outSize * 100.0) / inSize,
         100.0 / ((outSize * 100.0) / inSize), t1, t2, error, fn);
  return EXIT_SUCCESS;
}


x86 assembly (clang, -O0):
<printResults>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    %si,%ax
mov    %rdi,-0x8(%rbp)
mov    %ax,-0xa(%rbp)
movss  %xmm0,-0x10(%rbp)
movss  %xmm1,-0x14(%rbp)
movss  %xmm2,-0x18(%rbp)
movss  %xmm3,-0x1c(%rbp)
movsd  %xmm4,-0x28(%rbp)
movss  0xec4(%rip),%xmm0
movss  %xmm0,-0x2c(%rbp)
mov    -0xa(%rbp),%ax
movss  -0x10(%rbp),%xmm0
divss  -0x2c(%rbp),%xmm0
movss  -0x14(%rbp),%xmm1
divss  -0x2c(%rbp),%xmm1
movss  -0x14(%rbp),%xmm2
cvtss2sd %xmm2,%xmm2
movsd  0xe8e(%rip),%xmm3
mulsd  %xmm3,%xmm2
movss  -0x10(%rbp),%xmm3
cvtss2sd %xmm3,%xmm3
divsd  %xmm3,%xmm2
cvtsd2ss %xmm2,%xmm2
movss  -0x14(%rbp),%xmm3
cvtss2sd %xmm3,%xmm4
movsd  0xe68(%rip),%xmm3
mulsd  %xmm3,%xmm4
movss  -0x10(%rbp),%xmm3
cvtss2sd %xmm3,%xmm3
divsd  %xmm3,%xmm4
movsd  0xe4f(%rip),%xmm3
divsd  %xmm4,%xmm3
movss  -0x18(%rbp),%xmm4
movss  -0x1c(%rbp),%xmm5
movsd  -0x28(%rbp),%xmm6
mov    -0x8(%rbp),%rdx
lea    0xe3d(%rip),%rdi
movswl %ax,%esi
call   1030 <printf@plt>
mov    0x2e02(%rip),%rax
mov    (%rax),%eax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<printResults>:
push   %rax
movaps %xmm4,%xmm6
movaps %xmm3,%xmm5
movaps %xmm2,%xmm4
mov    %rdi,%rdx
movss  0xedb(%rip),%xmm7
xorps  %xmm2,%xmm2
cvtss2sd %xmm0,%xmm2
mulss  %xmm7,%xmm0
mulss  %xmm1,%xmm7
cvtss2sd %xmm1,%xmm1
movsd  0xec8(%rip),%xmm3
mulsd  %xmm3,%xmm1
divsd  %xmm2,%xmm1
xorps  %xmm2,%xmm2
cvtsd2ss %xmm1,%xmm2
divsd  %xmm1,%xmm3
lea    0xeb6(%rip),%rdi
movaps %xmm7,%xmm1
call   1030 <printf@plt>
mov    0x2e77(%rip),%rax
mov    (%rax),%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [80 x i8] c"| %02d | %07.3f | %08.4f | %06.2f | %06.1f | %08.3f | %06.3f | %011.7f | %s \0A\00"
@EXIT_SUCCESS = global i32 0
define i32 @printResults(i8* %0, i16 signext %1, float %2, float %3, float %4, float %5, double %6) {
%8 = alloca i8*
%9 = alloca i16
%10 = alloca float
%11 = alloca float
%12 = alloca float
%13 = alloca float
%14 = alloca double
%15 = alloca float
store i8* %0, i8** %8
store i16 %1, i16* %9
store float %2, float* %10
store float %3, float* %11
store float %4, float* %12
store float %5, float* %13
store double %6, double* %14
store float 0x4130000000000000, float* %15
%16 = load i16, i16* %9
%17 = load float, float* %10
%18 = load float, float* %15
%19 = fdiv float %17, %18
%20 = load float, float* %11
%21 = load float, float* %15
%22 = fdiv float %20, %21
%23 = load float, float* %11
%24 = fpext float %23 to double
%25 = fmul double %24, 1.000000e+02
%26 = load float, float* %10
%27 = fpext float %26 to double
%28 = fdiv double %25, %27
%29 = fptrunc double %28 to float
%30 = load float, float* %11
%31 = fpext float %30 to double
%32 = fmul double %31, 1.000000e+02
%33 = load float, float* %10
%34 = fpext float %33 to double
%35 = fdiv double %32, %34
%36 = fdiv double 1.000000e+02, %35
%37 = load float, float* %12
%38 = load float, float* %13
%39 = load double, double* %14
%40 = load i8*, i8** %8
%41 = call i32 @printf(i8* getelementptr inbounds ([80 x i8], [80 x i8]* @.str, i64 0, i64 0), i16 signext %16, float %19, float %22, float %29, double %36, float %37, float %38, double %39, i8* %40)
%42 = load i32, i32* @EXIT_SUCCESS
ret i32 %42
}

LLVM IR (-O2):
@.str = [80 x i8] c"| %02d | %07.3f | %08.4f | %06.2f | %06.1f | %08.3f | %06.3f | %011.7f | %s \0A\00"
@EXIT_SUCCESS = global i32 0
define i32 @printResults(i8* %0, i16 signext %1, float %2, float %3, float %4, float %5, double %6) {
%8 = fmul float %2, 0x3EB0000000000000
%9 = fmul float %3, 0x3EB0000000000000
%10 = fpext float %3 to double
%11 = fmul double %10, 1.000000e+02
%12 = fpext float %2 to double
%13 = fdiv double %11, %12
%14 = fptrunc double %13 to float
%15 = fdiv double 1.000000e+02, %13
%16 = tail call i32 @printf(i8* getelementptr inbounds ([80 x i8], [80 x i8]* @.str, i64 0, i64 0), i16 signext %1, float %8, float %9, float %14, double %15, float %4, float %5, double %6, i8* %0)
%17 = load i32, i32* @EXIT_SUCCESS
ret i32 %17
}