// File: /workspace/github_cpp_makefile_star2_O2/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, 0x8(%rsp)
movq %rdi, 0x20(%rsp)
leaq 0x98(%rsp), %rax
movq %rax, -0x10(%rax)
andq $0x0, -0x8(%rax)
movb $0x0, (%rax)
movq $0x0, 0x18(%rsp)
leaq 0x88(%rsp), %r14
leaq 0x168(%rsp), %r12
leaq 0x148(%rsp), %r13
leaq 0x128(%rsp), %rbx
leaq 0x108(%rsp), %r15
leaq 0x50(%rsp), %rbp
movq 0x20(%rsp), %rcx
movq (%rcx), %rax
movq -0x18(%rax), %rax
testb $0x2, 0x20(%rcx,%rax)
jne 0x119b1
movq 0x20(%rsp), %rdi
movq %r14, %rsi
callq 0x60b0
movq %r12, %rdi
movq %r14, %rsi
callq 0x65b0
movq %r12, %rdi
pushq $0x23
popq %rsi
callq 0x1121e
movl %eax, %r14d
movq %r12, %rdi
callq 0x61e0
testb %r14b, %r14b
leaq 0x88(%rsp), %rdi
jne 0x119b1
movq %rdi, %r14
pushq $0x3a
popq %rsi
xorl %edx, %edx
callq 0x6590
leaq 0x1(%rax), %rdx
movq %r13, %rdi
movq %r14, %rsi
pushq $-0x1
popq %rcx
callq 0x6490
movq %rbx, %rdi
movq %r13, %rsi
callq 0x65b0
leaq 0xe8(%rsp), %r14
movq %r15, %rdi
leaq 0x124cb(%rip), %rsi     # 0x23bda
movq %rbp, %rdx
callq 0x7f56
leaq 0x70(%rsp), %rdi
movq %rbx, %rsi
movq %r15, %rdx
callq 0x110b0
movq %r15, %rdi
callq 0x61e0
movq %rbx, %rdi
callq 0x61e0
xorps %xmm0, %xmm0
movaps %xmm0, 0x50(%rsp)
andq $0x0, 0x60(%rsp)
movq 0x8(%rsp), %rdi
movq %rbp, %rsi
callq 0x120a6
movq %rbp, %rdi
callq 0x11254
movq 0x70(%rsp), %rsi
movq 0x78(%rsp), %rax
movq %rax, 0x40(%rsp)
imulq $0x18, 0x18(%rsp), %rax
movq %rax, 0x10(%rsp)
cmpq 0x40(%rsp), %rsi
je 0x1198d
movq %rbp, %rdi
movq %rsi, 0x48(%rsp)
callq 0x65b0
movq %rbp, %rdi
pushq $0x3a
popq %rsi
xorl %edx, %edx
callq 0x6590
cmpq $-0x1, %rax
je 0x118b9
movq %r14, %rdi
movq %r13, %rsi
callq 0x65b0
leaq 0xc8(%rsp), %rdi
leaq 0x11357(%rip), %rsi     # 0x22b14
leaq 0xa8(%rsp), %rdx
callq 0x7f56
leaq 0x28(%rsp), %rdi
movq %r14, %rsi
leaq 0xc8(%rsp), %rdx
callq 0x110b0
leaq 0xc8(%rsp), %rdi
callq 0x61e0
movq %r14, %rdi
callq 0x61e0
movq %rbp, %rdi
pushq $0x2e
popq %rsi
xorl %edx, %edx
callq 0x6590
movq 0x28(%rsp), %rdi
cmpq $-0x1, %rax
je 0x118d3
xorl %esi, %esi
callq 0x11d0f
movss %xmm0, 0x4(%rsp)
movq 0x28(%rsp), %rdi
addq $0x20, %rdi
xorl %esi, %esi
callq 0x11d0f
movss 0x4(%rsp), %xmm1
ucomiss %xmm1, %xmm0
jb 0x1196d
movaps %xmm1, %xmm0
movq %r13, %rbp
movq %r15, %r13
movq %rbx, %r15
movq %r12, %rbx
movq 0x8(%rsp), %rax
movq (%rax), %r14
leaq 0xa8(%rsp), %r12
movq %r12, %rdi
callq 0x11d28
addq 0x10(%rsp), %r14
movq %r14, %rdi
movq %r12, %rsi
callq 0x114aa
movq %r12, %rdi
callq 0x61e0
movq 0x28(%rsp), %rdi
addq $0x40, %rdi
xorl %esi, %esi
callq 0x11d0f
leaq 0xe8(%rsp), %r14
movq %rbx, %r12
movq %r15, %rbx
movq %r13, %r15
movq %rbp, %r13
leaq 0x50(%rsp), %rbp
movss 0x4(%rsp), %xmm1
addss %xmm0, %xmm1
movss %xmm1, 0x4(%rsp)
jmp 0x1181d
movq 0x8(%rsp), %rax
movq (%rax), %rdi
addq 0x10(%rsp), %rdi
movq %rbp, %rsi
callq 0x11228
jmp 0x11977
xorl %esi, %esi
pushq $0xa
popq %rdx
callq 0x11c9a
movl %eax, 0x4(%rsp)
movq 0x28(%rsp), %rdi
addq $0x20, %rdi
xorl %esi, %esi
pushq $0xa
popq %rdx
callq 0x11c9a
movl 0x4(%rsp), %esi
cmpl %eax, %esi
jg 0x1196d
movq %r15, %rbp
movq %rbx, %r15
movq %r13, %rbx
movq %r12, %r13
movq 0x8(%rsp), %rax
movq (%rax), %r12
leaq 0xa8(%rsp), %r14
movq %r14, %rdi
callq 0x11cb6
addq 0x10(%rsp), %r12
movq %r12, %rdi
movq %r14, %rsi
callq 0x114aa
movq %r14, %rdi
callq 0x61e0
movq 0x28(%rsp), %rdi
addq $0x40, %rdi
xorl %esi, %esi
pushq $0xa
popq %rdx
callq 0x11c9a
movq %r13, %r12
movq %rbx, %r13
movq %r15, %rbx
movq %rbp, %r15
leaq 0x50(%rsp), %rbp
leaq 0xe8(%rsp), %r14
addl %eax, 0x4(%rsp)
jmp 0x118e1
leaq 0x28(%rsp), %rdi
callq 0x11254
movq %rbp, %rdi
callq 0x61e0
movq 0x48(%rsp), %rsi
addq $0x20, %rsi
jmp 0x11774
incq 0x18(%rsp)
leaq 0x70(%rsp), %rdi
callq 0x11254
movq %r13, %rdi
callq 0x61e0
leaq 0x88(%rsp), %r14
jmp 0x1167d
leaq 0x88(%rsp), %rdi
callq 0x61e0
addq $0x188, %rsp            # imm = 0x188
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
leaq 0x50(%rsp), %rdi
callq 0x11254
jmp 0x11a8a
movq %rax, %rbx
jmp 0x11a94
movq %rax, %rbx
leaq 0x108(%rsp), %rdi
callq 0x61e0
jmp 0x11a01
jmp 0x11a20
movq %rax, %rbx
leaq 0x128(%rsp), %rdi
callq 0x61e0
jmp 0x11a94
movq %rax, %rbx
leaq 0x168(%rsp), %rdi
jmp 0x11a9c
movq %rax, %rbx
jmp 0x11aa1
jmp 0x11a73
jmp 0x11a2b
jmp 0x11a73
movq %rax, %rbx
jmp 0x11a80
movq %rax, %rbx
jmp 0x11a45
movq %rax, %rbx
leaq 0xc8(%rsp), %rdi
callq 0x61e0
leaq 0xe8(%rsp), %rdi
callq 0x61e0
jmp 0x11a80
movq %rax, %rbx
jmp 0x11a8a
jmp 0x11a73
jmp 0x11a5d
movq %rax, %rbx
leaq 0xa8(%rsp), %rdi
callq 0x61e0
jmp 0x11a76
jmp 0x11a73
jmp 0x11a73
movq %rax, %rbx
leaq 0x28(%rsp), %rdi
callq 0x11254
leaq 0x50(%rsp), %rdi
callq 0x61e0
leaq 0x70(%rsp), %rdi
callq 0x11254
leaq 0x148(%rsp), %rdi
callq 0x61e0
leaq 0x88(%rsp), %rdi
callq 0x61e0
movq %rbx, %rdi
callq 0x66e0