// File: /workspace/github_cpp_makefile_star2_O1/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 0x10188
movq 0x38(%rbx), %rdi
movq (%rdi), %rax
callq *0x28(%rax)
testb %al, %al
je 0x10188
movq 0x98(%rbx), %rdi
movq (%rdi), %rax
callq *0x8(%rax)
testb %al, %al
jne 0x10207
movq 0x90(%rbx), %rdi
movq (%rdi), %rax
callq *0x8(%rax)
testb %al, %al
jne 0x10102
movq 0x90(%rbx), %rdi
movq (%rdi), %rax
callq *0x10(%rax)
testb %al, %al
jne 0x10102
movq 0x88(%rbx), %rdi
movq (%rdi), %rax
callq *0x8(%rax)
testb %al, %al
jne 0x10102
movq 0x70(%rbx), %rax
movq 0x88(%rbx), %rdi
movq %rax, 0x60(%rsp)
movq 0x78(%rbx), %rax
movq %rax, 0x68(%rsp)
testq %rax, %rax
je 0xfdf3
movq 0x891c3(%rip), %rcx     # 0x98fa8
cmpb $0x0, (%rcx)
je 0xfdef
incl 0x8(%rax)
jmp 0xfdf3
lock
incl 0x8(%rax)
movb 0x68(%rbx), %al
leaq 0x89603(%rip), %r14     # 0x99400
movq (%r14), %rdx
movq 0x8(%r14), %rcx
movq %rdx, 0x50(%rsp)
movq %rcx, 0x58(%rsp)
testq %rcx, %rcx
je 0xfe28
movq 0x8918e(%rip), %rdx     # 0x98fa8
cmpb $0x0, (%rdx)
je 0xfe24
incl 0x8(%rcx)
jmp 0xfe28
lock
incl 0x8(%rcx)
movq (%r14), %rdx
movq 0x8(%r14), %rcx
movq %rdx, 0x40(%rsp)
movq %rcx, 0x48(%rsp)
testq %rcx, %rcx
je 0xfe53
movq 0x89163(%rip), %rdx     # 0x98fa8
cmpb $0x0, (%rdx)
je 0xfe4f
incl 0x8(%rcx)
jmp 0xfe53
lock
incl 0x8(%rcx)
movzbl %al, %edx
leaq 0x60(%rsp), %rsi
leaq 0x50(%rsp), %rcx
leaq 0x40(%rsp), %r8
callq 0x1491e
movq 0x48(%rsp), %rdi
testq %rdi, %rdi
je 0xfe79
callq 0xdcba
movq 0x58(%rsp), %rdi
testq %rdi, %rdi
je 0xfe88
callq 0xdcba
movq 0x68(%rsp), %rdi
testq %rdi, %rdi
je 0xfe97
callq 0xdcba
movq 0x70(%rbx), %rax
movq 0x98(%rbx), %rdi
movq %rax, 0x30(%rsp)
movq 0x78(%rbx), %rax
movq %rax, 0x38(%rsp)
testq %rax, %rax
je 0xfeca
movq 0x890ec(%rip), %rcx     # 0x98fa8
cmpb $0x0, (%rcx)
je 0xfec6
incl 0x8(%rax)
jmp 0xfeca
lock
incl 0x8(%rax)
movb 0x68(%rbx), %al
movq (%r14), %rdx
movq 0x8(%r14), %rcx
movq %rdx, 0x20(%rsp)
movq %rcx, 0x28(%rsp)
testq %rcx, %rcx
je 0xfef8
movq 0x890be(%rip), %rdx     # 0x98fa8
cmpb $0x0, (%rdx)
je 0xfef4
incl 0x8(%rcx)
jmp 0xfef8
lock
incl 0x8(%rcx)
movq (%r14), %rdx
movq 0x8(%r14), %rcx
movq %rdx, 0x10(%rsp)
movq %rcx, 0x18(%rsp)
testq %rcx, %rcx
je 0xff23
movq 0x89093(%rip), %rdx     # 0x98fa8
cmpb $0x0, (%rdx)
je 0xff1f
incl 0x8(%rcx)
jmp 0xff23
lock
incl 0x8(%rcx)
movzbl %al, %edx
leaq 0x30(%rsp), %rsi
leaq 0x20(%rsp), %rcx
leaq 0x10(%rsp), %r8
callq 0x1491e
movq 0x18(%rsp), %rdi
testq %rdi, %rdi
je 0xff49
callq 0xdcba
movq 0x28(%rsp), %rdi
testq %rdi, %rdi
je 0xff58
callq 0xdcba
movq 0x38(%rsp), %rdi
testq %rdi, %rdi
je 0xff67
callq 0xdcba
movq 0x70(%rbx), %rax
movq 0x90(%rbx), %r14
movq %rax, (%rsp)
movq 0x78(%rbx), %rax
movq %rax, 0x8(%rsp)
testq %rax, %rax
je 0xff99
movq 0x8901d(%rip), %rcx     # 0x98fa8
cmpb $0x0, (%rcx)
je 0xff95
incl 0x8(%rax)
jmp 0xff99
lock
incl 0x8(%rax)
movb 0x68(%rbx), %bpl
movq 0x88(%rbx), %rsi
leaq 0xc8(%rsp), %rdi
callq 0x14dfe
movq 0x98(%rbx), %rsi
leaq 0xb8(%rsp), %rdi
callq 0x14dfe
movzbl %bpl, %edx
movq %rsp, %rsi
leaq 0xc8(%rsp), %rcx
leaq 0xb8(%rsp), %r8
movq %r14, %rdi
callq 0x1491e
movq 0xc0(%rsp), %rdi
testq %rdi, %rdi
je 0xfff6
callq 0xdcba
movq 0xd0(%rsp), %rdi
testq %rdi, %rdi
je 0x10008
callq 0xdcba
movq 0x8(%rsp), %rdi
testq %rdi, %rdi
je 0x10017
callq 0xdcba
movq 0x88(%rbx), %rsi
leaq 0xa8(%rsp), %rdi
callq 0x14bb8
movq 0x90(%rbx), %rsi
leaq 0x98(%rsp), %rdi
callq 0x14bb8
movq 0x98(%rbx), %rsi
leaq 0x88(%rsp), %rdi
callq 0x14bb8
leaq 0x70(%rsp), %rdi
leaq 0xa8(%rsp), %rsi
leaq 0x98(%rsp), %rdx
leaq 0x88(%rsp), %rcx
callq 0x612e8
movaps 0x70(%rsp), %xmm0
xorps %xmm1, %xmm1
movaps %xmm1, 0x70(%rsp)
movq 0x50(%rbx), %rdi
movups %xmm0, 0x48(%rbx)
testq %rdi, %rdi
je 0x10094
callq 0xdcba
movq 0x78(%rsp), %rdi
testq %rdi, %rdi
je 0x100a3
callq 0xdcba
movq 0x90(%rsp), %rdi
testq %rdi, %rdi
je 0x100b5
callq 0xdcba
movq 0xa0(%rsp), %rdi
testq %rdi, %rdi
je 0x100c7
callq 0xdcba
movq 0xb0(%rsp), %rdi
testq %rdi, %rdi
je 0x100d9
callq 0xdcba
movq 0x48(%rbx), %rdi
cmpq $0x0, 0x10(%rdi)
jne 0x100f4
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 0x66143(%rip), %rsi     # 0x76265
leaq 0x66179(%rip), %rdx     # 0x762a2
leaq 0x108(%rsp), %rdi
callq 0xdf6a
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 0x200e4
xorl %ebp, %ebp
leaq 0x864c4(%rip), %rsi     # 0x96638
leaq 0x477d(%rip), %rdx      # 0x148f8
movq %r14, %rdi
callq 0xa4f0
jmp 0x10285
movl $0x38, %edi
callq 0xa1b0
movq %rax, %r14
leaq 0x158(%rsp), %r15
movq %r15, -0x10(%r15)
leaq 0x66076(%rip), %rsi     # 0x7621e
leaq 0x66091(%rip), %rdx     # 0x76240
leaq 0x148(%rsp), %rdi
callq 0xdf6a
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 0x200e4
xorl %ebp, %ebp
leaq 0x86442(%rip), %rsi     # 0x96638
leaq 0x46fb(%rip), %rdx      # 0x148f8
movq %r14, %rdi
callq 0xa4f0
jmp 0x10285
movl $0x38, %edi
callq 0xa1b0
movq %rax, %r14
leaq 0x138(%rsp), %r15
movq %r15, -0x10(%r15)
leaq 0x6601a(%rip), %rsi     # 0x76241
leaq 0x66036(%rip), %rdx     # 0x76264
leaq 0x128(%rsp), %rdi
callq 0xdf6a
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 0x200e4
xorl %ebp, %ebp
leaq 0x863c2(%rip), %rsi     # 0x96638
leaq 0x467b(%rip), %rdx      # 0x148f8
movq %r14, %rdi
callq 0xa4f0
movq %rax, %rbx
movq 0xf0(%rsp), %rdi
testq %rdi, %rdi
je 0x102a2
callq 0xdcba
jmp 0x102a2
movq %rax, %rbx
movb $0x1, %bpl
movq 0x128(%rsp), %rdi
jmp 0x102fd
jmp 0x103e2
movq %rax, %rbx
movq 0x100(%rsp), %rdi
testq %rdi, %rdi
je 0x102ce
callq 0xdcba
jmp 0x102ce
movq %rax, %rbx
movb $0x1, %bpl
movq 0x148(%rsp), %rdi
jmp 0x102fd
movq %rax, %rbx
movq 0xe0(%rsp), %rdi
testq %rdi, %rdi
je 0x102f5
callq 0xdcba
jmp 0x102f5
movq %rax, %rbx
movb $0x1, %bpl
movq 0x108(%rsp), %rdi
cmpq %r15, %rdi
je 0x103e8
callq 0xa2b0
jmp 0x103e8
movq %rax, %rbx
movq 0x90(%rsp), %rdi
testq %rdi, %rdi
je 0x1032a
callq 0xdcba
jmp 0x1032a
movq %rax, %rbx
movq 0xa0(%rsp), %rdi
testq %rdi, %rdi
je 0x10341
callq 0xdcba
jmp 0x10341
movq %rax, %rbx
movq 0xb0(%rsp), %rdi
jmp 0x103d4
movq %rax, %rbx
movq 0xc0(%rsp), %rdi
testq %rdi, %rdi
je 0x10368
callq 0xdcba
jmp 0x10368
movq %rax, %rbx
movq 0xd0(%rsp), %rdi
testq %rdi, %rdi
je 0x1037f
callq 0xdcba
jmp 0x1037f
movq %rax, %rbx
movq 0x8(%rsp), %rdi
jmp 0x103d4
movq %rax, %rbx
movq 0x18(%rsp), %rdi
testq %rdi, %rdi
je 0x10398
callq 0xdcba
movq 0x28(%rsp), %rdi
testq %rdi, %rdi
je 0x103a7
callq 0xdcba
movq 0x38(%rsp), %rdi
jmp 0x103d4
movq %rax, %rbx
movq 0x48(%rsp), %rdi
testq %rdi, %rdi
je 0x103c0
callq 0xdcba
movq 0x58(%rsp), %rdi
testq %rdi, %rdi
je 0x103cf
callq 0xdcba
movq 0x68(%rsp), %rdi
testq %rdi, %rdi
je 0x103f5
callq 0xdcba
jmp 0x103f5
jmp 0x103e2
movq %rax, %rbx
movb $0x1, %bpl
testb %bpl, %bpl
je 0x103f5
movq %r14, %rdi
callq 0xa240
movq %rbx, %rdi
callq 0xa510
nop