// File: /workspace/github_cpp_makefile_star2_O1/muk343[P]pmml/GraphGenerator.cpp
// Function: GraphGenerator::traverse(Node*)
void GraphGenerator::traverse(Node* rootNode) {
        
        stack<Node *> node_stack;
        Node *curr = rootNode;

        node_stack.push(curr);

        while(!node_stack.empty()) {

            Node* temp = node_stack.top();
            node_stack.pop();
            cout<<"Score is: "<<temp->score<<" recordCount is: "<<temp->node_record_count<<endl;
            if (temp->childNodes.size() == 1) {
                cout<<"This has only one child";
                exit(-1);
            }

            if (temp->childNodes.size() == 2) {
                node_stack.push(temp->childNodes[0]);
                node_stack.push(temp->childNodes[1]);
            }
        }

    }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x58, %rsp
movq %rsi, %rbx
xorps %xmm0, %xmm0
movq %rsp, %r14
movaps %xmm0, 0x40(%r14)
movaps %xmm0, 0x30(%r14)
movaps %xmm0, 0x20(%r14)
movaps %xmm0, 0x10(%r14)
movaps %xmm0, (%r14)
movq %r14, %rdi
xorl %esi, %esi
callq 0xab5e
movq %rbx, 0x50(%rsp)
movq 0x30(%r14), %rax
movq 0x40(%r14), %rcx
addq $-0x8, %rcx
cmpq %rcx, %rax
je 0xa514
movq %rbx, (%rax)
addq $0x8, 0x30(%rsp)
jmp 0xa521
movq %rsp, %rdi
leaq 0x50(%rsp), %rsi
callq 0xacd4
movq 0x30(%rsp), %rax
cmpq 0x10(%rsp), %rax
je 0xa69f
movq 0x9a90(%rip), %rbx      # 0x13fc8
leaq 0x384d(%rip), %r14      # 0xdd8c
leaq 0x3851(%rip), %r15      # 0xdd97
movq %rsp, %r12
movq 0x38(%rsp), %rdi
movq %rax, %rcx
cmpq %rdi, %rax
jne 0xa567
movq 0x48(%rsp), %rcx
movq -0x8(%rcx), %rcx
movl $0x200, %edx            # imm = 0x200
addq %rdx, %rcx
movq -0x8(%rcx), %rbp
cmpq %rdi, %rax
je 0xa576
addq $-0x8, %rax
jmp 0xa5a9
movl $0x200, %esi            # imm = 0x200
callq 0x4250
movq 0x48(%rsp), %rax
leaq -0x8(%rax), %rcx
movq %rcx, 0x48(%rsp)
movq -0x8(%rax), %rax
movq %rax, 0x38(%rsp)
leaq 0x200(%rax), %rcx
movq %rcx, 0x40(%rsp)
addq $0x1f8, %rax            # imm = 0x1F8
movq %rax, 0x30(%rsp)
movl $0xa, %edx
movq %rbx, %rdi
movq %r14, %rsi
callq 0x42a0
movsd (%rbp), %xmm0
movq %rbx, %rdi
callq 0x43d0
movq %rax, %r13
movl $0x11, %edx
movq %rax, %rdi
movq %r15, %rsi
callq 0x42a0
movsd 0x20(%rbp), %xmm0
movq %r13, %rdi
callq 0x43d0
movq %rax, %r13
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r13, %rdi
movl $0xa, %esi
callq 0x4200
movsbl %al, %esi
movq %r13, %rdi
callq 0x4050
movq %rax, %rdi
callq 0x4190
movq 0x70(%rbp), %rsi
movq 0x78(%rbp), %rax
subq %rsi, %rax
sarq $0x3, %rax
cmpq $0x2, %rax
je 0xa635
cmpq $0x1, %rax
jne 0xa68f
jmp 0xa6b6
movq 0x30(%rsp), %rax
movq 0x40(%rsp), %rcx
addq $-0x8, %rcx
cmpq %rcx, %rax
je 0xa656
movq (%rsi), %rcx
movq %rcx, (%rax)
addq $0x8, 0x30(%rsp)
jmp 0xa65e
movq %r12, %rdi
callq 0xacd4
movq 0x70(%rbp), %rsi
addq $0x8, %rsi
movq 0x30(%rsp), %rax
movq 0x40(%rsp), %rcx
addq $-0x8, %rcx
cmpq %rcx, %rax
je 0xa687
movq (%rsi), %rcx
movq %rcx, (%rax)
addq $0x8, 0x30(%rsp)
jmp 0xa68f
movq %r12, %rdi
callq 0xacd4
movq 0x30(%rsp), %rax
cmpq 0x10(%rsp), %rax
jne 0xa549
movq %rsp, %rdi
callq 0xa838
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x990b(%rip), %rdi      # 0x13fc8
leaq 0x36e5(%rip), %rsi      # 0xdda9
callq 0x4220
movl $0xffffffff, %edi       # imm = 0xFFFFFFFF
callq 0x42c0
jmp 0xa6d7
jmp 0xa6d7
movq %rax, %rbx
movq %rsp, %rdi
callq 0xa838
movq %rbx, %rdi
callq 0x4410