// File: /workspace/github_cpp_makefile_star2_O3/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 %rbx
subq $0x168, %rsp            # imm = 0x168
movq %rdi, %rbx
movq 0x28(%rdi), %rdi
movq (%rdi), %rax
callq *0x28(%rax)
testb %al, %al
je 0x10224
movq 0x38(%rbx), %rdi
movq (%rdi), %rax
callq *0x28(%rax)
testb %al, %al
je 0x10224
movq 0x98(%rbx), %rdi
movq (%rdi), %rax
callq *0x8(%rax)
testb %al, %al
jne 0x102a3
movq 0x90(%rbx), %rdi
movq (%rdi), %rax
callq *0x8(%rax)
testb %al, %al
jne 0x1019e
movq 0x90(%rbx), %rdi
movq (%rdi), %rax
callq *0x10(%rax)
testb %al, %al
jne 0x1019e
movq 0x88(%rbx), %rdi
movq (%rdi), %rax
callq *0x8(%rax)
testb %al, %al
jne 0x1019e
movq 0x70(%rbx), %rax
movq 0x88(%rbx), %rdi
movq %rax, 0x60(%rsp)
movq 0x78(%rbx), %rax
movq %rax, 0x68(%rsp)
testq %rax, %rax
je 0xfe6b
movq 0x8a14b(%rip), %rcx     # 0x99fa8
cmpb $0x0, (%rcx)
je 0xfe67
incl 0x8(%rax)
jmp 0xfe6b
lock
incl 0x8(%rax)
movb 0x68(%rbx), %al
leaq 0x8a58b(%rip), %r14     # 0x9a400
movq (%r14), %rsi
movq 0x8(%r14), %rcx
movq %rsi, 0x50(%rsp)
movq %rcx, 0x58(%rsp)
testq %rcx, %rcx
je 0xfea6
movq 0x8a116(%rip), %rdx     # 0x99fa8
cmpb $0x0, (%rdx)
je 0xfeb6
incl 0x8(%rcx)
movq %rsi, 0x10(%rsp)
movq %rcx, 0x18(%rsp)
jmp 0xfed0
movq %rsi, 0x10(%rsp)
movq $0x0, 0x18(%rsp)
jmp 0xfede
lock
incl 0x8(%rcx)
movq (%r14), %rsi
movq 0x8(%r14), %rcx
movq %rsi, 0x10(%rsp)
movq %rcx, 0x18(%rsp)
testq %rcx, %rcx
je 0xfede
cmpb $0x0, (%rdx)
je 0xfeda
incl 0x8(%rcx)
jmp 0xfede
lock
incl 0x8(%rcx)
movzbl %al, %edx
leaq 0x60(%rsp), %rsi
leaq 0x50(%rsp), %rcx
leaq 0x10(%rsp), %r8
callq 0x14b4c
movq 0x18(%rsp), %rdi
testq %rdi, %rdi
je 0xff04
callq 0xdce4
movq 0x58(%rsp), %rdi
testq %rdi, %rdi
je 0xff13
callq 0xdce4
movq 0x68(%rsp), %rdi
testq %rdi, %rdi
je 0xff22
callq 0xdce4
movq 0x70(%rbx), %rax
movq 0x98(%rbx), %rdi
movq %rax, 0x40(%rsp)
movq 0x78(%rbx), %rax
movq %rax, 0x48(%rsp)
testq %rax, %rax
je 0xff55
movq 0x8a061(%rip), %rcx     # 0x99fa8
cmpb $0x0, (%rcx)
je 0xff51
incl 0x8(%rax)
jmp 0xff55
lock
incl 0x8(%rax)
movb 0x68(%rbx), %al
movq (%r14), %rsi
movq 0x8(%r14), %rcx
movq %rsi, 0x30(%rsp)
movq %rcx, 0x38(%rsp)
testq %rcx, %rcx
je 0xff88
movq 0x8a033(%rip), %rdx     # 0x99fa8
cmpb $0x0, (%rdx)
je 0xff97
incl 0x8(%rcx)
movq %rsi, (%rsp)
movq %rcx, 0x8(%rsp)
jmp 0xffb0
movq %rsi, (%rsp)
movq $0x0, 0x8(%rsp)
jmp 0xffbe
lock
incl 0x8(%rcx)
movq (%r14), %rsi
movq 0x8(%r14), %rcx
movq %rsi, (%rsp)
movq %rcx, 0x8(%rsp)
testq %rcx, %rcx
je 0xffbe
cmpb $0x0, (%rdx)
je 0xffba
incl 0x8(%rcx)
jmp 0xffbe
lock
incl 0x8(%rcx)
movzbl %al, %edx
leaq 0x40(%rsp), %rsi
leaq 0x30(%rsp), %rcx
movq %rsp, %r8
callq 0x14b4c
movq 0x8(%rsp), %rdi
testq %rdi, %rdi
je 0xffe2
callq 0xdce4
movq 0x38(%rsp), %rdi
testq %rdi, %rdi
je 0xfff1
callq 0xdce4
movq 0x48(%rsp), %rdi
testq %rdi, %rdi
je 0x10000
callq 0xdce4
movq 0x70(%rbx), %rax
movq 0x90(%rbx), %r14
movq %rax, 0x20(%rsp)
movq 0x78(%rbx), %rax
movq %rax, 0x28(%rsp)
testq %rax, %rax
je 0x10033
movq 0x89f83(%rip), %rcx     # 0x99fa8
cmpb $0x0, (%rcx)
je 0x1002f
incl 0x8(%rax)
jmp 0x10033
lock
incl 0x8(%rax)
movb 0x68(%rbx), %bpl
movq 0x88(%rbx), %rsi
leaq 0xc8(%rsp), %rdi
callq 0x15058
movq 0x98(%rbx), %rsi
leaq 0xb8(%rsp), %rdi
callq 0x15058
movzbl %bpl, %edx
leaq 0x20(%rsp), %rsi
leaq 0xc8(%rsp), %rcx
leaq 0xb8(%rsp), %r8
movq %r14, %rdi
callq 0x14b4c
movq 0xc0(%rsp), %rdi
testq %rdi, %rdi
je 0x10092
callq 0xdce4
movq 0xd0(%rsp), %rdi
testq %rdi, %rdi
je 0x100a4
callq 0xdce4
movq 0x28(%rsp), %rdi
testq %rdi, %rdi
je 0x100b3
callq 0xdce4
movq 0x88(%rbx), %rsi
leaq 0xa8(%rsp), %rdi
callq 0x14dfa
movq 0x90(%rbx), %rsi
leaq 0x98(%rsp), %rdi
callq 0x14dfa
movq 0x98(%rbx), %rsi
leaq 0x88(%rsp), %rdi
callq 0x14dfa
leaq 0x70(%rsp), %rdi
leaq 0xa8(%rsp), %rsi
leaq 0x98(%rsp), %rdx
leaq 0x88(%rsp), %rcx
callq 0x62094
movaps 0x70(%rsp), %xmm0
xorps %xmm1, %xmm1
movaps %xmm1, 0x70(%rsp)
movq 0x50(%rbx), %rdi
movups %xmm0, 0x48(%rbx)
testq %rdi, %rdi
je 0x1013f
callq 0xdce4
movq 0x78(%rsp), %rdi
testq %rdi, %rdi
je 0x1013f
callq 0xdce4
movq 0x90(%rsp), %rdi
testq %rdi, %rdi
je 0x10151
callq 0xdce4
movq 0xa0(%rsp), %rdi
testq %rdi, %rdi
je 0x10163
callq 0xdce4
movq 0xb0(%rsp), %rdi
testq %rdi, %rdi
je 0x10175
callq 0xdce4
movq 0x48(%rbx), %rdi
cmpq $0x0, 0x10(%rdi)
jne 0x10190
addq $0x8, %rdi
addq $0x8, %rbx
movq %rbx, %rsi
callq 0xa1d0
addq $0x168, %rsp            # imm = 0x168
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
movl $0x38, %edi
callq 0xa1b0
movq %rax, %r14
leaq 0x118(%rsp), %r15
movq %r15, -0x10(%r15)
leaq 0x670a7(%rip), %rsi     # 0x77265
leaq 0x670dd(%rip), %rdx     # 0x772a2
leaq 0x108(%rsp), %rdi
callq 0xdfa8
movq 0x90(%rbx), %rsi
movq (%rsi), %rax
leaq 0xd8(%rsp), %rdi
callq *0x38(%rax)
movb $0x1, %bpl
leaq 0x108(%rsp), %rsi
leaq 0xd8(%rsp), %rcx
movq %r14, %rdi
movl $0x3, %edx
callq 0x203f4
xorl %ebp, %ebp
leaq 0x87428(%rip), %rsi     # 0x97638
leaq 0x490f(%rip), %rdx      # 0x14b26
movq %r14, %rdi
callq 0xa4f0
jmp 0x10321
movl $0x38, %edi
callq 0xa1b0
movq %rax, %r14
leaq 0x158(%rsp), %r15
movq %r15, -0x10(%r15)
leaq 0x66fda(%rip), %rsi     # 0x7721e
leaq 0x66ff5(%rip), %rdx     # 0x77240
leaq 0x148(%rsp), %rdi
callq 0xdfa8
movq (%rbx), %rax
leaq 0xf8(%rsp), %rdi
movq %rbx, %rsi
callq *0x38(%rax)
movb $0x1, %bpl
leaq 0x148(%rsp), %rsi
leaq 0xf8(%rsp), %rcx
movq %r14, %rdi
movl $0x3, %edx
callq 0x203f4
xorl %ebp, %ebp
leaq 0x873a6(%rip), %rsi     # 0x97638
leaq 0x488d(%rip), %rdx      # 0x14b26
movq %r14, %rdi
callq 0xa4f0
jmp 0x10321
movl $0x38, %edi
callq 0xa1b0
movq %rax, %r14
leaq 0x138(%rsp), %r15
movq %r15, -0x10(%r15)
leaq 0x66f7e(%rip), %rsi     # 0x77241
leaq 0x66f9a(%rip), %rdx     # 0x77264
leaq 0x128(%rsp), %rdi
callq 0xdfa8
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 0x203f4
xorl %ebp, %ebp
leaq 0x87326(%rip), %rsi     # 0x97638
leaq 0x480d(%rip), %rdx      # 0x14b26
movq %r14, %rdi
callq 0xa4f0
movq %rax, %rbx
movq 0xf0(%rsp), %rdi
testq %rdi, %rdi
je 0x10336
callq 0xdce4
movq 0x128(%rsp), %rdi
jmp 0x1039b
movq %rax, %rbx
movq 0x128(%rsp), %rdi
jmp 0x103be
jmp 0x104a3
movq %rax, %rbx
movq 0x100(%rsp), %rdi
testq %rdi, %rdi
je 0x10367
callq 0xdce4
movq 0x148(%rsp), %rdi
jmp 0x1039b
movq %rax, %rbx
movq 0x148(%rsp), %rdi
jmp 0x103be
movq %rax, %rbx
movq 0xe0(%rsp), %rdi
testq %rdi, %rdi
je 0x10393
callq 0xdce4
movq 0x108(%rsp), %rdi
cmpq %r15, %rdi
je 0x103a5
callq 0xa2b0
testb %bpl, %bpl
jne 0x104a6
jmp 0x104ae
movq %rax, %rbx
movq 0x108(%rsp), %rdi
cmpq %r15, %rdi
je 0x104a6
callq 0xa2b0
jmp 0x104a6
movq %rax, %rbx
movq 0x90(%rsp), %rdi
testq %rdi, %rdi
je 0x103eb
callq 0xdce4
jmp 0x103eb
movq %rax, %rbx
movq 0xa0(%rsp), %rdi
testq %rdi, %rdi
je 0x10402
callq 0xdce4
jmp 0x10402
movq %rax, %rbx
movq 0xb0(%rsp), %rdi
jmp 0x10495
movq %rax, %rbx
movq 0xc0(%rsp), %rdi
testq %rdi, %rdi
je 0x10429
callq 0xdce4
jmp 0x10429
movq %rax, %rbx
movq 0xd0(%rsp), %rdi
testq %rdi, %rdi
je 0x10440
callq 0xdce4
jmp 0x10440
movq %rax, %rbx
movq 0x28(%rsp), %rdi
jmp 0x10495
movq %rax, %rbx
movq 0x8(%rsp), %rdi
testq %rdi, %rdi
je 0x10459
callq 0xdce4
movq 0x38(%rsp), %rdi
testq %rdi, %rdi
je 0x10468
callq 0xdce4
movq 0x48(%rsp), %rdi
jmp 0x10495
movq %rax, %rbx
movq 0x18(%rsp), %rdi
testq %rdi, %rdi
je 0x10481
callq 0xdce4
movq 0x58(%rsp), %rdi
testq %rdi, %rdi
je 0x10490
callq 0xdce4
movq 0x68(%rsp), %rdi
testq %rdi, %rdi
je 0x104ae
callq 0xdce4
jmp 0x104ae
jmp 0x104a3
movq %rax, %rbx
movq %r14, %rdi
callq 0xa240
movq %rbx, %rdi
callq 0xa510