// File: /workspace/github_cpp_makefile_star2_O1/matteorr[P]EarleyParser/EarleyParser.cpp
// Function: EarleyParser::printProductions(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
void EarleyParser::printProductions( string mainNonTerminal )
{
	cout << "[DEBUG]: All Productions in chart[" << this->inputVector.size() << "]" << endl;
	cout << "[DEBUG]: size of chart " << this->earleyParserChart[ this->inputVector.size() ].size() << endl << endl;

	for( vector<State*>::iterator it = this->earleyParserChart[ this->inputVector.size() ].begin();
			it != this->earleyParserChart[ this->inputVector.size() ].end(); it++ )
	{
		cout << "[DEBUG]: size of production vector " << (*it)->getProductionPointer()->getProductionContent().size() << endl;
		cout << "[DEBUG]: - " << (*it)->getNonTerminal() << " -> ";
		for( unsigned int i = 0; i < (*it)->getProductionPointer()->getProductionContent().size(); i++ )
		{
			cout << (*it)->getProductionPointer()->getProductionContent().at(i) << " ";
		}
		cout << endl;
		cout << "****************************************************************** " << endl << "****************************************************************** " << endl << endl;
	}

	/*for( vector<State*>::iterator it = this->earleyParserChart[ this->inputVector.size() ].begin(); it != this->earleyParserChart[ this->inputVector.size() ].end(); it++ )
	{
		if( (*it)->getNonTerminal() == mainNonTerminal && (*it)->getProductionProgress() == (*it)->getProductionPointer()->getProductionContent().size() )
			this->printStateBackTrace( (*it) );
	}*/
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movq %rdi, %rbx
movq 0x866f(%rip), %r14      # 0xdfd8
leaq 0x4b7f(%rip), %rsi      # 0xa4ef
movl $0x22, %edx
movq %r14, %rdi
callq 0x2220
movq 0xa0(%rbx), %rsi
subq 0x98(%rbx), %rsi
sarq $0x5, %rsi
movq %r14, %rdi
callq 0x2140
movq %rax, %r15
leaq 0x469c(%rip), %rsi      # 0xa03d
movl $0x1, %edx
movq %rax, %rdi
callq 0x2220
movq (%r15), %rax
movq -0x18(%rax), %rdi
addq %r15, %rdi
movl $0xa, %esi
callq 0x21c0
movsbl %al, %esi
movq %r15, %rdi
callq 0x2030
movq %rax, %rdi
callq 0x2150
leaq 0x4b36(%rip), %rsi      # 0xa512
movl $0x17, %edx
movq %r14, %rdi
callq 0x2220
movq 0x80(%rbx), %rax
movq 0xa0(%rbx), %rcx
subq 0x98(%rbx), %rcx
sarq $0x5, %rcx
leaq (%rcx,%rcx,2), %rcx
movq 0x8(%rax,%rcx,8), %rsi
subq (%rax,%rcx,8), %rsi
sarq $0x3, %rsi
movq %r14, %rdi
callq 0x2140
movq %rax, %r15
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r15, %rdi
movl $0xa, %esi
callq 0x21c0
movsbl %al, %esi
movq %r15, %rdi
callq 0x2030
movq %rax, %rdi
callq 0x2150
movq %rax, %r15
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r15, %rdi
movl $0xa, %esi
callq 0x21c0
movsbl %al, %esi
movq %r15, %rdi
callq 0x2030
movq %rax, %rdi
callq 0x2150
movq 0x80(%rbx), %rax
movq 0xa0(%rbx), %rcx
movq %rbx, -0x50(%rbp)
subq 0x98(%rbx), %rcx
sarq $0x5, %rcx
leaq (%rcx,%rcx,2), %rcx
movq (%rax,%rcx,8), %rbx
cmpq 0x8(%rax,%rcx,8), %rbx
je 0x5d34
leaq -0x48(%rbp), %r12
movl $0x23, %edx
movq %r14, %rdi
leaq 0x4a78(%rip), %rsi      # 0xa52a
callq 0x2220
movq (%rbx), %rdi
callq 0x9488
movq %r12, %rdi
movq %rax, %rsi
callq 0x92e6
movq -0x40(%rbp), %rsi
subq -0x48(%rbp), %rsi
sarq $0x5, %rsi
movq %r14, %rdi
callq 0x2140
movq %rax, %r13
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r13, %rdi
movl $0xa, %esi
callq 0x21c0
movsbl %al, %esi
movq %r13, %rdi
callq 0x2030
movq %rax, %rdi
callq 0x2150
movq %r12, %rdi
callq 0x60da
movl $0xb, %edx
movq %r14, %rdi
leaq 0x4a2f(%rip), %rsi      # 0xa54e
callq 0x2220
movq (%rbx), %rsi
movq %r12, %rdi
callq 0x945a
movq -0x48(%rbp), %rsi
movq -0x40(%rbp), %rdx
movq %r14, %rdi
callq 0x2220
movl $0x4, %edx
movq %rax, %rdi
leaq 0x4a0c(%rip), %rsi      # 0xa55a
callq 0x2220
movq -0x48(%rbp), %rdi
leaq -0x38(%rbp), %rax
cmpq %rax, %rdi
je 0x5b65
callq 0x21a0
movq (%rbx), %rdi
callq 0x9488
movq %r12, %rdi
movq %rax, %rsi
callq 0x92e6
movq -0x40(%rbp), %r15
movq -0x48(%rbp), %r13
movq %r12, %rdi
callq 0x60da
cmpq %r13, %r15
je 0x5c3a
movl $0x1, %r15d
xorl %r13d, %r13d
movq %rbx, -0x58(%rbp)
movq (%rbx), %rdi
callq 0x9488
movq %r12, %rdi
movq %rax, %rsi
callq 0x92e6
movq -0x48(%rbp), %rax
movq -0x40(%rbp), %rdx
subq %rax, %rdx
sarq $0x5, %rdx
cmpq %r13, %rdx
jbe 0x5d43
shlq $0x5, %r13
movq (%rax,%r13), %rsi
movq 0x8(%rax,%r13), %rdx
movq %r14, %rdi
callq 0x2220
movl $0x1, %edx
movq %rax, %rdi
leaq 0x49b4(%rip), %rsi      # 0xa5a1
callq 0x2220
movq %r12, %rdi
callq 0x60da
movl %r15d, %r13d
movq (%rbx), %rdi
callq 0x9488
movq %r12, %rdi
movq %rax, %rsi
callq 0x92e6
movq %r14, %rbx
movq -0x40(%rbp), %r14
subq -0x48(%rbp), %r14
sarq $0x5, %r14
movq %r12, %rdi
callq 0x60da
incl %r15d
cmpq %r13, %r14
movq %rbx, %r14
movq -0x58(%rbp), %rbx
ja 0x5b9e
movq (%r14), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x21c0
movsbl %al, %esi
movq %r14, %rdi
callq 0x2030
movq %rax, %rdi
callq 0x2150
movl $0x43, %edx
movq %r14, %rdi
leaq 0x48ef(%rip), %r15      # 0xa55f
movq %r15, %rsi
callq 0x2220
movq (%r14), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x21c0
movsbl %al, %esi
movq %r14, %rdi
callq 0x2030
movq %rax, %rdi
callq 0x2150
movq %rax, %r13
movl $0x43, %edx
movq %rax, %rdi
movq %r15, %rsi
callq 0x2220
movq (%r13), %rax
movq -0x18(%rax), %rdi
addq %r13, %rdi
movl $0xa, %esi
callq 0x21c0
movsbl %al, %esi
movq %r13, %rdi
callq 0x2030
movq %rax, %rdi
callq 0x2150
movq %rax, %r13
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r13, %rdi
movl $0xa, %esi
callq 0x21c0
movsbl %al, %esi
movq %r13, %rdi
callq 0x2030
movq %rax, %rdi
callq 0x2150
addq $0x8, %rbx
movq -0x50(%rbp), %rdx
movq 0x80(%rdx), %rax
movq 0xa0(%rdx), %rcx
subq 0x98(%rdx), %rcx
sarq $0x5, %rcx
leaq (%rcx,%rcx,2), %rcx
cmpq 0x8(%rax,%rcx,8), %rbx
jne 0x5aa3
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x48cb(%rip), %rdi      # 0xa615
movq %r13, %rsi
xorl %eax, %eax
callq 0x2280
movq %rax, %rbx
movq -0x48(%rbp), %rdi
leaq -0x38(%rbp), %rax
cmpq %rax, %rdi
je 0x5d7b
callq 0x21a0
jmp 0x5d7b
jmp 0x5d6f
jmp 0x5d6f
movq %rax, %rbx
leaq -0x48(%rbp), %rdi
callq 0x60da
movq %rbx, %rdi
callq 0x22f0
nop