// File: /workspace/github_cpp_makefile_star2_O2/FR13ndSDP[P]NHT/Parameters.cpp
// Function: Parameters::readParameters(char const*)
int Parameters::readParameters(const char *filename)
{
    stringstream buffer;
    string line;
    string paramName;
    int paramValue_int = 0;
    double paramValue= 0;
    string paramStr;

    ifstream fin(filename);
    if (!fin.good())
    {
        string msg("parameters file not found");
        msg.append(filename);
        throw runtime_error(msg);
    }
    while (fin.good())
    {
        getline(fin, line);
        if (line[0] != '#')
        {
            buffer << line; //order is important
            buffer >> paramName;
            if (paramName.compare("unSteady") == 0)
            {
                buffer >> paramValue_int;
                uS = paramValue_int;
            }
            else if (paramName.compare("Boundary_L") == 0)
            {
                buffer >> paramValue_int;
                B_L = paramValue_int;
            }
            else if (paramName.compare("Boundary_R") == 0)
            {
                buffer >> paramValue_int;
                B_R = paramValue_int;
            }
            else if (paramName.compare("Q_L") == 0)
            {
                buffer >> paramValue;
                Q_L = paramValue;
            }
            else if (paramName.compare("Q_R") == 0)
            {
                buffer >> paramValue_int;
                Q_R = paramValue_int;
            }
            else if (paramName.compare("solver") == 0)
            {
                buffer >> paramStr;
                solver = paramStr;
            }
            else if (paramName.compare("L") == 0)
            {
                buffer >> paramValue;
                L = paramValue;
            }
            else if (paramName.compare("N") == 0)
            {
                buffer >> paramValue_int;
                N = paramValue_int;
            }
            else if (paramName.compare("dt") == 0)
            {
                buffer >> paramValue;
                dt = paramValue;
            }
            else if (paramName.compare("A1") == 0)
            {
                buffer >> paramValue;
                A1 = paramValue;
            }
            else if (paramName.compare("A2") == 0)
            {
                buffer >> paramValue;
                A2 = paramValue;
            }
            else if (paramName.compare("RHOC") == 0)
            {
                buffer >> paramValue;
                RHOC = paramValue;
            }
            else if (paramName.compare("K") == 0)
            {
                buffer >> paramValue;
                K = paramValue;
            }
            else if (paramName.compare("TA") == 0)
            {
                buffer >> paramValue;
                TA = paramValue;
            }
            else if (paramName.compare("TB") == 0)
            {
                buffer >> paramValue;
                TB = paramValue;
            }
            else if (paramName.compare("P") == 0)
            {
                buffer >> paramValue;
                P = paramValue;
            }
            else
            {
                throw runtime_error(string("unknown parameter: ").append(paramName));
            }
        }
    }
    fin.close();
    return 0;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x438, %rsp            # imm = 0x438
movq %rsi, %r14
movq %rdi, %rbx
leaq -0x458(%rbp), %rdi
callq 0x2140
leaq -0xb8(%rbp), %rax
movq %rax, -0x10(%rax)
andq $0x0, -0x8(%rax)
leaq -0x98(%rbp), %rcx
movq %rcx, -0x10(%rcx)
andq $0x0, -0x8(%rcx)
andl $0x0, -0x2c(%rbp)
xorl %edx, %edx
andq $0x0, -0x38(%rbp)
movb %dl, (%rax)
movb %dl, (%rcx)
leaq -0x78(%rbp), %rax
movq %rax, -0x10(%rax)
andq $0x0, -0x8(%rax)
movb %dl, (%rax)
leaq -0x2d0(%rbp), %rdi
pushq $0x8
popq %rdx
movq %r14, %rsi
callq 0x22b0
movq -0x2d0(%rbp), %rax
movq -0x18(%rax), %rax
cmpl $0x0, -0x2b0(%rbp,%rax)
jne 0x3512
leaq 0x68(%rbx), %rcx
movq %rcx, -0x48(%rbp)
leaq -0x2d0(%rbp), %r12
leaq -0xc8(%rbp), %r13
leaq -0x458(%rbp), %r15
leaq -0xa8(%rbp), %r14
cmpl $0x0, -0x2b0(%rbp,%rax)
jne 0x34b6
movq %r12, %rdi
movq %r13, %rsi
callq 0x2040
movq -0xc8(%rbp), %rax
cmpb $0x23, (%rax)
je 0x34a6
leaq -0x448(%rbp), %rdi
movq %r13, %rsi
callq 0x21b0
movq %r15, %rdi
movq %r14, %rsi
callq 0x21f0
movq %r14, %rdi
leaq 0x1f73(%rip), %rsi      # 0x511f
callq 0x2080
testl %eax, %eax
je 0x332d
movq %r14, %rdi
leaq 0x1f65(%rip), %rsi      # 0x5128
callq 0x2080
testl %eax, %eax
je 0x3344
movq %r14, %rdi
leaq 0x1f59(%rip), %rsi      # 0x5133
callq 0x2080
testl %eax, %eax
je 0x335b
movq %r14, %rdi
leaq 0x1f4d(%rip), %rsi      # 0x513e
callq 0x2080
testl %eax, %eax
je 0x3372
movq %r14, %rdi
leaq 0x1f3a(%rip), %rsi      # 0x5142
callq 0x2080
testl %eax, %eax
je 0x338d
movq %r14, %rdi
leaq 0x1f27(%rip), %rsi      # 0x5146
callq 0x2080
testl %eax, %eax
je 0x33a8
movq %r14, %rdi
leaq 0x1f0a(%rip), %rsi      # 0x5140
callq 0x2080
testl %eax, %eax
je 0x33cc
movq %r14, %rdi
leaq 0x1f00(%rip), %rsi      # 0x514d
callq 0x2080
testl %eax, %eax
je 0x33e7
movq %r14, %rdi
leaq 0x1eeb(%rip), %rsi      # 0x514f
callq 0x2080
testl %eax, %eax
je 0x33fd
movq %r14, %rdi
leaq 0x1ed7(%rip), %rsi      # 0x5152
callq 0x2080
testl %eax, %eax
je 0x3418
movq %r14, %rdi
leaq 0x1ec3(%rip), %rsi      # 0x5155
callq 0x2080
testl %eax, %eax
je 0x3430
movq %r14, %rdi
leaq 0x1eaf(%rip), %rsi      # 0x5158
callq 0x2080
testl %eax, %eax
je 0x3448
movq %r14, %rdi
leaq 0x1e9d(%rip), %rsi      # 0x515d
callq 0x2080
testl %eax, %eax
je 0x3460
movq %r14, %rdi
leaq 0x1e88(%rip), %rsi      # 0x515f
callq 0x2080
testl %eax, %eax
je 0x3478
movq %r14, %rdi
leaq 0x1e74(%rip), %rsi      # 0x5162
callq 0x2080
testl %eax, %eax
je 0x3490
movq %r14, %rdi
leaq 0x1e60(%rip), %rsi      # 0x5165
callq 0x2080
testl %eax, %eax
jne 0x3561
movq %r15, %rdi
leaq -0x38(%rbp), %rsi
callq 0x2120
movsd -0x38(%rbp), %xmm0
movsd %xmm0, 0x50(%rbx)
jmp 0x34a6
movq %r15, %rdi
leaq -0x2c(%rbp), %rsi
callq 0x2110
movl -0x2c(%rbp), %eax
movl %eax, 0x4(%rbx)
jmp 0x34a6
movq %r15, %rdi
leaq -0x2c(%rbp), %rsi
callq 0x2110
movl -0x2c(%rbp), %eax
movl %eax, 0x8(%rbx)
jmp 0x34a6
movq %r15, %rdi
leaq -0x2c(%rbp), %rsi
callq 0x2110
movl -0x2c(%rbp), %eax
movl %eax, 0xc(%rbx)
jmp 0x34a6
movq %r15, %rdi
leaq -0x38(%rbp), %rsi
callq 0x2120
movsd -0x38(%rbp), %xmm0
movsd %xmm0, 0x60(%rbx)
jmp 0x34a6
movq %r15, %rdi
leaq -0x2c(%rbp), %rsi
callq 0x2110
cvtsi2sdl -0x2c(%rbp), %xmm0
movsd %xmm0, 0x58(%rbx)
jmp 0x34a6
movq %r15, %rdi
leaq -0x88(%rbp), %rsi
callq 0x21f0
movq -0x48(%rbp), %rdi
leaq -0x88(%rbp), %rsi
callq 0x2100
jmp 0x34a6
movq %r15, %rdi
leaq -0x38(%rbp), %rsi
callq 0x2120
movsd -0x38(%rbp), %xmm0
movsd %xmm0, 0x18(%rbx)
jmp 0x34a6
movq %r15, %rdi
leaq -0x2c(%rbp), %rsi
callq 0x2110
movl -0x2c(%rbp), %eax
movl %eax, (%rbx)
jmp 0x34a6
movq %r15, %rdi
leaq -0x38(%rbp), %rsi
callq 0x2120
movsd -0x38(%rbp), %xmm0
movsd %xmm0, 0x10(%rbx)
jmp 0x34a6
movq %r15, %rdi
leaq -0x38(%rbp), %rsi
callq 0x2120
movsd -0x38(%rbp), %xmm0
movsd %xmm0, 0x20(%rbx)
jmp 0x34a6
movq %r15, %rdi
leaq -0x38(%rbp), %rsi
callq 0x2120
movsd -0x38(%rbp), %xmm0
movsd %xmm0, 0x28(%rbx)
jmp 0x34a6
movq %r15, %rdi
leaq -0x38(%rbp), %rsi
callq 0x2120
movsd -0x38(%rbp), %xmm0
movsd %xmm0, 0x30(%rbx)
jmp 0x34a6
movq %r15, %rdi
leaq -0x38(%rbp), %rsi
callq 0x2120
movsd -0x38(%rbp), %xmm0
movsd %xmm0, 0x38(%rbx)
jmp 0x34a6
movq %r15, %rdi
leaq -0x38(%rbp), %rsi
callq 0x2120
movsd -0x38(%rbp), %xmm0
movsd %xmm0, 0x40(%rbx)
jmp 0x34a6
movq %r15, %rdi
leaq -0x38(%rbp), %rsi
callq 0x2120
movsd -0x38(%rbp), %xmm0
movsd %xmm0, 0x48(%rbx)
movq -0x2d0(%rbp), %rax
movq -0x18(%rax), %rax
jmp 0x315f
leaq -0x2d0(%rbp), %rdi
callq 0x2050
leaq -0x2d0(%rbp), %rdi
callq 0x2060
leaq -0x88(%rbp), %rdi
callq 0x20c0
leaq -0xa8(%rbp), %rdi
callq 0x20c0
leaq -0xc8(%rbp), %rdi
callq 0x20c0
leaq -0x458(%rbp), %rdi
callq 0x2170
xorl %eax, %eax
addq $0x438, %rsp            # imm = 0x438
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x1bec(%rip), %rsi      # 0x5105
leaq -0x68(%rbp), %rdi
leaq -0x39(%rbp), %rdx
callq 0x39c0
leaq -0x68(%rbp), %rdi
movq %r14, %rsi
callq 0x22c0
pushq $0x10
popq %rdi
callq 0x20e0
movq %rax, %r14
leaq -0x68(%rbp), %rsi
movq %rax, %rdi
callq 0x2250
movq 0x3aa0(%rip), %rsi      # 0x6ff0
movq 0x3a69(%rip), %rdx      # 0x6fc0
movq %r14, %rdi
callq 0x2280
jmp 0x35b7
pushq $0x10
popq %rdi
callq 0x20e0
movq %rax, %r14
leaq 0x1bf4(%rip), %rsi      # 0x5167
leaq -0x68(%rbp), %rdi
leaq -0x39(%rbp), %rdx
callq 0x39c0
movb $0x1, %r15b
leaq -0x68(%rbp), %rdi
leaq -0xa8(%rbp), %rsi
callq 0x22e0
movq %r14, %rdi
movq %rax, %rsi
callq 0x2250
xorl %r15d, %r15d
movq 0x3a48(%rip), %rsi      # 0x6ff0
movq 0x3a11(%rip), %rdx      # 0x6fc0
movq %r14, %rdi
callq 0x2280
movq %rax, %rbx
leaq -0x68(%rbp), %rdi
callq 0x20c0
testb %r15b, %r15b
jne 0x35cd
jmp 0x35fe
movq %rax, %rbx
movq %r14, %rdi
callq 0x2160
jmp 0x35fe
movq %rax, %rbx
movq %r14, %rdi
callq 0x2160
jmp 0x35e7
movq %rax, %rbx
leaq -0x68(%rbp), %rdi
callq 0x20c0
jmp 0x35fe
jmp 0x35fb
jmp 0x35fb
movq %rax, %rbx
jmp 0x360a
movq %rax, %rbx
leaq -0x2d0(%rbp), %rdi
callq 0x2060
leaq -0x88(%rbp), %rdi
callq 0x20c0
leaq -0xa8(%rbp), %rdi
callq 0x20c0
leaq -0xc8(%rbp), %rdi
callq 0x20c0
leaq -0x458(%rbp), %rdi
callq 0x2170
movq %rbx, %rdi
callq 0x2290