// File: /workspace/github_cpp_makefile_star2_O3/menhits[P]phplus/src/PhplusProgram.cpp
// Function: PhplusProgram::resolveProgram(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool)
void PhplusProgram::resolveProgram(string inFilename, bool printOutput)
{
	AllOperators::init();
	populatePhplusStdLib();
	
	//initialProgramPopulation();
	
	//globalFrame.resolve(printOutput);
	
	if (!error.getIfErrorLogged())
	{
		try
		{
			file=shared_ptr<SourceFile>(new SourceFile(inFilename, printOutput));
			
			if (printOutput)
			{
				cout << endl << endl << file->getBoxedString() << endl;
			}
		}
		catch (PhplusError err)
		{
			err.log();
		}
	}
	
	if (!error.getIfErrorLogged())
	{
		try
		{
			lexString(file, tokens);
		}
		catch (PhplusError err)
		{
			err.log();
			astRoot=AstVoid::make();
		}
		
		/*
		if (printOutput)
		{
			cout << endl << tableStringFromTokens(tokens, "lexer output") << endl;
		}
		*/
	}
	
	//astRoot=parseFunction(tokens, 0, tokens.size()-1, Void, Void);
	
	if (!error.getIfErrorLogged())
	{
		try
		{
			astRoot=astNodeFromTokens(tokens, 0, tokens.size()-1);
		}
		catch (PhplusError err)
		{
			err.log();
			astRoot=AstVoid::make();
		}
		
		if (printOutput)
		{
			cout << " ╭──────────────────────╮" << endl;
			cout << " │ abstract syntax tree │" << endl;
			cout << " ╰──────────────────────╯" << endl;
			cout << astRoot->getString() << endl;
			//cout << endl << putStringInBox(astRoot->getString(), "abstract syntax tree") << endl;
			//cout << endl << str::getBoxedString(astRoot->getString(), "abstract syntax tree") << endl;
		}
	}
	
	if (!error.getIfErrorLogged())
	{
		try
		{
			astRoot->setInput(globalNamespace, true, Void, Void);
		}
		catch (PhplusError err)
		{
			err.log();
			astRoot=AstVoid::make();
		}
		
		try
		{
			actionRoot=astRoot->getAction();
			
			if (printOutput)
			{
				cout << " ╭─────────────╮" << endl;
				cout << " │ action tree │" << endl;
				cout << " ╰─────────────╯" << endl;
				cout << actionRoot->getDescription() << endl;
				//cout << endl << str::getBoxedString(actionRoot->getDescription(), "action tree") << endl;
			}
		}
		catch (PhplusError err)
		{
			err.log();
		}
	}
	
	/*if (printOutput)
	{
		cout << endl << "C source code:\n" << astRoot->getCSource() << endl;
	}*/
	
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xb8, %rsp
movl %edx, %ebp
movq %rsi, %r14
movq %rdi, %rbx
callq 0xb08c
callq 0x40771
leaq 0x6dc91(%rip), %r13     # 0x9a313
cmpb $0x0, (%r13)
jne 0x2c7e8
movl $0x40, %edi
callq 0xa2d0
movq %rax, %r12
leaq 0xa8(%rsp), %r15
movq %r15, -0x10(%r15)
movq (%r14), %rsi
movq 0x8(%r14), %rdx
addq %rsi, %rdx
leaq 0x98(%rsp), %rdi
callq 0xde0c
movb $0x1, %r14b
movzbl %bpl, %edx
leaq 0x98(%rsp), %rsi
movq %r12, %rdi
callq 0x52fc4
leaq 0x28(%rsp), %rdi
movq %r12, -0x8(%rdi)
xorl %r14d, %r14d
movq %r12, %rsi
callq 0x2c4dc
movaps 0x20(%rsp), %xmm0
xorps %xmm1, %xmm1
movaps %xmm1, 0x20(%rsp)
movq 0x8(%rbx), %rdi
movups %xmm0, (%rbx)
testq %rdi, %rdi
je 0x2c715
callq 0xdce4
movq 0x28(%rsp), %rdi
testq %rdi, %rdi
je 0x2c715
callq 0xdce4
movq 0x98(%rsp), %rdi
cmpq %r15, %rdi
je 0x2c727
callq 0xa2b0
testb %bpl, %bpl
je 0x2c7e8
movq 0x6d879(%rip), %rdi     # 0x99fb0
movq (%rdi), %rax
addq -0x18(%rax), %rdi
movl $0xa, %esi
callq 0xa2c0
movsbl %al, %esi
movq 0x6d85e(%rip), %rdi     # 0x99fb0
callq 0xa030
movq %rax, %rdi
callq 0xa200
movq %rax, %r14
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0xa2c0
movsbl %al, %esi
movq %r14, %rdi
callq 0xa030
movq %rax, %rdi
callq 0xa200
movq %rax, %r14
movq (%rbx), %rsi
leaq 0x20(%rsp), %rdi
callq 0x531dc
movq 0x20(%rsp), %rsi
movq 0x28(%rsp), %rdx
movq %r14, %rdi
callq 0xa320
movq %rax, %r14
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0xa2c0
movsbl %al, %esi
movq %r14, %rdi
callq 0xa030
movq %rax, %rdi
callq 0xa200
leaq 0x30(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x2c7e8
callq 0xa2b0
cmpb $0x0, (%r13)
jne 0x2c843
movq (%rbx), %rax
movq %rax, 0x88(%rsp)
movq 0x8(%rbx), %rax
movq %rax, 0x90(%rsp)
testq %rax, %rax
je 0x2c820
movq 0x6d796(%rip), %rcx     # 0x99fa8
cmpb $0x0, (%rcx)
je 0x2c81c
incl 0x8(%rax)
jmp 0x2c820
lock
incl 0x8(%rax)
leaq 0x10(%rbx), %rsi
leaq 0x88(%rsp), %rdi
callq 0x206e1
movq 0x90(%rsp), %rdi
testq %rdi, %rdi
je 0x2c843
callq 0xdce4
cmpb $0x0, (%r13)
jne 0x2c9c3
leaq 0x10(%rbx), %rsi
movq 0x18(%rbx), %rcx
subq 0x10(%rbx), %rcx
shrq $0x4, %rcx
decl %ecx
leaq 0x20(%rsp), %rdi
xorl %edx, %edx
callq 0x26b9c
movq 0x20(%rsp), %rax
movq $0x0, 0x20(%rsp)
movq 0x28(%rbx), %rsi
movq %rax, 0x28(%rbx)
testq %rsi, %rsi
je 0x2c8a4
leaq 0x28(%rbx), %rdi
callq 0x16b80
movq 0x20(%rsp), %rsi
testq %rsi, %rsi
je 0x2c8a4
leaq 0x20(%rsp), %rdi
callq 0x16b80
testb %bpl, %bpl
je 0x2c9c3
movq 0x6d6fc(%rip), %r14     # 0x99fb0
leaq 0x4be07(%rip), %rsi     # 0x786c2
movl $0x49, %edx
movq %r14, %rdi
callq 0xa320
movq (%r14), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0xa2c0
movsbl %al, %esi
movq %r14, %rdi
callq 0xa030
movq %rax, %rdi
callq 0xa200
leaq 0x4be16(%rip), %rsi     # 0x7870c
movl $0x1d, %edx
movq %r14, %rdi
callq 0xa320
movq (%r14), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0xa2c0
movsbl %al, %esi
movq %r14, %rdi
callq 0xa030
movq %rax, %rdi
callq 0xa200
leaq 0x4bdf9(%rip), %rsi     # 0x7872a
movl $0x49, %edx
movq %r14, %rdi
callq 0xa320
movq (%r14), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0xa2c0
movsbl %al, %esi
movq %r14, %rdi
callq 0xa030
movq %rax, %rdi
callq 0xa200
movq 0x28(%rbx), %rsi
movq (%rsi), %rax
leaq 0x20(%rsp), %r15
movq %r15, %rdi
callq *0x18(%rax)
movq (%r15), %rsi
movq 0x8(%r15), %rdx
movq %r14, %rdi
callq 0xa320
movq %rax, %r14
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0xa2c0
movsbl %al, %esi
movq %r14, %rdi
callq 0xa030
movq %rax, %rdi
callq 0xa200
leaq 0x30(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x2c9c3
callq 0xa2b0
cmpb $0x0, (%r13)
jne 0x2cc3c
movq 0x28(%rbx), %rdi
leaq 0x6d9a7(%rip), %rax     # 0x9a380
movq (%rax), %rcx
movq 0x8(%rax), %rax
movq %rcx, 0x78(%rsp)
movq %rax, 0x80(%rsp)
testq %rax, %rax
je 0x2ca07
movq 0x6d5af(%rip), %rcx     # 0x99fa8
cmpb $0x0, (%rcx)
je 0x2ca03
incl 0x8(%rax)
jmp 0x2ca07
lock
incl 0x8(%rax)
leaq 0x6d9f2(%rip), %rdx     # 0x9a400
movq (%rdx), %rsi
movq 0x8(%rdx), %rax
movq %rsi, 0x68(%rsp)
movq %rax, 0x70(%rsp)
testq %rax, %rax
je 0x2ca3f
movq 0x6d57d(%rip), %rcx     # 0x99fa8
cmpb $0x0, (%rcx)
je 0x2ca4f
incl 0x8(%rax)
movq %rsi, 0x58(%rsp)
movq %rax, 0x60(%rsp)
jmp 0x2ca69
movq %rsi, 0x58(%rsp)
movq $0x0, 0x60(%rsp)
jmp 0x2ca77
lock
incl 0x8(%rax)
movq (%rdx), %rsi
movq 0x8(%rdx), %rax
movq %rsi, 0x58(%rsp)
movq %rax, 0x60(%rsp)
testq %rax, %rax
je 0x2ca77
cmpb $0x0, (%rcx)
je 0x2ca73
incl 0x8(%rax)
jmp 0x2ca77
lock
incl 0x8(%rax)
leaq 0x28(%rbx), %r15
leaq 0x78(%rsp), %rsi
leaq 0x68(%rsp), %rcx
leaq 0x58(%rsp), %r8
movl $0x1, %edx
callq 0x14b4c
movq 0x60(%rsp), %rdi
testq %rdi, %rdi
je 0x2caa3
callq 0xdce4
movq 0x70(%rsp), %rdi
testq %rdi, %rdi
je 0x2cab2
callq 0xdce4
movq 0x80(%rsp), %rdi
testq %rdi, %rdi
je 0x2cac4
callq 0xdce4
movq (%r15), %rsi
leaq 0x20(%rsp), %rdi
callq 0x14dfa
movaps 0x20(%rsp), %xmm0
xorps %xmm1, %xmm1
movaps %xmm1, 0x20(%rsp)
movq 0x38(%rbx), %rdi
movups %xmm0, 0x30(%rbx)
testq %rdi, %rdi
je 0x2caff
callq 0xdce4
movq 0x28(%rsp), %rdi
testq %rdi, %rdi
je 0x2caff
callq 0xdce4
testb %bpl, %bpl
je 0x2cc3c
movq 0x6d4a1(%rip), %r14     # 0x99fb0
leaq 0x4bc5e(%rip), %rsi     # 0x78774
movl $0x2e, %edx
movq %r14, %rdi
callq 0xa320
movq (%r14), %rax
addq -0x18(%rax), %r14
movq %r14, %rdi
movl $0xa, %esi
callq 0xa2c0
movsbl %al, %esi
movq 0x6d46f(%rip), %rdi     # 0x99fb0
callq 0xa030
movq %rax, %rdi
callq 0xa200
movq 0x6d45b(%rip), %r14     # 0x99fb0
leaq 0x4bc47(%rip), %rsi     # 0x787a3
movl $0x14, %edx
movq %r14, %rdi
callq 0xa320
movq (%r14), %rax
addq -0x18(%rax), %r14
movq %r14, %rdi
movl $0xa, %esi
callq 0xa2c0
movsbl %al, %esi
movq 0x6d429(%rip), %rdi     # 0x99fb0
callq 0xa030
movq %rax, %rdi
callq 0xa200
movq 0x6d415(%rip), %r14     # 0x99fb0
leaq 0x4bc16(%rip), %rsi     # 0x787b8
movl $0x2e, %edx
movq %r14, %rdi
callq 0xa320
movq (%r14), %rax
addq -0x18(%rax), %r14
movq %r14, %rdi
movl $0xa, %esi
callq 0xa2c0
movsbl %al, %esi
movq 0x6d3e3(%rip), %rdi     # 0x99fb0
callq 0xa030
movq %rax, %rdi
callq 0xa200
movq 0x30(%rbx), %rsi
movq (%rsi), %rax
leaq 0x20(%rsp), %rdi
callq *0x18(%rax)
movq 0x20(%rsp), %rsi
movq 0x28(%rsp), %rdx
movq 0x6d3b6(%rip), %rdi     # 0x99fb0
callq 0xa320
movq %rax, %rbx
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0xa2c0
movsbl %al, %esi
movq %rbx, %rdi
callq 0xa030
movq %rax, %rdi
callq 0xa200
leaq 0x30(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x2cc3c
callq 0xa2b0
addq $0xb8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x2d046
jmp 0x2cfe0
jmp 0x2d046
movq %rdx, %r12
movq %rax, 0x8(%rsp)
movq 0x60(%rsp), %rdi
testq %rdi, %rdi
je 0x2cc74
callq 0xdce4
movq 0x70(%rsp), %rdi
testq %rdi, %rdi
je 0x2cc83
callq 0xdce4
movq 0x80(%rsp), %rdi
testq %rdi, %rdi
je 0x2cc95
callq 0xdce4
cmpl $0x1, %r12d
jne 0x2cfd6
movq 0x8(%rsp), %rdi
callq 0xa380
leaq 0x20(%rsp), %rdi
movq %rax, %rsi
callq 0x14f76
movq 0x8(%rsp), %rdi
callq 0xa170
leaq 0x20(%rsp), %rdi
callq 0x20470
movl $0x88, %edi
callq 0xa2d0
movq %rax, %rcx
addq $0x18, %rcx
movq %rcx, 0x8(%rax)
xorl %ecx, %ecx
movq %rcx, 0x10(%rax)
movb %cl, 0x18(%rax)
xorps %xmm0, %xmm0
movups %xmm0, 0x28(%rax)
movups %xmm0, 0x38(%rax)
movups %xmm0, 0x48(%rax)
movups %xmm0, 0x58(%rax)
movb %cl, 0x68(%rax)
movups %xmm0, 0x70(%rax)
movb %cl, 0x80(%rax)
leaq 0x6b119(%rip), %rdx     # 0x97e28
movq %rdx, (%rax)
movq %rcx, 0x10(%rsp)
movq (%r15), %rsi
movq %rax, (%r15)
testq %rsi, %rsi
je 0x2cd3e
movq %r15, %rdi
callq 0x16b80
movq 0x10(%rsp), %rsi
testq %rsi, %rsi
je 0x2cd3e
leaq 0x10(%rsp), %rdi
callq 0x2c14c
leaq 0x20(%rsp), %rdi
callq 0x14b26
callq 0xa4c0
jmp 0x2cac4
jmp 0x2cd54
movq %rax, 0x8(%rsp)
leaq 0x20(%rsp), %rdi
callq 0x14b26
callq 0xa4c0
jmp 0x2cfd6
movq %rdx, 0x18(%rsp)
movq %rax, 0x8(%rsp)
jmp 0x2cfb4
movq %rax, 0x8(%rsp)
cmpl $0x1, %edx
jne 0x2cfd6
movq 0x8(%rsp), %rdi
callq 0xa380
leaq 0x20(%rsp), %rdi
movq %rax, %rsi
callq 0x14f76
movq 0x8(%rsp), %rdi
callq 0xa170
leaq 0x20(%rsp), %rdi
callq 0x20470
movl $0x88, %edi
callq 0xa2d0
movq %rax, %rcx
addq $0x18, %rcx
movq %rcx, 0x8(%rax)
xorl %ecx, %ecx
movq %rcx, 0x10(%rax)
movb %cl, 0x18(%rax)
xorps %xmm0, %xmm0
movups %xmm0, 0x28(%rax)
movups %xmm0, 0x38(%rax)
movups %xmm0, 0x48(%rax)
movups %xmm0, 0x58(%rax)
movb %cl, 0x68(%rax)
movups %xmm0, 0x70(%rax)
movb %cl, 0x80(%rax)
leaq 0x6b02e(%rip), %rdx     # 0x97e28
movq %rdx, (%rax)
movq %rcx, 0x10(%rsp)
movq 0x28(%rbx), %rsi
movq %rax, 0x28(%rbx)
testq %rsi, %rsi
je 0x2ce2c
leaq 0x28(%rbx), %rdi
callq 0x16b80
movq 0x10(%rsp), %rsi
testq %rsi, %rsi
je 0x2ce2c
leaq 0x10(%rsp), %rdi
callq 0x2c14c
leaq 0x20(%rsp), %rdi
callq 0x14b26
callq 0xa4c0
jmp 0x2c8a4
jmp 0x2ce42
movq %rax, 0x8(%rsp)
leaq 0x20(%rsp), %rdi
callq 0x14b26
callq 0xa4c0
jmp 0x2cfd6
movq %rdx, %r15
movq %rax, 0x8(%rsp)
movq 0x90(%rsp), %rdi
testq %rdi, %rdi
je 0x2ce75
callq 0xdce4
cmpl $0x1, %r15d
jne 0x2cfd6
movq 0x8(%rsp), %rdi
callq 0xa380
leaq 0x20(%rsp), %rdi
movq %rax, %rsi
callq 0x14f76
movq 0x8(%rsp), %rdi
callq 0xa170
leaq 0x20(%rsp), %rdi
callq 0x20470
movl $0x88, %edi
callq 0xa2d0
movq %rax, %rcx
addq $0x18, %rcx
movq %rcx, 0x8(%rax)
xorl %ecx, %ecx
movq %rcx, 0x10(%rax)
movb %cl, 0x18(%rax)
xorps %xmm0, %xmm0
movups %xmm0, 0x28(%rax)
movups %xmm0, 0x38(%rax)
movups %xmm0, 0x48(%rax)
movups %xmm0, 0x58(%rax)
movb %cl, 0x68(%rax)
movups %xmm0, 0x70(%rax)
movb %cl, 0x80(%rax)
leaq 0x6af39(%rip), %rdx     # 0x97e28
movq %rdx, (%rax)
movq %rcx, 0x10(%rsp)
movq 0x28(%rbx), %rsi
movq %rax, 0x28(%rbx)
testq %rsi, %rsi
je 0x2cf21
leaq 0x28(%rbx), %rdi
callq 0x16b80
movq 0x10(%rsp), %rsi
testq %rsi, %rsi
je 0x2cf21
leaq 0x10(%rsp), %rdi
callq 0x2c14c
leaq 0x20(%rsp), %rdi
callq 0x14b26
callq 0xa4c0
jmp 0x2c843
jmp 0x2cf37
movq %rax, 0x8(%rsp)
leaq 0x20(%rsp), %rdi
callq 0x14b26
callq 0xa4c0
jmp 0x2cfd6
jmp 0x2cfe0
movq %rdx, %rbx
movq %rax, 0x8(%rsp)
leaq 0x30(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x2d04e
callq 0xa2b0
jmp 0x2d04e
movq %rdx, 0x18(%rsp)
movq %rax, 0x8(%rsp)
leaq 0x30(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
jne 0x2cfb7
jmp 0x2cfea
movq %rdx, 0x18(%rsp)
movq %rax, 0x8(%rsp)
movq 0x98(%rsp), %rdi
cmpq %r15, %rdi
je 0x2cfaf
callq 0xa2b0
testb %r14b, %r14b
je 0x2cfea
movq %r12, %rdi
callq 0xa2b0
jmp 0x2cfea
movq %rax, 0x8(%rsp)
leaq 0x30(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x2cfd6
callq 0xa2b0
movq 0x8(%rsp), %rdi
callq 0xa510
movq %rdx, 0x18(%rsp)
movq %rax, 0x8(%rsp)
cmpl $0x1, 0x18(%rsp)
jne 0x2cfd6
movq 0x8(%rsp), %rdi
callq 0xa380
leaq 0x20(%rsp), %rdi
movq %rax, %rsi
callq 0x14f76
movq 0x8(%rsp), %rdi
callq 0xa170
leaq 0x20(%rsp), %rdi
callq 0x20470
leaq 0x20(%rsp), %rdi
callq 0x14b26
callq 0xa4c0
jmp 0x2c7e8
movq %rax, 0x8(%rsp)
leaq 0x20(%rsp), %rdi
callq 0x14b26
callq 0xa4c0
jmp 0x2cfd6
movq %rdx, %rbx
movq %rax, 0x8(%rsp)
cmpl $0x1, %ebx
jne 0x2cfd6
movq 0x8(%rsp), %rdi
callq 0xa380
leaq 0x20(%rsp), %rdi
movq %rax, %rsi
callq 0x14f76
movq 0x8(%rsp), %rdi
callq 0xa170
leaq 0x20(%rsp), %rdi
callq 0x20470
leaq 0x20(%rsp), %rdi
callq 0x14b26
callq 0xa4c0
jmp 0x2cc3c
movq %rax, 0x8(%rsp)
leaq 0x20(%rsp), %rdi
callq 0x14b26
callq 0xa4c0
jmp 0x2cfd6
movq %rax, %rdi
callq 0xdcd8
nop