#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 */
struct keyBundleStore {
  int dummy;
};

/* Variables and functions */
struct keyBundleStore *buildFromFile(char *);
int /*<<< orphan*/ kbs_insert_times(struct keyBundleStore *, double, double,
                                    double, double, double);
int /*<<< orphan*/ makeFile(struct keyBundleStore *);
double *readData(char *);
void setUp2(char *data) {
  struct keyBundleStore *kbs = buildFromFile("file.txt");
  double *info = readData(data);
  kbs_insert_times(kbs, info[0], info[1], info[2], info[3], info[4]);
  makeFile(kbs);
}


x86 assembly (clang, -O0):
<setUp2>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
lea    0xead(%rip),%rdi
call   1030 <buildFromFile@plt>
mov    %rax,-0x10(%rbp)
mov    -0x8(%rbp),%rdi
call   1050 <readData@plt>
mov    %rax,-0x18(%rbp)
mov    -0x10(%rbp),%rdi
mov    -0x18(%rbp),%rax
movsd  (%rax),%xmm0
mov    -0x18(%rbp),%rax
movsd  0x8(%rax),%xmm1
mov    -0x18(%rbp),%rax
movsd  0x10(%rax),%xmm2
mov    -0x18(%rbp),%rax
movsd  0x18(%rax),%xmm3
mov    -0x18(%rbp),%rax
movsd  0x20(%rax),%xmm4
call   1040 <kbs_insert_times@plt>
mov    -0x10(%rbp),%rdi
call   1060 <makeFile@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<setUp2>:
push   %r14
push   %rbx
push   %rax
mov    %rdi,%r14
lea    0xeb2(%rip),%rdi
call   1030 <buildFromFile@plt>
mov    %rax,%rbx
mov    %r14,%rdi
call   1050 <readData@plt>
movsd  (%rax),%xmm0
movsd  0x8(%rax),%xmm1
movsd  0x10(%rax),%xmm2
movsd  0x18(%rax),%xmm3
movsd  0x20(%rax),%xmm4
mov    %rbx,%rdi
call   1040 <kbs_insert_times@plt>
mov    %rbx,%rdi
add    $0x8,%rsp
pop    %rbx
pop    %r14
jmp    1060 <makeFile@plt>

LLVM IR (-O0):
%struct.keyBundleStore = type { i32 }
@.str = [9 x i8] c"file.txt\00"
define void @setUp2(i8* %0) {
%2 = alloca i8*
%3 = alloca %struct.keyBundleStore*
%4 = alloca double*
store i8* %0, i8** %2
%5 = call %struct.keyBundleStore* @buildFromFile(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0))
store %struct.keyBundleStore* %5, %struct.keyBundleStore** %3
%6 = load i8*, i8** %2
%7 = call double* @readData(i8* %6)
store double* %7, double** %4
%8 = load %struct.keyBundleStore*, %struct.keyBundleStore** %3
%9 = load double*, double** %4
%10 = getelementptr inbounds double, double* %9, i64 0
%11 = load double, double* %10
%12 = load double*, double** %4
%13 = getelementptr inbounds double, double* %12, i64 1
%14 = load double, double* %13
%15 = load double*, double** %4
%16 = getelementptr inbounds double, double* %15, i64 2
%17 = load double, double* %16
%18 = load double*, double** %4
%19 = getelementptr inbounds double, double* %18, i64 3
%20 = load double, double* %19
%21 = load double*, double** %4
%22 = getelementptr inbounds double, double* %21, i64 4
%23 = load double, double* %22
%24 = call i32 @kbs_insert_times(%struct.keyBundleStore* %8, double %11, double %14, double %17, double %20, double %23)
%25 = load %struct.keyBundleStore*, %struct.keyBundleStore** %3
%26 = call i32 @makeFile(%struct.keyBundleStore* %25)
ret void
}

LLVM IR (-O2):
%struct.keyBundleStore = type { i32 }
@.str = [9 x i8] c"file.txt\00"
define void @setUp2(i8* %0) {
%2 = tail call %struct.keyBundleStore* @buildFromFile(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0))
%3 = tail call double* @readData(i8* %0)
%4 = load double, double* %3
%5 = getelementptr inbounds double, double* %3, i64 1
%6 = load double, double* %5
%7 = getelementptr inbounds double, double* %3, i64 2
%8 = load double, double* %7
%9 = getelementptr inbounds double, double* %3, i64 3
%10 = load double, double* %9
%11 = getelementptr inbounds double, double* %3, i64 4
%12 = load double, double* %11
%13 = tail call i32 @kbs_insert_times(%struct.keyBundleStore* %2, double %4, double %6, double %8, double %10, double %12)
%14 = tail call i32 @makeFile(%struct.keyBundleStore* %2)
ret void
}