// File: /workspace/github_cpp_makefile_star2_O1/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 $0x198, %rsp            # imm = 0x198
movq %rsi, 0x28(%rsp)
movq %rdi, %rcx
leaq 0xe0(%rsp), %rax
movq %rax, -0x10(%rax)
movq $0x0, -0x8(%rax)
movb $0x0, (%rax)
movq (%rdi), %rax
movq -0x18(%rax), %rdi
movq %rcx, 0x30(%rsp)
testb $0x2, 0x20(%rcx,%rdi)
jne 0x1162e
addq 0x30(%rsp), %rdi
movabsq $-0x100000000, %r13     # imm = 0xFFFFFFFF00000000
leaq 0x160(%rsp), %r14
movq $0x0, 0x78(%rsp)
leaq 0xf0(%rsp), %r12
leaq 0x50(%rsp), %r15
leaq 0x90(%rsp), %rbp
movl $0xa, %esi
callq 0x53b0
movsbl %al, %edx
movq 0x30(%rsp), %rdi
leaq 0xd0(%rsp), %rsi
callq 0x56f0
leaq 0x140(%rsp), %rax
movq %rax, 0x130(%rsp)
movq 0xd0(%rsp), %rsi
movq 0xd8(%rsp), %rdx
addq %rsi, %rdx
leaq 0x130(%rsp), %rdi
callq 0x7622
leaq 0x130(%rsp), %rdi
movl $0x23, %esi
callq 0x1093a
movl %eax, %ebx
movq 0x130(%rsp), %rdi
leaq 0x140(%rsp), %rax
cmpq %rax, %rdi
je 0x10faa
movq 0x140(%rsp), %rsi
incq %rsi
callq 0x53e0
testb %bl, %bl
jne 0x1162e
leaq 0xd0(%rsp), %rbx
movq %rbx, %rdi
movl $0x3a, %esi
xorl %edx, %edx
callq 0x5530
leaq 0x1(%rax), %rdx
leaq 0xb0(%rsp), %rdi
movq %rbx, %rsi
movq $-0x1, %rcx
callq 0x5410
leaq 0x120(%rsp), %rax
movq %rax, 0x110(%rsp)
movq 0xb0(%rsp), %rsi
movq 0xb8(%rsp), %rdx
addq %rsi, %rdx
leaq 0x110(%rsp), %rdi
callq 0x7622
leaq 0x100(%rsp), %rax
movq %rax, 0xf0(%rsp)
movq %r12, %rdi
leaq 0x16bac(%rip), %rsi     # 0x27bda
leaq 0x16ba6(%rip), %rdx     # 0x27bdb
callq 0x7592
leaq 0x180(%rsp), %rdi
leaq 0x110(%rsp), %rsi
movq %r12, %rdx
callq 0x10760
movq 0xf0(%rsp), %rdi
leaq 0x100(%rsp), %rax
cmpq %rax, %rdi
je 0x11077
movq 0x100(%rsp), %rsi
incq %rsi
callq 0x53e0
movq 0x110(%rsp), %rdi
leaq 0x120(%rsp), %rax
cmpq %rax, %rdi
je 0x1109c
movq 0x120(%rsp), %rsi
incq %rsi
callq 0x53e0
xorps %xmm0, %xmm0
movaps %xmm0, 0x50(%rsp)
movq $0x0, 0x60(%rsp)
movq 0x28(%rsp), %rdi
movq %r15, %rsi
callq 0x11d22
movq %r15, %rdi
callq 0x10982
movq 0x180(%rsp), %rcx
movq 0x188(%rsp), %rax
movq %rax, 0x170(%rsp)
cmpq %rax, %rcx
je 0x115dc
leaq 0x60(%rsp), %rax
movq %rax, 0x50(%rsp)
movq (%rcx), %rsi
movq %rcx, 0x178(%rsp)
movq 0x8(%rcx), %rdx
addq %rsi, %rdx
movq %r15, %rdi
callq 0x7622
movq %r15, %rdi
movl $0x3a, %esi
xorl %edx, %edx
callq 0x5530
movq 0x78(%rsp), %rcx
leaq (%rcx,%rcx,2), %rbx
cmpq $-0x1, %rax
je 0x11241
movq %r14, 0x150(%rsp)
movq 0xb0(%rsp), %rsi
movq 0xb8(%rsp), %rdx
addq %rsi, %rdx
leaq 0x150(%rsp), %rdi
callq 0x7622
leaq 0xa0(%rsp), %rax
movq %rax, 0x90(%rsp)
movq %rbp, %rdi
leaq 0x159b1(%rip), %rsi     # 0x26b1c
leaq 0x159ab(%rip), %rdx     # 0x26b1d
callq 0x7592
leaq 0x38(%rsp), %rdi
leaq 0x150(%rsp), %rsi
movq %rbp, %rdx
callq 0x10760
movq 0x90(%rsp), %rdi
leaq 0xa0(%rsp), %rax
cmpq %rax, %rdi
je 0x111b1
movq 0xa0(%rsp), %rsi
incq %rsi
callq 0x53e0
movq %rbx, 0x88(%rsp)
movq 0x150(%rsp), %rdi
cmpq %r14, %rdi
je 0x111d6
movq 0x160(%rsp), %rsi
incq %rsi
callq 0x53e0
movq %r15, %rdi
movl $0x2e, %esi
xorl %edx, %edx
callq 0x5530
movq %rax, %r14
movq 0x38(%rsp), %rax
movq (%rax), %rbx
callq 0x5060
movq %rax, %r15
cmpq $-0x1, %r14
je 0x1125d
movl (%r15), %ebp
movl $0x0, (%r15)
movq %rbx, %rdi
leaq 0x8(%rsp), %r14
movq %r14, %rsi
callq 0x5550
cmpq %rbx, 0x8(%rsp)
je 0x116c5
movl (%r15), %eax
testl %eax, %eax
movss %xmm0, (%rsp)
je 0x1148d
cmpl $0x22, %eax
jne 0x1153c
jmp 0x116e9
shlq $0x3, %rbx
movq 0x28(%rsp), %rax
addq (%rax), %rbx
movq %rbx, %rdi
movq %r15, %rsi
callq 0x10944
jmp 0x115a6
movl (%r15), %r14d
movl $0x0, (%r15)
movq %rbx, %rdi
leaq 0x8(%rsp), %rsi
movl $0xa, %edx
callq 0x5570
cmpq %rbx, 0x8(%rsp)
movq %r15, 0x80(%rsp)
je 0x116dd
leaq -0x80000000(%rax), %rcx
cmpq %r13, %rcx
jb 0x116d1
movl (%r15), %ecx
cmpl $0x22, %ecx
je 0x116d1
movq %rax, (%rsp)
testl %ecx, %ecx
jne 0x112b3
movl %r14d, (%r15)
movq 0x38(%rsp), %rax
movq 0x20(%rax), %rbx
movl (%r15), %r14d
movl $0x0, (%r15)
movq %rbx, %rdi
leaq 0x8(%rsp), %rsi
movl $0xa, %edx
callq 0x5570
cmpq %rbx, 0x8(%rsp)
je 0x1167d
leaq -0x80000000(%rax), %rcx
cmpq %r13, %rcx
jb 0x11689
movl (%r15), %ecx
cmpl $0x22, %ecx
je 0x11689
testl %ecx, %ecx
jne 0x11306
movl %r14d, (%r15)
movq (%rsp), %rsi
cmpl %eax, %esi
jg 0x1158f
movl %esi, %r14d
negl %r14d
cmovsl %esi, %r14d
movl $0x1, %ebx
cmpl $0xa, %r14d
jb 0x11369
movl $0x4, %ebx
movl %r14d, %eax
movl $0xd1b71759, %edx       # imm = 0xD1B71759
cmpl $0x63, %eax
jbe 0x11362
cmpl $0x3e7, %eax            # imm = 0x3E7
jbe 0x11367
cmpl $0x2710, %eax           # imm = 0x2710
jb 0x11369
movl %eax, %ecx
imulq %rdx, %rcx
shrq $0x2d, %rcx
addl $0x4, %ebx
cmpl $0x1869f, %eax          # imm = 0x1869F
movl %ecx, %eax
ja 0x11334
addl $-0x3, %ebx
jmp 0x11369
addl $-0x2, %ebx
jmp 0x11369
decl %ebx
movq %r13, %r12
movq 0x88(%rsp), %rax
leaq (,%rax,8), %r13
movq 0x28(%rsp), %rax
addq (%rax), %r13
movl %esi, %ebp
shrl $0x1f, %ebp
leal (%rbx,%rbp), %esi
leaq 0x18(%rsp), %rax
movq %rax, 0x8(%rsp)
leaq 0x8(%rsp), %r15
movq %r15, %rdi
movl $0x2d, %edx
callq 0x54c0
movl %ebp, %edi
addq 0x8(%rsp), %rdi
movl %ebx, %esi
movl %r14d, %edx
callq 0x11c04
movq %r13, %rdi
movq %r15, %rsi
callq 0x10c22
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x113e0
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x53e0
movq 0x38(%rsp), %rax
movq 0x40(%rax), %rbx
movq 0x80(%rsp), %r15
movl (%r15), %r14d
movl $0x0, (%r15)
movq %rbx, %rdi
leaq 0x8(%rsp), %rsi
movl $0xa, %edx
callq 0x5570
cmpq %rbx, 0x8(%rsp)
leaq 0x90(%rsp), %rbp
je 0x11695
movq %r12, %r13
leaq -0x80000000(%rax), %rcx
cmpq %r12, %rcx
jb 0x116a1
movl (%r15), %ecx
cmpl $0x22, %ecx
je 0x116a1
testl %ecx, %ecx
jne 0x11446
movl %r14d, (%r15)
movq (%rsp), %rcx
addl %eax, %ecx
movq %rcx, (%rsp)
movq 0x38(%rsp), %rax
movq 0x20(%rax), %rbx
movl (%r15), %r14d
movl $0x0, (%r15)
movq %rbx, %rdi
leaq 0x8(%rsp), %rsi
movl $0xa, %edx
callq 0x5570
cmpq %rbx, 0x8(%rsp)
leaq 0xf0(%rsp), %r12
jne 0x112e3
jmp 0x1167d
movl %ebp, (%r15)
jmp 0x1153c
movq 0x28(%rsp), %rax
movq (%rax), %rbx
xorps %xmm0, %xmm0
cvtss2sd %xmm1, %xmm0
movl $0x3a, %edx
movq %r14, %rdi
movq 0x23abd(%rip), %rsi     # 0x34f70
leaq 0x1566e(%rip), %rcx     # 0x26b28
movb $0x1, %al
callq 0x11c71
movq 0x88(%rsp), %rax
leaq (%rbx,%rax,8), %rdi
movq %r14, %rsi
callq 0x10c22
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x114f1
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x53e0
movq 0x38(%rsp), %rax
movq 0x40(%rax), %rbx
movl (%r15), %ebp
movl $0x0, (%r15)
movq %rbx, %rdi
movq %r14, %rsi
callq 0x5550
cmpq %rbx, 0x8(%rsp)
je 0x11671
movl (%r15), %eax
testl %eax, %eax
je 0x1152b
cmpl $0x22, %eax
jne 0x1152e
jmp 0x116b9
movl %ebp, (%r15)
movss (%rsp), %xmm1
addss %xmm0, %xmm1
movss %xmm1, (%rsp)
movq 0x38(%rsp), %rax
movq 0x20(%rax), %rbx
movl (%r15), %ebp
movl $0x0, (%r15)
movq %rbx, %rdi
movq %r14, %rsi
callq 0x5550
cmpq %rbx, 0x8(%rsp)
je 0x11665
movl (%r15), %eax
testl %eax, %eax
je 0x11576
cmpl $0x22, %eax
jne 0x11579
jmp 0x116ad
movl %ebp, (%r15)
movss (%rsp), %xmm1
ucomiss %xmm1, %xmm0
leaq 0x90(%rsp), %rbp
jae 0x11495
leaq 0x38(%rsp), %rdi
callq 0x10982
leaq 0x160(%rsp), %r14
leaq 0x50(%rsp), %r15
movq 0x50(%rsp), %rdi
leaq 0x60(%rsp), %rax
cmpq %rax, %rdi
je 0x115c2
movq 0x60(%rsp), %rsi
incq %rsi
callq 0x53e0
movq 0x178(%rsp), %rcx
addq $0x20, %rcx
cmpq 0x170(%rsp), %rcx
jne 0x110e3
leaq 0x180(%rsp), %rdi
callq 0x10982
movq 0xb0(%rsp), %rdi
leaq 0xc0(%rsp), %rax
cmpq %rax, %rdi
je 0x1160e
movq 0xc0(%rsp), %rsi
incq %rsi
callq 0x53e0
incq 0x78(%rsp)
movq 0x30(%rsp), %rcx
movq (%rcx), %rax
movq -0x18(%rax), %rax
leaq (%rcx,%rax), %rdi
testb $0x2, 0x20(%rcx,%rax)
je 0x10f22
movq 0xd0(%rsp), %rdi
leaq 0xe0(%rsp), %rax
cmpq %rax, %rdi
je 0x11653
movq 0xe0(%rsp), %rsi
incq %rsi
callq 0x53e0
addq $0x198, %rsp            # imm = 0x198
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x154b7(%rip), %rdi     # 0x26b23
callq 0x5250
leaq 0x154ab(%rip), %rdi     # 0x26b23
callq 0x5250
leaq 0x1549a(%rip), %rdi     # 0x26b1e
callq 0x5250
leaq 0x1548e(%rip), %rdi     # 0x26b1e
callq 0x55b0
leaq 0x15482(%rip), %rdi     # 0x26b1e
callq 0x5250
leaq 0x15476(%rip), %rdi     # 0x26b1e
callq 0x55b0
leaq 0x1546f(%rip), %rdi     # 0x26b23
callq 0x55b0
leaq 0x15463(%rip), %rdi     # 0x26b23
callq 0x55b0
leaq 0x15457(%rip), %rdi     # 0x26b23
callq 0x5250
leaq 0x15446(%rip), %rdi     # 0x26b1e
callq 0x55b0
leaq 0x1543a(%rip), %rdi     # 0x26b1e
callq 0x5250
leaq 0x15433(%rip), %rdi     # 0x26b23
callq 0x55b0
jmp 0x11798
movq %rax, %rbx
jmp 0x11741
movq %rax, %rbx
leaq 0x50(%rsp), %rdi
callq 0x10982
jmp 0x1188b
movq %rax, %rbx
jmp 0x11898
movq %rax, %rbx
movq 0xf0(%rsp), %rdi
leaq 0x100(%rsp), %rax
cmpq %rax, %rdi
je 0x11741
movq 0x100(%rsp), %rsi
incq %rsi
callq 0x53e0
movq 0x110(%rsp), %rdi
leaq 0x120(%rsp), %rax
cmpq %rax, %rdi
je 0x11898
movq 0x120(%rsp), %rsi
incq %rsi
callq 0x53e0
jmp 0x11898
movq %rax, %rbx
movq 0x130(%rsp), %rdi
leaq 0x140(%rsp), %rax
cmpq %rax, %rdi
je 0x118bd
movq 0x140(%rsp), %rsi
jmp 0x118b5
movq %rax, %rbx
jmp 0x118bd
jmp 0x117c4
movq %rax, %rbx
cmpl $0x0, (%r15)
jne 0x11865
movq 0x80(%rsp), %rax
movl %r14d, (%rax)
jmp 0x11865
jmp 0x11859
movq %rax, %rbx
jmp 0x1186f
movq %rax, %rbx
jmp 0x117f9
movq %rax, %rbx
movq 0x90(%rsp), %rdi
leaq 0xa0(%rsp), %rax
cmpq %rax, %rdi
je 0x117f9
movq 0xa0(%rsp), %rsi
incq %rsi
callq 0x53e0
movq 0x150(%rsp), %rdi
cmpq %r14, %rdi
je 0x1186f
movq 0x160(%rsp), %rsi
incq %rsi
callq 0x53e0
jmp 0x1186f
movq %rax, %rbx
jmp 0x1188b
jmp 0x11842
jmp 0x11821
movq %rax, %rbx
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x11865
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x53e0
jmp 0x11865
movq %rax, %rbx
jmp 0x11865
jmp 0x11849
movq %rax, %rbx
cmpl $0x0, (%r15)
jne 0x11865
movl %r14d, (%r15)
jmp 0x11865
jmp 0x11859
movq %rax, %rbx
cmpl $0x0, (%r15)
jne 0x11865
movl %ebp, (%r15)
leaq 0x38(%rsp), %rdi
callq 0x10982
movq 0x50(%rsp), %rdi
leaq 0x60(%rsp), %rax
cmpq %rax, %rdi
je 0x1188b
movq 0x60(%rsp), %rsi
incq %rsi
callq 0x53e0
leaq 0x180(%rsp), %rdi
callq 0x10982
movq 0xb0(%rsp), %rdi
leaq 0xc0(%rsp), %rax
cmpq %rax, %rdi
je 0x118bd
movq 0xc0(%rsp), %rsi
incq %rsi
callq 0x53e0
movq 0xd0(%rsp), %rdi
leaq 0xe0(%rsp), %rax
cmpq %rax, %rdi
je 0x118e2
movq 0xe0(%rsp), %rsi
incq %rsi
callq 0x53e0
movq %rbx, %rdi
callq 0x56a0