// File: 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
movq %rsp, %rbp
subq $0x300, %rsp            # imm = 0x300
movq %rdi, -0x2a8(%rbp)
movq 0x18(%rbp), %rax
movq 0x10(%rbp), %rax
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq %rcx, -0x20(%rbp)
movq %r8, -0x28(%rbp)
movq %r9, -0x30(%rbp)
callq 0x20a0
movq %rax, %rsi
leaq -0x238(%rbp), %rdi
movl $0x8, %edx
callq 0x2310
leaq -0x258(%rbp), %rdi
callq 0x2240
movq -0x238(%rbp), %rax
movq -0x18(%rax), %rax
leaq -0x238(%rbp,%rax), %rdi
callq 0x2230
movb %al, -0x29d(%rbp)
jmp 0x6e57
movb -0x29d(%rbp), %al
testb $0x1, %al
jne 0x6e66
jmp 0x701f
jmp 0x6e68
leaq -0x238(%rbp), %rdi
leaq -0x258(%rbp), %rsi
callq 0x2050
movq %rax, -0x2b0(%rbp)
jmp 0x6e84
movq -0x2b0(%rbp), %rdi
movq (%rdi), %rax
movq -0x18(%rax), %rax
addq %rax, %rdi
callq 0x2230
movb %al, -0x2b1(%rbp)
jmp 0x6ea2
movb -0x2b1(%rbp), %al
testb $0x1, %al
jne 0x6eb1
jmp 0x701d
leaq -0x238(%rbp), %rdi
leaq -0x260(%rbp), %rsi
callq 0x2140
movq %rax, -0x2c0(%rbp)
jmp 0x6ecd
movq -0x2c0(%rbp), %rdi
leaq -0x268(%rbp), %rsi
callq 0x2140
movq %rax, -0x2c8(%rbp)
jmp 0x6ee9
movq -0x2c8(%rbp), %rdi
leaq -0x270(%rbp), %rsi
callq 0x2140
movq %rax, -0x2d0(%rbp)
jmp 0x6f05
movq -0x2d0(%rbp), %rdi
leaq -0x278(%rbp), %rsi
callq 0x2140
movq %rax, -0x2d8(%rbp)
jmp 0x6f21
movq -0x2d8(%rbp), %rdi
leaq -0x280(%rbp), %rsi
callq 0x2140
movq %rax, -0x2e0(%rbp)
jmp 0x6f3d
movq -0x2e0(%rbp), %rdi
leaq -0x288(%rbp), %rsi
callq 0x2140
movq %rax, -0x2e8(%rbp)
jmp 0x6f59
movq -0x2e8(%rbp), %rdi
leaq -0x290(%rbp), %rsi
callq 0x2140
jmp 0x6f6e
movq -0x10(%rbp), %rdi
leaq -0x260(%rbp), %rsi
callq 0x7c50
jmp 0x6f80
movq -0x18(%rbp), %rdi
leaq -0x268(%rbp), %rsi
callq 0x7c50
jmp 0x6f92
movq -0x20(%rbp), %rdi
leaq -0x270(%rbp), %rsi
callq 0x7c50
jmp 0x6fa4
movq -0x28(%rbp), %rdi
leaq -0x278(%rbp), %rsi
callq 0x7c50
jmp 0x6fb6
movq -0x30(%rbp), %rdi
leaq -0x280(%rbp), %rsi
callq 0x7c50
jmp 0x6fc8
movq 0x10(%rbp), %rdi
leaq -0x288(%rbp), %rsi
callq 0x7c50
jmp 0x6fda
movq 0x18(%rbp), %rdi
leaq -0x290(%rbp), %rsi
callq 0x7c50
jmp 0x6fec
jmp 0x6e68
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x298(%rbp)
movl %eax, -0x29c(%rbp)
leaq -0x258(%rbp), %rdi
callq 0x20e0
leaq -0x238(%rbp), %rdi
callq 0x2060
jmp 0x7094
jmp 0x7073
movq 0x3fb2(%rip), %rdi      # 0xafd8
leaq 0x1515(%rip), %rsi      # 0x8542
callq 0x2180
movq %rax, -0x2f0(%rbp)
jmp 0x703b
movq -0x2a8(%rbp), %rsi
movq -0x2f0(%rbp), %rdi
callq 0x2170
movq %rax, -0x2f8(%rbp)
jmp 0x7057
movq -0x2f8(%rbp), %rdi
leaq 0x10eb(%rip), %rsi      # 0x8150
callq 0x2180
jmp 0x706c
xorl %edi, %edi
callq 0x2210
leaq -0x258(%rbp), %rdi
callq 0x20e0
leaq -0x238(%rbp), %rdi
callq 0x2060
addq $0x300, %rsp            # imm = 0x300
popq %rbp
retq
movq -0x298(%rbp), %rdi
callq 0x22d0