// File: /workspace/github_cpp_makefile_star2_O2/davinash[P]regex/src/regex.cpp
// Function: RegEx::PrintTable(std::vector<RegExState*, std::allocator<RegExState*>>&)
void RegEx::PrintTable(Table &table) {
	std::string TableString;
	for(int i = 0; i < (int)table.size(); ++i) {
		RegExState *pState = table[i];
		if(pState->m_bAcceptingState) {
			TableString += "\t" + pState->getStringID() + "\t\n";
		}
	}
	TableString += "\n";
	for( int i = 0; i < (int)table.size(); ++i) {
		RegExState *pState = table[i];
		std::vector<RegExState*> State;
		pState->GetTransition(EPSILON, State);
		for(int j = 0; j < (int)State.size(); ++j) {
			TableString += "\t" + pState->getStringID() + " -> " + State[j]->getStringID();
			TableString += "\t[label = \"epsilon \"]\n";
		}
		std::set<char>::iterator iter;
		for(iter = m_InputSet.begin(); iter != m_InputSet.end(); ++iter) {
			pState->GetTransition(*iter, State);
			for(int j = 0; j < (int)State.size(); ++j) {
				TableString += "\t" + pState->getStringID() + " -> " + State[j]->getStringID();
				std::stringstream out;
				out << *iter;
				TableString += "\t[label = \"" + out.str() + " \"]\n";
			}
		}
	}
	std::cout << TableString;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x278, %rsp            # imm = 0x278
movq %rsi, 0x30(%rsp)
movq %rdi, 0x28(%rsp)
leaq 0x50(%rsp), %rax
movq %rax, -0x10(%rax)
andq $0x0, -0x8(%rax)
movb $0x0, (%rax)
xorl %r14d, %r14d
leaq 0x90(%rsp), %rbx
leaq 0xb0(%rsp), %r15
leaq 0x3e66(%rip), %r12      # 0x95f2
leaq 0xf0(%rsp), %r13
leaq 0x40(%rsp), %rbp
movq 0x30(%rsp), %rcx
movq (%rcx), %rax
movq 0x8(%rcx), %rcx
subq %rax, %rcx
shrq $0x3, %rcx
movslq %ecx, %rcx
cmpq %rcx, %r14
jge 0x580e
movq (%rax,%r14,8), %rsi
cmpb $0x1, 0x6c(%rsi)
jne 0x5809
movq %rbx, %rdi
callq 0x7c06
movq %r15, %rdi
leaq 0x3e20(%rip), %rsi      # 0x95f0
movq %rbx, %rdx
callq 0x5ea0
movq %r13, %rdi
movq %r15, %rsi
movq %r12, %rdx
callq 0x5e81
movq %rbp, %rdi
movq %r13, %rsi
callq 0x22c0
movq %r13, %rdi
callq 0x2090
movq %r15, %rdi
callq 0x2090
movq %rbx, %rdi
callq 0x2090
incq %r14
jmp 0x5799
leaq 0x3dde(%rip), %rsi      # 0x95f3
leaq 0x40(%rsp), %rdi
callq 0x22b0
movq 0x28(%rsp), %rax
addq $0xd8, %rax
movq %rax, 0x68(%rsp)
xorl %r12d, %r12d
leaq 0xd0(%rsp), %rbp
leaq 0x90(%rsp), %rbx
leaq 0xb0(%rsp), %r15
leaq 0xf0(%rsp), %r14
movq 0x30(%rsp), %rcx
movq (%rcx), %rax
movq 0x8(%rcx), %rcx
subq %rax, %rcx
shrq $0x3, %rcx
movslq %ecx, %rcx
cmpq %rcx, %r12
jge 0x5ad5
movq (%rax,%r12,8), %rdi
xorps %xmm0, %xmm0
movaps %xmm0, (%rsp)
andq $0x0, 0x10(%rsp)
movq %rdi, 0x20(%rsp)
pushq $-0x1
popq %rsi
movq %rsp, %rdx
callq 0x7b1e
xorl %r13d, %r13d
movq %r12, 0x60(%rsp)
movq 0x8(%rsp), %rax
subq (%rsp), %rax
shrq $0x3, %rax
cltq
cmpq %rax, %r13
jge 0x5957
movq %rbp, %rdi
movq 0x20(%rsp), %rsi
callq 0x7c06
movq %rbx, %rdi
leaq 0x3d27(%rip), %rsi      # 0x95f0
movq %rbp, %rdx
callq 0x5ea0
movq %r15, %rdi
movq %rbx, %rsi
leaq 0x3d17(%rip), %rdx      # 0x95f5
callq 0x5e81
movq (%rsp), %rax
movq (%rax,%r13,8), %rsi
leaq 0x70(%rsp), %r12
movq %r12, %rdi
callq 0x7c06
movq %r14, %rdi
movq %r15, %rsi
movq %r12, %rdx
callq 0x5ec4
leaq 0x40(%rsp), %r12
movq %r12, %rdi
movq %r14, %rsi
callq 0x22c0
movq %r14, %rdi
callq 0x2090
leaq 0x70(%rsp), %rdi
callq 0x2090
movq %r15, %rdi
callq 0x2090
movq %rbx, %rdi
callq 0x2090
movq %rbp, %rdi
callq 0x2090
movq %r12, %rdi
leaq 0x3cb0(%rip), %rsi      # 0x95fa
callq 0x22b0
incq %r13
jmp 0x589a
movq 0x28(%rsp), %rax
movq 0xe8(%rax), %rax
cmpq 0x68(%rsp), %rax
je 0x5ac0
movq %rax, 0x38(%rsp)
movsbl 0x20(%rax), %esi
movq 0x20(%rsp), %rdi
movq %rsp, %rdx
callq 0x7b1e
xorl %r12d, %r12d
movq 0x8(%rsp), %rax
subq (%rsp), %rax
shrq $0x3, %rax
cltq
cmpq %rax, %r12
jge 0x5ab1
movq %rbp, %rdi
movq 0x20(%rsp), %rsi
callq 0x7c06
movq %rbx, %rdi
leaq 0x3c3a(%rip), %rsi      # 0x95f0
movq %rbp, %rdx
callq 0x5ea0
movq %r15, %rdi
movq %rbx, %rsi
leaq 0x3c2a(%rip), %rdx      # 0x95f5
callq 0x5e81
movq (%rsp), %rax
movq (%rax,%r12,8), %rsi
leaq 0x70(%rsp), %r13
movq %r13, %rdi
callq 0x7c06
movq %r14, %rdi
movq %r15, %rsi
movq %r13, %rdx
callq 0x5ec4
leaq 0x40(%rsp), %rdi
movq %r14, %rsi
callq 0x22c0
movq %r14, %rdi
callq 0x2090
leaq 0x70(%rsp), %rdi
callq 0x2090
movq %r15, %rdi
callq 0x2090
movq %rbx, %rdi
callq 0x2090
movq %rbp, %rdi
callq 0x2090
movq %r14, %rdi
callq 0x2100
movq 0x38(%rsp), %rax
movsbl 0x20(%rax), %esi
leaq 0x100(%rsp), %rdi
callq 0x21e0
movq %rbp, %rdi
leaq 0x108(%rsp), %rsi
callq 0x2240
movq %rbx, %rdi
leaq 0x3baf(%rip), %rsi      # 0x9611
movq %rbp, %rdx
callq 0x5ea0
movq %r15, %rdi
movq %rbx, %rsi
leaq 0x3b95(%rip), %rdx      # 0x960c
callq 0x5e81
leaq 0x40(%rsp), %rdi
movq %r15, %rsi
callq 0x22c0
movq %r15, %rdi
callq 0x2090
movq %rbx, %rdi
callq 0x2090
movq %rbp, %rdi
callq 0x2090
movq %r14, %rdi
callq 0x2120
incq %r12
jmp 0x5987
movq 0x38(%rsp), %rdi
callq 0x21d0
jmp 0x5963
movq %rsp, %rdi
callq 0x6a06
movq 0x60(%rsp), %r12
incq %r12
jmp 0x5852
movq 0x84fc(%rip), %rdi      # 0xdfd8
leaq 0x40(%rsp), %rsi
callq 0x2170
leaq 0x40(%rsp), %rdi
callq 0x2090
addq $0x278, %rsp            # imm = 0x278
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x5b3d
movq %rax, %rbx
leaq 0xf0(%rsp), %rdi
callq 0x2090
jmp 0x5b19
movq %rax, %rbx
leaq 0xb0(%rsp), %rdi
callq 0x2090
jmp 0x5b2b
movq %rax, %rbx
leaq 0x90(%rsp), %rdi
callq 0x2090
jmp 0x5c17
movq %rax, %rbx
jmp 0x5c17
jmp 0x5c0c
jmp 0x5c0c
jmp 0x5c0c
jmp 0x5b8e
jmp 0x5b89
jmp 0x5b66
jmp 0x5bfa
jmp 0x5c0c
jmp 0x5bb7
movq %rax, %rbx
jmp 0x5ba8
jmp 0x5bc9
movq %rax, %rbx
jmp 0x5bde
jmp 0x5c0c
movq %rax, %rbx
leaq 0xb0(%rsp), %rdi
callq 0x2090
jmp 0x5bd1
movq %rax, %rbx
jmp 0x5b9e
movq %rax, %rbx
leaq 0xf0(%rsp), %rdi
callq 0x2090
leaq 0x70(%rsp), %rdi
callq 0x2090
leaq 0xb0(%rsp), %rdi
callq 0x2090
jmp 0x5bba
movq %rax, %rbx
leaq 0x90(%rsp), %rdi
callq 0x2090
jmp 0x5bfd
movq %rax, %rbx
jmp 0x5beb
movq %rax, %rbx
leaq 0x90(%rsp), %rdi
callq 0x2090
leaq 0xd0(%rsp), %rdi
callq 0x2090
leaq 0xf0(%rsp), %rdi
callq 0x2120
jmp 0x5c0f
movq %rax, %rbx
leaq 0xd0(%rsp), %rdi
callq 0x2090
jmp 0x5c0f
movq %rax, %rbx
movq %rsp, %rdi
callq 0x6a06
leaq 0x40(%rsp), %rdi
callq 0x2090
movq %rbx, %rdi
callq 0x2290
nop