// File: /workspace/github_cpp_makefile_star2_O3/chhylp123[P]hifiasm/Correct.cpp
// Function: debug_DAGCon(Graph*)
void debug_DAGCon(Graph* DAGCon)
{
    uint64_t i = 0;
    for (i = 0; i < DAGCon->g_nodes.length; i++)
    {
        Node* currentStartNode = &(G_Node(*DAGCon, i));
        RSet iter_out;

        if(If_Node_Exist(*currentStartNode))
        {
            clear_RSet(&iter_out);
            Edge* e_self;
            Edge* e_reverse;
            while(getOutputEdges(&iter_out, DAGCon, currentStartNode, &e_self))
            {

                get_bi_direction_edges(DAGCon, e_self, &e_self, &e_reverse);


                if(Visit(*e_self) == 0)
                {
                    fprintf(stderr, "Visit(*e_self): %lu, error visit flag: in_node: %lu, out_node: %lu\n", 
                    (unsigned long)Visit(*e_self), (unsigned long)(*e_self).in_node, (unsigned long)(*e_self).out_node);
                }


                if(Visit(*e_reverse) == 0)
                {
                    fprintf(stderr, "Visit(*e_reverse): %lu, error visit flag: in_node: %lu, out_node: %lu\n", 
                    (unsigned long)Visit(*e_reverse), (unsigned long)(*e_reverse).in_node, (unsigned long)(*e_reverse).out_node);
                }


                if(e_self->in_node != e_reverse->in_node)
                {
                    fprintf(stderr, "different in-node\n");
                }
                if(e_self->out_node != e_reverse->out_node)
                {
                    fprintf(stderr, "different out-node\n");
                }
                if(e_self->weight != e_reverse->weight)
                {
                    fprintf(stderr, "different weight\n");
                }
            }

            clear_RSet(&iter_out);
            while(getInputEdges(&iter_out, DAGCon, currentStartNode, &e_self))
            {

                get_bi_direction_edges(DAGCon, e_self, &e_self, &e_reverse);


                if(Visit(*e_self) == 0)
                {
                    fprintf(stderr, "Visit(*e_self): %lu, error visit flag: in_node: %lu, out_node: %lu\n", 
                    (unsigned long)Visit(*e_self), (unsigned long)(*e_self).in_node, (unsigned long)(*e_self).out_node);
                }


                if(Visit(*e_reverse) == 0)
                {
                    fprintf(stderr, "Visit(*e_reverse): %lu, error visit flag: in_node: %lu, out_node: %lu\n", 
                    (unsigned long)Visit(*e_reverse), (unsigned long)(*e_reverse).in_node, (unsigned long)(*e_reverse).out_node);
                }


                if(e_self->in_node != e_reverse->in_node)
                {
                    fprintf(stderr, "different in-node\n");
                }
                if(e_self->out_node != e_reverse->out_node)
                {
                    fprintf(stderr, "different out-node\n");
                }
                if(e_self->weight != e_reverse->weight)
                {
                    fprintf(stderr, "different weight\n");
                }
            }
        }
    }
}

