// File: /workspace/github_c_makefile_star2_O1/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 0x2078(%rip), %rdi      # 0x216ba
xorl %eax, %eax
callq 0x10b0
cmpq $0x0, 0x8(%r14)
je 0x1f77a
movq 0x8(%r14), %rax
cmpl $0x0, (%rax)
jle 0x1f77a
xorl %ebp, %ebp
leaq 0x2021(%rip), %r13      # 0x2168b
xorl %r15d, %r15d
movq %r14, (%rsp)
testq %r15, %r15
je 0x1f684
leaq 0xd70(%rip), %rdi       # 0x203ed
xorl %eax, %eax
callq 0x10b0
movl %r15d, %esi
notl %esi
leaq 0x2038(%rip), %rdi      # 0x216c8
xorl %eax, %eax
callq 0x10b0
movq 0x10(%r14), %rax
movq (%rax,%r15,8), %rax
movq (%rax), %rcx
testq %rcx, %rcx
je 0x1f6bb
movq 0x10(%rcx), %rdx
movl %ebp, 0x1c(%rdx)
movq 0x18(%rcx), %rdx
movl %ebp, 0x1c(%rdx)
movq 0x8(%rcx), %rcx
jmp 0x1f6a2
movq (%rax), %r14
testq %r14, %r14
je 0x1f74f
movb $0x1, %r12b
movq 0x10(%r14), %rax
cmpl $0x0, 0x1c(%rax)
jne 0x1f70a
testb %r12b, %r12b
jne 0x1f6e7
leaq 0xd0d(%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 0x1f742
leaq 0xcd2(%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 0x1f6ca
movq 0xd872(%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 0x1f671
movq 0xd847(%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