#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 output(const char *const status, const float rin, const float rout,
            const float w, const float c) {
  printf("%s: pages/s %.2f IN, %.2f OUT", status, rin, rout);
  printf(" | swapin=%f;%f;%f; swapout=%f;%f;%f;\n", rin, w, c, rout, w, c);
}


x86 assembly (clang, -O0):
<output>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
movss  %xmm0,-0xc(%rbp)
movss  %xmm1,-0x10(%rbp)
movss  %xmm2,-0x14(%rbp)
movss  %xmm3,-0x18(%rbp)
mov    -0x8(%rbp),%rsi
movss  -0xc(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
movss  -0x10(%rbp),%xmm1
cvtss2sd %xmm1,%xmm1
lea    0xeb3(%rip),%rdi
mov    $0x2,%al
call   1030 <printf@plt>
movss  -0xc(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
movss  -0x14(%rbp),%xmm1
cvtss2sd %xmm1,%xmm1
movss  -0x18(%rbp),%xmm2
cvtss2sd %xmm2,%xmm2
movss  -0x10(%rbp),%xmm3
cvtss2sd %xmm3,%xmm3
movss  -0x14(%rbp),%xmm4
cvtss2sd %xmm4,%xmm4
movss  -0x18(%rbp),%xmm5
cvtss2sd %xmm5,%xmm5
lea    0xe8d(%rip),%rdi
mov    $0x6,%al
call   1030 <printf@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<output>:
sub    $0x18,%rsp
movss  %xmm3,0x4(%rsp)
movss  %xmm2,(%rsp)
mov    %rdi,%rsi
cvtss2sd %xmm0,%xmm0
movsd  %xmm0,0x8(%rsp)
cvtss2sd %xmm1,%xmm1
movsd  %xmm1,0x10(%rsp)
lea    0xec3(%rip),%rdi
mov    $0x2,%al
call   1030 <printf@plt>
movss  (%rsp),%xmm0
xorps  %xmm1,%xmm1
cvtss2sd %xmm0,%xmm1
movss  0x4(%rsp),%xmm0
xorps  %xmm2,%xmm2
cvtss2sd %xmm0,%xmm2
lea    0xeba(%rip),%rdi
movsd  0x8(%rsp),%xmm0
movsd  0x10(%rsp),%xmm3
movaps %xmm1,%xmm4
movaps %xmm2,%xmm5
mov    $0x6,%al
add    $0x18,%rsp
jmp    1030 <printf@plt>

LLVM IR (-O0):
@.str = [30 x i8] c"%s: pages/s %.2f IN, %.2f OUT\00"
@.str.1 = [39 x i8] c" | swapin=%f;%f;%f; swapout=%f;%f;%f;\0A\00"
define void @output(i8* %0, float %1, float %2, float %3, float %4) {
%6 = alloca i8*
%7 = alloca float
%8 = alloca float
%9 = alloca float
%10 = alloca float
store i8* %0, i8** %6
store float %1, float* %7
store float %2, float* %8
store float %3, float* %9
store float %4, float* %10
%11 = load i8*, i8** %6
%12 = load float, float* %7
%13 = fpext float %12 to double
%14 = load float, float* %8
%15 = fpext float %14 to double
%16 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str, i64 0, i64 0), i8* %11, double %13, double %15)
%17 = load float, float* %7
%18 = fpext float %17 to double
%19 = load float, float* %9
%20 = fpext float %19 to double
%21 = load float, float* %10
%22 = fpext float %21 to double
%23 = load float, float* %8
%24 = fpext float %23 to double
%25 = load float, float* %9
%26 = fpext float %25 to double
%27 = load float, float* %10
%28 = fpext float %27 to double
%29 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.1, i64 0, i64 0), double %18, double %20, double %22, double %24, double %26, double %28)
ret void
}

LLVM IR (-O2):
@.str = [30 x i8] c"%s: pages/s %.2f IN, %.2f OUT\00"
@.str.1 = [39 x i8] c" | swapin=%f;%f;%f; swapout=%f;%f;%f;\0A\00"
define void @output(i8* %0, float %1, float %2, float %3, float %4) {
%6 = fpext float %1 to double
%7 = fpext float %2 to double
%8 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([30 x i8], [30 x i8]* @.str, i64 0, i64 0), i8* %0, double %6, double %7)
%9 = fpext float %3 to double
%10 = fpext float %4 to double
%11 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([39 x i8], [39 x i8]* @.str.1, i64 0, i64 0), double %6, double %9, double %10, double %7, double %9, double %10)
ret void
}