// Assembly:
cmpq $0x0, 0x60(%rdi)
je 0x4c400
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
xorl %r12d, %r12d
movq 0x18(%rbx), %r13
movq %r12, %rax
shlq $0x7, %rax
cmpb $0x44, 0x18(%r13,%rax)
je 0x4c3e5
addq %rax, %r13
movq 0x50(%r13), %rcx
testq %rcx, %rcx
jle 0x4c2e4
xorl %ebp, %ebp
movq 0x40(%r13), %rax
imulq $0x38, %rbp, %rdx
incq %rbp
addq %rdx, %rax
addq $0x30, %rax
negq %rcx
movq -0x28(%rax), %rdx
cmpq $-0x1, %rdx
jne 0x4c22a
addq $0x38, %rax
leaq (%rcx,%rbp), %rdx
incq %rdx
incq %rbp
cmpq $0x1, %rdx
jne 0x4c207
jmp 0x4c2e4
movq -0x30(%rax), %r8
movq -0x8(%rax), %rsi
movq 0x18(%rbx), %rcx
movq %r8, %r9
shlq $0x7, %r9
movq 0x40(%rcx,%r9), %rdi
cmpq 0x50(%rcx,%r9), %rsi
jae 0x4c26b
imulq $0x38, %rsi, %r14
cmpq %r8, (%rdi,%r14)
jne 0x4c26b
addq %rdi, %r14
cmpq %rdx, 0x8(%r14)
jne 0x4c26b
shlq $0x7, %rdx
imulq $0x38, (%rax), %r15
addq 0x60(%rcx,%rdx), %r15
jmp 0x4c282
imulq $0x38, (%rax), %rax
addq %rax, %rdi
shlq $0x7, %rdx
imulq $0x38, %rsi, %r15
addq 0x60(%rcx,%rdx), %r15
movq %rdi, %r14
cmpq $0x0, 0x20(%r14)
je 0x4c2bb
cmpq $0x0, 0x20(%r15)
je 0x4c2c5
movq (%r14), %rax
cmpq (%r15), %rax
jne 0x4c2cf
movq 0x8(%r14), %rax
cmpq 0x8(%r15), %rax
jne 0x4c2d6
movq 0x10(%r14), %rax
cmpq 0x10(%r15), %rax
jne 0x4c2dd
movq 0x50(%r13), %rcx
cmpq %rcx, %rbp
jl 0x4c1f2
jmp 0x4c2e4
movq %r14, %rdi
callq 0x5808
jmp 0x4c289
movq %r15, %rdi
callq 0x582c
jmp 0x4c290
callq 0x5850
jmp 0x4c298
callq 0x586c
jmp 0x4c2a2
callq 0x5888
jmp 0x4c2ac
movq 0x70(%r13), %rcx
testq %rcx, %rcx
jle 0x4c3e5
xorl %ebp, %ebp
movq 0x60(%r13), %rax
imulq $0x38, %rbp, %rdx
incq %rbp
addq %rdx, %rax
addq $0x30, %rax
negq %rcx
movq -0x28(%rax), %rdx
cmpq $-0x1, %rdx
jne 0x4c32b
addq $0x38, %rax
leaq (%rcx,%rbp), %rdx
incq %rdx
incq %rbp
cmpq $0x1, %rdx
jne 0x4c308
jmp 0x4c3e5
movq -0x30(%rax), %r8
movq -0x8(%rax), %rsi
movq 0x18(%rbx), %rcx
movq %r8, %r9
shlq $0x7, %r9
movq 0x40(%rcx,%r9), %rdi
cmpq 0x50(%rcx,%r9), %rsi
jae 0x4c36c
imulq $0x38, %rsi, %r14
cmpq %r8, (%rdi,%r14)
jne 0x4c36c
addq %rdi, %r14
cmpq %rdx, 0x8(%r14)
jne 0x4c36c
shlq $0x7, %rdx
imulq $0x38, (%rax), %r15
addq 0x60(%rcx,%rdx), %r15
jmp 0x4c383
imulq $0x38, (%rax), %rax
addq %rax, %rdi
shlq $0x7, %rdx
imulq $0x38, %rsi, %r15
addq 0x60(%rcx,%rdx), %r15
movq %rdi, %r14
cmpq $0x0, 0x20(%r14)
je 0x4c3bc
cmpq $0x0, 0x20(%r15)
je 0x4c3c6
movq (%r14), %rax
cmpq (%r15), %rax
jne 0x4c3d0
movq 0x8(%r14), %rax
cmpq 0x8(%r15), %rax
jne 0x4c3d7
movq 0x10(%r14), %rax
cmpq 0x10(%r15), %rax
jne 0x4c3de
movq 0x70(%r13), %rcx
cmpq %rcx, %rbp
jl 0x4c2f3
jmp 0x4c3e5
movq %r14, %rdi
callq 0x58a4
jmp 0x4c38a
movq %r15, %rdi
callq 0x58c8
jmp 0x4c391
callq 0x58ec
jmp 0x4c399
callq 0x5908
jmp 0x4c3a3
callq 0x5924
jmp 0x4c3ad
incq %r12
cmpq 0x60(%rbx), %r12
jb 0x4c1c9
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq