#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 int /*<<< orphan*/ FILE;

/* Variables and functions */
int /*<<< orphan*/ fflush(int /*<<< orphan*/ *);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/ *, char *, double, double, int,
                           ...);
int saveData(FILE *fp, double size, int NLOOP, double xAvg, double xMax,
             double xMin, double xDev) {
  fprintf(fp, "%E\t%E\t\t%E\t", size, xAvg, xMin);
  fprintf(fp, "\t%E\t%E\t\t%5d\t%5d\n", xMax, xDev, NLOOP, 10);
  fflush(fp);
  return 0;
}


x86 assembly (clang, -O0):
<saveData>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
mov    %rdi,-0x8(%rbp)
movsd  %xmm0,-0x10(%rbp)
mov    %esi,-0x14(%rbp)
movsd  %xmm1,-0x20(%rbp)
movsd  %xmm2,-0x28(%rbp)
movsd  %xmm3,-0x30(%rbp)
movsd  %xmm4,-0x38(%rbp)
mov    -0x8(%rbp),%rdi
movsd  -0x10(%rbp),%xmm0
movsd  -0x20(%rbp),%xmm1
cvttsd2si -0x30(%rbp),%edx
lea    0xe9e(%rip),%rsi
mov    $0x2,%al
call   1030 <fprintf@plt>
mov    -0x8(%rbp),%rdi
movsd  -0x28(%rbp),%xmm0
movsd  -0x38(%rbp),%xmm1
mov    -0x14(%rbp),%edx
lea    0xe8a(%rip),%rsi
mov    $0xa,%ecx
mov    $0x2,%al
call   1030 <fprintf@plt>
mov    -0x8(%rbp),%rdi
call   1040 <fflush@plt>
xor    %eax,%eax
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<saveData>:
push   %rbp
push   %rbx
sub    $0x18,%rsp
movsd  %xmm4,0x10(%rsp)
movsd  %xmm2,0x8(%rsp)
mov    %esi,%ebp
mov    %rdi,%rbx
cvttsd2si %xmm3,%edx
lea    0xebe(%rip),%rsi
mov    $0x2,%al
call   1030 <fprintf@plt>
lea    0xebb(%rip),%rsi
mov    %rbx,%rdi
movsd  0x8(%rsp),%xmm0
movsd  0x10(%rsp),%xmm1
mov    %ebp,%edx
mov    $0xa,%ecx
mov    $0x2,%al
call   1030 <fprintf@plt>
mov    %rbx,%rdi
call   1040 <fflush@plt>
xor    %eax,%eax
add    $0x18,%rsp
pop    %rbx
pop    %rbp
ret

LLVM IR (-O0):
@.str = [11 x i8] c"%E\09%E\09\09%E\09\00"
@.str.1 = [17 x i8] c"\09%E\09%E\09\09%5d\09%5d\0A\00"
define i32 @saveData(i32* %0, double %1, i32 %2, double %3, double %4, double %5, double %6) {
%8 = alloca i32*
%9 = alloca double
%10 = alloca i32
%11 = alloca double
%12 = alloca double
%13 = alloca double
%14 = alloca double
store i32* %0, i32** %8
store double %1, double* %9
store i32 %2, i32* %10
store double %3, double* %11
store double %4, double* %12
store double %5, double* %13
store double %6, double* %14
%15 = load i32*, i32** %8
%16 = load double, double* %9
%17 = load double, double* %11
%18 = load double, double* %13
%19 = fptosi double %18 to i32
%20 = call i32 (i32*, i8*, double, double, i32, ...) @fprintf(i32* %15, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0), double %16, double %17, i32 %19)
%21 = load i32*, i32** %8
%22 = load double, double* %12
%23 = load double, double* %14
%24 = load i32, i32* %10
%25 = call i32 (i32*, i8*, double, double, i32, ...) @fprintf(i32* %21, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.1, i64 0, i64 0), double %22, double %23, i32 %24, i32 10)
%26 = load i32*, i32** %8
%27 = call i32 @fflush(i32* %26)
ret i32 0
}

LLVM IR (-O2):
@.str = [11 x i8] c"%E\09%E\09\09%E\09\00"
@.str.1 = [17 x i8] c"\09%E\09%E\09\09%5d\09%5d\0A\00"
define i32 @saveData(i32* nocapture %0, double %1, i32 %2, double %3, double %4, double %5, double %6) {
%8 = fptosi double %5 to i32
%9 = tail call i32 (i32*, i8*, double, double, i32, ...) @fprintf(i32* %0, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0), double %1, double %3, i32 %8)
%10 = tail call i32 (i32*, i8*, double, double, i32, ...) @fprintf(i32* %0, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.1, i64 0, i64 0), double %4, double %6, i32 %2, i32 10)
%11 = tail call i32 @fflush(i32* %0)
ret i32 0
}