#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 *kbs_create();
int /*<<< orphan*/ kbs_insert_times(struct keyBundleStore *, double, double,
                                    double, double, double);
int /*<<< orphan*/ makeFile(struct keyBundleStore *);
double *readData(char *);
void setUp(char *data) {
  struct keyBundleStore *kbs = kbs_create();
  double *info = readData(data);
  kbs_insert_times(kbs, info[0], info[1], info[2], info[3], info[4]);
  makeFile(kbs);
}


x86 assembly (clang, -O0):
<setUp>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    $0x0,%al
call   1030 <kbs_create@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):
<setUp>:
push   %r14
push   %rbx
push   %rax
mov    %rdi,%r14
xor    %eax,%eax
call   1030 <kbs_create@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 }
define void @setUp(i8* %0) {
%2 = alloca i8*
%3 = alloca %struct.keyBundleStore*
%4 = alloca double*
store i8* %0, i8** %2
%5 = call %struct.keyBundleStore* (...) @kbs_create()
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 }
define void @setUp(i8* %0) {
%2 = tail call %struct.keyBundleStore* (...) @kbs_create()
%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
}