// File: /workspace/github_cpp_makefile_star2_O3/JorisCaze[P]NASG-EOS_Calibration/src/tools.cpp
// Function: readExpData(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::vector<double, std::allocator<double>>&, std::vector<double, std::allocator<double>>&, std::vector<double, std::allocator<double>>&, std::vector<double, std::allocator<double>>&, std::vector<double, std::allocator<double>>&, std::vector<double, std::allocator<double>>&, std::vector<double, std::allocator<double>>&)
void readExpData(string file, vector<double> &Texp, vector<double> &PsatExp, vector<double> &vGexp, vector<double> &vLexp, vector<double> &hGexp, vector<double> &hLexp, vector<double> &LvExp)
{
    // Purpose : read the experimental data with 6 columns and an ignored header
    ifstream strmIn(file.c_str());
    string line; 
    double dat1, dat2, dat3, dat4, dat5, dat6, dat7;
    if (strmIn) {
        while (getline(strmIn,line)) {
            strmIn >> dat1 >> dat2 >> dat3 >> dat4 >> dat5 >> dat6 >> dat7;
            Texp.push_back(dat1);
            PsatExp.push_back(dat2);
            vGexp.push_back(dat3);
            vLexp.push_back(dat4);
            hGexp.push_back(dat5);
            hLexp.push_back(dat6);
            LvExp.push_back(dat7);
        }
    }
    else {
        cout << "Error : reading experimental data file " << file << "\n"; exit(0);
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x268, %rsp            # imm = 0x268
movq %r9, %rbx
movq %r8, %r14
movq %rcx, %r15
movq %rdx, %r12
movq %rsi, %r13
movq %rdi, %rbp
movq (%rdi), %rsi
leaq 0x60(%rsp), %rdi
movl $0x8, %edx
callq 0x2240
leaq 0x50(%rsp), %rax
movq %rax, -0x10(%rax)
movq $0x0, -0x8(%rax)
movb $0x0, (%rax)
leaq 0x60(%rsp), %rax
movq (%rax), %rax
movq -0x18(%rax), %rax
testb $0x5, 0x80(%rsp,%rax)
jne 0x4eb0
movq 0x2a0(%rsp), %rbp
leaq (%rsp,%rax), %rdi
addq $0x60, %rdi
movl $0xa, %esi
callq 0x2130
movsbl %al, %edx
leaq 0x60(%rsp), %rdi
leaq 0x40(%rsp), %rsi
callq 0x2250
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
testb $0x5, 0x20(%rax,%rcx)
jne 0x4e78
leaq 0x60(%rsp), %rdi
leaq 0x38(%rsp), %rsi
callq 0x20a0
movq %rax, %rdi
leaq 0x30(%rsp), %rsi
callq 0x20a0
movq %rax, %rdi
leaq 0x28(%rsp), %rsi
callq 0x20a0
movq %rax, %rdi
leaq 0x20(%rsp), %rsi
callq 0x20a0
movq %rax, %rdi
leaq 0x18(%rsp), %rsi
callq 0x20a0
movq %rax, %rdi
leaq 0x10(%rsp), %rsi
callq 0x20a0
movq %rax, %rdi
leaq 0x8(%rsp), %rsi
callq 0x20a0
movq 0x8(%r13), %rsi
cmpq 0x10(%r13), %rsi
je 0x4d53
movsd 0x38(%rsp), %xmm0
movsd %xmm0, (%rsi)
addq $0x8, %rsi
movq %rsi, 0x8(%r13)
jmp 0x4d60
movq %r13, %rdi
leaq 0x38(%rsp), %rdx
callq 0x58fa
movq 0x8(%r12), %rsi
cmpq 0x10(%r12), %rsi
je 0x4d81
movsd 0x30(%rsp), %xmm0
movsd %xmm0, (%rsi)
addq $0x8, %rsi
movq %rsi, 0x8(%r12)
jmp 0x4d8e
movq %r12, %rdi
leaq 0x30(%rsp), %rdx
callq 0x58fa
movq 0x8(%r15), %rsi
cmpq 0x10(%r15), %rsi
je 0x4dac
movsd 0x28(%rsp), %xmm0
movsd %xmm0, (%rsi)
addq $0x8, %rsi
movq %rsi, 0x8(%r15)
jmp 0x4db9
movq %r15, %rdi
leaq 0x28(%rsp), %rdx
callq 0x58fa
movq 0x8(%r14), %rsi
cmpq 0x10(%r14), %rsi
je 0x4dd7
movsd 0x20(%rsp), %xmm0
movsd %xmm0, (%rsi)
addq $0x8, %rsi
movq %rsi, 0x8(%r14)
jmp 0x4de4
movq %r14, %rdi
leaq 0x20(%rsp), %rdx
callq 0x58fa
movq 0x8(%rbx), %rsi
cmpq 0x10(%rbx), %rsi
je 0x4e02
movsd 0x18(%rsp), %xmm0
movsd %xmm0, (%rsi)
addq $0x8, %rsi
movq %rsi, 0x8(%rbx)
jmp 0x4e0f
movq %rbx, %rdi
leaq 0x18(%rsp), %rdx
callq 0x58fa
movq 0x8(%rbp), %rsi
cmpq 0x10(%rbp), %rsi
je 0x4e2d
movsd 0x10(%rsp), %xmm0
movsd %xmm0, (%rsi)
addq $0x8, %rsi
movq %rsi, 0x8(%rbp)
jmp 0x4e3a
movq %rbp, %rdi
leaq 0x10(%rsp), %rdx
callq 0x58fa
movq 0x2a8(%rsp), %rdi
movq 0x8(%rdi), %rsi
cmpq 0x10(%rdi), %rsi
je 0x4e60
movsd 0x8(%rsp), %xmm0
movsd %xmm0, (%rsi)
addq $0x8, %rsi
movq %rsi, 0x8(%rdi)
jmp 0x4e6a
leaq 0x8(%rsp), %rdx
callq 0x58fa
movq 0x60(%rsp), %rax
movq -0x18(%rax), %rax
jmp 0x4ca2
movq 0x40(%rsp), %rdi
leaq 0x50(%rsp), %rax
cmpq %rax, %rdi
je 0x4e94
movq 0x50(%rsp), %rsi
incq %rsi
callq 0x2160
leaq 0x60(%rsp), %rdi
callq 0x2050
addq $0x268, %rsp            # imm = 0x268
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x4121(%rip), %rdi      # 0x8fd8
leaq 0x16b4(%rip), %rsi      # 0x6572
movl $0x27, %edx
callq 0x2180
movq (%rbp), %rsi
movq 0x8(%rbp), %rdx
movq 0x4101(%rip), %rdi      # 0x8fd8
callq 0x2180
leaq 0x129d(%rip), %rsi      # 0x6180
movq %rax, %rdi
callq 0x2140
xorl %edi, %edi
callq 0x2190
jmp 0x4ef4
movq %rax, %rbx
movq 0x40(%rsp), %rdi
leaq 0x50(%rsp), %rax
cmpq %rax, %rdi
je 0x4f13
movq 0x50(%rsp), %rsi
incq %rsi
callq 0x2160
leaq 0x60(%rsp), %rdi
callq 0x2050
movq %rbx, %rdi
callq 0x2210