// File: /workspace/github_cpp_makefile_star2_O1/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 %r13
pushq %r12
pushq %rbx
pushq %rax
movl 0x4cb9(%rip), %ebx      # 0x815c
leaq (,%rbx,4), %r14
movq %r14, %rdi
callq 0x2030
movq %rax, %r12
movq %rbx, %rdi
callq 0x2030
movq %rax, %r13
leaq 0x4(%rsp), %r15
movl $0x0, (%r15)
movq 0x4cbc(%rip), %rdi      # 0x8190
xorl %esi, %esi
movq %r14, %rdx
callq 0x20e0
movq %r12, %rdi
movq %r13, %rsi
movq %r15, %rdx
callq 0x3753
movl (%r15), %ebp
movl 0x4d1f(%rip), %esi      # 0x8214
addl %ebp, %esi
movq %r13, %rdi
movq %r12, %rdx
callq 0x41c5
movq 0x4ca7(%rip), %rbx      # 0x81b0
movq %r13, 0x4ca0(%rip)      # 0x81b0
movq 0x4c71(%rip), %r14      # 0x8188
movq %r12, 0x4c6a(%rip)      # 0x8188
movl %ebp, 0x4cec(%rip)      # 0x8210
movq %r14, %rdi
movq %rbx, %rsi
movq %r15, %rdx
callq 0x4509
movl (%r15), %ebp
movl 0x4cd9(%rip), %esi      # 0x8214
addl %ebp, %esi
movq %rbx, %rdi
movq %r14, %rdx
callq 0x41c5
cmpl 0x4cc2(%rip), %ebp      # 0x8210
jae 0x3578
movq 0x4c59(%rip), %rax      # 0x81b0
movq %rbx, 0x4c52(%rip)      # 0x81b0
movq 0x4c23(%rip), %rcx      # 0x8188
movq %r14, 0x4c1c(%rip)      # 0x8188
movl %ebp, 0x4c9e(%rip)      # 0x8210
movq %rcx, %r14
movq %rax, %rbx
leaq 0x4(%rsp), %r15
movq %r14, %rdi
movq %rbx, %rsi
movq %r15, %rdx
callq 0x47c2
movl (%r15), %ebp
movl 0x4c80(%rip), %esi      # 0x8214
addl %ebp, %esi
movq %rbx, %rdi
movq %r14, %rdx
callq 0x41c5
cmpl 0x4c69(%rip), %ebp      # 0x8210
jae 0x35d1
movq 0x4c00(%rip), %rax      # 0x81b0
movq %rbx, 0x4bf9(%rip)      # 0x81b0
movq 0x4bca(%rip), %rcx      # 0x8188
movq %r14, 0x4bc3(%rip)      # 0x8188
movl %ebp, 0x4c45(%rip)      # 0x8210
movq %rcx, %r14
movq %rax, %rbx
movq 0x4bf0(%rip), %rdi      # 0x81c8
movq 0x4bd1(%rip), %rsi      # 0x81b0
movl 0x4b77(%rip), %edx      # 0x815c
callq 0x2140
movl 0x4c20(%rip), %eax      # 0x8210
addl 0x4c1e(%rip), %eax      # 0x8214
movl %eax, 0x4c1c(%rip)      # 0x8218
leaq 0x4c1d(%rip), %rdi      # 0x8220
callq 0x21d0
movq 0x4c19(%rip), %rax      # 0x8228
addq 0x4c0a(%rip), %rax      # 0x8220
movslq 0x4c3b(%rip), %rcx      # 0x8258
subq %rcx, %rax
cvtsi2sd %rax, %xmm0
movsd %xmm0, 0x4c63(%rip)     # 0x8290
movl 0x4c21(%rip), %eax      # 0x8254
movl %eax, 0x4c5f(%rip)      # 0x8298
movq 0x4b78(%rip), %rax      # 0x81b8
movq %rax, 0x4c01(%rip)      # 0x8248
movl 0x4bc7(%rip), %ecx      # 0x8214
leaq (%rax,%rcx,4), %rax
movq %rax, 0x4b60(%rip)      # 0x81b8
movl 0x4bb2(%rip), %edx      # 0x8210
addl %ecx, %edx
movl %edx, 0x4bea(%rip)      # 0x8250
movl $0x0, 0x4ba0(%rip)      # 0x8210
movl 0x4b92(%rip), %ecx      # 0x8208
testq %rcx, %rcx
je 0x36bf
movl 0x4b8f(%rip), %edx      # 0x8210
movq 0x4b78(%rip), %rsi      # 0x8200
movq 0x4b21(%rip), %rdi      # 0x81b0
movq 0x4b2a(%rip), %r8       # 0x81c0
xorl %r9d, %r9d
movl (%rsi,%r9,4), %r10d
cmpb $0x3, (%rdi,%r10)
jb 0x36b7
movl %edx, %r11d
movl %r10d, (%rax,%r11,4)
movl %edx, (%r8,%r10,4)
incl %edx
movl %edx, 0x4b59(%rip)      # 0x8210
incq %r9
cmpq %r9, %rcx
jne 0x3699
movl $0x0, 0x4b43(%rip)      # 0x820c
movq 0x4908(%rip), %r15      # 0x7fd8
leaq 0x2998(%rip), %rsi      # 0x606f
movl $0xe, %edx
movq %r15, %rdi
callq 0x2180
movl 0x4b66(%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 %r14, %r14
je 0x3729
movq %r14, %rdi
callq 0x2190
testq %rbx, %rbx
je 0x3744
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x2190
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq