// File: /workspace/github_cpp_makefile_star2_O3/menhits[P]phplus/src/AstNode.cpp
// Function: AstConstExpression::resolveConstant()
void AstConstExpression::resolveConstant()
{
	if (!inLeftType->isVoid() || !inRightType->isVoid())
	{
		throw PhplusError("AstConstExpression given non void input", INTERNAL_ERROR, getToken());
	}
	
	//leftIn->setInput(ns, Void, Void);
	rightIn->setInput(ns, false, Void, Void);
	
	//error.log("resolveAction called for "+getString(), JSYK);
	
	ns->addNode(move(rightIn->makeCopy(true)), center->token->getText());
	
	/*
	Action rightAction=rightIn->getAction();
	
	void * val=rightAction->execute(nullptr, nullptr);
	
	//center->setInput(ns, false, Void, rightIn->getReturnType());
	
	Action valAction=constGetAction(val, rightAction->getReturnType(), "const expression");
	
	ns->addAction(valAction, center->token->getText());*/
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x98, %rsp
movq %rdi, %rbx
movq 0x28(%rdi), %rdi
movq (%rdi), %rax
callq *0x28(%rax)
testb %al, %al
je 0x1085a
movq 0x38(%rbx), %rdi
movq (%rdi), %rax
callq *0x28(%rax)
testb %al, %al
je 0x1085a
movq 0x70(%rbx), %rax
movq 0x90(%rbx), %rdi
movq %rax, 0x38(%rsp)
movq 0x78(%rbx), %rax
movq %rax, 0x40(%rsp)
testq %rax, %rax
je 0x106ef
movq 0x898c7(%rip), %rcx     # 0x99fa8
cmpb $0x0, (%rcx)
je 0x106eb
incl 0x8(%rax)
jmp 0x106ef
lock
incl 0x8(%rax)
leaq 0x89d0a(%rip), %rdx     # 0x9a400
movq (%rdx), %rsi
movq 0x8(%rdx), %rax
movq %rsi, 0x28(%rsp)
movq %rax, 0x30(%rsp)
testq %rax, %rax
je 0x10727
movq 0x89895(%rip), %rcx     # 0x99fa8
cmpb $0x0, (%rcx)
je 0x10737
incl 0x8(%rax)
movq %rsi, 0x18(%rsp)
movq %rax, 0x20(%rsp)
jmp 0x10751
movq %rsi, 0x18(%rsp)
movq $0x0, 0x20(%rsp)
jmp 0x1075f
lock
incl 0x8(%rax)
movq (%rdx), %rsi
movq 0x8(%rdx), %rax
movq %rsi, 0x18(%rsp)
movq %rax, 0x20(%rsp)
testq %rax, %rax
je 0x1075f
cmpb $0x0, (%rcx)
je 0x1075b
incl 0x8(%rax)
jmp 0x1075f
lock
incl 0x8(%rax)
leaq 0x38(%rsp), %rsi
leaq 0x28(%rsp), %rcx
leaq 0x18(%rsp), %r8
xorl %edx, %edx
callq 0x14b4c
movq 0x20(%rsp), %rdi
testq %rdi, %rdi
je 0x10784
callq 0xdce4
movq 0x30(%rsp), %rdi
testq %rdi, %rdi
je 0x10793
callq 0xdce4
movq 0x40(%rsp), %rdi
testq %rdi, %rdi
je 0x107a2
callq 0xdce4
movq 0x70(%rbx), %r14
movq 0x90(%rbx), %rsi
movq (%rsi), %rax
leaq 0x10(%rsp), %r15
movq %r15, %rdi
movl $0x1, %edx
callq *0x20(%rax)
movq (%r15), %rax
movq %rax, 0x8(%rsp)
movq $0x0, (%r15)
movq 0x88(%rbx), %rax
movq 0x88(%rax), %rax
leaq 0x68(%rsp), %r15
movq %r15, -0x10(%r15)
movq (%rax), %rsi
movq 0x8(%rax), %rdx
addq %rsi, %rdx
leaq 0x58(%rsp), %rdi
callq 0xde0c
leaq 0x8(%rsp), %rsi
leaq 0x58(%rsp), %rdx
movq %r14, %rdi
callq 0x231bc
movq 0x58(%rsp), %rdi
cmpq %r15, %rdi
je 0x1081b
callq 0xa2b0
movq 0x8(%rsp), %rsi
testq %rsi, %rsi
je 0x1082f
leaq 0x8(%rsp), %rdi
callq 0x16b80
movq $0x0, 0x8(%rsp)
movq 0x10(%rsp), %rsi
testq %rsi, %rsi
je 0x1084c
leaq 0x10(%rsp), %rdi
callq 0x16b80
addq $0x98, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
movl $0x38, %edi
callq 0xa1b0
movq %rax, %r14
leaq 0x88(%rsp), %r15
movq %r15, -0x10(%r15)
leaq 0x66a2f(%rip), %rsi     # 0x772a9
leaq 0x66a4f(%rip), %rdx     # 0x772d0
leaq 0x78(%rsp), %rdi
callq 0xdfa8
movq (%rbx), %rax
leaq 0x48(%rsp), %rdi
movq %rbx, %rsi
callq *0x38(%rax)
movb $0x1, %bpl
leaq 0x78(%rsp), %rsi
leaq 0x48(%rsp), %rcx
movq %r14, %rdi
movl $0x3, %edx
callq 0x203f4
xorl %ebp, %ebp
leaq 0x86d7c(%rip), %rsi     # 0x97638
leaq 0x4263(%rip), %rdx      # 0x14b26
movq %r14, %rdi
callq 0xa4f0
movq %rax, %rbx
movq 0x50(%rsp), %rdi
testq %rdi, %rdi
je 0x108dd
callq 0xdce4
movq 0x78(%rsp), %rdi
cmpq %r15, %rdi
je 0x108ec
callq 0xa2b0
testb %bpl, %bpl
jne 0x10991
jmp 0x10999
movq %rax, %rbx
movq 0x78(%rsp), %rdi
cmpq %r15, %rdi
je 0x10991
callq 0xa2b0
jmp 0x10991
movq %rax, %rbx
movq 0x58(%rsp), %rdi
cmpq %r15, %rdi
je 0x10929
callq 0xa2b0
jmp 0x10929
movq %rax, %rbx
movq 0x8(%rsp), %rsi
testq %rsi, %rsi
je 0x1093d
leaq 0x8(%rsp), %rdi
callq 0x16b80
movq $0x0, 0x8(%rsp)
movq 0x10(%rsp), %rsi
testq %rsi, %rsi
je 0x10999
leaq 0x10(%rsp), %rdi
callq 0x16b80
jmp 0x10999
movq %rax, %rbx
movq 0x20(%rsp), %rdi
testq %rdi, %rdi
je 0x1096e
callq 0xdce4
movq 0x30(%rsp), %rdi
testq %rdi, %rdi
je 0x1097d
callq 0xdce4
movq 0x40(%rsp), %rdi
testq %rdi, %rdi
je 0x10999
callq 0xdce4
jmp 0x10999
movq %rax, %rbx
movq %r14, %rdi
callq 0xa240
movq %rbx, %rdi
callq 0xa510
nop