// File: RuiDGPires[P]CrimLang/src/ast.cpp
// Function: crl::Node::to_string[abi:cxx11](int) const
std::string Node::to_string(int depth) const{
	std::string aux = "";
	if (this->annotation != "")
		aux = "(" + this->annotation + ") ";
	std::string ret = std::string(depth, ' ') + aux + std::to_string((int) this->type);

	for (Node *n: this->children)
		ret += "\n" + n->to_string(depth + 2);
	return ret;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x1a0, %rsp            # imm = 0x1A0
movq %rdi, -0x180(%rbp)
movq %rdi, %rax
movq %rax, -0x178(%rbp)
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movl %edx, -0x14(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0x170(%rbp)
leaq -0x39(%rbp), %rdi
movq %rdi, -0x168(%rbp)
callq 0x4590
movq -0x168(%rbp), %rdx
leaq 0x268e4(%rip), %rsi     # 0x2b4e4
leaq -0x38(%rbp), %rdi
callq 0x52e0
jmp 0x4c0b
leaq -0x39(%rbp), %rdi
callq 0x4360
movq -0x170(%rbp), %rdi
addq $0x30, %rdi
leaq 0x268be(%rip), %rsi     # 0x2b4e4
callq 0x5390
movb %al, -0x181(%rbp)
jmp 0x4c33
movb -0x181(%rbp), %al
testb $0x1, %al
jne 0x4c42
jmp 0x4ce7
movq -0x170(%rbp), %rdx
addq $0x30, %rdx
leaq 0x26501(%rip), %rsi     # 0x2b155
leaq -0x90(%rbp), %rdi
callq 0x5410
jmp 0x4c62
leaq 0x2639b(%rip), %rdx     # 0x2b004
leaq -0x70(%rbp), %rdi
leaq -0x90(%rbp), %rsi
callq 0x53c0
jmp 0x4c7b
leaq -0x38(%rbp), %rdi
leaq -0x70(%rbp), %rsi
callq 0x43c0
leaq -0x70(%rbp), %rdi
callq 0x41e0
leaq -0x90(%rbp), %rdi
callq 0x41e0
jmp 0x4ce7
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x48(%rbp)
movl %eax, -0x4c(%rbp)
leaq -0x39(%rbp), %rdi
callq 0x4360
jmp 0x4f84
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x48(%rbp)
movl %eax, -0x4c(%rbp)
jmp 0x4f7b
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x48(%rbp)
movl %eax, -0x4c(%rbp)
leaq -0x90(%rbp), %rdi
callq 0x41e0
jmp 0x4f7b
movb $0x0, -0x91(%rbp)
movslq -0x14(%rbp), %rax
movq %rax, -0x198(%rbp)
leaq -0xd9(%rbp), %rdi
movq %rdi, -0x190(%rbp)
callq 0x4590
movq -0x198(%rbp), %rsi
movq -0x190(%rbp), %rcx
leaq -0xd8(%rbp), %rdi
movl $0x20, %edx
callq 0x5640
jmp 0x4d2d
leaq -0xb8(%rbp), %rdi
leaq -0xd8(%rbp), %rsi
leaq -0x38(%rbp), %rdx
callq 0x55f0
jmp 0x4d46
movq -0x170(%rbp), %rax
movl 0x8(%rax), %esi
leaq -0x100(%rbp), %rdi
callq 0x56b0
jmp 0x4d5e
movq -0x180(%rbp), %rdi
leaq -0xb8(%rbp), %rsi
leaq -0x100(%rbp), %rdx
callq 0x5520
jmp 0x4d7a
leaq -0x100(%rbp), %rdi
callq 0x41e0
leaq -0xb8(%rbp), %rdi
callq 0x41e0
leaq -0xd8(%rbp), %rdi
callq 0x41e0
leaq -0xd9(%rbp), %rdi
callq 0x4360
movq -0x170(%rbp), %rax
addq $0x10, %rax
movq %rax, -0x108(%rbp)
movq -0x108(%rbp), %rdi
callq 0x57d0
movq %rax, -0x110(%rbp)
movq -0x108(%rbp), %rdi
callq 0x5800
movq %rax, -0x118(%rbp)
leaq -0x110(%rbp), %rdi
leaq -0x118(%rbp), %rsi
callq 0x5830
testb $0x1, %al
jne 0x4dfe
jmp 0x4f3a
leaq -0x110(%rbp), %rdi
callq 0x5870
movq (%rax), %rax
movq %rax, -0x120(%rbp)
movq -0x120(%rbp), %rsi
movl -0x14(%rbp), %edx
addl $0x2, %edx
movq (%rsi), %rax
movq 0x30(%rax), %rax
leaq -0x160(%rbp), %rdi
callq *%rax
jmp 0x4e33
leaq 0x266a9(%rip), %rsi     # 0x2b4e3
leaq -0x140(%rbp), %rdi
leaq -0x160(%rbp), %rdx
callq 0x5890
jmp 0x4e4f
movq -0x180(%rbp), %rdi
leaq -0x140(%rbp), %rsi
callq 0x43f0
jmp 0x4e64
leaq -0x140(%rbp), %rdi
callq 0x41e0
leaq -0x160(%rbp), %rdi
callq 0x41e0
leaq -0x110(%rbp), %rdi
callq 0x58e0
jmp 0x4de2
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x48(%rbp)
movl %eax, -0x4c(%rbp)
jmp 0x4ee7
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x48(%rbp)
movl %eax, -0x4c(%rbp)
jmp 0x4edb
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x48(%rbp)
movl %eax, -0x4c(%rbp)
jmp 0x4ecf
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x48(%rbp)
movl %eax, -0x4c(%rbp)
leaq -0x100(%rbp), %rdi
callq 0x41e0
leaq -0xb8(%rbp), %rdi
callq 0x41e0
leaq -0xd8(%rbp), %rdi
callq 0x41e0
leaq -0xd9(%rbp), %rdi
callq 0x4360
jmp 0x4f7b
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x48(%rbp)
movl %eax, -0x4c(%rbp)
jmp 0x4f6f
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x48(%rbp)
movl %eax, -0x4c(%rbp)
jmp 0x4f2c
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x48(%rbp)
movl %eax, -0x4c(%rbp)
leaq -0x140(%rbp), %rdi
callq 0x41e0
leaq -0x160(%rbp), %rdi
callq 0x41e0
jmp 0x4f6f
movb $0x1, -0x91(%rbp)
testb $0x1, -0x91(%rbp)
jne 0x4f56
movq -0x180(%rbp), %rdi
callq 0x41e0
leaq -0x38(%rbp), %rdi
callq 0x41e0
movq -0x178(%rbp), %rax
addq $0x1a0, %rsp            # imm = 0x1A0
popq %rbp
retq
movq -0x180(%rbp), %rdi
callq 0x41e0
leaq -0x38(%rbp), %rdi
callq 0x41e0
movq -0x48(%rbp), %rdi
callq 0x4580
nopl (%rax)