// File: /workspace/github_c_makefile_star2_O3/pwelke[P]GraphMiningTools/executables/outerplanaritytest.c
// Function: printBlockVertices
void printBlockVertices(struct BBTree* bbTree, int* originalIDs) {

    printf(", \"blocks\": {");
    if (bbTree->blocks) {
        for (int i=0; i<bbTree->blocks->n; ++i) {
            if (i>0) { printf(", "); }
            printf("\"%d\": [", -1 - i);
            char start = 1;
            // init vertices in g (!)
            for (struct VertexList* e=bbTree->blockComponents[i]->edges; e!=NULL; e=e->next) {
                e->startPoint->visited = 0;
                e->endPoint->visited = 0;
            }
            for (struct VertexList* e=bbTree->blockComponents[i]->edges; e!=NULL; e=e->next) {
                if (e->startPoint->visited == 0) {
                    if (start) { 
                        start = 0; 
                    } else { 
                        printf(", ");
                    }
                    printf("%d", originalIDs[e->startPoint->number]);
                    e->startPoint->visited = 1;
                }
                if (e->endPoint->visited == 0) {
                    printf(", ");
                    printf("%d", originalIDs[e->endPoint->number]);
                    e->endPoint->visited = 1;
                }
            }
            putc(']', stdout);
        }
    }
    putc('}', stdout);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
leaq 0x21f3(%rip), %rdi      # 0x216ba
xorl %eax, %eax
callq 0x10b0
movq 0x8(%r14), %rax
testq %rax, %rax
je 0x1f604
cmpl $0x0, (%rax)
jle 0x1f604
xorl %ebp, %ebp
leaq 0x219e(%rip), %r13      # 0x2168b
xorl %r15d, %r15d
movq %r14, (%rsp)
testq %r15, %r15
je 0x1f507
leaq 0xeed(%rip), %rdi       # 0x203ed
xorl %eax, %eax
callq 0x10b0
movl %r15d, %esi
notl %esi
leaq 0x21b5(%rip), %rdi      # 0x216c8
xorl %eax, %eax
callq 0x10b0
movq 0x10(%r14), %rax
movq (%rax,%r15,8), %rax
movq (%rax), %r14
movq %r14, %rax
testq %r14, %r14
je 0x1f5d9
movq 0x10(%rax), %rcx
movl %ebp, 0x1c(%rcx)
movq 0x18(%rax), %rcx
movl %ebp, 0x1c(%rcx)
movq 0x8(%rax), %rax
testq %rax, %rax
jne 0x1f531
testq %r14, %r14
je 0x1f5d9
movb $0x1, %r12b
movq 0x10(%r14), %rax
cmpl $0x0, 0x1c(%rax)
jne 0x1f594
testb %r12b, %r12b
jne 0x1f575
leaq 0xe83(%rip), %rdi       # 0x203ed
xorl %eax, %eax
callq 0x10b0
movq 0x10(%r14), %rax
movslq 0x18(%rax), %rax
movl (%rbx,%rax,4), %esi
xorl %r12d, %r12d
movq %r13, %rdi
xorl %eax, %eax
callq 0x10b0
movq 0x10(%r14), %rax
movl $0x1, 0x1c(%rax)
movq 0x18(%r14), %rax
cmpl $0x0, 0x1c(%rax)
jne 0x1f5cc
leaq 0xe48(%rip), %rdi       # 0x203ed
xorl %eax, %eax
callq 0x10b0
movq 0x18(%r14), %rax
movslq 0x18(%rax), %rax
movl (%rbx,%rax,4), %esi
movq %r13, %rdi
xorl %eax, %eax
callq 0x10b0
movq 0x18(%r14), %rax
movl $0x1, 0x1c(%rax)
movq 0x8(%r14), %r14
testq %r14, %r14
jne 0x1f554
movq 0xd9e8(%rip), %rax      # 0x2cfc8
movq (%rax), %rsi
movl $0x5d, %edi
callq 0x1130
incq %r15
movq (%rsp), %r14
movq 0x8(%r14), %rax
movslq (%rax), %rax
cmpq %rax, %r15
jl 0x1f4f4
movq 0xd9bd(%rip), %rax      # 0x2cfc8
movq (%rax), %rsi
movl $0x7d, %edi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x1130