#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*/ fflush(int /*<<< orphan*/);
int /*<<< orphan*/ printf(char *, unsigned int, unsigned int, double);
int /*<<< orphan*/ stdout;
void print_results(unsigned int size, double t) {
  printf("%8d\t%17.2f\t%8.2f\n", size, size / t * 1000 * 2 / 1000,
         t / 1000 * 1000 * 1000 / 2);
  fflush(stdout);
}


x86 assembly (clang, -O0):
<print_results>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
movsd  %xmm0,-0x10(%rbp)
mov    -0x4(%rbp),%eax
mov    %eax,%esi
cvtsi2sd %rax,%xmm0
movsd  -0x10(%rbp),%xmm1
divsd  %xmm1,%xmm0
movsd  0xebd(%rip),%xmm1
mulsd  %xmm1,%xmm0
addsd  %xmm0,%xmm0
divsd  %xmm1,%xmm0
cvttsd2si %xmm0,%rax
mov    %eax,%edx
movsd  -0x10(%rbp),%xmm0
movsd  0xe9d(%rip),%xmm1
divsd  %xmm1,%xmm0
movsd  0xe91(%rip),%xmm1
mulsd  %xmm1,%xmm0
movsd  0xe85(%rip),%xmm1
mulsd  %xmm1,%xmm0
movsd  0xe71(%rip),%xmm1
divsd  %xmm1,%xmm0
lea    0xe76(%rip),%rdi
call   1030 <printf@plt>
mov    0x2e3a(%rip),%rax
mov    (%rax),%edi
call   1040 <fflush@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<print_results>:
push   %rax
mov    %edi,%esi
mov    %edi,%eax
cvtsi2sd %rax,%xmm1
divsd  %xmm0,%xmm1
movsd  0xeca(%rip),%xmm2
mulsd  %xmm2,%xmm1
addsd  %xmm1,%xmm1
divsd  %xmm2,%xmm1
cvttsd2si %xmm1,%rdx
divsd  %xmm2,%xmm0
mulsd  %xmm2,%xmm0
mulsd  %xmm2,%xmm0
mulsd  0xead(%rip),%xmm0
lea    0xeae(%rip),%rdi
call   1030 <printf@plt>
mov    0x2e72(%rip),%rax
mov    (%rax),%edi
pop    %rax
jmp    1040 <fflush@plt>

LLVM IR (-O0):
@.str = [18 x i8] c"%8d\09%17.2f\09%8.2f\0A\00"
@stdout = global i32 0
define void @print_results(i32 %0, double %1) {
%3 = alloca i32
%4 = alloca double
store i32 %0, i32* %3
store double %1, double* %4
%5 = load i32, i32* %3
%6 = load i32, i32* %3
%7 = uitofp i32 %6 to double
%8 = load double, double* %4
%9 = fdiv double %7, %8
%10 = fmul double %9, 1.000000e+03
%11 = fmul double %10, 2.000000e+00
%12 = fdiv double %11, 1.000000e+03
%13 = fptoui double %12 to i32
%14 = load double, double* %4
%15 = fdiv double %14, 1.000000e+03
%16 = fmul double %15, 1.000000e+03
%17 = fmul double %16, 1.000000e+03
%18 = fdiv double %17, 2.000000e+00
%19 = call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str, i64 0, i64 0), i32 %5, i32 %13, double %18)
%20 = load i32, i32* @stdout
%21 = call i32 @fflush(i32 %20)
ret void
}

LLVM IR (-O2):
@.str = [18 x i8] c"%8d\09%17.2f\09%8.2f\0A\00"
@stdout = global i32 0
define void @print_results(i32 %0, double %1) {
%3 = uitofp i32 %0 to double
%4 = fdiv double %3, %1
%5 = fmul double %4, 1.000000e+03
%6 = fmul double %5, 2.000000e+00
%7 = fdiv double %6, 1.000000e+03
%8 = fptoui double %7 to i32
%9 = fdiv double %1, 1.000000e+03
%10 = fmul double %9, 1.000000e+03
%11 = fmul double %10, 1.000000e+03
%12 = fmul double %11, 5.000000e-01
%13 = tail call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str, i64 0, i64 0), i32 %0, i32 %8, double %12)
%14 = load i32, i32* @stdout
%15 = tail call i32 @fflush(i32 %14)
ret void
}