// File: /workspace/github_cpp_makefile_star2_O2/menhits[P]phplus/src/AstNode.cpp
// Function: AstExpression::resolveAction()
void AstExpression::resolveAction()
{
	if (!inLeftType->isVoid() || !inRightType->isVoid())
	{
		throw PhplusError("AstExpression given non void input", INTERNAL_ERROR, getToken());
	}
	
	if (rightIn->isType())
	{
		throw PhplusError("types must be declared as constants", SOURCE_ERROR, rightIn->getToken());
	}
	else if (center->isType() || center->isFunctionWithOutput() || leftIn->isType())
	{
		throw PhplusError("a function implementation got into an expression node somehow", INTERNAL_ERROR, center->getToken());
	}
	else
	{
		leftIn->setInput(ns, dynamic, Void, Void);
		rightIn->setInput(ns, dynamic, Void, Void);
		
		center->setInput(ns, dynamic, leftIn->getReturnType(), rightIn->getReturnType());
		
		//error.log("left: " + leftIn->getString(), JSYK);
		//error.log("center: " + center->getString(), JSYK);
		//error.log("right: " + rightIn->getString(), JSYK);
		//error.log("", JSYK);
		
		action=branchAction(leftIn->getAction(), center->getAction(), rightIn->getAction());
	}
	
	if (action->nameHint.empty())
		action->nameHint=nameHint;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x168, %rsp            # imm = 0x168
movq %rdi, %rbx
movq 0x28(%rdi), %rdi
movq (%rdi), %rax
callq *0x28(%rax)
testb %al, %al
je 0xe637
movq 0x38(%rbx), %rdi
movq (%rdi), %rax
callq *0x28(%rax)
testb %al, %al
je 0xe637
movq 0x98(%rbx), %rdi
movq (%rdi), %rax
callq *0x8(%rax)
testb %al, %al
jne 0xe6a4
movq 0x90(%rbx), %rdi
movq (%rdi), %rax
callq *0x8(%rax)
testb %al, %al
jne 0xe5c3
movq 0x90(%rbx), %rdi
movq (%rdi), %rax
callq *0x10(%rax)
testb %al, %al
jne 0xe5c3
movq 0x88(%rbx), %rdi
movq (%rdi), %rax
callq *0x8(%rax)
testb %al, %al
jne 0xe5c3
movq 0x88(%rbx), %r15
leaq 0x70(%rbx), %rsi
leaq 0x88(%rsp), %rdi
movq %rsi, (%rsp)
callq 0x12bf6
movzbl 0x68(%rbx), %ebp
leaq 0x6c027(%rip), %r13     # 0x7a3e0
leaq 0xc8(%rsp), %r12
movq %r12, %rdi
movq %r13, %rsi
callq 0x12c0a
leaq 0xb8(%rsp), %r14
movq %r14, %rdi
movq %r13, %rsi
callq 0x12c0a
movq %r15, %rdi
leaq 0x88(%rsp), %rsi
movl %ebp, %edx
movq %r12, %rcx
movq %r14, %r8
callq 0x116a8
leaq 0xc0(%rsp), %rdi
callq 0xc984
leaq 0xd0(%rsp), %rdi
callq 0xc984
leaq 0x90(%rsp), %rdi
callq 0xc984
movq 0x98(%rbx), %r14
leaq 0x78(%rsp), %rdi
movq (%rsp), %rsi
callq 0x12bf6
movzbl 0x68(%rbx), %ebp
leaq 0x6bfa2(%rip), %r12     # 0x7a3e0
leaq 0xa8(%rsp), %r13
movq %r13, %rdi
movq %r12, %rsi
callq 0x12c0a
leaq 0x98(%rsp), %r15
movq %r15, %rdi
movq %r12, %rsi
callq 0x12c0a
movq %r14, %rdi
leaq 0x78(%rsp), %rsi
movl %ebp, %edx
movq %r13, %rcx
movq %r15, %r8
callq 0x116a8
leaq 0xa0(%rsp), %rdi
callq 0xc984
leaq 0xb0(%rsp), %rdi
callq 0xc984
leaq 0x80(%rsp), %rdi
callq 0xc984
movq 0x90(%rbx), %r15
leaq 0x68(%rsp), %rdi
movq (%rsp), %rsi
callq 0x12bf6
movb 0x68(%rbx), %bpl
movq 0x88(%rbx), %rsi
leaq 0x58(%rsp), %rdi
callq 0x11a44
movq 0x98(%rbx), %rsi
leaq 0x48(%rsp), %rdi
callq 0x11a44
movzbl %bpl, %edx
leaq 0x68(%rsp), %rsi
leaq 0x58(%rsp), %rcx
leaq 0x48(%rsp), %r8
movq %r15, %rdi
callq 0x116a8
leaq 0x50(%rsp), %rdi
callq 0xc984
leaq 0x60(%rsp), %rdi
callq 0xc984
leaq 0x70(%rsp), %rdi
callq 0xc984
movq 0x88(%rbx), %rsi
leaq 0x38(%rsp), %rdi
callq 0x1189c
movq 0x90(%rbx), %rsi
leaq 0x28(%rsp), %rdi
callq 0x1189c
movq 0x98(%rbx), %rsi
leaq 0x18(%rsp), %rdi
callq 0x1189c
leaq 0x8(%rsp), %rdi
leaq 0x38(%rsp), %rsi
leaq 0x28(%rsp), %rdx
leaq 0x18(%rsp), %rcx
callq 0x4658c
leaq 0x48(%rbx), %rdi
leaq 0x8(%rsp), %rsi
callq 0x13816
leaq 0x10(%rsp), %rdi
callq 0xc984
leaq 0x20(%rsp), %rdi
callq 0xc984
leaq 0x30(%rsp), %rdi
callq 0xc984
leaq 0x40(%rsp), %rdi
callq 0xc984
movq 0x48(%rbx), %rdi
cmpq $0x0, 0x10(%rdi)
jne 0xe5b1
addq $0x8, %rdi
addq $0x8, %rbx
movq %rbx, %rsi
callq 0xa1d0
addq $0x168, %rsp            # imm = 0x168
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
pushq $0x38
popq %rdi
callq 0xa1b0
movq %rax, %r14
leaq 0x45c68(%rip), %rsi     # 0x5423d
leaq 0x108(%rsp), %rdi
leaq 0x8(%rsp), %rdx
callq 0xa150
movq 0x90(%rbx), %rsi
movq (%rsi), %rax
leaq 0xd8(%rsp), %rdi
callq *0x38(%rax)
movb $0x1, %bpl
leaq 0x108(%rsp), %rsi
pushq $0x3
popq %rdx
leaq 0xd8(%rsp), %rcx
movq %r14, %rdi
callq 0x19f06
xorl %ebp, %ebp
leaq 0x68f75(%rip), %rsi     # 0x77598
leaq 0x3068(%rip), %rdx      # 0x11692
movq %r14, %rdi
callq 0xa4e0
jmp 0xe712
pushq $0x38
popq %rdi
callq 0xa1b0
movq %rax, %r14
leaq 0x45bad(%rip), %rsi     # 0x541f6
leaq 0x148(%rsp), %rdi
leaq 0x8(%rsp), %rdx
callq 0xa150
movq (%rbx), %rax
leaq 0xf8(%rsp), %rdi
movq %rbx, %rsi
callq *0x38(%rax)
movb $0x1, %bpl
leaq 0x148(%rsp), %rsi
pushq $0x3
popq %rdx
leaq 0xf8(%rsp), %rcx
movq %r14, %rdi
callq 0x19f06
xorl %ebp, %ebp
leaq 0x68f05(%rip), %rsi     # 0x77598
leaq 0x2ff8(%rip), %rdx      # 0x11692
movq %r14, %rdi
callq 0xa4e0
jmp 0xe712
pushq $0x38
popq %rdi
callq 0xa1b0
movq %rax, %r14
leaq 0x45b63(%rip), %rsi     # 0x54219
leaq 0x128(%rsp), %rdi
leaq 0x8(%rsp), %rdx
callq 0xa150
movq 0x98(%rbx), %rsi
movq (%rsi), %rax
leaq 0xe8(%rsp), %rdi
callq *0x38(%rax)
movb $0x1, %bpl
leaq 0x128(%rsp), %rsi
leaq 0xe8(%rsp), %rcx
movq %r14, %rdi
xorl %edx, %edx
callq 0x19f06
xorl %ebp, %ebp
leaq 0x68e95(%rip), %rsi     # 0x77598
leaq 0x2f88(%rip), %rdx      # 0x11692
movq %r14, %rdi
callq 0xa4e0
movq %rax, %rbx
leaq 0xf0(%rsp), %rdi
callq 0xc984
jmp 0xe72a
movq %rax, %rbx
movb $0x1, %bpl
leaq 0x128(%rsp), %rdi
jmp 0xe77b
jmp 0xe833
movq %rax, %rbx
leaq 0x100(%rsp), %rdi
callq 0xc984
jmp 0xe751
movq %rax, %rbx
movb $0x1, %bpl
leaq 0x148(%rsp), %rdi
jmp 0xe77b
movq %rax, %rbx
leaq 0xe0(%rsp), %rdi
callq 0xc984
jmp 0xe773
movq %rax, %rbx
movb $0x1, %bpl
leaq 0x108(%rsp), %rdi
callq 0xa558
testb %bpl, %bpl
jne 0xe836
jmp 0xe83e
movq %rax, %rbx
leaq 0x20(%rsp), %rdi
callq 0xc984
jmp 0xe7a0
movq %rax, %rbx
leaq 0x30(%rsp), %rdi
callq 0xc984
jmp 0xe7af
movq %rax, %rbx
leaq 0x40(%rsp), %rdi
jmp 0xe82a
movq %rax, %rbx
leaq 0x50(%rsp), %rdi
callq 0xc984
jmp 0xe7c8
movq %rax, %rbx
leaq 0x60(%rsp), %rdi
callq 0xc984
jmp 0xe7d7
movq %rax, %rbx
leaq 0x70(%rsp), %rdi
jmp 0xe82a
movq %rax, %rbx
leaq 0xa0(%rsp), %rdi
callq 0xc984
leaq 0xb0(%rsp), %rdi
callq 0xc984
leaq 0x80(%rsp), %rdi
jmp 0xe82a
movq %rax, %rbx
leaq 0xc0(%rsp), %rdi
callq 0xc984
leaq 0xd0(%rsp), %rdi
callq 0xc984
leaq 0x90(%rsp), %rdi
callq 0xc984
jmp 0xe83e
jmp 0xe833
movq %rax, %rbx
movq %r14, %rdi
callq 0xa230
movq %rbx, %rdi
callq 0xa500