// File: /workspace/github_cpp_makefile_star2_O1/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, 0x38(%rsp)
movq (%rdi), %rsi
leaq 0x60(%rsp), %rbp
movq %rbp, %rdi
movl $0x8, %edx
callq 0x2240
leaq 0x50(%rsp), %rax
movq %rax, -0x10(%rax)
movq $0x0, -0x8(%rax)
movb $0x0, (%rax)
movq (%rbp), %rax
movq -0x18(%rax), %rax
testb $0x5, 0x80(%rsp,%rax)
jne 0x4ed7
movq 0x2a0(%rsp), %rbp
movq 0x60(%rsp), %rax
movq -0x18(%rax), %rdi
leaq 0x60(%rsp), %rax
addq %rax, %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 0x4e9f
leaq 0x60(%rsp), %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 %rax, %rdi
movq %rsp, %rsi
callq 0x20a0
movq 0x8(%r13), %rsi
cmpq 0x10(%r13), %rsi
je 0x4d83
movsd 0x30(%rsp), %xmm0
movsd %xmm0, (%rsi)
addq $0x8, %rsi
movq %rsi, 0x8(%r13)
jmp 0x4d90
movq %r13, %rdi
leaq 0x30(%rsp), %rdx
callq 0x597a
movq 0x8(%r12), %rsi
cmpq 0x10(%r12), %rsi
je 0x4db1
movsd 0x28(%rsp), %xmm0
movsd %xmm0, (%rsi)
addq $0x8, %rsi
movq %rsi, 0x8(%r12)
jmp 0x4dbe
movq %r12, %rdi
leaq 0x28(%rsp), %rdx
callq 0x597a
movq 0x8(%r15), %rsi
cmpq 0x10(%r15), %rsi
je 0x4ddc
movsd 0x20(%rsp), %xmm0
movsd %xmm0, (%rsi)
addq $0x8, %rsi
movq %rsi, 0x8(%r15)
jmp 0x4de9
movq %r15, %rdi
leaq 0x20(%rsp), %rdx
callq 0x597a
movq 0x8(%r14), %rsi
cmpq 0x10(%r14), %rsi
je 0x4e07
movsd 0x18(%rsp), %xmm0
movsd %xmm0, (%rsi)
addq $0x8, %rsi
movq %rsi, 0x8(%r14)
jmp 0x4e14
movq %r14, %rdi
leaq 0x18(%rsp), %rdx
callq 0x597a
movq 0x8(%rbx), %rsi
cmpq 0x10(%rbx), %rsi
je 0x4e32
movsd 0x10(%rsp), %xmm0
movsd %xmm0, (%rsi)
addq $0x8, %rsi
movq %rsi, 0x8(%rbx)
jmp 0x4e3f
movq %rbx, %rdi
leaq 0x10(%rsp), %rdx
callq 0x597a
movq 0x8(%rbp), %rsi
cmpq 0x10(%rbp), %rsi
je 0x4e5d
movsd 0x8(%rsp), %xmm0
movsd %xmm0, (%rsi)
addq $0x8, %rsi
movq %rsi, 0x8(%rbp)
jmp 0x4e6a
movq %rbp, %rdi
leaq 0x8(%rsp), %rdx
callq 0x597a
movq 0x2a8(%rsp), %rdi
movq 0x8(%rdi), %rsi
cmpq 0x10(%rdi), %rsi
je 0x4e92
movsd (%rsp), %xmm0
movsd %xmm0, (%rsi)
addq $0x8, %rsi
movq %rsi, 0x8(%rdi)
jmp 0x4ccb
movq %rsp, %rdx
callq 0x597a
jmp 0x4ccb
movq 0x40(%rsp), %rdi
leaq 0x50(%rsp), %rax
cmpq %rax, %rdi
je 0x4ebb
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 0x38(%rsp), %rbx
movq 0x40f5(%rip), %rdi      # 0x8fd8
leaq 0x1678(%rip), %rsi      # 0x6562
movl $0x27, %edx
callq 0x2180
movq (%rbx), %rsi
movq 0x8(%rbx), %rdx
movq 0x40d6(%rip), %rdi      # 0x8fd8
callq 0x2180
leaq 0x1262(%rip), %rsi      # 0x6170
movq %rax, %rdi
callq 0x2140
xorl %edi, %edi
callq 0x2190
jmp 0x4f1f
movq %rax, %rbx
movq 0x40(%rsp), %rdi
leaq 0x50(%rsp), %rax
cmpq %rax, %rdi
je 0x4f3e
movq 0x50(%rsp), %rsi
incq %rsi
callq 0x2160
leaq 0x60(%rsp), %rdi
callq 0x2050
movq %rbx, %rdi
callq 0x2210