LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_cpp_makefile_star2_O3/matallui[P]nibble-curses/src/CNibbles.cpp
// Function: CNibbles::Restart()
void CNibbles::Restart ( void )
{
  for ( int i = 0; i < m_nplayers; i++ )
    m_snakes[i]->Reset();
  m_score = 0;
  m_state = 2;
  m_level = 0;  
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
movq %rdi, %rbx
cmpl $0x0, 0x10(%rdi)
jle 0x6f0b
xorl %r14d, %r14d
movq 0x30(%rbx), %rax
movq (%rax,%r14,8), %rdi
movq (%rdi), %rax
callq *0x10(%rax)
incq %r14
movslq 0x10(%rbx), %rax
cmpq %rax, %r14
jl 0x6ef1
movabsq $0x200000000, %rax      # imm = 0x200000000
movq %rax, 0x20(%rbx)
movl $0x0, 0x8(%rbx)
popq %rbx
popq %r14
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O3/matallui[P]nibble-curses/src/CNibbles.cpp
// Function: CNibbles::DrawMenu(char (*) [30], char*, int const&, int const&)
void CNibbles::DrawMenu ( char menu[5][30], char title[30], int const & size, int const & item )
{
  // clean and draw frame
  bkgd ( COLOR_PAIR (1) );
  attrset ( COLOR_PAIR (4) );
  for ( int j = 0; j < m_maxCols; j++ )
  {
    mvaddch ( 0, j, '+' );
    mvaddch ( m_maxLines-1, j, '+' );
  }
  for ( int i = 0; i < m_maxLines; i++ )
  {
    mvaddch ( i, 0, '+' );
    mvaddch ( i, m_maxCols-1, '+' );
  }
  
  // draw menu
  attrset ( COLOR_PAIR(5) );
  mvaddstr ( 8, 20, title );
  attrset ( COLOR_PAIR(3) );
  
  for ( int c = 0; c < size; c++ )
  {
    if ( c == item )
      attron ( A_REVERSE );
    mvaddstr( 12+(c*2), 25, menu[c] );
    attroff ( A_REVERSE );
  }
  
  refresh();
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %r8, -0x38(%rbp)
movq %rcx, %r14
movq %rdx, -0x30(%rbp)
movq %rsi, %r15
movq %rdi, %r13
movq 0x5b73(%rip), %rbx      # 0xcfd0
movq (%rbx), %rdi
movl $0x100, %esi            # imm = 0x100
callq 0x33d0
movq (%rbx), %rdi
movl $0x400, %esi            # imm = 0x400
callq 0x32a0
cmpl $0x0, 0x4(%r13)
jle 0x74cc
xorl %r12d, %r12d
movq (%rbx), %rdi
xorl %esi, %esi
movl %r12d, %edx
callq 0x3290
cmpl $-0x1, %eax
je 0x74a0
movq (%rbx), %rdi
movl $0x2b, %esi
callq 0x30c0
movq (%rbx), %rdi
movl (%r13), %esi
decl %esi
movl %r12d, %edx
callq 0x3290
cmpl $-0x1, %eax
je 0x74c3
movq (%rbx), %rdi
movl $0x2b, %esi
callq 0x30c0
incl %r12d
cmpl 0x4(%r13), %r12d
jl 0x7481
cmpl $0x0, (%r13)
jle 0x7521
xorl %r12d, %r12d
movq (%rbx), %rdi
movl %r12d, %esi
xorl %edx, %edx
callq 0x3290
cmpl $-0x1, %eax
je 0x74f5
movq (%rbx), %rdi
movl $0x2b, %esi
callq 0x30c0
movq (%rbx), %rdi
movl 0x4(%r13), %edx
decl %edx
movl %r12d, %esi
callq 0x3290
cmpl $-0x1, %eax
je 0x7518
movq (%rbx), %rdi
movl $0x2b, %esi
callq 0x30c0
incl %r12d
cmpl (%r13), %r12d
jl 0x74d6
movq (%rbx), %rdi
movl $0x500, %esi            # imm = 0x500
callq 0x32a0
movq (%rbx), %rdi
movl $0x8, %esi
movl $0x14, %edx
callq 0x3290
cmpl $-0x1, %eax
je 0x7556
movq (%rbx), %rdi
movq -0x30(%rbp), %rsi
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0x30f0
movq (%rbx), %rdi
movl $0x300, %esi            # imm = 0x300
callq 0x32a0
cmpl $0x0, (%r14)
jle 0x75d3
movl $0xc, %r12d
xorl %r13d, %r13d
movq -0x38(%rbp), %rax
movl (%rax), %eax
cmpq %rax, %r13
jne 0x758c
movq (%rbx), %rdi
movl $0x40000, %esi          # imm = 0x40000
xorl %edx, %edx
callq 0x3150
movq (%rbx), %rdi
movl %r12d, %esi
movl $0x19, %edx
callq 0x3290
cmpl $-0x1, %eax
je 0x75b1
movq (%rbx), %rdi
movq %r15, %rsi
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0x30f0
movq (%rbx), %rdi
movl $0x40000, %esi          # imm = 0x40000
xorl %edx, %edx
callq 0x3330
incq %r13
movslq (%r14), %rax
addl $0x2, %r12d
addq $0x1e, %r15
cmpq %rax, %r13
jl 0x7572
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x33e0
// File: /workspace/github_cpp_makefile_star2_O3/matallui[P]nibble-curses/src/CNibbles.cpp
// Function: CNibbles::PopUp(char*, char*) const
void CNibbles::PopUp ( char * title1, char * title2 ) const
{
  attrset ( COLOR_PAIR(6) );
  mvaddstr ( 14, 35, "******************************" );
  mvaddstr ( 15, 35, "*                            *" );
  mvaddstr ( 16, 35, title1 );
  mvaddstr ( 17, 35, "*                            *" );
  mvaddstr ( 18, 35, title2 );
  mvaddstr ( 19, 35, "******************************" );
  refresh();
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rdx, %rbx
movq %rsi, %r14
movq 0x5485(%rip), %r15      # 0xcfd0
movq (%r15), %rdi
movl $0x600, %esi            # imm = 0x600
callq 0x32a0
movq (%r15), %rdi
movl $0xe, %esi
movl $0x23, %edx
callq 0x3290
cmpl $-0x1, %eax
je 0x7b83
movq (%r15), %rdi
leaq 0x18c9(%rip), %rsi      # 0x9442
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0x30f0
movq (%r15), %rdi
movl $0xf, %esi
movl $0x23, %edx
callq 0x3290
cmpl $-0x1, %eax
je 0x7bae
movq (%r15), %rdi
leaq 0x18bd(%rip), %rsi      # 0x9461
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0x30f0
movq (%r15), %rdi
movl $0x10, %esi
movl $0x23, %edx
callq 0x3290
cmpl $-0x1, %eax
je 0x7bd5
movq (%r15), %rdi
movq %r14, %rsi
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0x30f0
movq (%r15), %rdi
movl $0x11, %esi
movl $0x23, %edx
callq 0x3290
cmpl $-0x1, %eax
je 0x7c00
movq (%r15), %rdi
leaq 0x186b(%rip), %rsi      # 0x9461
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0x30f0
movq (%r15), %rdi
movl $0x12, %esi
movl $0x23, %edx
callq 0x3290
cmpl $-0x1, %eax
je 0x7c27
movq (%r15), %rdi
movq %rbx, %rsi
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0x30f0
movq (%r15), %rdi
movl $0x13, %esi
movl $0x23, %edx
callq 0x3290
cmpl $-0x1, %eax
je 0x7c52
movq (%r15), %rdi
leaq 0x17fa(%rip), %rsi      # 0x9442
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0x30f0
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp 0x33e0
nop
// File: /workspace/github_cpp_makefile_star2_O3/matallui[P]nibble-curses/src/CNibbles.cpp
// Function: CNibbles::UpdateScores()
void CNibbles::UpdateScores ( void )
{
  // Display scores
  attrset ( COLOR_PAIR(3) );
  if ( m_snakes[0] )
  {
  move ( 36, 2 );
  printw ("PLAYER 1 -> Lives: %d , Score: %d  ", m_snakes[0]->getLives(), m_snakes[0]->getScore());
  }
  if ( m_snakes[1] )
  {
  move ( 36, 62 );
  printw ("PLAYER 2 -> Lives: %d , Score: %d  ", m_snakes[1]->getLives(), m_snakes[1]->getScore());
  }
  move ( 36, 46);
  printw ( "%d  ", m_score ); // global score
  refresh();
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
movq %rdi, %rbx
movq 0x4f5b(%rip), %rax      # 0xcfd0
movq (%rax), %rdi
movl $0x300, %esi            # imm = 0x300
callq 0x32a0
movq 0x30(%rbx), %rax
cmpq $0x0, (%rax)
je 0x80cd
movl $0x24, %edi
movl $0x2, %esi
callq 0x31c0
movq 0x30(%rbx), %rax
movq (%rax), %rdi
callq 0x3dca
movl %eax, %r14d
movq 0x30(%rbx), %rax
movq (%rax), %rdi
callq 0x3dd4
leaq 0x14a3(%rip), %rdi      # 0x9560
movl %r14d, %esi
movl %eax, %edx
xorl %eax, %eax
callq 0x3270
movq 0x30(%rbx), %rax
cmpq $0x0, 0x8(%rax)
je 0x8113
movl $0x24, %edi
movl $0x3e, %esi
callq 0x31c0
movq 0x30(%rbx), %rax
movq 0x8(%rax), %rdi
callq 0x3dca
movl %eax, %r14d
movq 0x30(%rbx), %rax
movq 0x8(%rax), %rdi
callq 0x3dd4
leaq 0x147d(%rip), %rdi      # 0x9584
movl %r14d, %esi
movl %eax, %edx
xorl %eax, %eax
callq 0x3270
movl $0x24, %edi
movl $0x2e, %esi
callq 0x31c0
movl 0x20(%rbx), %esi
leaq 0x1453(%rip), %rdi      # 0x957f
xorl %eax, %eax
callq 0x3270
popq %rbx
popq %r14
popq %rbp
jmp 0x33e0
// File: /workspace/github_cpp_makefile_star2_O3/quancs[P]EAVC/./eavc.h
// Function: prep_remove_from_neighbours(unsigned int)
void prep_remove_from_neighbours(unsigned v) {
    //'remove' v from vAdj: move v to the end part of v_adj's vAdj
    for (unsigned i = 0; i < dVDegree[v]; i++) {
        unsigned adj = vAdj[v][i];
        unsigned indexOfLast = dVDegree[adj] - 1;
        dVDegree[adj] = indexOfLast;
        //vAdj
        for (unsigned j = 0; j <= indexOfLast; j++) {
            if (vAdj[adj][j] == v) {
                vAdj[adj][j] = vAdj[adj][indexOfLast];
                vAdj[adj][indexOfLast] = v;

                unsigned e = vEdges[adj][j];
                vEdges[adj][j] = vEdges[adj][indexOfLast];
                vEdges[adj][indexOfLast] = e;
                break;
            }
        }
    }
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
movq 0x5905(%rip), %rax      # 0x81d0
movl %edi, %ecx
cmpl $0x0, (%rax,%rcx,4)
je 0x293e
movq 0x58c6(%rip), %rdx      # 0x81a0
movq (%rdx,%rcx,8), %rsi
movq 0x58b3(%rip), %r8       # 0x8198
xorl %r9d, %r9d
movl (%rsi,%r9,4), %r10d
movl (%rax,%r10,4), %ebx
decl %ebx
movl %ebx, (%rax,%r10,4)
movq (%rdx,%r10,8), %r14
xorl %r11d, %r11d
movl %r11d, %r11d
cmpl %edi, (%r14,%r11,4)
je 0x2910
incl %r11d
cmpl %ebx, %r11d
jbe 0x28fd
jmp 0x2932
movl %ebx, %ebx
movl (%r14,%rbx,4), %ebp
movl %ebp, (%r14,%r11,4)
movl %edi, (%r14,%rbx,4)
movq (%r8,%r10,8), %r10
movl (%r10,%r11,4), %ebp
movl (%r10,%rbx,4), %r14d
movl %r14d, (%r10,%r11,4)
movl %ebp, (%r10,%rbx,4)
incq %r9
movl (%rax,%rcx,4), %r10d
cmpq %r10, %r9
jb 0x28e8
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/quancs[P]EAVC/./eavc.h
// Function: free_memory()
void free_memory() {
    for (unsigned int v = 0; v < vNum; v++) {
        delete[] vAdj[v];
        delete[] vEdges[v];
    }
    delete[] vInBest;
    delete[] cVertexIndexes;
    delete[] cVertexes;
    delete[] vInC;
    delete[] vDegree;
    delete[] vAdj;
    delete[] vEdges;
    delete[] vTimestamp;
    delete[] dscore;
    delete[] uncovEdgeIndexes;
    delete[] uncovEdges;
    delete[] edges;
    delete[] eTimestamp;
    delete[] uvSet;
    delete[] dVDegree;
}

// Assembly:
pushq %rbx
cmpl $0x0, 0x51d7(%rip)      # 0x815c
je 0x2fc1
xorl %ebx, %ebx
movq 0x5210(%rip), %rax      # 0x81a0
movq (%rax,%rbx,8), %rdi
testq %rdi, %rdi
je 0x2f9e
callq 0x2190
movq 0x51f3(%rip), %rax      # 0x8198
movq (%rax,%rbx,8), %rdi
testq %rdi, %rdi
je 0x2fb3
callq 0x2190
incq %rbx
movl 0x51a0(%rip), %eax      # 0x815c
cmpq %rax, %rbx
jb 0x2f89
movq 0x5200(%rip), %rdi      # 0x81c8
testq %rdi, %rdi
je 0x2fd2
callq 0x2190
movq 0x51e7(%rip), %rdi      # 0x81c0
testq %rdi, %rdi
je 0x2fe3
callq 0x2190
movq 0x51ce(%rip), %rdi      # 0x81b8
testq %rdi, %rdi
je 0x2ff4
callq 0x2190
movq 0x51b5(%rip), %rdi      # 0x81b0
testq %rdi, %rdi
je 0x3005
callq 0x2190
movq 0x519c(%rip), %rdi      # 0x81a8
testq %rdi, %rdi
je 0x3016
callq 0x2190
movq 0x5183(%rip), %rdi      # 0x81a0
testq %rdi, %rdi
je 0x3027
callq 0x2190
movq 0x516a(%rip), %rdi      # 0x8198
testq %rdi, %rdi
je 0x3038
callq 0x2190
movq 0x5151(%rip), %rdi      # 0x8190
testq %rdi, %rdi
je 0x3049
callq 0x2190
movq 0x5138(%rip), %rdi      # 0x8188
testq %rdi, %rdi
je 0x305a
callq 0x2190
movq 0x511f(%rip), %rdi      # 0x8180
testq %rdi, %rdi
je 0x306b
callq 0x2190
movq 0x5106(%rip), %rdi      # 0x8178
testq %rdi, %rdi
je 0x307c
callq 0x2190
movq 0x50ed(%rip), %rdi      # 0x8170
testq %rdi, %rdi
je 0x308d
callq 0x2190
movq 0x50d4(%rip), %rdi      # 0x8168
testq %rdi, %rdi
je 0x309e
callq 0x2190
movq 0x515b(%rip), %rdi      # 0x8200
testq %rdi, %rdi
je 0x30af
callq 0x2190
movq 0x511a(%rip), %rdi      # 0x81d0
testq %rdi, %rdi
je 0x30c1
popq %rbx
jmp 0x2190
popq %rbx
retq
// File: /workspace/github_cpp_makefile_star2_O3/quancs[P]EAVC/./eavc.h
// Function: reset_remove_cand()
void reset_remove_cand() {
    unsigned int v, j;
    j = 0;
    for (v = 0; v < vNum; v++) {
        if (vInC[v] == true) {
            cVertexes[j] = v;
            cVertexIndexes[v] = j;
            j++;
        } else cVertexIndexes[v] = 0;
    }

    cvSize = j;
}

// Assembly:
cmpl $0x0, 0x5092(%rip)      # 0x815c
je 0x3111
movq 0x50dd(%rip), %rax      # 0x81b0
movq 0x50e6(%rip), %rcx      # 0x81c0
xorl %edx, %edx
movq 0x50d5(%rip), %rdi      # 0x81b8
xorl %esi, %esi
cmpb $0x1, (%rax,%rdx)
jne 0x30f9
movl %esi, %r8d
movl %edx, (%rdi,%r8,4)
movl %esi, %r8d
incl %esi
jmp 0x30fc
xorl %r8d, %r8d
movl %r8d, (%rcx,%rdx,4)
incq %rdx
movl 0x5052(%rip), %r8d      # 0x815c
cmpq %r8, %rdx
jb 0x30e5
jmp 0x3113
xorl %esi, %esi
movl %esi, 0x50f7(%rip)      # 0x8210
retq
// File: /workspace/github_cpp_makefile_star2_O3/quancs[P]EAVC/./eavc.h
// Function: remove_one_vertex_from_c()
void remove_one_vertex_from_c() {
    //TODO to very large graph this function is too time-consuming
    unsigned int best_remove_v = cVertexes[0];
    int    best_dscore = dscore[best_remove_v];

    if (best_dscore != 0) {
        for (unsigned int i = 1; i < cvSize; ++i) {
            unsigned v = cVertexes[i];

            if (dscore[v] == 0) {
                vInBest[v] = NIN;
                bestSize = bestSize - 1;

                remove(v);
                unsigned int last_v_in_c = cVertexes[--cvSize];
                unsigned int index = cVertexIndexes[v];
                cVertexes[index] = last_v_in_c;
                cVertexIndexes[last_v_in_c] = index;
                break;
            } else if (dscore[v] == 1) {
                best_remove_v = v;
                break;
            }

            if (dscore[v] > best_dscore) {
                best_remove_v = v;
                best_dscore = dscore[best_remove_v];
            }
        }
    }

    remove(best_remove_v);

    //remove one vertex from c, and move the last vertex in c to the position
    unsigned int last_v_in_c = cVertexes[--cvSize];
    unsigned int index = cVertexIndexes[best_remove_v];
    cVertexes[index] = last_v_in_c;
    cVertexIndexes[last_v_in_c] = index;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq 0x5093(%rip), %rax      # 0x81b8
movl (%rax), %ebx
movq 0x505a(%rip), %rcx      # 0x8188
movl (%rcx,%rbx,4), %edx
testl %edx, %edx
je 0x31ba
movl 0x50d1(%rip), %esi      # 0x8210
cmpq $0x2, %rsi
jb 0x31ba
movl $0x1, %edi
movl (%rax,%rdi,4), %r14d
movl (%rcx,%r14,4), %r8d
cmpl $0x1, %r8d
je 0x31b7
testl %r8d, %r8d
je 0x3172
cmpl %edx, %r8d
cmovgl %r8d, %edx
cmovgl %r14d, %ebx
incq %rdi
cmpq %rdi, %rsi
jne 0x314a
jmp 0x31ba
movq 0x504f(%rip), %rax      # 0x81c8
movb $0x0, (%rax,%r14)
decl 0x5094(%rip)            # 0x8218
movl %r14d, %edi
callq 0x31f3
movq 0x5025(%rip), %rax      # 0x81b8
movl 0x5077(%rip), %ecx      # 0x8210
decl %ecx
movl %ecx, 0x506f(%rip)      # 0x8210
movl (%rax,%rcx,4), %ecx
movq 0x5015(%rip), %rdx      # 0x81c0
movl (%rdx,%r14,4), %esi
movl %ecx, (%rax,%rsi,4)
movl %esi, (%rdx,%rcx,4)
jmp 0x31ba
movl %r14d, %ebx
movl %ebx, %edi
callq 0x31f3
movq 0x4ff0(%rip), %rax      # 0x81b8
movl 0x5042(%rip), %ecx      # 0x8210
decl %ecx
movl %ecx, 0x503a(%rip)      # 0x8210
movl (%rax,%rcx,4), %ecx
movq 0x4fe0(%rip), %rdx      # 0x81c0
movl %ebx, %esi
movl (%rdx,%rsi,4), %esi
movl %ecx, (%rax,%rsi,4)
movl %esi, (%rdx,%rcx,4)
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_cpp_makefile_star2_O3/quancs[P]EAVC/./eavc.h
// Function: remove(unsigned int)
void remove(unsigned int v) {
    vInC[v] = NIN;
    dscore[v] = -dscore[v];

    unsigned int i, e, n;

    unsigned int edge_count = dVDegree[v];
    for (i = 0; i < edge_count; ++i) {
        e = vEdges[v][i];
        n = vAdj[v][i];

        if (not_in(vInC, n)) { //this adj isn't in cover set
            dscore[n]++;
            uncover(e);
        } else {
            dscore[n]--;
        }
    }
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movq 0x4fad(%rip), %rax      # 0x81b0
movl %edi, %ecx
movb $0x0, (%rax,%rcx)
movq 0x4f78(%rip), %rdx      # 0x8188
negl (%rdx,%rcx,4)
movq 0x4fb6(%rip), %rsi      # 0x81d0
movl (%rsi,%rcx,4), %esi
testq %rsi, %rsi
je 0x3298
movl 0x4fe3(%rip), %r11d     # 0x820c
movq 0x4f70(%rip), %rdi      # 0x81a0
movq (%rdi,%rcx,8), %rdi
movq 0x4f5d(%rip), %r8       # 0x8198
movq 0x4f3e(%rip), %r9       # 0x8180
movq 0x4f2f(%rip), %r10      # 0x8178
movl 0x5005(%rip), %ebx      # 0x8254
movq 0x4f12(%rip), %r14      # 0x8168
xorl %r15d, %r15d
movl (%rdi,%r15,4), %r12d
cmpb $0x1, (%rax,%r12)
ja 0x328c
movq (%r8,%rcx,8), %r13
movl (%r13,%r15,4), %r13d
incl (%rdx,%r12,4)
movl %r11d, (%r9,%r13,4)
movl %r11d, %r12d
incl %r11d
movl %r11d, 0x4f8a(%rip)     # 0x820c
movl %r13d, (%r10,%r12,4)
movl %ebx, (%r14,%r13,4)
jmp 0x3290
decl (%rdx,%r12,4)
incq %r15
cmpq %r15, %rsi
jne 0x3259
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O3/quancs[P]EAVC/./eavc.h
// Function: choose_remove_v()
unsigned int choose_remove_v() {
    unsigned int i, v;

    unsigned int best_v = cVertexes[static_cast<unsigned int>(pcg32_fast()) % cvSize];
    if (static_cast<unsigned int>(pcg32_fast()) % 10 < 9) {
        for (i = 1; i < cand_count; ++i) {
            v = cVertexes[static_cast<unsigned int>(pcg32_fast()) % cvSize];

            if (dscore[v] < dscore[best_v])
                continue;
            else if (dscore[v] > dscore[best_v])
                best_v = v;
            else if (vTimestamp[v] < vTimestamp[best_v]) {
                best_v = v;
            }
        }
    }

    return best_v;
}

// Assembly:
movabsq $0x5851f42d4c957f2d, %rdi # imm = 0x5851F42D4C957F2D
movq 0x4f05(%rip), %r8       # 0x81b8
movq 0x4e7e(%rip), %rcx      # 0x8138
movq %rcx, %r11
movq %rcx, %rax
shrq $0x16, %rax
xorq %rcx, %rax
movabsq $0x685f98a2018fade9, %r9 # imm = 0x685F98A2018FADE9
imulq %rcx, %r9
shrq $0x3d, %rcx
imulq %rdi, %r11
addb $0x16, %cl
shrq %cl, %rax
movl 0x4f26(%rip), %r10d     # 0x8210
xorl %edx, %edx
divl %r10d
movl (%r8,%rdx,4), %esi
movq %r11, %rax
shrq $0x16, %rax
xorq %r11, %rax
movq %r11, %rcx
shrq $0x3d, %rcx
movq %r9, 0x4e2d(%rip)       # 0x8138
addb $0x16, %cl
shrq %cl, %rax
movl %eax, %ecx
movl $0xcccccccd, %edx       # imm = 0xCCCCCCCD
imulq %rcx, %rdx
shrq $0x23, %rdx
addl %edx, %edx
leal (%rdx,%rdx,4), %ecx
subl %ecx, %eax
cmpl $0x8, %eax
ja 0x3390
pushq %r14
pushq %rbx
movq 0x4e52(%rip), %r11      # 0x8188
movl $0x31, %ebx
movq 0x4e4e(%rip), %r14      # 0x8190
movq %r9, %rcx
shrq $0x3d, %rcx
movq %r9, %rax
shrq $0x16, %rax
xorq %r9, %rax
addb $0x16, %cl
shrq %cl, %rax
xorl %edx, %edx
divl %r10d
movl (%r8,%rdx,4), %eax
movl %esi, %ecx
movl (%r11,%rcx,4), %edx
cmpl %edx, (%r11,%rax,4)
jl 0x337e
jg 0x337c
movl (%r14,%rax,4), %edx
cmpl (%r14,%rcx,4), %edx
jb 0x337c
movl %esi, %eax
movl %eax, %esi
imulq %rdi, %r9
decl %ebx
jne 0x3342
movq %r9, 0x4dab(%rip)       # 0x8138
popq %rbx
popq %r14
movl %esi, %eax
retq
// File: /workspace/github_cpp_makefile_star2_O3/quancs[P]EAVC/./eavc.h
// Function: add(unsigned int)
void add(unsigned int v) {
    vInC[v] = IN;
    dscore[v] = -dscore[v];

    unsigned int i, e, n;

    unsigned int edgeCount = dVDegree[v];

    for (i = 0; i < edgeCount; ++i) {
        e = vEdges[v][i];// v's i'th edge
        n = vAdj[v][i];//v's i'th neighbor

        if (not_in(vInC, n)) { //this adj isn't in cover set
            dscore[n]--;
            //conf_change[n] = 1;

            cover(e);
        } else {
            dscore[n]++;
        }
    }

}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq 0x3900(%rip), %rax      # 0x81b0
movl %edi, %ecx
movb $0x3, (%rax,%rcx)
movq 0x38cb(%rip), %rdx      # 0x8188
negl (%rdx,%rcx,4)
movq 0x3909(%rip), %rsi      # 0x81d0
movl (%rsi,%rcx,4), %esi
testq %rsi, %rsi
je 0x4934
movl 0x3937(%rip), %edi      # 0x820c
movq 0x38c4(%rip), %r8       # 0x81a0
movq (%r8,%rcx,8), %r8
movq 0x38b1(%rip), %r9       # 0x8198
movq 0x388a(%rip), %r10      # 0x8178
movq 0x388b(%rip), %r11      # 0x8180
xorl %ebx, %ebx
movl (%r8,%rbx,4), %r14d
cmpb $0x1, (%rax,%r14)
ja 0x4928
movq (%r9,%rcx,8), %r15
movl (%r15,%rbx,4), %r15d
decl (%rdx,%r14,4)
decl %edi
movl %edi, 0x38f6(%rip)      # 0x820c
movl (%r10,%rdi,4), %r14d
movl (%r11,%r15,4), %r15d
movl %r14d, (%r10,%r15,4)
movl %r15d, (%r11,%r14,4)
jmp 0x492c
incl (%rdx,%r14,4)
incq %rbx
cmpq %rbx, %rsi
jne 0x48f7
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O3/quancs[P]EAVC/./eavc.h
// Function: print_solution()
void print_solution() {
    for (unsigned int i = 0; i < vNum; i++) {
        if (in(vInBest, i)) //output vertex cover
            cout << (i + 1) << '\t';
    }
    cout << endl;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x10, %rsp
movl 0x3813(%rip), %eax      # 0x815c
testl %eax, %eax
je 0x49a3
movq 0x3874(%rip), %rcx      # 0x81c8
xorl %edx, %edx
movq 0x367b(%rip), %rbx      # 0x7fd8
leaq 0xf(%rsp), %r14
leaq 0x1(%rdx), %r15
cmpb $0x3, (%rcx,%rdx)
jb 0x4999
movq %rbx, %rdi
movq %r15, %rsi
callq 0x2100
movb $0x9, 0xf(%rsp)
movl $0x1, %edx
movq %rax, %rdi
movq %r14, %rsi
callq 0x2180
movq 0x3835(%rip), %rcx      # 0x81c8
movl 0x37c3(%rip), %eax      # 0x815c
movl %eax, %esi
movq %r15, %rdx
cmpq %rsi, %r15
jb 0x4962
movq 0x362e(%rip), %rbx      # 0x7fd8
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x2160
movsbl %al, %esi
movq %rbx, %rdi
callq 0x2040
movq %rax, %rdi
callq 0x2110
addq $0x10, %rsp
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O3/quancs[P]EAVC/./eavc.h
// Function: check_solution()
int check_solution() {
    for (unsigned int e = 0; e < eNum; ++e) {
        if (!in(vInBest, edges[e].v1) && !in(vInBest, edges[e].v2)) {
            cout << "c error: uncovered edge " << e << endl;
            return 0;
        }
    }

    unsigned int verified_vc_size = 0;
    for (unsigned int i = 0; i < vNum; i++) {
        if (in(vInBest, i))
            verified_vc_size++;
    }

    if (bestSize == verified_vc_size)
        return 1;
    else {
        cout << "c error: claimed best found vc size!=verified vc size" << endl;
        cout << "c claimed best found vc size=" << bestSize << endl;
        cout << "c verified vc size=" << verified_vc_size << endl;
        return 0;
    }
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
movl 0x377b(%rip), %eax      # 0x8160
testq %rax, %rax
je 0x4a19
movq 0x37d7(%rip), %rcx      # 0x81c8
movq 0x3778(%rip), %rdx      # 0x8170
xorl %ebx, %ebx
movl (%rdx,%rbx,8), %esi
cmpb $0x2, (%rcx,%rsi)
ja 0x4a11
movl 0x4(%rdx,%rbx,8), %esi
cmpb $0x2, (%rcx,%rsi)
jbe 0x4af9
incq %rbx
cmpq %rbx, %rax
jne 0x49fa
movl 0x373d(%rip), %eax      # 0x815c
testq %rax, %rax
je 0x4a40
xorl %ecx, %ecx
movq 0x379b(%rip), %rdx      # 0x81c8
xorl %ebp, %ebp
cmpb $0x3, (%rdx,%rcx)
sbbl $-0x1, %ebp
incq %rcx
cmpq %rcx, %rax
jne 0x4a2f
jmp 0x4a42
xorl %ebp, %ebp
movl $0x1, %eax
cmpl %ebp, 0x37cb(%rip)      # 0x8218
je 0x4b4c
movq 0x357e(%rip), %rbx      # 0x7fd8
leaq 0x1689(%rip), %rsi      # 0x60ea
movl $0x35, %edx
movq %rbx, %rdi
callq 0x2180
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x2160
movsbl %al, %esi
movq %rbx, %rdi
callq 0x2040
movq %rax, %rdi
callq 0x2110
leaq 0x1684(%rip), %rsi      # 0x6120
movl $0x1d, %edx
movq %rbx, %rdi
callq 0x2180
movl 0x3769(%rip), %esi      # 0x8218
movq %rbx, %rdi
callq 0x2100
movq %rax, %r14
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x2160
movsbl %al, %esi
movq %r14, %rdi
callq 0x2040
movq %rax, %rdi
callq 0x2110
leaq 0x1656(%rip), %rsi      # 0x613e
movl $0x13, %edx
movq %rbx, %rdi
callq 0x2180
movl %ebp, %ebx
jmp 0x4b11
movq 0x34d8(%rip), %rdi      # 0x7fd8
leaq 0x15ca(%rip), %rsi      # 0x60d1
movl $0x18, %edx
callq 0x2180
movq 0x34c0(%rip), %rdi      # 0x7fd8
movq %rbx, %rsi
callq 0x2100
movq %rax, %rbx
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x2160
movsbl %al, %esi
movq %rbx, %rdi
callq 0x2040
movq %rax, %rdi
callq 0x2110
xorl %eax, %eax
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/quancs[P]EAVC/./eavc.h
// Function: prep_handle_degree_2(unsigned int)
inline bool prep_handle_degree_2(unsigned v) {
    //set u & w as necessary vertexes
    unsigned u = vAdj[v][0];
    unsigned w = vAdj[v][1];
    bool found = false;
    if (dVDegree[u] < dVDegree[w]) {
        for (unsigned i = 0; i < dVDegree[u]; i++) {
            if (vAdj[u][i] == w) {
                found = true;
                break;
            }
        }
    } else {
        for (unsigned i = 0; i < dVDegree[w]; i++) {
            if (vAdj[w][i] == u) {
                found = true;
                break;
            }
        }
    }
    if (found == false) {
        checkAdjDomV[v] = NIN;
        return false;
    }

    vInBest[u] = IN_ABS;
    prep_remove_from_neighbours(u);
    //set adjAdj's checkAdjDomV to true
    for (unsigned k = 0, dadj = dVDegree[u]; k < dadj; k++) {
        unsigned adjAdj = vAdj[u][k];
        checkAdjDomV[adjAdj] = IN;
    }
    dVDegree[u] = 0;//remove u's neighbours

    vInBest[w] = IN_ABS;
    prep_remove_from_neighbours(w);
    //set adjAdj's checkAdjDomV to true
    for (unsigned k = 0, dadj = dVDegree[w]; k < dadj; k++) {
        unsigned adjAdj = vAdj[w][k];
        checkAdjDomV[adjAdj] = IN;
    }
    dVDegree[w] = 0;//remove w's neighbours
    total_IN_ABS = total_IN_ABS + 2;

    //set v as an unnecessary vertex
    vInBest[v] = NIN_ABS;
    total_NIN_ABS++;

    return true;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq 0x2d07(%rip), %r13      # 0x81a0
movl %edi, %r15d
movq (%r13,%r15,8), %rax
movl (%rax), %r14d
movl 0x4(%rax), %ebx
movq 0x2d22(%rip), %r12      # 0x81d0
movl (%r12,%r14,4), %eax
movl (%r12,%rbx,4), %ecx
cmpl %ecx, %eax
jae 0x54d5
testq %rax, %rax
je 0x54ef
movq (%r13,%r14,8), %rcx
xorl %edx, %edx
cmpl %ebx, (%rcx,%rdx,4)
je 0x5502
incq %rdx
cmpq %rdx, %rax
jne 0x54c6
jmp 0x54ef
testq %rcx, %rcx
je 0x54ef
movq (%r13,%rbx,8), %rax
xorl %edx, %edx
cmpl %r14d, (%rax,%rdx,4)
je 0x5502
incq %rdx
cmpq %rdx, %rcx
jne 0x54e1
movq 0x2d02(%rip), %rax      # 0x81f8
movb $0x0, (%rax,%r15)
xorl %eax, %eax
jmp 0x5594
movq 0x2cbf(%rip), %rbp      # 0x81c8
movb $0x4, (%rbp,%r14)
movl %r14d, %edi
callq 0x28c0
movl (%r12,%r14,4), %eax
testq %rax, %rax
je 0x553d
movq (%r13,%r14,8), %rcx
movq 0x2ccc(%rip), %rdx      # 0x81f8
xorl %esi, %esi
movl (%rcx,%rsi,4), %edi
movb $0x3, (%rdx,%rdi)
incq %rsi
cmpq %rsi, %rax
jne 0x552e
movl $0x0, (%r12,%r14,4)
movb $0x4, (%rbp,%rbx)
movl %ebx, %edi
callq 0x28c0
movl (%r12,%rbx,4), %eax
testq %rax, %rax
je 0x5577
movq (%r13,%rbx,8), %rcx
movq 0x2c92(%rip), %rdx      # 0x81f8
xorl %esi, %esi
movl (%rcx,%rsi,4), %edi
movb $0x3, (%rdx,%rdi)
incq %rsi
cmpq %rsi, %rax
jne 0x5568
movl $0x0, (%r12,%rbx,4)
addl $0x2, 0x2c8e(%rip)      # 0x8214
movb $0x1, (%rbp,%r15)
incl 0x2cae(%rip)            # 0x8240
movb $0x1, %al
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/jkom-cloud[P]mmseg/src/Mmseg.cpp
// Function: mmsegSpace::MMSeg::get_chunks(__gnu_cxx::__normal_iterator<char16_t const*, std::__cxx11::basic_string<char16_t, std::char_traits<char16_t>, std::allocator<char16_t>>>, __gnu_cxx::__normal_iterator<char16_t const*, std::__cxx11::basic_string<char16_t, std::char_traits<char16_t>, std::allocator<char16_t>>>, int)
std::vector<MMSeg::Chunk> MMSeg::get_chunks(StringIt _start, StringIt _end, int depth) {
    std::vector<Chunk> ret;

    // "递归"实现
    std::function<void(StringIt, StringIt, int, std::vector<StringP>, std::vector<int>)> get_chunks_it = [&] (StringIt start, StringIt end, int n, std::vector<StringP> segs, std::vector<int> inDict) {
      if (n == 0 || start == end) {
        ret.emplace_back(std::move(segs), std::move(inDict), char_freqs_);
      }
      else {
        auto m = dict_.match_all(start, end);
        //std::cout<<"Match_all Length : "<<m.size()<<std::endl;
        for (auto& w: m) {
          auto nsegs = segs;
          auto ninDict = inDict;
          auto len = length(w);
          //std::cout<<TransCode::to_utf8(String(start, start+len))<<std::endl;
          nsegs.emplace_back(std::move(w));
          ninDict.emplace_back(1);
          get_chunks_it(start + len, end, n - 1, std::move(nsegs), std::move(ninDict));
        }

        //std::cout<<TransCode::to_utf8(String(start, start+1))<<std::endl;
        segs.emplace_back(start, start +1 );
        inDict.emplace_back(0);
        get_chunks_it(start + 1, end, n - 1, std::move(segs), std::move(inDict));
      }
    };

    get_chunks_it(_start, _end, depth, std::vector<StringP>{}, std::vector<int>{});
    return ret;
  }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x60, %rsp
vxorps %xmm0, %xmm0, %xmm0
xorl %eax, %eax
movl %r8d, %ebp
movq %rcx, %r14
movq %rdx, %r15
movq %rsi, %r12
movq %rdi, %rbx
movq %rax, 0x10(%rdi)
movq %rax, 0x8(%rsp)
vmovups %xmm0, (%rdi)
movl $0x18, %edi
callq 0x2270
movq %rbx, (%rax)
movq %rsp, %rdi
movq %r12, 0x8(%rax)
movq %rdi, 0x10(%rax)
movq %rax, (%rdi)
leaq 0xa50(%rip), %rax       # 0x328c
leaq 0x40(%rsp), %r8
vxorps %xmm0, %xmm0, %xmm0
leaq 0x20(%rsp), %r9
movq %rax, 0x18(%rdi)
leaq 0xe45(%rip), %rax       # 0x369a
vmovaps %xmm0, (%r8)
vmovaps %xmm0, (%r9)
movq %rax, 0x10(%rdi)
xorl %eax, %eax
movq %rax, 0x10(%r8)
movq %rax, 0x10(%r9)
movq %r15, %rsi
movq %r14, %rdx
movl %ebp, %ecx
callq 0x36fc
movq 0x20(%rsp), %rdi
testq %rdi, %rdi
je 0x2889
callq 0x2240
movq 0x40(%rsp), %rdi
testq %rdi, %rdi
je 0x2898
callq 0x2240
movq 0x10(%rsp), %rax
testq %rax, %rax
je 0x28af
movl $0x3, %edx
movq %rsp, %rdi
movq %rdi, %rsi
callq *%rax
movq %rbx, %rax
addq $0x60, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
jmp 0x28fb
movq 0x20(%rsp), %rdi
movq %rax, %r14
testq %rdi, %rdi
je 0x28d3
callq 0x2240
movq 0x40(%rsp), %rdi
testq %rdi, %rdi
je 0x28e2
callq 0x2240
movq 0x10(%rsp), %rax
testq %rax, %rax
je 0x2906
movl $0x3, %edx
movq %rsp, %rdi
movq %rdi, %rsi
callq *%rax
jmp 0x2906
movq %rax, %rdi
callq 0x3af4
movq %rax, %r14
movq %rbx, %rdi
callq 0x3732
movq %r14, %rdi
callq 0x2390
// File: /workspace/github_cpp_makefile_star2_O3/jkom-cloud[P]mmseg/src/Mmseg.cpp
// Function: mmsegSpace::MMSeg::unload()
void mmsegSpace::MMSeg::unload() {
    mtx.lock();
    dict_.clear();
    is_inited = false;
    mtx.unlock();
  }

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
leaq 0x8(%rdi), %rbx
movq %rdi, %r14
movq %rbx, %rdi
callq 0x2320
testl %eax, %eax
jne 0x3255
leaq 0x68(%r14), %rdi
callq 0x3ac4
movb $0x0, (%r14)
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x21d0
movl %eax, %edi
callq 0x2170
// File: /workspace/github_cpp_makefile_star2_O3/jkom-cloud[P]mmseg/src/Mmseg.cpp
// Function: mmsegSpace::MMSeg::getInitStatus()
bool mmsegSpace::MMSeg::getInitStatus() {
    bool status = false;
    mtx.lock();
    status = is_inited;
    mtx.unlock();
    return status;
  }

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
leaq 0x8(%rdi), %rbx
movq %rdi, %r14
movq %rbx, %rdi
callq 0x2320
testl %eax, %eax
jne 0x3285
movb (%r14), %bpl
movq %rbx, %rdi
callq 0x21d0
movl %ebp, %eax
popq %rbx
popq %r14
popq %rbp
retq
movl %eax, %edi
callq 0x2170
// File: /workspace/github_cpp_makefile_star2_O3/jkom-cloud[P]mmseg/src/Trie.hpp
// Function: mmsegSpace::Trie::add(std::__cxx11::basic_string<char16_t, std::char_traits<char16_t>, std::allocator<char16_t>> const&)
void add(const String& word) {
			Node *current = &root_;
			for (auto ch: word) {
				auto it = current->trans_.find(ch);
				if (it == current->trans_.end()) {
					auto ret = current->trans_.emplace(ch, new Node{});
                                        //std::cout << "Current: " << current << " Alloc:" << ret.first->second << std::endl;
					current = ret.first->second;
				}
				else {
					current = it->second;
				}
			}
			current->val_ = true;// 词条存在
		}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq 0x8(%rsi), %r12
movq %rdi, %rbx
testq %r12, %r12
je 0x3ab1
movq (%rsi), %r13
addq %r12, %r12
leaq 0xe(%rsp), %r14
leaq 0x10(%rsp), %r15
xorl %ebp, %ebp
movzwl (%r13,%rbp), %eax
movq %rbx, %rdi
movq %r14, %rsi
movw %ax, 0xe(%rsp)
callq 0x3e72
testq %rax, %rax
jne 0x3aa4
movl $0x40, %edi
callq 0x2270
vxorps %xmm0, %xmm0, %xmm0
leaq 0x30(%rax), %rcx
movq %rax, 0x10(%rsp)
movq %rbx, %rdi
movq %r14, %rsi
movq %r15, %rdx
vmovups %ymm0, 0x20(%rax)
vxorps %xmm0, %xmm0, %xmm0
movq %rcx, (%rax)
movq $0x1, 0x8(%rax)
vmovups %xmm0, 0x10(%rax)
movl $0x3f800000, 0x20(%rax) # imm = 0x3F800000
vmovups %xmm0, 0x28(%rax)
movb $0x0, 0x38(%rax)
vzeroupper
callq 0x3ed4
movq 0x10(%rax), %rbx
addq $0x2, %rbp
cmpq %rbp, %r12
jne 0x3a38
movb $0x1, 0x38(%rbx)
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/jkom-cloud[P]mmseg/src/Trie.hpp
// Function: mmsegSpace::Trie::clear()
void clear() {
                         Node *r = &root_;
                         for (auto a = r->trans_.begin(); a != r->trans_.end();a++)
                           clear_(a->second);
                         r->trans_.clear();
                }

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq 0x10(%rdi), %r14
movq %rdi, %rbx
testq %r14, %r14
je 0x3ae5
movq 0x10(%r14), %rsi
movq %rbx, %rdi
callq 0x4188
movq (%r14), %r14
jmp 0x3acf
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x41e4
// File: /workspace/github_cpp_makefile_star2_O3/jkom-cloud[P]mmseg/src/util/StringUtil.hpp
// Function: bool utilSpace::utf8ToUnicode<std::__cxx11::basic_string<char16_t, std::char_traits<char16_t>, std::allocator<char16_t>>>(char const*, unsigned long, std::__cxx11::basic_string<char16_t, std::char_traits<char16_t>, std::allocator<char16_t>>&)
bool utf8ToUnicode(const char * const str, size_t len, Uint16Container& vec) {
  if(!str) {
    return false;
  }
  char ch1, ch2;
  uint16_t tmp;
  vec.clear();
  for(size_t i = 0; i < len;) {
    if(!(str[i] & 0x80)) { // 0xxxxxxx
      vec.push_back(str[i]);
      i++;
    } else if ((uint8_t)str[i] <= 0xdf && i + 1 < len) { // 110xxxxxx
      ch1 = (str[i] >> 2) & 0x07;
      ch2 = (str[i+1] & 0x3f) | ((str[i] & 0x03) << 6 );
      tmp = (((uint16_t(ch1) & 0x00ff ) << 8) | (uint16_t(ch2) & 0x00ff));
      vec.push_back(tmp);
      i += 2;
    } else if((uint8_t)str[i] <= 0xef && i + 2 < len) {
      ch1 = ((uint8_t)str[i] << 4) | ((str[i+1] >> 2) & 0x0f );
      ch2 = (((uint8_t)str[i+1]<<6) & 0xc0) | (str[i+2] & 0x3f);
      tmp = (((uint16_t(ch1) & 0x00ff ) << 8) | (uint16_t(ch2) & 0x00ff));
      vec.push_back(tmp);
      i += 3;
    } else {
      return false;
    }
  }
  return true;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
testq %rdi, %rdi
je 0x3bd1
movq $0x0, 0x8(%rdx)
movb $0x1, %bl
movq %rdx, %r14
movq %rsi, %r15
movq (%rdx), %rax
movw $0x0, (%rax)
testq %rsi, %rsi
je 0x3bd3
movq %rdi, %r12
xorl %r13d, %r13d
movzbl (%r12,%r13), %eax
testb %al, %al
js 0x3b4a
movl $0x1, %ebp
jmp 0x3bb8
cmpb $-0x21, %al
ja 0x3b7b
leaq 0x1(%r13), %rcx
cmpq %r15, %rcx
jae 0x3b7f
movzbl (%r12,%rcx), %ecx
movzwl %ax, %edx
shlb $0x6, %al
movl $0x2, %ebp
andl $0x1c, %edx
movzbl %al, %eax
shll $0x6, %edx
andl $0x3f, %ecx
orl %ecx, %eax
orl %eax, %edx
movl %edx, %eax
jmp 0x3bb8
cmpb $-0x11, %al
ja 0x3bd1
leaq 0x2(%r13), %rcx
cmpq %r15, %rcx
jae 0x3bd1
movb 0x1(%r12,%r13), %cl
shlb $0x4, %al
movl $0x3, %ebp
movl %ecx, %edx
shlb $0x6, %cl
shrb $0x2, %dl
movzbl %cl, %ecx
andb $0xf, %dl
orb %al, %dl
movzbl 0x2(%r12,%r13), %eax
andl $0x3f, %eax
orl %eax, %ecx
movzbl %dl, %eax
shll $0x8, %eax
orl %ecx, %eax
movzwl %ax, %esi
movq %r14, %rdi
callq 0x3be4
addq %rbp, %r13
cmpq %r15, %r13
jb 0x3b3a
jmp 0x3bd3
xorl %ebx, %ebx
movl %ebx, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/jkom-cloud[P]mmseg/src/util/StringUtil.hpp
// Function: void utilSpace::unicodeToUtf8<__gnu_cxx::__normal_iterator<char16_t const*, std::__cxx11::basic_string<char16_t, std::char_traits<char16_t>, std::allocator<char16_t>>>>(__gnu_cxx::__normal_iterator<char16_t const*, std::__cxx11::basic_string<char16_t, std::char_traits<char16_t>, std::allocator<char16_t>>>, __gnu_cxx::__normal_iterator<char16_t const*, std::__cxx11::basic_string<char16_t, std::char_traits<char16_t>, std::allocator<char16_t>>>, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&)
void unicodeToUtf8(Uint16ContainerConIter begin, Uint16ContainerConIter end, string& res) {
  res.clear();
  uint16_t ui;
  while(begin != end) {
    ui = *begin;
    if(ui <= 0x7f) {
      res += char(ui);
    } else if(ui <= 0x7ff) {
      res += char(((ui>>6) & 0x1f) | 0xc0);
      res += char((ui & 0x3f) | 0x80);
    } else {
      res += char(((ui >> 12) & 0x0f )| 0xe0);
      res += char(((ui>>6) & 0x3f )| 0x80 );
      res += char((ui & 0x3f) | 0x80);
    }
    begin ++;
  }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq $0x0, 0x8(%rdx)
movq (%rdx), %rax
movb $0x0, (%rax)
cmpq %rsi, %rdi
je 0x3e69
movq %rdx, %rbx
movq %rsi, %r14
movq %rdi, %r15
movzwl (%r15), %ebp
cmpw $0x7f, %bp
jbe 0x3e54
cmpw $0x7ff, %bp             # imm = 0x7FF
ja 0x3e1d
movl %ebp, %eax
shrl $0x6, %eax
orb $-0x40, %al
movsbl %al, %esi
jmp 0x3e44
movzwl %bp, %r12d
movq %rbx, %rdi
movl %r12d, %eax
shrl $0xc, %eax
orb $-0x20, %al
movsbl %al, %esi
callq 0x2200
shrl $0x6, %r12d
andb $0x3f, %r12b
orb $-0x80, %r12b
movsbl %r12b, %esi
movq %rbx, %rdi
callq 0x2200
andb $0x3f, %bpl
orb $-0x80, %bpl
movsbl %bpl, %esi
movq %rbx, %rdi
callq 0x2200
addq $0x2, %r15
cmpq %r14, %r15
jne 0x3e00
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/jkom-cloud[P]mmseg/src/Trie.hpp
// Function: mmsegSpace::Trie::clear_(mmsegSpace::Trie::Node*)
void clear_(Node * pNode) {
                         for (auto a = pNode->trans_.begin(); a != pNode->trans_.end();a++) {
                           clear_(a->second);
                         }
                         //std::cout<<"Free : "<<pNode<<std::endl;
                         delete pNode;
                }

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq 0x10(%rsi), %r15
movq %rsi, %rbx
testq %r15, %r15
je 0x41b0
movq %rdi, %r14
movq 0x10(%r15), %rsi
movq %r14, %rdi
callq 0x4188
movq (%r15), %r15
testq %r15, %r15
jne 0x419c
movq %rbx, %rdi
callq 0x41c6
movq %rbx, %rdi
popq %rbx
popq %r14
popq %r15
jmp 0x2240
nop
// File: /workspace/github_cpp_makefile_star2_O3/jkom-cloud[P]mmseg/src/Trie.hpp
// Function: mmsegSpace::Trie::match_all(__gnu_cxx::__normal_iterator<char16_t const*, std::__cxx11::basic_string<char16_t, std::char_traits<char16_t>, std::allocator<char16_t>>>, __gnu_cxx::__normal_iterator<char16_t const*, std::__cxx11::basic_string<char16_t, std::char_traits<char16_t>, std::allocator<char16_t>>>)
std::vector<StringP> match_all(StringIt start, StringIt end) {
			std::vector<StringP> ret;
			Node *current = &root_;
			StringIt _start = start;
			for (; start != end; ++start) {
				auto ch = *start;
				auto it = current->trans_.find(ch);
				if (it == current->trans_.end())
					break;
				current = it->second;
				if (current->val_) {
                                  ret.emplace_back(_start, start + 1);
                                }
			}
			return ret;
		}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
vxorps %xmm0, %xmm0, %xmm0
movq %rdi, %rbx
movq $0x0, 0x10(%rdi)
movq %rdx, 0x10(%rsp)
vmovups %xmm0, (%rdi)
cmpq %rcx, %rdx
je 0x44d8
leaq 0x6(%rsp), %r12
leaq 0x8(%rsp), %rbp
movq %rcx, %r14
movq %rdx, %r15
movq %rsi, %r13
movzwl (%r15), %eax
movw %ax, 0x6(%rsp)
movq %r13, %rdi
movq %r12, %rsi
callq 0x3e72
testq %rax, %rax
je 0x44d8
movq 0x10(%rax), %r13
cmpb $0x1, 0x38(%r13)
jne 0x44cf
leaq 0x2(%r15), %rax
movq %rax, 0x8(%rsp)
leaq 0x10(%rsp), %rsi
movq %rbx, %rdi
movq %rbp, %rdx
callq 0x4602
addq $0x2, %r15
cmpq %r14, %r15
jne 0x4492
movq %rbx, %rax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x44ec
movq (%rbx), %rdi
movq %rax, %r14
testq %rdi, %rdi
je 0x44fc
callq 0x2240
movq %r14, %rdi
callq 0x2390
// File: /workspace/github_cpp_makefile_star2_O3/jkom-cloud[P]mmseg/src/MmsegWrapper.cpp
// Function: copySegs
char * copySegs(struct tagMMSeg * pInstance, const char * pOrigStr) {
  std::string istr(pOrigStr); 
  std::string ostr;

  ostr = pInstance->ptr_mmseg->segment(istr);
  char * out = new char[ostr.length() + 1];

  strcpy(out, ostr.c_str());

  return out;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x60, %rsp
leaq 0x40(%rsp), %r14
movq %rdi, %rbx
movq %rsp, %rdx
movq %r14, %rdi
callq 0x2100
leaq 0x10(%rsp), %r15
movq %r15, -0x10(%r15)
movq $0x0, -0x8(%r15)
movb $0x0, (%r15)
movq (%rbx), %rsi
leaq 0x20(%rsp), %rdi
movl $0x3, %ecx
movq %r14, %rdx
callq 0x2916
leaq 0x20(%rsp), %rbx
movq %rsp, %rdi
movq %rbx, %rsi
callq 0x22b0
movq (%rbx), %rdi
leaq 0x30(%rsp), %rax
cmpq %rax, %rdi
je 0x54e2
callq 0x2240
movq 0x8(%rsp), %rdi
incq %rdi
callq 0x2030
movq (%rsp), %r14
movq %rax, %rbx
movq %rax, %rdi
movq %r14, %rsi
callq 0x2230
cmpq %r15, %r14
je 0x550e
movq %r14, %rdi
callq 0x2240
leaq 0x50(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x5521
callq 0x2240
movq %rbx, %rax
addq $0x60, %rsp
popq %rbx
popq %r14
popq %r15
retq
jmp 0x5530
movq (%rsp), %rdi
movq %rax, %rbx
cmpq %r15, %rdi
je 0x5541
callq 0x2240
leaq 0x50(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x5554
callq 0x2240
movq %rbx, %rdi
callq 0x2390
// File: /workspace/github_cpp_makefile_star2_O3/lluchs[P]sparsearray/./sparsearray.h
// Function: BitmapSA<C4PXS, 10000ul>::Delete(C4PXS*)
void Delete(T *el)
	{
		size_t idx = el - data;
		assert(idx < N);
		size_t i = idx / 64, j = idx % 64;
		mask[i] &= ~((uint64_t) 1 << j);
	}

// Assembly:
subq %rdi, %rsi
sarq $0x2, %rsi
movabsq $-0x3333333333333333, %rcx # imm = 0xCCCCCCCCCCCCCCCD
imulq %rsi, %rcx
cmpq $0x2710, %rcx           # imm = 0x2710
jae 0x2ba5
movq $-0x2, %rax
rolq %cl, %rax
shrq $0x6, %rcx
andq %rax, 0x30d40(%rdi,%rcx,8)
retq
pushq %rax
leaq 0x261e(%rip), %rdi      # 0x51cb
leaq 0x2588(%rip), %rsi      # 0x513c
leaq 0x2618(%rip), %rcx      # 0x51d3
movl $0x21, %edx
callq 0x1080
nop
// File: /workspace/github_cpp_makefile_star2_O3/lluchs[P]sparsearray/./sparsearray.h
// Function: BitmapSA<C4PXS, 10000ul>::Iterator<C4PXS, BitmapSA<C4PXS, 10000ul>>::operator++()
Iterator& operator++()
		{
			assert(array);
			while (!cur)
			{
				el += 64 - pos;
				if (el >= N) break;
				pos = 0;
				cur = array->mask[(el + 1) / 64];
			}
			size_t inc = __builtin_ffsll(cur);
			el += inc - start;
			pos += inc;
			cur >>= inc;
			if (el >= N)
			{
				array = nullptr;
				el = 0;
			}
			return *this;
		}

// Assembly:
pushq %rax
movq (%rdi), %rcx
testq %rcx, %rcx
je 0x2c6d
movq 0x20(%rdi), %rdx
testq %rdx, %rdx
je 0x2be6
movq 0x8(%rdi), %rax
movq 0x10(%rdi), %r8
jmp 0x2c2d
movq 0x8(%rdi), %rax
movq 0x10(%rdi), %rsi
xorl %r8d, %r8d
movq %rax, %rdx
subq %rsi, %rdx
leaq 0x40(%rdx), %rax
movq %rax, 0x8(%rdi)
cmpq $0x270f, %rax           # imm = 0x270F
ja 0x2c67
movq $0x0, 0x10(%rdi)
addq $0x41, %rdx
shrq $0x6, %rdx
movq 0x30d40(%rcx,%rdx,8), %rdx
movq %rdx, 0x20(%rdi)
movl $0x0, %esi
testq %rdx, %rdx
je 0x2bf1
bsfq %rdx, %rcx
incq %rcx
movq %r8, %rsi
movq %rcx, %r8
subq 0x18(%rdi), %r8
addq %rax, %r8
movq %r8, 0x8(%rdi)
shrq %cl, %rdx
addq %rcx, %rsi
movq %rsi, 0x10(%rdi)
movq %rdx, 0x20(%rdi)
cmpq $0x2710, %r8            # imm = 0x2710
jb 0x2c62
xorps %xmm0, %xmm0
movups %xmm0, (%rdi)
movq %rdi, %rax
popq %rcx
retq
xorl %edx, %edx
xorl %ecx, %ecx
jmp 0x2c37
leaq 0x259f(%rip), %rdi      # 0x5213
leaq 0x24c1(%rip), %rsi      # 0x513c
leaq 0x2597(%rip), %rcx      # 0x5219
movl $0x37, %edx
callq 0x1080
// File: /workspace/github_cpp_makefile_star2_O3/lluchs[P]sparsearray/./sparsearray.h
// Function: ChunkSA<C4PXS, 10000ul, 500ul>::New()
T* New()
	{
		for (size_t i = 0; i < MaxChunk; i++)
		{
			// Create new chunk if necessary.
			if (!Chunk[i])
			{
				Chunk[i] = new T[ChunkSize];
				ChunkFill[i] = 0;
			}
			// Check this chunk for space.
			if (ChunkFill[i] < ChunkSize)
				for (size_t j = 0; j < ChunkSize; j++)
					if (!UsedElements[i*ChunkSize + j])
					{
						UsedElements.set(i*ChunkSize + j);
						ChunkFill[i]++;
						return &Chunk[i][j];
					}
		}
		return nullptr;
	}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
xorl %r15d, %r15d
xorl %r12d, %r12d
movq (%rbx,%r12,8), %r14
testq %r14, %r14
je 0x2f2c
cmpq $0x1f3, 0xa0(%rbx,%r12,8) # imm = 0x1F3
jbe 0x2f58
jmp 0x2f89
movl $0x2710, %edi           # imm = 0x2710
callq 0x1030
movq %rax, %r14
movl $0x2710, %edx           # imm = 0x2710
movq %rax, %rdi
xorl %esi, %esi
callq 0x1070
movq %r14, (%rbx,%r12,8)
movq $0x0, 0xa0(%rbx,%r12,8)
movq %r15, %rcx
xorl %eax, %eax
movq %rcx, %rdx
shrq $0x6, %rdx
movq 0x140(%rbx,%rdx,8), %rsi
movl $0x1, %edi
shlq %cl, %rdi
btq %rcx, %rsi
jae 0x2fa2
addq $-0x14, %rax
incq %rcx
cmpq $-0x2710, %rax          # imm = 0xD8F0
jne 0x2f5d
incq %r12
addq $0x1f4, %r15            # imm = 0x1F4
cmpq $0x14, %r12
jne 0x2f13
xorl %r14d, %r14d
jmp 0x2fb8
orq %rdi, %rsi
movq %rsi, 0x140(%rbx,%rdx,8)
incq 0xa0(%rbx,%r12,8)
subq %rax, %r14
movq %r14, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
nop
// File: /workspace/github_cpp_makefile_star2_O3/lluchs[P]sparsearray/./sparsearray.h
// Function: ChunkSA<C4PXS, 10000ul, 500ul>::Delete(C4PXS*)
void Delete(T *el)
	{
		size_t i, j;
		for (i = 0; i < MaxChunk; i++)
			if (ChunkFill[i])
				if (el >= &Chunk[i][0] && el < &Chunk[i][ChunkSize])
					break;
		assert(i < MaxChunk);

		j = el - &Chunk[i][0];
		assert(UsedElements[i*ChunkSize + j]);
		UsedElements.reset(i*ChunkSize + j);

		if (--ChunkFill[i] == 0)
		{
			delete[] Chunk[i];
			Chunk[i] = nullptr;
		}
	}

// Assembly:
pushq %rbx
xorl %ecx, %ecx
movq %rdi, %rbx
cmpq $0x0, 0xa0(%rbx)
je 0x2ff4
movq (%rbx), %rax
cmpq %rsi, %rax
setbe %dl
leaq 0x2710(%rax), %r8
cmpq %rsi, %r8
seta %r8b
testb %r8b, %dl
jne 0x3027
addq $0x8, %rbx
addq $-0x1f4, %rcx           # imm = 0xFE0C
cmpq $-0x2710, %rcx          # imm = 0xD8F0
jne 0x2fce
leaq 0x22d2(%rip), %rdi      # 0x52e1
leaq 0x2126(%rip), %rsi      # 0x513c
leaq 0x22d1(%rip), %rcx      # 0x52ee
movl $0x92, %edx
callq 0x1080
subq %rax, %rsi
sarq $0x2, %rsi
movabsq $-0x3333333333333333, %rax # imm = 0xCCCCCCCCCCCCCCCD
imulq %rsi, %rax
subq %rcx, %rax
movq %rax, %rcx
shrq $0x6, %rcx
movq 0x140(%rdi,%rcx,8), %rcx
btq %rax, %rcx
jae 0x3082
addq $0x140, %rdi            # imm = 0x140
movq %rax, %rsi
callq 0x314a
decq 0xa0(%rbx)
jne 0x3080
movq (%rbx), %rdi
testq %rdi, %rdi
je 0x3079
callq 0x1110
movq $0x0, (%rbx)
popq %rbx
retq
leaq 0x22b5(%rip), %rdi      # 0x533e
leaq 0x20ac(%rip), %rsi      # 0x513c
leaq 0x2257(%rip), %rcx      # 0x52ee
movl $0x95, %edx
callq 0x1080
nop
// File: /workspace/github_cpp_makefile_star2_O3/lluchs[P]sparsearray/./sparsearray.h
// Function: ChunkSA<C4PXS, 10000ul, 500ul>::Iterator<C4PXS, ChunkSA<C4PXS, 10000ul, 500ul>>::next(bool)
Iterator& next(bool return_next)
		{
			for (; i < MaxChunk; i++, j = 0)
			{
				if (array->ChunkFill[i])
				{
					for (; j < ChunkSize; j++)
					{
						if (array->UsedElements[i*ChunkSize + j] && return_next)
							return *this;
						return_next = true;
					}
				}
				return_next = true;
			}
			// We're at the end.
			array = nullptr;
			i = j = 0;
			return *this;
		}

// Assembly:
movq %rdi, %rax
movq 0x8(%rdi), %rdx
cmpq $0x13, %rdx
ja 0x313a
movq (%rax), %rdi
movq 0x10(%rax), %r9
imulq $0x1f4, %rdx, %r8       # imm = 0x1F4
cmpq $0x0, 0xa0(%rdi,%rdx,8)
setne %cl
cmpq $0x1f4, %r9             # imm = 0x1F4
setb %r10b
andb %cl, %r10b
cmpb $0x1, %r10b
jne 0x3115
leaq (%r8,%r9), %rcx
movl $0x1, %r10d
shlq %cl, %r10
testb $0x1, %sil
je 0x3102
shrq $0x6, %rcx
andq 0x140(%rdi,%rcx,8), %r10
jne 0x3148
incq %r9
movq %r9, 0x10(%rax)
movb $0x1, %sil
cmpq $0x1f4, %r9             # imm = 0x1F4
jne 0x30e1
incq %rdx
movq %rdx, 0x8(%rax)
movq $0x0, 0x10(%rax)
addq $0x1f4, %r8             # imm = 0x1F4
movb $0x1, %sil
movl $0x0, %r9d
cmpq $0x14, %rdx
jne 0x30c1
xorps %xmm0, %xmm0
movups %xmm0, (%rax)
movq $0x0, 0x10(%rax)
retq
nop
// File: /workspace/github_cpp_makefile_star2_O3/lluchs[P]sparsearray/./sparsearray.h
// Function: StaticChunkSA<C4PXS, 10000ul, 500ul>::New()
T* New()
	{
		for (size_t i = 0; i < MaxChunk; i++)
		{
			// Check this chunk for space.
			if (ChunkFill[i] < ChunkSize)
				for (size_t j = 0; j < ChunkSize; j++)
					if (!UsedElements[i*ChunkSize + j])
					{
						UsedElements.set(i*ChunkSize + j);
						ChunkFill[i]++;
						return &Chunk[i][j];
					}
		}
		return nullptr;
	}

// Assembly:
xorl %edx, %edx
movq %rdi, %rax
xorl %esi, %esi
cmpq $0x1f3, 0x30d40(%rdi,%rsi,8) # imm = 0x1F3
ja 0x33eb
movq %rdx, %rcx
xorl %r8d, %r8d
movq %rcx, %r9
shrq $0x6, %r9
movq 0x30de0(%rdi,%r9,8), %r10
movl $0x1, %r11d
shlq %cl, %r11
btq %rcx, %r10
jae 0x3404
addq $-0x14, %r8
incq %rcx
cmpq $-0x2710, %r8           # imm = 0xD8F0
jne 0x33bd
incq %rsi
addq $0x2710, %rax           # imm = 0x2710
addq $0x1f4, %rdx            # imm = 0x1F4
cmpq $0x14, %rsi
jne 0x33a9
xorl %eax, %eax
retq
orq %r11, %r10
movq %r10, 0x30de0(%rdi,%r9,8)
incq 0x30d40(%rdi,%rsi,8)
subq %r8, %rax
retq
nop