// File: /workspace/github_cpp_makefile_star2_O3/WShabti-Team[P]WShabtiPict/wshabtilib/input-parser/input-parser.cpp
// Function: parameter_parser(std::basic_ifstream<char, std::char_traits<char>>&, std::vector<std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>>, std::allocator<std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>>>>&)
void parameter_parser(ifstream &input_file_stream, vector<vector<string>> &parameter_matrix)
{
	string file_row;
	int num_of_params = 0;

	while(!input_file_stream.eof())
	{
		getline(input_file_stream, file_row);
		if(start_string_delim_find(file_row,'#'))
		{
			break;
		}

		string extracted_values = file_row.substr(file_row.find(':')+1); //pick only values of the params in the line (after ':' )
		vector<string> values_vector = split(extracted_values, ",");
	    parameter_matrix.push_back(vector<string>());

		//------------------------------------------THESE LINES ARE FOR CHECKING FOR RANGE INPUT IN FORMAT START:STOP:STEP AND INSERT INTO MODEL MATRIX------------------------------------------
		for (string value : values_vector)
		{
			if(value.find(':') == string::npos)
			{
				parameter_matrix[num_of_params].push_back(value);
			}
			else
			{
				vector<string> start_stop_step = split(extracted_values, ":");
				if(value.find('.') == string::npos)
				{
					for(int i= stoi(start_stop_step[0]); i<= stoi(start_stop_step[1]); i = i + stoi(start_stop_step[2]))
					{
						parameter_matrix[num_of_params].push_back(to_string(i));
					}
				}
				else
				{
					for(float i= stof(start_stop_step[0]); i<= stof(start_stop_step[1]); i = i + stof(start_stop_step[2]))
					{
						parameter_matrix[num_of_params].push_back(to_string(i));
					}
				} 
			}
		}
		//------------------------------------------THESE LINES ARE FOR CHECKING FOR RANGE INPUT IN FORMAT START:STOP:STEP AND INSERT INTO MODEL MATRIX------------------------------------------
		num_of_params++;
	}
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x188, %rsp            # imm = 0x188
movq %rsi, 0x28(%rsp)
movq %rdi, %rcx
leaq 0xb0(%rsp), %rax
movq %rax, -0x10(%rax)
movq $0x0, -0x8(%rax)
movb $0x0, (%rax)
movq (%rdi), %rax
movq -0x18(%rax), %rdi
testb $0x2, 0x20(%rcx,%rdi)
jne 0x11420
movq %rcx, 0x68(%rsp)
addq %rcx, %rdi
leaq 0x160(%rsp), %r14
leaq 0x140(%rsp), %r15
movq $0x0, 0x70(%rsp)
leaq 0xc0(%rsp), %r12
leaq 0x8(%rsp), %rbp
movl $0xa, %esi
callq 0x53b0
movsbl %al, %edx
movq 0x68(%rsp), %rdi
leaq 0xa0(%rsp), %rsi
callq 0x56f0
leaq 0x110(%rsp), %rax
movq %rax, 0x100(%rsp)
movq 0xa0(%rsp), %rsi
movq 0xa8(%rsp), %rdx
addq %rsi, %rdx
leaq 0x100(%rsp), %rdi
callq 0x757e
leaq 0x100(%rsp), %rdi
movl $0x23, %esi
callq 0x1075a
movl %eax, %ebx
movq 0x100(%rsp), %rdi
leaq 0x110(%rsp), %rax
cmpq %rax, %rdi
je 0x10d8e
movq 0x110(%rsp), %rsi
incq %rsi
callq 0x53e0
testb %bl, %bl
jne 0x113fb
leaq 0xa0(%rsp), %rbx
movq %rbx, %rdi
movl $0x3a, %esi
xorl %edx, %edx
callq 0x5530
leaq 0x1(%rax), %rdx
leaq 0x80(%rsp), %rdi
movq %rbx, %rsi
movq $-0x1, %rcx
callq 0x5410
leaq 0xf0(%rsp), %rax
movq %rax, 0xe0(%rsp)
movq 0x80(%rsp), %rsi
movq 0x88(%rsp), %rdx
addq %rsi, %rdx
leaq 0xe0(%rsp), %rdi
callq 0x757e
leaq 0xd0(%rsp), %rax
movq %rax, 0xc0(%rsp)
movq %r12, %rdi
leaq 0x16dc8(%rip), %rsi     # 0x27bda
leaq 0x16dc2(%rip), %rdx     # 0x27bdb
callq 0x74e8
leaq 0x170(%rsp), %rdi
leaq 0xe0(%rsp), %rsi
movq %r12, %rdx
callq 0x10580
movq 0xc0(%rsp), %rdi
leaq 0xd0(%rsp), %rax
cmpq %rax, %rdi
je 0x10e5b
movq 0xd0(%rsp), %rsi
incq %rsi
callq 0x53e0
movq 0xe0(%rsp), %rdi
leaq 0xf0(%rsp), %rax
cmpq %rax, %rdi
je 0x10e80
movq 0xf0(%rsp), %rsi
incq %rsi
callq 0x53e0
xorps %xmm0, %xmm0
movaps %xmm0, 0x30(%rsp)
movq $0x0, 0x40(%rsp)
movq 0x28(%rsp), %rdi
leaq 0x30(%rsp), %rbx
movq %rbx, %rsi
callq 0x11af8
movq %rbx, %rdi
callq 0x107a2
movq 0x170(%rsp), %rcx
movq 0x178(%rsp), %rax
movq %rax, 0x120(%rsp)
cmpq %rax, %rcx
je 0x113a9
leaq 0x40(%rsp), %rax
movq %rax, 0x30(%rsp)
movq (%rcx), %rsi
movq %rcx, 0x128(%rsp)
movq 0x8(%rcx), %rdx
addq %rsi, %rdx
leaq 0x30(%rsp), %rbx
movq %rbx, %rdi
callq 0x757e
movq %rbx, %rdi
movl $0x3a, %esi
xorl %edx, %edx
callq 0x5530
movq 0x70(%rsp), %rcx
leaq (%rcx,%rcx,2), %rdi
cmpq $-0x1, %rax
je 0x11025
movq %rdi, 0x78(%rsp)
movq %r14, 0x150(%rsp)
movq 0x80(%rsp), %rsi
movq 0x88(%rsp), %rdx
addq %rsi, %rdx
leaq 0x150(%rsp), %r12
movq %r12, %rdi
callq 0x757e
movq %r15, 0x130(%rsp)
leaq 0x130(%rsp), %r13
movq %r13, %rdi
leaq 0x15bbb(%rip), %rsi     # 0x26b1c
leaq 0x15bb5(%rip), %rdx     # 0x26b1d
callq 0x74e8
leaq 0x30(%rsp), %rbx
leaq 0x50(%rsp), %rdi
movq %r12, %rsi
movq %r13, %rdx
callq 0x10580
movq 0x130(%rsp), %rdi
cmpq %r15, %rdi
je 0x10f9f
movq 0x140(%rsp), %rsi
incq %rsi
callq 0x53e0
movq 0x150(%rsp), %rdi
cmpq %r14, %rdi
je 0x10fbc
movq 0x160(%rsp), %rsi
incq %rsi
callq 0x53e0
movq %rbx, %rdi
movl $0x2e, %esi
xorl %edx, %edx
callq 0x5530
movq %rax, %r14
movq 0x50(%rsp), %rax
movq (%rax), %rbx
callq 0x5060
movq %rax, %r12
cmpq $-0x1, %r14
je 0x1103e
movl (%r12), %r14d
movl $0x0, (%r12)
movq %rbx, %rdi
movq %rbp, %rsi
callq 0x5550
cmpq %rbx, 0x8(%rsp)
je 0x11492
movl (%r12), %ebp
testl %ebp, %ebp
movss %xmm0, (%rsp)
je 0x11248
cmpl $0x22, %ebp
jne 0x112ff
jmp 0x114b6
shlq $0x3, %rdi
movq 0x28(%rsp), %rax
addq (%rax), %rdi
movq %rbx, %rsi
callq 0x10764
jmp 0x11373
movl (%r12), %r13d
movl $0x0, (%r12)
movq %rbx, %rdi
movq %rbp, %rsi
movl $0xa, %edx
callq 0x5570
cmpq %rbx, 0x8(%rsp)
movq %r12, (%rsp)
je 0x114aa
movq %rax, %r15
addq $-0x80000000, %rax      # imm = 0x80000000
movabsq $-0x100000000, %rcx     # imm = 0xFFFFFFFF00000000
cmpq %rcx, %rax
jb 0x1149e
movl (%r12), %r14d
cmpl $0x22, %r14d
je 0x1149e
testl %r14d, %r14d
jne 0x111df
movl %r13d, (%r12)
movl %r13d, %r14d
jmp 0x111df
movl %r15d, %r14d
negl %r14d
cmovsl %r15d, %r14d
movl $0x1, %ebx
cmpl $0xa, %r14d
movq 0x78(%rsp), %rsi
jb 0x11104
movl $0x4, %ebx
movl %r14d, %eax
movl $0xd1b71759, %edx       # imm = 0xD1B71759
cmpl $0x63, %eax
jbe 0x110fd
cmpl $0x3e7, %eax            # imm = 0x3E7
jbe 0x11102
cmpl $0x2710, %eax           # imm = 0x2710
jb 0x11104
movl %eax, %ecx
imulq %rdx, %rcx
shrq $0x2d, %rcx
addl $0x4, %ebx
cmpl $0x1869f, %eax          # imm = 0x1869F
movl %ecx, %eax
ja 0x110cf
addl $-0x3, %ebx
jmp 0x11104
addl $-0x2, %ebx
jmp 0x11104
decl %ebx
leaq (,%rsi,8), %r13
movq 0x28(%rsp), %rax
addq (%rax), %r13
movl %r15d, %ebp
shrl $0x1f, %ebp
leal (%rbx,%rbp), %esi
leaq 0x18(%rsp), %rax
movq %rax, 0x8(%rsp)
leaq 0x8(%rsp), %r12
movq %r12, %rdi
movl $0x2d, %edx
callq 0x54c0
movl %ebp, %edi
addq 0x8(%rsp), %rdi
movl %ebx, %esi
movl %r14d, %edx
callq 0x119d9
movq %r13, %rdi
movq %r12, %rsi
callq 0x10a0c
movq %r12, %rbp
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x11174
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x53e0
movq 0x50(%rsp), %rax
movq 0x40(%rax), %rbx
movq (%rsp), %r12
movl (%r12), %r13d
movl $0x0, (%r12)
movq %rbx, %rdi
movq %rbp, %rsi
movl $0xa, %edx
callq 0x5570
cmpq %rbx, 0x8(%rsp)
je 0x1146e
leaq -0x80000000(%rax), %rcx
movabsq $-0x100000000, %rdx     # imm = 0xFFFFFFFF00000000
cmpq %rdx, %rcx
jb 0x11462
movl (%r12), %r14d
cmpl $0x22, %r14d
je 0x11462
testl %r14d, %r14d
jne 0x111dc
movl %r13d, (%r12)
movl %r13d, %r14d
addl %eax, %r15d
movq 0x50(%rsp), %rax
movq 0x20(%rax), %rbx
movl $0x0, (%r12)
movq %rbx, %rdi
movq %rbp, %rsi
movl $0xa, %edx
callq 0x5570
cmpq %rbx, 0x8(%rsp)
je 0x11456
leaq -0x80000000(%rax), %rcx
movabsq $-0x100000000, %rdx     # imm = 0xFFFFFFFF00000000
cmpq %rdx, %rcx
jb 0x1144a
movl (%r12), %ecx
cmpl $0x22, %ecx
je 0x1144a
testl %ecx, %ecx
jne 0x1123a
movl %r14d, (%r12)
cmpl %eax, %r15d
jle 0x110a8
jmp 0x11351
movl %r14d, (%r12)
movl %r14d, %ebp
jmp 0x112ff
movq 0x28(%rsp), %rax
movq (%rax), %rbx
xorps %xmm0, %xmm0
cvtss2sd %xmm1, %xmm0
movl $0x3a, %edx
movq %rbp, %rdi
movq 0x23cfe(%rip), %rsi     # 0x34f70
leaq 0x158af(%rip), %rcx     # 0x26b28
movb $0x1, %al
callq 0x11a46
movq 0x78(%rsp), %rax
leaq (%rbx,%rax,8), %rdi
movq %rbp, %rsi
callq 0x10a0c
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x112ad
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x53e0
movq 0x50(%rsp), %rax
movq 0x40(%rax), %rbx
movl (%r12), %r14d
movl $0x0, (%r12)
movq %rbx, %rdi
movq %rbp, %rsi
callq 0x5550
cmpq %rbx, 0x8(%rsp)
je 0x1143e
movl (%r12), %ebp
testl %ebp, %ebp
je 0x112ea
cmpl $0x22, %ebp
jne 0x112f1
jmp 0x11486
movl %r14d, (%r12)
movl %r14d, %ebp
movss (%rsp), %xmm1
addss %xmm0, %xmm1
movss %xmm1, (%rsp)
movq 0x50(%rsp), %rax
movq 0x20(%rax), %rbx
movl $0x0, (%r12)
movq %rbx, %rdi
leaq 0x8(%rsp), %rsi
callq 0x5550
cmpq %rbx, 0x8(%rsp)
je 0x11432
movl (%r12), %eax
testl %eax, %eax
je 0x1133a
cmpl $0x22, %eax
jne 0x1133e
jmp 0x1147a
movl %ebp, (%r12)
movss (%rsp), %xmm1
ucomiss %xmm1, %xmm0
leaq 0x8(%rsp), %rbp
jae 0x11254
leaq 0x50(%rsp), %rdi
callq 0x107a2
leaq 0x160(%rsp), %r14
leaq 0x140(%rsp), %r15
leaq 0xc0(%rsp), %r12
movq 0x30(%rsp), %rdi
leaq 0x40(%rsp), %rax
cmpq %rax, %rdi
je 0x1138f
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x53e0
movq 0x128(%rsp), %rcx
addq $0x20, %rcx
cmpq 0x120(%rsp), %rcx
jne 0x10ecc
leaq 0x170(%rsp), %rdi
callq 0x107a2
movq 0x80(%rsp), %rdi
leaq 0x90(%rsp), %rax
cmpq %rax, %rdi
je 0x113db
movq 0x90(%rsp), %rsi
incq %rsi
callq 0x53e0
incq 0x70(%rsp)
movq 0x68(%rsp), %rcx
movq (%rcx), %rax
movq -0x18(%rax), %rax
leaq (%rcx,%rax), %rdi
testb $0x2, 0x20(%rcx,%rax)
je 0x10d06
movq 0xa0(%rsp), %rdi
leaq 0xb0(%rsp), %rax
cmpq %rax, %rdi
je 0x11420
movq 0xb0(%rsp), %rsi
incq %rsi
callq 0x53e0
addq $0x188, %rsp            # imm = 0x188
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x156ea(%rip), %rdi     # 0x26b23
callq 0x5250
leaq 0x156de(%rip), %rdi     # 0x26b23
callq 0x5250
leaq 0x156cd(%rip), %rdi     # 0x26b1e
callq 0x55b0
leaq 0x156c1(%rip), %rdi     # 0x26b1e
callq 0x5250
leaq 0x156b5(%rip), %rdi     # 0x26b1e
callq 0x55b0
leaq 0x156a9(%rip), %rdi     # 0x26b1e
callq 0x5250
leaq 0x156a2(%rip), %rdi     # 0x26b23
callq 0x55b0
leaq 0x15696(%rip), %rdi     # 0x26b23
callq 0x55b0
leaq 0x1568a(%rip), %rdi     # 0x26b23
callq 0x5250
leaq 0x15679(%rip), %rdi     # 0x26b1e
callq 0x55b0
leaq 0x1566d(%rip), %rdi     # 0x26b1e
callq 0x5250
leaq 0x15666(%rip), %rdi     # 0x26b23
callq 0x55b0
jmp 0x11565
movq %rax, %rbx
jmp 0x1150e
movq %rax, %rbx
leaq 0x30(%rsp), %rdi
callq 0x107a2
jmp 0x11662
movq %rax, %rbx
jmp 0x1166f
movq %rax, %rbx
movq 0xc0(%rsp), %rdi
leaq 0xd0(%rsp), %rax
cmpq %rax, %rdi
je 0x1150e
movq 0xd0(%rsp), %rsi
incq %rsi
callq 0x53e0
movq 0xe0(%rsp), %rdi
leaq 0xf0(%rsp), %rax
cmpq %rax, %rdi
je 0x1166f
movq 0xf0(%rsp), %rsi
incq %rsi
callq 0x53e0
jmp 0x1166f
movq %rax, %rbx
movq 0x100(%rsp), %rdi
leaq 0x110(%rsp), %rax
cmpq %rax, %rdi
je 0x11694
movq 0x110(%rsp), %rsi
jmp 0x1168c
movq %rax, %rbx
jmp 0x11694
jmp 0x1158e
movq %rax, %rbx
cmpl $0x0, (%r12)
jne 0x1163c
movq (%rsp), %rax
movl %r13d, (%rax)
jmp 0x1163c
jmp 0x1161e
movq %rax, %rbx
jmp 0x11646
movq %rax, %rbx
jmp 0x115bb
movq %rax, %rbx
movq 0x130(%rsp), %rdi
cmpq %r15, %rdi
je 0x115bb
movq 0x140(%rsp), %rsi
incq %rsi
callq 0x53e0
movq 0x150(%rsp), %rdi
cmpq %r14, %rdi
je 0x11646
movq 0x160(%rsp), %rsi
incq %rsi
callq 0x53e0
jmp 0x11646
movq %rax, %rbx
jmp 0x11662
jmp 0x11607
jmp 0x115e6
movq %rax, %rbx
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x1163c
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x53e0
jmp 0x1163c
movq %rax, %rbx
jmp 0x1163c
movq %rax, %rbx
cmpl $0x0, (%r12)
jne 0x1163c
movl %r13d, (%r12)
jmp 0x1163c
jmp 0x1161e
movq %rax, %rbx
cmpl $0x0, (%r12)
jne 0x1163c
movl %r14d, (%r12)
jmp 0x1163c
movq %rax, %rbx
cmpl $0x0, (%r12)
jne 0x1163c
movl %ebp, (%r12)
leaq 0x50(%rsp), %rdi
callq 0x107a2
movq 0x30(%rsp), %rdi
leaq 0x40(%rsp), %rax
cmpq %rax, %rdi
je 0x11662
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x53e0
leaq 0x170(%rsp), %rdi
callq 0x107a2
movq 0x80(%rsp), %rdi
leaq 0x90(%rsp), %rax
cmpq %rax, %rdi
je 0x11694
movq 0x90(%rsp), %rsi
incq %rsi
callq 0x53e0
movq 0xa0(%rsp), %rdi
leaq 0xb0(%rsp), %rax
cmpq %rax, %rdi
je 0x116b9
movq 0xb0(%rsp), %rsi
incq %rsi
callq 0x53e0
movq %rbx, %rdi
callq 0x56a0