// File: /workspace/github_cpp_makefile_star2_O2/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 $0x288, %rsp            # imm = 0x288
movq %r9, (%rsp)
movq %r8, 0x8(%rsp)
movq %rcx, 0x10(%rsp)
movq %rdx, 0x18(%rsp)
movq %rsi, 0x20(%rsp)
movq %rdi, %rbx
movq (%rdi), %rsi
leaq 0x80(%rsp), %r14
pushq $0x8
popq %rdx
movq %r14, %rdi
callq 0x2240
leaq 0x70(%rsp), %rax
movq %rax, -0x10(%rax)
andq $0x0, -0x8(%rax)
movb $0x0, (%rax)
movq (%r14), %rax
movq -0x18(%rax), %rax
testb $0x5, 0xa0(%rsp,%rax)
jne 0x43b9
leaq 0x58(%rsp), %r14
leaq 0x50(%rsp), %r15
leaq 0x48(%rsp), %r12
leaq 0x40(%rsp), %r13
leaq 0x38(%rsp), %rbx
leaq 0x30(%rsp), %rbp
leaq 0x80(%rsp), %rdi
leaq 0x60(%rsp), %rsi
callq 0x2040
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
testb $0x5, 0x20(%rax,%rcx)
jne 0x4390
leaq 0x80(%rsp), %rdi
leaq 0x28(%rsp), %rsi
callq 0x20e0
movq %rax, %rdi
movq %r14, %rsi
callq 0x20e0
movq %rax, %rdi
movq %r15, %rsi
callq 0x20e0
movq %rax, %rdi
movq %r12, %rsi
callq 0x20e0
movq %rax, %rdi
movq %r13, %rsi
callq 0x20e0
movq %rax, %rdi
movq %rbx, %rsi
callq 0x20e0
movq %rax, %rdi
movq %rbp, %rsi
callq 0x20e0
movq 0x20(%rsp), %rdi
leaq 0x28(%rsp), %rsi
callq 0x4a36
movq 0x18(%rsp), %rdi
movq %r14, %rsi
callq 0x4a36
movq 0x10(%rsp), %rdi
movq %r15, %rsi
callq 0x4a36
movq 0x8(%rsp), %rdi
movq %r12, %rsi
callq 0x4a36
movq (%rsp), %rdi
movq %r13, %rsi
callq 0x4a36
movq 0x2c0(%rsp), %rdi
movq %rbx, %rsi
callq 0x4a36
movq 0x2c8(%rsp), %rdi
movq %rbp, %rsi
callq 0x4a36
jmp 0x42b1
leaq 0x60(%rsp), %rdi
callq 0x20a0
leaq 0x80(%rsp), %rdi
callq 0x2050
addq $0x288, %rsp            # imm = 0x288
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x3c18(%rip), %rdi      # 0x7fd8
leaq 0x11ad(%rip), %rsi      # 0x5574
callq 0x2150
movq %rax, %rdi
movq %rbx, %rsi
callq 0x2140
leaq 0xd9a(%rip), %rsi       # 0x5178
movq %rax, %rdi
callq 0x2150
xorl %edi, %edi
callq 0x2190
jmp 0x43ef
movq %rax, %rbx
leaq 0x60(%rsp), %rdi
callq 0x20a0
leaq 0x80(%rsp), %rdi
callq 0x2050
movq %rbx, %rdi
callq 0x2210