// File: Nallantli[P]Rossa/main/rossa/node/node.cpp
// Function: UnOpNode::fold(std::vector<std::pair<std::vector<unsigned long long, std::allocator<unsigned long long>>, symbol_t>, std::allocator<std::pair<std::vector<unsigned long long, std::allocator<unsigned long long>>, symbol_t>>> const&) const
const ptr_node_t UnOpNode::fold(const std::vector<std::pair<std::vector<hash_ull>, symbol_t>> &consts) const
{
	auto na = a->fold(consts);
	auto ru = std::make_shared<UnOpNode>(path, op, na, token);
	if (na->isConst())
	{
		object_t newScope(static_cast<hash_ull>(0));
		trace_t stack_trace;
		auto r = ru->genParser()->evaluate(&newScope, stack_trace);
		return std::make_shared<ContainerNode>(path, r, token);
	}

	return ru;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0xe0, %rsp
movq %rdi, -0xd0(%rbp)
movq %rdi, %rax
movq %rax, -0xc8(%rbp)
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq -0x10(%rbp), %rdi
movq %rdi, -0xc0(%rbp)
addq $0xc8, %rdi
callq 0x2d030
movq %rax, %rsi
movq -0x18(%rbp), %rdx
movq (%rsi), %rax
movq 0x18(%rax), %rax
leaq -0x28(%rbp), %rdi
movq %rdi, -0xb8(%rbp)
callq *%rax
movq -0xc0(%rbp), %r8
movq -0xb8(%rbp), %rcx
movq %r8, %rsi
addq $0x8, %rsi
movq %r8, %rdx
addq $0xa8, %rdx
addq $0x28, %r8
leaq -0x38(%rbp), %rdi
callq 0xe91b0
jmp 0xde808
leaq -0x28(%rbp), %rdi
callq 0x2d030
movq %rax, %rdi
movq (%rdi), %rax
movq 0x8(%rax), %rax
callq *%rax
movb %al, -0xd1(%rbp)
jmp 0xde825
movb -0xd1(%rbp), %al
testb $0x1, %al
jne 0xde834
jmp 0xde98e
movq $0x0, -0x60(%rbp)
leaq -0x58(%rbp), %rdi
leaq -0x60(%rbp), %rsi
callq 0x7d410
jmp 0xde84b
leaq -0x78(%rbp), %rdi
callq 0x24b80
leaq -0x38(%rbp), %rdi
callq 0xe9240
movq %rax, %rsi
movq (%rsi), %rax
movq (%rax), %rax
leaq -0x98(%rbp), %rdi
callq *%rax
jmp 0xde871
leaq -0x98(%rbp), %rdi
callq 0x2d300
movq %rax, %rsi
movq (%rsi), %rax
movq (%rax), %rax
leaq -0x88(%rbp), %rdi
leaq -0x58(%rbp), %rdx
leaq -0x78(%rbp), %rcx
callq *%rax
jmp 0xde899
leaq -0x98(%rbp), %rdi
callq 0x2a4e0
movq -0xc0(%rbp), %rcx
movq %rcx, %rsi
addq $0x8, %rsi
addq $0x28, %rcx
leaq -0xa8(%rbp), %rdi
leaq -0x88(%rbp), %rdx
callq 0xe5670
jmp 0xde8cc
movq -0xd0(%rbp), %rdi
leaq -0xa8(%rbp), %rsi
callq 0x571a0
leaq -0xa8(%rbp), %rdi
callq 0x571d0
movl $0x1, -0xac(%rbp)
leaq -0x88(%rbp), %rdi
callq 0x86dc0
leaq -0x78(%rbp), %rdi
callq 0x24e60
leaq -0x58(%rbp), %rdi
callq 0x7d790
jmp 0xde9a8
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x40(%rbp)
movl %eax, -0x44(%rbp)
jmp 0xde9d3
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x40(%rbp)
movl %eax, -0x44(%rbp)
jmp 0xde9ca
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x40(%rbp)
movl %eax, -0x44(%rbp)
jmp 0xde97a
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x40(%rbp)
movl %eax, -0x44(%rbp)
leaq -0x98(%rbp), %rdi
callq 0x2a4e0
jmp 0xde97a
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x40(%rbp)
movl %eax, -0x44(%rbp)
leaq -0x88(%rbp), %rdi
callq 0x86dc0
leaq -0x78(%rbp), %rdi
callq 0x24e60
leaq -0x58(%rbp), %rdi
callq 0x7d790
jmp 0xde9ca
movq -0xd0(%rbp), %rdi
leaq -0x38(%rbp), %rsi
callq 0x59100
movl $0x1, -0xac(%rbp)
leaq -0x38(%rbp), %rdi
callq 0x59130
leaq -0x28(%rbp), %rdi
callq 0x24b20
movq -0xc8(%rbp), %rax
addq $0xe0, %rsp
popq %rbp
retq
leaq -0x38(%rbp), %rdi
callq 0x59130
leaq -0x28(%rbp), %rdi
callq 0x24b20
movq -0x40(%rbp), %rdi
callq 0x119c0
nopw %cs:(%rax,%rax)