// File: /workspace/github_cpp_makefile_star2_O3/quancs[P]EAVC/./eavc.h
// Function: init_sol()
void init_sol() {
    //use dVDegree as vDegree
    int *dscoreTemp = new int[vNum];
    VerticeStatus *vInCTemp = new VerticeStatus[vNum];
    unsigned int cvSizeTemp = 0;

    memset(vTimestamp, 0, sizeof(unsigned int) * vNum);

    init_vertex_greedy_vc(dscoreTemp, vInCTemp, cvSizeTemp);
    check_solution(vInCTemp, cvSizeTemp + total_IN_ABS, dscoreTemp);
    std::swap(vInC, vInCTemp);
    std::swap(dscore, dscoreTemp);
    cvSize = cvSizeTemp;

    init_edge_greedy_vc(dscoreTemp, vInCTemp, cvSizeTemp);
    check_solution(vInCTemp, cvSizeTemp + total_IN_ABS, dscoreTemp);
    if (cvSizeTemp < cvSize) {
        std::swap(vInC, vInCTemp);
        std::swap(dscore, dscoreTemp);
        cvSize = cvSizeTemp;
    }

    init_match_vc(dscoreTemp, vInCTemp, cvSizeTemp);
    check_solution(vInCTemp, cvSizeTemp + total_IN_ABS, dscoreTemp);
    if (cvSizeTemp < cvSize) {
        std::swap(vInC, vInCTemp);
        std::swap(dscore, dscoreTemp);
        cvSize = cvSizeTemp;
    }

    //construct other structures
    update_best_sol();

    //cAllVertexes layout:IN_ABS vertices | IN vertices | unused area
    //cVertexes layout:IN vertices | unused area
    cAllVertexes = cVertexes;
    cVertexes = &(cAllVertexes[total_IN_ABS]);
    cAVSize = cvSize + total_IN_ABS;
    cvSize = 0;
    for (unsigned i = 0; i < uvSize; i++) {
        unsigned v = uvSet[i];
        if (in(vInC, v)) {
            cVertexes[cvSize] = v;
            cVertexIndexes[v] = cvSize;
            cvSize++;
        }
    }

    ueSize = 0;

    cout << "c init best = " << cAVSize << endl;
    delete [] dscoreTemp;
    delete [] vInCTemp;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x10, %rsp
movl 0x4db7(%rip), %ebx      # 0x815c
leaq (,%rbx,4), %r15
movq %r15, %rdi
callq 0x2030
movq %rax, %r12
movq %rbx, %rdi
callq 0x2030
movq %rax, %rbx
leaq 0xc(%rsp), %r14
movl $0x0, (%r14)
movq 0x4dba(%rip), %rdi      # 0x8190
xorl %esi, %esi
movq %r15, %rdx
callq 0x20e0
movq %r12, %rdi
movq %rbx, %rsi
movq %r14, %rdx
callq 0x364e
movl (%r14), %ebp
movl 0x4e1d(%rip), %esi      # 0x8214
addl %ebp, %esi
movq %rbx, %rdi
movq %r12, %rdx
callq 0x3f93
movq 0x4da5(%rip), %r15      # 0x81b0
movq %rbx, 0x4d9e(%rip)      # 0x81b0
movq 0x4d6f(%rip), %rbx      # 0x8188
movq %r12, 0x4d68(%rip)      # 0x8188
movl %ebp, 0x4dea(%rip)      # 0x8210
movq %rbx, %rdi
movq %r15, %rsi
movq %r14, %rdx
callq 0x42df
movl (%r14), %ebp
movl 0x4dd7(%rip), %esi      # 0x8214
addl %ebp, %esi
movq %r15, %rdi
movq %rbx, %rdx
callq 0x3f93
cmpl 0x4dc0(%rip), %ebp      # 0x8210
jae 0x347a
movq 0x4d57(%rip), %rax      # 0x81b0
movq %r15, 0x4d50(%rip)      # 0x81b0
movq 0x4d21(%rip), %rcx      # 0x8188
movq %rbx, 0x4d1a(%rip)      # 0x8188
movl %ebp, 0x4d9c(%rip)      # 0x8210
movq %rcx, %rbx
movq %rax, %r15
leaq 0xc(%rsp), %r14
movq %rbx, %rdi
movq %r15, %rsi
movq %r14, %rdx
callq 0x459d
movl (%r14), %ebp
movl 0x4d7e(%rip), %esi      # 0x8214
addl %ebp, %esi
movq %r15, %rdi
movq %rbx, %rdx
callq 0x3f93
movl 0x4d67(%rip), %eax      # 0x8210
movq 0x4d00(%rip), %r14      # 0x81b0
cmpl %eax, %ebp
jae 0x34d7
movq %r15, 0x4cf5(%rip)      # 0x81b0
movq 0x4cc6(%rip), %rax      # 0x8188
movq %rbx, 0x4cbf(%rip)      # 0x8188
movl %ebp, 0x4d41(%rip)      # 0x8210
movq %r15, %rsi
movq %rax, %rbx
jmp 0x34df
movl %eax, %ebp
movq %r14, %rsi
movq %r15, %r14
movq 0x4ce2(%rip), %rdi      # 0x81c8
movl 0x4c70(%rip), %edx      # 0x815c
callq 0x2140
addl 0x4d1d(%rip), %ebp      # 0x8214
movl %ebp, 0x4d1b(%rip)      # 0x8218
leaq 0x4d1c(%rip), %rdi      # 0x8220
callq 0x21d0
movq 0x4d18(%rip), %rax      # 0x8228
addq 0x4d09(%rip), %rax      # 0x8220
movslq 0x4d3a(%rip), %rcx      # 0x8258
subq %rcx, %rax
cvtsi2sd %rax, %xmm0
movsd %xmm0, 0x4d62(%rip)     # 0x8290
movl 0x4d20(%rip), %eax      # 0x8254
movl %eax, 0x4d5e(%rip)      # 0x8298
movq 0x4c77(%rip), %rax      # 0x81b8
movq %rax, 0x4d00(%rip)      # 0x8248
movl 0x4cc6(%rip), %ecx      # 0x8214
leaq (%rax,%rcx,4), %rax
movq %rax, 0x4c5f(%rip)      # 0x81b8
movl 0x4cb1(%rip), %edx      # 0x8210
addl %ecx, %edx
movl %edx, 0x4ce9(%rip)      # 0x8250
movl $0x0, 0x4c9f(%rip)      # 0x8210
movl 0x4c91(%rip), %ecx      # 0x8208
testq %rcx, %rcx
je 0x35be
movq 0x4c7d(%rip), %rdx      # 0x8200
movq 0x4c26(%rip), %rsi      # 0x81b0
xorl %edi, %edi
movq 0x4c2d(%rip), %r8       # 0x81c0
xorl %r9d, %r9d
movl (%rdx,%rdi,4), %r10d
cmpb $0x3, (%rsi,%r10)
jb 0x35b6
movl %r9d, %r11d
movl %r10d, (%rax,%r11,4)
movl %r9d, (%r8,%r10,4)
incl %r9d
movl %r9d, 0x4c5a(%rip)      # 0x8210
incq %rdi
cmpq %rdi, %rcx
jne 0x3596
movl $0x0, 0x4c44(%rip)      # 0x820c
movq 0x4a09(%rip), %r15      # 0x7fd8
leaq 0x2aa9(%rip), %rsi      # 0x607f
movl $0xe, %edx
movq %r15, %rdi
callq 0x2180
movl 0x4c67(%rip), %esi      # 0x8250
movq %r15, %rdi
callq 0x2100
movq %rax, %r15
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r15, %rdi
movl $0xa, %esi
callq 0x2160
movsbl %al, %esi
movq %r15, %rdi
callq 0x2040
movq %rax, %rdi
callq 0x2110
testq %rbx, %rbx
je 0x3628
movq %rbx, %rdi
callq 0x2190
testq %r14, %r14
je 0x3641
movq %r14, %rdi
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
jmp 0x2190
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq