// File: /workspace/github_cpp_makefile_star2_O1/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 0xb06c
callq 0x3f9ff
leaq 0x6cf51(%rip), %r13     # 0x99313
cmpb $0x0, (%r13)
jne 0x2c528
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 0xdde2
movb $0x1, %r14b
movzbl %bpl, %edx
leaq 0x98(%rsp), %rsi
movq %r12, %rdi
callq 0x52204
leaq 0x28(%rsp), %rdi
movq %r12, -0x8(%rdi)
xorl %r14d, %r14d
movq %r12, %rsi
callq 0x2c218
movaps 0x20(%rsp), %xmm0
xorps %xmm1, %xmm1
movaps %xmm1, 0x20(%rsp)
movq 0x8(%rbx), %rdi
movups %xmm0, (%rbx)
testq %rdi, %rdi
je 0x2c446
callq 0xdcba
movq 0x28(%rsp), %rdi
testq %rdi, %rdi
je 0x2c455
callq 0xdcba
movq 0x98(%rsp), %rdi
cmpq %r15, %rdi
je 0x2c467
callq 0xa2b0
testb %bpl, %bpl
je 0x2c528
movq 0x6cb39(%rip), %rdi     # 0x98fb0
movq (%rdi), %rax
addq -0x18(%rax), %rdi
movl $0xa, %esi
callq 0xa2c0
movsbl %al, %esi
movq 0x6cb1e(%rip), %rdi     # 0x98fb0
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 0x5241c
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 0x2c528
callq 0xa2b0
cmpb $0x0, (%r13)
jne 0x2c583
movq (%rbx), %rax
movq %rax, 0x88(%rsp)
movq 0x8(%rbx), %rax
movq %rax, 0x90(%rsp)
testq %rax, %rax
je 0x2c560
movq 0x6ca56(%rip), %rcx     # 0x98fa8
cmpb $0x0, (%rcx)
je 0x2c55c
incl 0x8(%rax)
jmp 0x2c560
lock
incl 0x8(%rax)
leaq 0x10(%rbx), %rsi
leaq 0x88(%rsp), %rdi
callq 0x203d1
movq 0x90(%rsp), %rdi
testq %rdi, %rdi
je 0x2c583
callq 0xdcba
cmpb $0x0, (%r13)
jne 0x2c703
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 0x26958
movq 0x20(%rsp), %rax
movq $0x0, 0x20(%rsp)
movq 0x28(%rbx), %rsi
movq %rax, 0x28(%rbx)
testq %rsi, %rsi
je 0x2c5d0
leaq 0x28(%rbx), %rdi
callq 0x168f8
movq 0x20(%rsp), %rsi
testq %rsi, %rsi
je 0x2c5e4
leaq 0x20(%rsp), %rdi
callq 0x168f8
testb %bpl, %bpl
je 0x2c703
movq 0x6c9bc(%rip), %r14     # 0x98fb0
leaq 0x4b0c7(%rip), %rsi     # 0x776c2
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 0x4b0d6(%rip), %rsi     # 0x7770c
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 0x4b0b9(%rip), %rsi     # 0x7772a
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 0x2c703
callq 0xa2b0
cmpb $0x0, (%r13)
jne 0x2c969
movq 0x28(%rbx), %rdi
leaq 0x6cc67(%rip), %rax     # 0x99380
movq (%rax), %rcx
movq 0x8(%rax), %rax
movq %rcx, 0x78(%rsp)
movq %rax, 0x80(%rsp)
testq %rax, %rax
je 0x2c747
movq 0x6c86f(%rip), %rcx     # 0x98fa8
cmpb $0x0, (%rcx)
je 0x2c743
incl 0x8(%rax)
jmp 0x2c747
lock
incl 0x8(%rax)
leaq 0x6ccb2(%rip), %rax     # 0x99400
movq (%rax), %rdx
movq 0x8(%rax), %rcx
movq %rdx, 0x68(%rsp)
movq %rcx, 0x70(%rsp)
testq %rcx, %rcx
je 0x2c779
movq 0x6c83d(%rip), %rdx     # 0x98fa8
cmpb $0x0, (%rdx)
je 0x2c775
incl 0x8(%rcx)
jmp 0x2c779
lock
incl 0x8(%rcx)
movq (%rax), %rcx
movq 0x8(%rax), %rax
movq %rcx, 0x58(%rsp)
movq %rax, 0x60(%rsp)
testq %rax, %rax
je 0x2c7a4
movq 0x6c812(%rip), %rcx     # 0x98fa8
cmpb $0x0, (%rcx)
je 0x2c7a0
incl 0x8(%rax)
jmp 0x2c7a4
lock
incl 0x8(%rax)
leaq 0x28(%rbx), %r15
leaq 0x78(%rsp), %rsi
leaq 0x68(%rsp), %rcx
leaq 0x58(%rsp), %r8
movl $0x1, %edx
callq 0x1491e
movq 0x60(%rsp), %rdi
testq %rdi, %rdi
je 0x2c7d0
callq 0xdcba
movq 0x70(%rsp), %rdi
testq %rdi, %rdi
je 0x2c7df
callq 0xdcba
movq 0x80(%rsp), %rdi
testq %rdi, %rdi
je 0x2c7f1
callq 0xdcba
movq (%r15), %rsi
leaq 0x20(%rsp), %rdi
callq 0x14bb8
movaps 0x20(%rsp), %xmm0
xorps %xmm1, %xmm1
movaps %xmm1, 0x20(%rsp)
movq 0x38(%rbx), %rdi
movups %xmm0, 0x30(%rbx)
testq %rdi, %rdi
je 0x2c81d
callq 0xdcba
movq 0x28(%rsp), %rdi
testq %rdi, %rdi
je 0x2c82c
callq 0xdcba
testb %bpl, %bpl
je 0x2c969
movq 0x6c774(%rip), %r14     # 0x98fb0
leaq 0x4af31(%rip), %rsi     # 0x77774
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 0x6c742(%rip), %rdi     # 0x98fb0
callq 0xa030
movq %rax, %rdi
callq 0xa200
movq 0x6c72e(%rip), %r14     # 0x98fb0
leaq 0x4af1a(%rip), %rsi     # 0x777a3
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 0x6c6fc(%rip), %rdi     # 0x98fb0
callq 0xa030
movq %rax, %rdi
callq 0xa200
movq 0x6c6e8(%rip), %r14     # 0x98fb0
leaq 0x4aee9(%rip), %rsi     # 0x777b8
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 0x6c6b6(%rip), %rdi     # 0x98fb0
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 0x6c689(%rip), %rdi     # 0x98fb0
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 0x2c969
callq 0xa2b0
addq $0xb8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x2cd76
jmp 0x2cd10
jmp 0x2cd76
movq %rdx, %r12
movq %rax, 0x8(%rsp)
movq 0x60(%rsp), %rdi
testq %rdi, %rdi
je 0x2c9a1
callq 0xdcba
movq 0x70(%rsp), %rdi
testq %rdi, %rdi
je 0x2c9b0
callq 0xdcba
movq 0x80(%rsp), %rdi
testq %rdi, %rdi
je 0x2c9c2
callq 0xdcba
cmpl $0x1, %r12d
jne 0x2cd06
movq 0x8(%rsp), %rdi
callq 0xa380
leaq 0x20(%rsp), %rdi
movq %rax, %rsi
callq 0x14d22
movq 0x8(%rsp), %rdi
callq 0xa170
leaq 0x20(%rsp), %rdi
callq 0x20160
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 0x6a3ec(%rip), %rdx     # 0x96e28
movq %rdx, (%rax)
movq %rcx, 0x10(%rsp)
movq (%r15), %rsi
movq %rax, (%r15)
testq %rsi, %rsi
je 0x2ca57
movq %r15, %rdi
callq 0x168f8
movq 0x10(%rsp), %rsi
testq %rsi, %rsi
je 0x2ca6b
leaq 0x10(%rsp), %rdi
callq 0x2be84
leaq 0x20(%rsp), %rdi
callq 0x148f8
callq 0xa4c0
jmp 0x2c7f1
jmp 0x2ca81
movq %rax, 0x8(%rsp)
leaq 0x20(%rsp), %rdi
callq 0x148f8
callq 0xa4c0
jmp 0x2cd06
movq %rdx, 0x18(%rsp)
movq %rax, 0x8(%rsp)
movb $0x1, %r14b
jmp 0x2ccdf
movq %rax, 0x8(%rsp)
cmpl $0x1, %edx
jne 0x2cd06
movq 0x8(%rsp), %rdi
callq 0xa380
leaq 0x20(%rsp), %rdi
movq %rax, %rsi
callq 0x14d22
movq 0x8(%rsp), %rdi
callq 0xa170
leaq 0x20(%rsp), %rdi
callq 0x20160
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 0x6a2fe(%rip), %rdx     # 0x96e28
movq %rdx, (%rax)
movq %rcx, 0x10(%rsp)
movq 0x28(%rbx), %rsi
movq %rax, 0x28(%rbx)
testq %rsi, %rsi
je 0x2cb48
leaq 0x28(%rbx), %rdi
callq 0x168f8
movq 0x10(%rsp), %rsi
testq %rsi, %rsi
je 0x2cb5c
leaq 0x10(%rsp), %rdi
callq 0x2be84
leaq 0x20(%rsp), %rdi
callq 0x148f8
callq 0xa4c0
jmp 0x2c5e4
jmp 0x2cb72
movq %rax, 0x8(%rsp)
leaq 0x20(%rsp), %rdi
callq 0x148f8
callq 0xa4c0
jmp 0x2cd06
movq %rdx, %r15
movq %rax, 0x8(%rsp)
movq 0x90(%rsp), %rdi
testq %rdi, %rdi
je 0x2cba5
callq 0xdcba
cmpl $0x1, %r15d
jne 0x2cd06
movq 0x8(%rsp), %rdi
callq 0xa380
leaq 0x20(%rsp), %rdi
movq %rax, %rsi
callq 0x14d22
movq 0x8(%rsp), %rdi
callq 0xa170
leaq 0x20(%rsp), %rdi
callq 0x20160
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 0x6a209(%rip), %rdx     # 0x96e28
movq %rdx, (%rax)
movq %rcx, 0x10(%rsp)
movq 0x28(%rbx), %rsi
movq %rax, 0x28(%rbx)
testq %rsi, %rsi
je 0x2cc3d
leaq 0x28(%rbx), %rdi
callq 0x168f8
movq 0x10(%rsp), %rsi
testq %rsi, %rsi
je 0x2cc51
leaq 0x10(%rsp), %rdi
callq 0x2be84
leaq 0x20(%rsp), %rdi
callq 0x148f8
callq 0xa4c0
jmp 0x2c583
jmp 0x2cc67
movq %rax, 0x8(%rsp)
leaq 0x20(%rsp), %rdi
callq 0x148f8
callq 0xa4c0
jmp 0x2cd06
jmp 0x2cd10
movq %rdx, %rbx
movq %rax, 0x8(%rsp)
leaq 0x30(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x2cd7e
callq 0xa2b0
jmp 0x2cd7e
movq %rdx, 0x18(%rsp)
movq %rax, 0x8(%rsp)
leaq 0x30(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
jne 0x2cce7
jmp 0x2cd1a
movq %rdx, 0x18(%rsp)
movq %rax, 0x8(%rsp)
movq 0x98(%rsp), %rdi
cmpq %r15, %rdi
je 0x2ccdf
callq 0xa2b0
testb %r14b, %r14b
je 0x2cd1a
movq %r12, %rdi
callq 0xa2b0
jmp 0x2cd1a
movq %rax, 0x8(%rsp)
leaq 0x30(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x2cd06
callq 0xa2b0
movq 0x8(%rsp), %rdi
callq 0xa510
movq %rdx, 0x18(%rsp)
movq %rax, 0x8(%rsp)
cmpl $0x1, 0x18(%rsp)
jne 0x2cd06
movq 0x8(%rsp), %rdi
callq 0xa380
leaq 0x20(%rsp), %rdi
movq %rax, %rsi
callq 0x14d22
movq 0x8(%rsp), %rdi
callq 0xa170
leaq 0x20(%rsp), %rdi
callq 0x20160
leaq 0x20(%rsp), %rdi
callq 0x148f8
callq 0xa4c0
jmp 0x2c528
movq %rax, 0x8(%rsp)
leaq 0x20(%rsp), %rdi
callq 0x148f8
callq 0xa4c0
jmp 0x2cd06
movq %rdx, %rbx
movq %rax, 0x8(%rsp)
cmpl $0x1, %ebx
jne 0x2cd06
movq 0x8(%rsp), %rdi
callq 0xa380
leaq 0x20(%rsp), %rdi
movq %rax, %rsi
callq 0x14d22
movq 0x8(%rsp), %rdi
callq 0xa170
leaq 0x20(%rsp), %rdi
callq 0x20160
leaq 0x20(%rsp), %rdi
callq 0x148f8
callq 0xa4c0
jmp 0x2c969
movq %rax, 0x8(%rsp)
leaq 0x20(%rsp), %rdi
callq 0x148f8
callq 0xa4c0
jmp 0x2cd06
movq %rax, %rdi
callq 0xdcaf
nop