LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_cpp_makefile_star2_O2/grame-cncm[P]digraph/./dglib/schedule.hh
// Function: std::ostream& operator<<<char>(std::ostream&, schedule<char> const&)
inline std::ostream& operator<<(std::ostream& file, const schedule<N>& S)
{
    std::string sep = "";

    file << "Schedule {";
    for (const N& n : S.elements()) {
        file << sep << S.order(n) << ":" << n;
        sep = ", ";
    }
    return file << "}";
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rsi, %r14
movq %rdi, %rbx
leaq 0x552b(%rip), %rsi      # 0x15081
leaq 0x8(%rsp), %rdi
leaq 0x7(%rsp), %rdx
callq 0x2080
leaq 0x73e8(%rip), %rsi      # 0x16f54
movq %rbx, %rdi
callq 0x2140
movq (%r14), %r15
movq 0x8(%r14), %rbp
leaq 0x8(%rsp), %r12
cmpq %rbp, %r15
je 0xfbd7
movq %rbx, %rdi
movq %r12, %rsi
callq 0x2120
movq %rax, %r13
movq %r14, %rdi
movq %r15, %rsi
callq 0x13b12
movq %r13, %rdi
movl %eax, %esi
callq 0x2210
movq %rax, %rdi
leaq 0x54d0(%rip), %rsi      # 0x15082
callq 0x2140
movsbl (%r15), %esi
movq %rax, %rdi
callq 0x2190
movq %r12, %rdi
leaq 0x545d(%rip), %rsi      # 0x1502a
callq 0x2230
incq %r15
jmp 0xfb80
leaq 0x6639(%rip), %rsi      # 0x16217
movq %rbx, %rdi
callq 0x2140
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
callq 0x20a0
movq %rbx, %rax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0xfc07
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
callq 0x20a0
movq %rbx, %rdi
callq 0x2220
// File: /workspace/github_cpp_makefile_star2_O2/grame-cncm[P]digraph/./dglib/schedule.hh
// Function: schedule<char> dfschedule<char, int>(digraph<char, int> const&)
inline schedule<N> dfschedule(const digraph<N, A>& G)
{
    schedule<N> S;
    std::set<N> V;  // set of visited nodes

    // recursive deep first visit (pseudo local function using a lambda)
    std::function<void(const N&)> dfvisit = [&](const N& n) {
        if (V.find(n) == V.end()) {
            V.insert(n);
            for (const auto& p : G.connections(n)) {
                dfvisit(p.first);
            }
            S.append(n);
        }
    };

    for (const auto& n : roots(G)) dfvisit(n);

    return S;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x78, %rsp
movq %rdi, %rbx
xorps %xmm0, %xmm0
movups %xmm0, (%rdi)
andq $0x0, 0x10(%rdi)
leaq 0x20(%rdi), %rax
andl $0x0, 0x20(%rdi)
andq $0x0, 0x28(%rdi)
movq %rax, 0x30(%rdi)
movq %rax, 0x38(%rdi)
andq $0x0, 0x40(%rdi)
leaq 0x50(%rsp), %rax
andl $0x0, (%rax)
andq $0x0, 0x8(%rax)
movq %rax, 0x10(%rax)
movq %rax, 0x18(%rax)
andq $0x0, 0x20(%rax)
movq %rsi, %r14
leaq 0x48(%rsp), %rax
leaq 0x8(%rsp), %rsi
movq %rax, (%rsi)
movq %r14, 0x8(%rsi)
leaq 0x28(%rsp), %rdi
movq %rdi, 0x10(%rsi)
movq %rbx, 0x18(%rsi)
callq 0x13900
leaq 0x8(%rsp), %rdi
movq %r14, %rsi
callq 0xf9a7
movq 0x8(%rsp), %r14
movq 0x10(%rsp), %r12
leaq 0x28(%rsp), %r15
cmpq %r12, %r14
je 0xfcc0
movq %r15, %rdi
movq %r14, %rsi
callq 0x13948
incq %r14
jmp 0xfcab
leaq 0x8(%rsp), %rdi
callq 0x138f2
leaq 0x28(%rsp), %rdi
callq 0x14342
leaq 0x48(%rsp), %rdi
callq 0x33c4
movq %rbx, %rax
addq $0x78, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
movq %rax, %r14
jmp 0xfd04
movq %rax, %r14
jmp 0xfd0e
movq %rax, %r14
leaq 0x8(%rsp), %rdi
callq 0x138f2
leaq 0x28(%rsp), %rdi
callq 0x14342
leaq 0x48(%rsp), %rdi
callq 0x33c4
movq %rbx, %rdi
callq 0xfdcc
movq %r14, %rdi
callq 0x2220
// File: /workspace/github_cpp_makefile_star2_O2/grame-cncm[P]digraph/./dglib/schedule.hh
// Function: int schedulingcost<char, int>(digraph<char, int> const&, schedule<char> const&)
inline int schedulingcost(const digraph<N, A>& G, const schedule<N>& S)
{
    int cost = 0;
    for (const N& n : G.nodes()) {
        int t1 = S.order(n);
        for (const auto& c : G.connections(n)) {
            int t0 = S.order(c.first);
            // assert(t1 > t0);
            cost += std::abs(t1 - t0);  // We may have loops
        }
    }
    return cost;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rsi, %rbx
movq %rdi, 0x8(%rsp)
movq (%rdi), %rax
movq 0x18(%rax), %r15
addq $0x8, %rax
movq %rax, 0x10(%rsp)
xorl %ebp, %ebp
cmpq 0x10(%rsp), %r15
je 0xfdba
leaq 0x20(%r15), %r14
movq %rbx, %rdi
movq %r14, %rsi
callq 0x13b12
movl %eax, %r12d
movq 0x8(%rsp), %rdi
movq %r14, %rsi
callq 0x10938
movq %rax, %r13
movq 0x18(%rax), %r14
addq $0x8, %r13
cmpq %r13, %r14
je 0xfdad
leaq 0x20(%r14), %rsi
movq %rbx, %rdi
callq 0x13b12
movl %r12d, %ecx
subl %eax, %ecx
movl %ecx, %eax
negl %eax
cmovsl %ecx, %eax
addl %eax, %ebp
movq %r14, %rdi
callq 0x2170
movq %rax, %r14
jmp 0xfd81
movq %r15, %rdi
callq 0x2170
movq %rax, %r15
jmp 0xfd50
movl %ebp, %eax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O2/grame-cncm[P]digraph/./dglib/schedule.hh
// Function: schedule<char> bfschedule<char, int>(digraph<char, int> const&)
inline schedule<N> bfschedule(const digraph<N, A>& G)
{
    std::vector<std::vector<N>> P = parallelize(G);
    schedule<N>                 S;

    for (uint64_t i = 0; i < P.size(); i++) {
        for (const N& n : P[i]) S.append(n);
    }
    return S;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x20, %rsp
movq %rdi, %rbx
leaq 0x8(%rsp), %rdi
callq 0x13b84
xorps %xmm0, %xmm0
movups %xmm0, (%rbx)
andq $0x0, 0x10(%rbx)
leaq 0x20(%rbx), %rax
andl $0x0, 0x20(%rbx)
andq $0x0, 0x28(%rbx)
movq %rax, 0x30(%rbx)
movq %rax, 0x38(%rbx)
andq $0x0, 0x40(%rbx)
xorl %r15d, %r15d
pushq $0x18
popq %r12
movq 0x8(%rsp), %rcx
movq 0x10(%rsp), %rax
subq %rcx, %rax
cqto
idivq %r12
cmpq %rax, %r15
jae 0xfe66
imulq $0x18, %r15, %rax
movq (%rcx,%rax), %r14
movq 0x8(%rcx,%rax), %r13
cmpq %r13, %r14
je 0xfe61
movq %rbx, %rdi
movq %r14, %rsi
callq 0x13a3c
incq %r14
jmp 0xfe4c
incq %r15
jmp 0xfe28
leaq 0x8(%rsp), %rdi
callq 0x13cc6
movq %rbx, %rax
addq $0x20, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
movq %rax, %r14
movq %rbx, %rdi
callq 0xfdcc
leaq 0x8(%rsp), %rdi
callq 0x13cc6
movq %r14, %rdi
callq 0x2220
// File: /workspace/github_cpp_makefile_star2_O2/grame-cncm[P]digraph/./dglib/schedule.hh
// Function: schedule<char> dfcyclesschedule<char, int>(digraph<char, int> const&)
inline schedule<N> dfcyclesschedule(const digraph<N, A>& G)
{
    digraph<digraph<N, A>, A> H  = graph2dag(G);
    schedule<digraph<N, A>>   SH = dfschedule(H);
    schedule<N>               S;
    for (const digraph<N, A>& n : SH.elements()) {
        S.append(dfschedule(cut(n, 1)));
    }
    return S;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xb8, %rsp
movq %rdi, %rbx
leaq 0x18(%rsp), %r14
movq %r14, %rdi
callq 0xe70c
leaq 0x28(%rsp), %rdi
movq %r14, %rsi
callq 0x14079
xorps %xmm0, %xmm0
movups %xmm0, (%rbx)
andq $0x0, 0x10(%rbx)
leaq 0x20(%rbx), %rax
andl $0x0, 0x20(%rbx)
andq $0x0, 0x28(%rbx)
movq %rax, 0x30(%rbx)
movq %rax, 0x38(%rbx)
andq $0x0, 0x40(%rbx)
movq 0x28(%rsp), %r15
movq 0x30(%rsp), %r14
leaq 0x8(%rsp), %r12
pushq $0x1
popq %rbp
leaq 0x70(%rsp), %r13
cmpq %r14, %r15
je 0xff48
movq %r12, %rdi
movq %r15, %rsi
movl %ebp, %edx
callq 0xe760
movq %r13, %rdi
movq %r12, %rsi
callq 0xfc1c
movq %rbx, %rdi
movq %r13, %rsi
callq 0x14186
movq %r13, %rdi
callq 0xfdcc
leaq 0x10(%rsp), %rdi
callq 0x2efc
addq $0x10, %r15
jmp 0xff08
leaq 0x28(%rsp), %rdi
callq 0x141b4
leaq 0x20(%rsp), %rdi
callq 0x2efc
movq %rbx, %rax
addq $0xb8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r15
jmp 0xffa9
movq %rax, %r15
jmp 0xff97
movq %rax, %r15
jmp 0xff8d
movq %rax, %r15
leaq 0x70(%rsp), %rdi
callq 0xfdcc
leaq 0x10(%rsp), %rdi
callq 0x2efc
movq %rbx, %rdi
callq 0xfdcc
leaq 0x28(%rsp), %rdi
callq 0x141b4
leaq 0x20(%rsp), %rdi
callq 0x2efc
movq %r15, %rdi
callq 0x2220
// File: /workspace/github_cpp_makefile_star2_O2/grame-cncm[P]digraph/./dglib/schedule.hh
// Function: schedule<char> bfcyclesschedule<char, int>(digraph<char, int> const&)
inline schedule<N> bfcyclesschedule(const digraph<N, A>& G)
{
    digraph<digraph<N, A>, A> H  = graph2dag(G);
    schedule<digraph<N, A>>   SH = bfschedule(H);
    schedule<N>               S;
    for (const digraph<N, A>& n : SH.elements()) {
        S.append(dfschedule(cut(n, 1)));
    }
    return S;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xb8, %rsp
movq %rdi, %rbx
leaq 0x18(%rsp), %r14
movq %r14, %rdi
callq 0xe70c
leaq 0x28(%rsp), %rdi
movq %r14, %rsi
callq 0x1451d
xorps %xmm0, %xmm0
movups %xmm0, (%rbx)
andq $0x0, 0x10(%rbx)
leaq 0x20(%rbx), %rax
andl $0x0, 0x20(%rbx)
andq $0x0, 0x28(%rbx)
movq %rax, 0x30(%rbx)
movq %rax, 0x38(%rbx)
andq $0x0, 0x40(%rbx)
movq 0x28(%rsp), %r15
movq 0x30(%rsp), %r14
leaq 0x8(%rsp), %r12
pushq $0x1
popq %rbp
leaq 0x70(%rsp), %r13
cmpq %r14, %r15
je 0x10065
movq %r12, %rdi
movq %r15, %rsi
movl %ebp, %edx
callq 0xe760
movq %r13, %rdi
movq %r12, %rsi
callq 0xfc1c
movq %rbx, %rdi
movq %r13, %rsi
callq 0x14186
movq %r13, %rdi
callq 0xfdcc
leaq 0x10(%rsp), %rdi
callq 0x2efc
addq $0x10, %r15
jmp 0x10025
leaq 0x28(%rsp), %rdi
callq 0x141b4
leaq 0x20(%rsp), %rdi
callq 0x2efc
movq %rbx, %rax
addq $0xb8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r15
jmp 0x100c6
movq %rax, %r15
jmp 0x100b4
movq %rax, %r15
jmp 0x100aa
movq %rax, %r15
leaq 0x70(%rsp), %rdi
callq 0xfdcc
leaq 0x10(%rsp), %rdi
callq 0x2efc
movq %rbx, %rdi
callq 0xfdcc
leaq 0x28(%rsp), %rdi
callq 0x141b4
leaq 0x20(%rsp), %rdi
callq 0x2efc
movq %r15, %rdi
callq 0x2220
// File: /workspace/github_cpp_makefile_star2_O2/grame-cncm[P]digraph/./dglib/digraphop.hh
// Function: digraph<char, int> mapconnections<char, int>(digraph<char, int> const&, std::function<bool (char const&, char const&, int const&)>)
inline digraph<N, A> mapconnections(const digraph<N, A>& G, std::function<bool(const N&, const N&, const A&)> keep)
{
    digraph<N, A> R;
    for (const N& n : G.nodes()) {
        R.add(n);
        for (const auto& c : G.connections(n)) {
            if (keep(n, c.first, c.second)) {
                R.add(n, c.first, c.second);
            }
        }
    }
    return R;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rdx, %r14
movq %rsi, %rbx
movq %rdi, 0x8(%rsp)
callq 0xe2d6
movq %rbx, 0x10(%rsp)
movq (%rbx), %rax
movq 0x18(%rax), %rbx
addq $0x8, %rax
movq %rax, 0x18(%rsp)
cmpq 0x18(%rsp), %rbx
je 0x1250b
movsbl 0x20(%rbx), %esi
movq 0x8(%rsp), %rdi
callq 0x112fa
movq %rbx, 0x20(%rsp)
leaq 0x20(%rbx), %r13
movq 0x10(%rsp), %rdi
movq %r13, %rsi
callq 0x10938
movq %rax, %rbp
movq 0x18(%rax), %r15
addq $0x8, %rbp
cmpq %rbp, %r15
je 0x124f9
leaq 0x20(%r15), %r12
leaq 0x24(%r15), %rbx
movq %r14, %rdi
movq %r13, %rsi
movq %r12, %rdx
movq %rbx, %rcx
callq 0x1253c
testb %al, %al
je 0x124ec
movq 0x8(%rsp), %rdi
movq %r13, %rsi
movq %r12, %rdx
movq %rbx, %rcx
callq 0xe302
movq %r15, %rdi
callq 0x2170
movq %rax, %r15
jmp 0x124b7
movq 0x20(%rsp), %rdi
callq 0x2170
movq %rax, %rbx
jmp 0x1247d
movq 0x8(%rsp), %rax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x12523
jmp 0x12523
movq %rax, %rbx
movq 0x8(%rsp), %rdi
addq $0x8, %rdi
callq 0x2efc
movq %rbx, %rdi
callq 0x2220
// File: /workspace/github_cpp_makefile_star2_O2/grame-cncm[P]digraph/./dglib/schedule.hh
// Function: schedule<char>::append(char const&)
schedule& append(const N& n)
    {
        if (fOrder[n] > 0) {
            std::cerr << "WARNING, already scheduled" << std::endl;
        } else {
            fElements.push_back(n);
            fOrder[n] = fElements.size();
        }
        return *this;
    }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %r14
movq %rdi, %rbx
leaq 0x18(%rdi), %r15
movq %r15, %rdi
callq 0x103b8
cmpl $0x0, (%rax)
jle 0x13a77
movq 0xf58f(%rip), %rdi      # 0x22ff0
leaq 0x34d1(%rip), %rsi      # 0x16f39
callq 0x2140
movq %rax, %rdi
callq 0x20b0
jmp 0x13a94
movq %rbx, %rdi
movq %r14, %rsi
callq 0x137d6
movl 0x8(%rbx), %ebp
subl (%rbx), %ebp
movq %r15, %rdi
movq %r14, %rsi
callq 0x103b8
movl %ebp, (%rax)
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O2/yuryu[P]tfoecho/server.cpp
// Function: open_socket(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)
int open_socket(const std::string &port)
{
    struct addrinfo hint, *res;
    
    std::memset(&hint, 0, sizeof(hint));
    hint.ai_family = AF_UNSPEC;
    hint.ai_socktype = SOCK_STREAM;
    hint.ai_flags = AI_PASSIVE | AI_NUMERICSERV;
    int e = getaddrinfo(nullptr, port.c_str(), &hint, &res);
    if( e != 0 )
    {
        std::cerr << "getaddrinfo: " << gai_strerror(e) << std::endl;
        std::exit(EXIT_FAILURE);
    }
    
    int sock;
    struct addrinfo *rp;
    for( rp = res; rp != nullptr; rp = rp->ai_next )
    {
        sock = socket(rp->ai_family, rp->ai_socktype | SOCK_NONBLOCK, rp->ai_protocol);
        if( sock == -1 ) continue;
        if( bind(sock, rp->ai_addr, rp->ai_addrlen) == 0 ) break;
        close(sock);
    }
    if( rp == nullptr )
    {
        std::cerr << "Couldn't bind." << std::endl;
        std::exit(EXIT_FAILURE);
    }
    int protocol = rp->ai_protocol;
    freeaddrinfo(res);
    
    const int qlen = TFO_QLEN;
    e = setsockopt(sock, protocol, TCP_FASTOPEN, &qlen, sizeof(qlen));
    if( e == -1 )
    {
        close(sock);
        cerror("setsockopt");
        std::exit(EXIT_FAILURE);
    }
    if( listen(sock, LISTEN_QLEN) == -1 )
    {
        close(sock);
        cerror("listen");
        std::exit(EXIT_FAILURE);
    }
    return sock;
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
subq $0x40, %rsp
xorps %xmm0, %xmm0
leaq 0x10(%rsp), %rdx
movaps %xmm0, (%rdx)
movaps %xmm0, 0x10(%rdx)
movaps %xmm0, 0x20(%rdx)
movl $0x1, 0x8(%rdx)
movl $0x401, (%rdx)          # imm = 0x401
movq (%rdi), %rsi
movq %rsp, %rbx
xorl %edi, %edi
movq %rbx, %rcx
callq 0x21b0
testl %eax, %eax
jne 0x247c
movl $0x800, %r14d           # imm = 0x800
movq (%rbx), %rbx
testq %rbx, %rbx
je 0x2459
movl 0x8(%rbx), %esi
orl %r14d, %esi
movl 0x4(%rbx), %edi
movl 0xc(%rbx), %edx
callq 0x2050
cmpl $-0x1, %eax
je 0x240b
movl %eax, %ebp
movq 0x18(%rbx), %rsi
movl 0x10(%rbx), %edx
movl %eax, %edi
callq 0x2040
testl %eax, %eax
je 0x2411
movl %ebp, %edi
callq 0x2250
addq $0x28, %rbx
jmp 0x23d2
movl 0xc(%rbx), %ebx
movq (%rsp), %rdi
callq 0x21c0
leaq 0xc(%rsp), %rcx
movl $0x80, (%rcx)
pushq $0x17
popq %rdx
pushq $0x4
popq %r8
movl %ebp, %edi
movl %ebx, %esi
callq 0x2220
cmpl $-0x1, %eax
je 0x24a3
movl %ebp, %edi
movl $0x80, %esi
callq 0x2190
cmpl $-0x1, %eax
je 0x24b3
movl %ebp, %eax
addq $0x40, %rsp
popq %rbx
popq %r14
popq %rbp
retq
movq 0x2b90(%rip), %rdi      # 0x4ff0
leaq 0xbab(%rip), %rsi       # 0x3012
callq 0x2160
movq %rax, %rdi
callq 0x20e0
pushq $0x1
popq %rdi
callq 0x21a0
movl %eax, %ebp
movq 0x2b6b(%rip), %rdi      # 0x4ff0
leaq 0xb78(%rip), %rsi       # 0x3004
callq 0x2160
movq %rax, %rbx
movl %ebp, %edi
callq 0x21f0
movq %rbx, %rdi
movq %rax, %rsi
jmp 0x2467
movl %ebp, %edi
callq 0x2250
leaq 0xb70(%rip), %rdi       # 0x3021
jmp 0x24c1
movl %ebp, %edi
callq 0x2250
leaq 0xb6b(%rip), %rdi       # 0x302c
callq 0x24c8
jmp 0x2474
// File: /workspace/github_cpp_makefile_star2_O2/yuryu[P]tfoecho/server.cpp
// Function: accept_and_register(int, int)
int accept_and_register(int sfd, int epollfd)
{
    // Accept a new connection
    struct sockaddr addr;
    socklen_t addrlen = sizeof(addr);
    int s;
    do
    {
        s = accept4(sfd, &addr, &addrlen, SOCK_NONBLOCK);
    } while( s == -1 && errno == EINTR );
    if( s == -1 )
    {
        cerror("accept");
        std::exit(EXIT_FAILURE);
    }

    struct epoll_event ev;
    ev.events = EPOLLIN | EPOLLET;
    ev.data.fd = s;
    if( epoll_ctl(epollfd, EPOLL_CTL_ADD, s, &ev) == -1 )
    {
        perror("epoll_ctl: EPOLL_CTL_ADD");
        std::exit(EXIT_FAILURE);
    }
    return s;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x20, %rsp
movl %esi, %ebx
movl %edi, %ebp
movq %rsp, %r14
movl $0x10, (%r14)
leaq 0x10(%rsp), %r12
movl %ebp, %edi
movq %r12, %rsi
movq %r14, %rdx
movl $0x800, %ecx            # imm = 0x800
callq 0x20d0
cmpl $-0x1, %eax
jne 0x255e
callq 0x2030
cmpl $0x4, (%rax)
je 0x2529
leaq 0xae2(%rip), %rdi       # 0x3033
callq 0x24c8
pushq $0x1
popq %rdi
callq 0x21a0
movl %eax, %r15d
leaq 0x4(%rsp), %rcx
movl $0x80000001, (%rcx)     # imm = 0x80000001
movl %eax, 0x4(%rcx)
pushq $0x1
popq %rsi
movl %ebx, %edi
movl %eax, %edx
callq 0x21e0
cmpl $-0x1, %eax
je 0x2590
movl %r15d, %eax
addq $0x20, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
leaq 0xaa3(%rip), %rdi       # 0x303a
callq 0x2140
jmp 0x2556
// File: /workspace/github_cpp_makefile_star2_O2/yuryu[P]tfoecho/server.cpp
// Function: process_client_socket(int, int)
void process_client_socket(int s, int epollfd)
{
    static std::vector<char> buf(BUFFER_SIZE);
    ssize_t rs;
    while( (rs = recv(s, &buf[0], buf.size(), 0)) != 0 )
    {
        if( rs == -1 )
        {
            if( errno == EINTR ) continue;
            if( errno == EAGAIN || errno == EWOULDBLOCK ) return;
            cerror("recv");
            break;
        }
        ssize_t sent;
        // EAGAIN or EWOULDBLOCK is retuned when the socket buffer is full
        // We should try with another socket for maximum performance, however,
        // we just wait until the buffer becomes available as we don't have
        // enough buffer for that.
        do {
            sent = send(s, &buf[0], rs, 0);
        } while( sent == -1 && 
                 (errno == EINTR || errno == EAGAIN || errno == EWOULDBLOCK) );
        if( sent == -1 )
        {
            cerror("send");
            break;
        }
    }
    if( epoll_ctl(epollfd, EPOLL_CTL_DEL, s, nullptr) == -1 )
        cerror("epoll_ctl: EPOLL_CTL_DEL");
    close(s);
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
subq $0x10, %rsp
movl %esi, %ebp
movl %edi, %ebx
movb 0x2bc0(%rip), %al       # 0x5170
testb %al, %al
je 0x2661
movq 0x2b99(%rip), %rsi      # 0x5158
movq 0x2b9a(%rip), %rdx      # 0x5160
subq %rsi, %rdx
movl %ebx, %edi
xorl %ecx, %ecx
callq 0x2070
cmpq $-0x1, %rax
je 0x260c
movq %rax, %r14
testq %rax, %rax
je 0x2632
movq 0x2b71(%rip), %rsi      # 0x5158
movl %ebx, %edi
movq %r14, %rdx
xorl %ecx, %ecx
callq 0x20f0
cmpq $-0x1, %rax
jne 0x25b8
callq 0x2030
movl (%rax), %eax
cmpl $0x4, %eax
je 0x25e0
cmpl $0xb, %eax
je 0x25e0
jmp 0x2626
callq 0x2030
movl (%rax), %eax
cmpl $0x4, %eax
je 0x25b8
cmpl $0xb, %eax
je 0x2658
leaq 0xa2f(%rip), %rdi       # 0x3053
jmp 0x262d
leaq 0xa2b(%rip), %rdi       # 0x3058
callq 0x24c8
pushq $0x2
popq %rsi
movl %ebp, %edi
movl %ebx, %edx
xorl %ecx, %ecx
callq 0x21e0
cmpl $-0x1, %eax
jne 0x2651
leaq 0xa11(%rip), %rdi       # 0x305d
callq 0x24c8
movl %ebx, %edi
callq 0x2250
addq $0x10, %rsp
popq %rbx
popq %r14
popq %rbp
retq
leaq 0x2b08(%rip), %rdi      # 0x5170
callq 0x2230
testl %eax, %eax
je 0x25b8
leaq 0x2adc(%rip), %rdi      # 0x5158
leaq 0xf(%rsp), %rdx
movl $0x1000, %esi           # imm = 0x1000
callq 0x2822
leaq 0x1e2(%rip), %rdi       # 0x2874
leaq 0x2abf(%rip), %rsi      # 0x5158
leaq 0x2a98(%rip), %rdx      # 0x5138
callq 0x2150
leaq 0x2ac4(%rip), %rdi      # 0x5170
callq 0x2130
jmp 0x25b8
movq %rax, %rbx
leaq 0x2ab0(%rip), %rdi      # 0x5170
callq 0x2120
movq %rbx, %rdi
callq 0x2210
// File: /workspace/github_cpp_makefile_star2_O2/yuryu[P]tfoecho/server.cpp
// Function: server(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)
void server(const std::string &port)
{
    FD sfd(open_socket(port));
    
    struct epoll_event ev, events[MAX_EVENTS];

    FD epollfd(epoll_create1(0));
    if( epollfd == -1 )
    {
        cerror("epoll_create1");
        std::exit(EXIT_FAILURE);
    }
    ev.events = EPOLLIN;
    ev.data.fd = sfd;
    if( epoll_ctl(epollfd, EPOLL_CTL_ADD, sfd, &ev) == -1 )
    {
        perror("epoll_ctl: EPOLL_CTL_ADD");
        std::exit(EXIT_FAILURE);
    }

    while( 1 )
    {
        const int nfds = epoll_wait(epollfd, events, MAX_EVENTS, -1);
        if( nfds == -1 )
        {
            if( errno == EINTR ) continue;
            cerror("epoll_wait");
            std::exit(EXIT_FAILURE);
        }

        for( int i = 0; i < nfds; ++i )
        {
            if( events[i].data.fd == sfd )
                accept_and_register(sfd, epollfd);
            else
                process_client_socket(events[i].data.fd, epollfd);
        }
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x1a8, %rsp            # imm = 0x1A8
callq 0x238c
movl %eax, %ebx
movl %eax, 0x10(%rsp)
xorl %edi, %edi
callq 0x21d0
movl %eax, 0xc(%rsp)
cmpl $-0x1, %eax
jne 0x2707
leaq 0x976(%rip), %rdi       # 0x3076
callq 0x24c8
jmp 0x2734
movl %eax, %ebp
leaq 0x14(%rsp), %rcx
movl $0x1, (%rcx)
movl %ebx, 0x4(%rcx)
pushq $0x1
popq %rsi
movl %eax, %edi
movl %ebx, %edx
callq 0x21e0
cmpl $-0x1, %eax
jne 0x273c
leaq 0x90b(%rip), %rdi       # 0x303a
callq 0x2140
pushq $0x1
popq %rdi
callq 0x21a0
pushq $0x20
popq %r15
pushq $-0x1
popq %r12
movl %ebp, %edi
leaq 0x20(%rsp), %rsi
movl %r15d, %edx
movl %r12d, %ecx
callq 0x20c0
cmpl $-0x1, %eax
je 0x2792
testl %eax, %eax
movl $0x0, %ecx
cmovlel %ecx, %eax
imulq $0xc, %rax, %r13
xorl %r14d, %r14d
cmpq %r14, %r13
je 0x2744
movl 0x24(%rsp,%r14), %edi
cmpl %ebx, %edi
jne 0x2785
movl %ebx, %edi
movl %ebp, %esi
callq 0x250a
jmp 0x278c
movl %ebp, %esi
callq 0x259e
addq $0xc, %r14
jmp 0x276c
callq 0x2030
cmpl $0x4, (%rax)
je 0x2744
leaq 0x8e1(%rip), %rdi       # 0x3084
callq 0x24c8
jmp 0x2734
jmp 0x27b0
jmp 0x27b0
jmp 0x27b0
movq %rax, %rbx
leaq 0xc(%rsp), %rdi
callq 0x287a
leaq 0x10(%rsp), %rdi
callq 0x287a
movq %rbx, %rdi
callq 0x2210
// File: /workspace/github_cpp_makefile_star2_O2/yuryu[P]tfoecho/server.cpp
// Function: main
int main(int argc, char *argv[])
{
    std::string port;
    if( argc <= 1 )
    {
        port = DEFAULT_PORT;
    } else {
        port = argv[1];
    }

    server(port);
}

// Assembly:
pushq %rbx
subq $0x20, %rsp
leaq 0x10(%rsp), %rax
movq %rax, -0x10(%rax)
andq $0x0, -0x8(%rax)
movb $0x0, (%rax)
cmpl $0x1, %edi
jg 0x27fb
leaq 0x89e(%rip), %rsi       # 0x308f
movq %rsp, %rdi
callq 0x2240
jmp 0x2807
movq 0x8(%rsi), %rsi
movq %rsp, %rdi
callq 0x2240
movq %rsp, %rdi
callq 0x26cd
movq %rax, %rbx
movq %rsp, %rdi
callq 0x20b0
movq %rbx, %rdi
callq 0x2210
// File: /workspace/github_cpp_makefile_star2_O2/enbock[P]Warp10Server/app/tThread.cpp
// Function: u::tThread::tThread(u::Vector<u::String>)
tThread(Vector<String> arg)
			{
				trace("Hello " + toString());
				cnt = 0;
				trace("Create thread now...");
				Callback cb(this, cb_cast(&tThread::newThread));
				ThreadSystem::create(&cb);
				//programExit();
			}

// Assembly:
pushq %r14
pushq %rbx
subq $0x78, %rsp
movq %rdi, %rbx
callq 0x405768
leaq 0x1fad36(%rip), %rax    # 0x5ff7c0
movq %rax, (%rbx)
movq $0x60a5a0, %rdi         # imm = 0x60A5A0
leaq 0x18f5de(%rip), %rsi    # 0x594079
callq 0x4720f0
movq %rax, %r14
movq (%rbx), %rax
leaq 0x20(%rsp), %rdi
movq %rbx, %rsi
callq *0x18(%rax)
leaq 0x58(%rsp), %rdx
leaq 0x18f5c1(%rip), %rsi    # 0x59407e
movq %rsp, %rdi
callq 0x404dce
movq %rsp, %rsi
movq %r14, %rdi
callq 0x484a20
leaq 0x18f5ae(%rip), %rsi    # 0x594085
movq %rax, %rdi
callq 0x4720f0
movq %rax, %rdi
callq 0x4719d0
movq %rsp, %rdi
callq 0x481ff0
leaq 0x20(%rsp), %rdi
callq 0x404a14
andq $0x0, 0x38(%rbx)
movq $0x60a5a0, %rdi         # imm = 0x60A5A0
leaq 0x18f56d(%rip), %rsi    # 0x594079
callq 0x4720f0
leaq 0x18f572(%rip), %rsi    # 0x59408a
movq %rax, %rdi
callq 0x4720f0
leaq 0x18f55e(%rip), %rsi    # 0x594085
movq %rax, %rdi
callq 0x4720f0
movq %rax, %rdi
callq 0x4719d0
leaq 0x3ee(%rip), %rdx       # 0x404f2c
leaq 0x20(%rsp), %rdi
movq %rbx, %rsi
xorl %ecx, %ecx
xorl %r8d, %r8d
callq 0x4052b8
leaq 0x20(%rsp), %rdi
callq 0x406e74
leaq 0x20(%rsp), %rdi
callq 0x405824
addq $0x78, %rsp
popq %rbx
popq %r14
retq
movq %rax, %r14
leaq 0x20(%rsp), %rdi
callq 0x405824
jmp 0x404b9e
jmp 0x404b9b
movq %rax, %r14
jmp 0x404b8f
jmp 0x404b9b
movq %rax, %r14
movq %rsp, %rdi
callq 0x481ff0
leaq 0x20(%rsp), %rdi
callq 0x404a14
jmp 0x404b9e
movq %rax, %r14
movq %rbx, %rdi
callq 0x405824
movq %r14, %rdi
callq 0x4b2fa0
// File: /workspace/github_cpp_makefile_star2_O2/enbock[P]Warp10Server/app/tThread.cpp
// Function: u::tThread::newThread(u::Object*)
void newThread(Object *arg)
			{
				int64 num;
				lock();
				num = cnt++;
				unlock();
				trace("This is thread nr. " + int2string(num));
				Callback cb(this, cb_cast(&tThread::newThread));
				ThreadSystem::create(&cb);
				ThreadSystem::create(&cb);
				if(num == 10000)
				{
					trace("-----------------END PRG----------------------");
					programExit();
				}
			}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x80, %rsp
movq %rdi, %r14
callq 0x405722
movq 0x38(%r14), %rbx
leaq 0x1(%rbx), %rax
movq %rax, 0x38(%r14)
movq %r14, %rdi
callq 0x4056de
movq $0x60a5a0, %rdi         # imm = 0x60A5A0
leaq 0x18f117(%rip), %rsi    # 0x594079
callq 0x4720f0
movq %rax, %r15
leaq 0x28(%rsp), %rdi
movl %ebx, %esi
callq 0x4059f2
leaq 0x60(%rsp), %rdx
leaq 0x18f11d(%rip), %rsi    # 0x59409f
leaq 0x8(%rsp), %rdi
callq 0x404dce
leaq 0x8(%rsp), %rsi
movq %r15, %rdi
callq 0x484a20
leaq 0x18f0e5(%rip), %rsi    # 0x594085
movq %rax, %rdi
callq 0x4720f0
movq %rax, %rdi
callq 0x4719d0
leaq 0x8(%rsp), %rdi
callq 0x481ff0
leaq 0x28(%rsp), %rdi
callq 0x404a14
leaq -0x9f(%rip), %rdx       # 0x404f2c
leaq 0x28(%rsp), %r15
movq %r15, %rdi
movq %r14, %rsi
xorl %ecx, %ecx
xorl %r8d, %r8d
callq 0x4052b8
movq %r15, %rdi
callq 0x406e74
leaq 0x28(%rsp), %rdi
callq 0x406e74
cmpq $0x2710, %rbx           # imm = 0x2710
jne 0x405039
movq $0x60a5a0, %rdi         # imm = 0x60A5A0
leaq 0x18f070(%rip), %rsi    # 0x594079
callq 0x4720f0
leaq 0x18f09e(%rip), %rsi    # 0x5940b3
movq %rax, %rdi
callq 0x4720f0
leaq 0x18f061(%rip), %rsi    # 0x594085
movq %rax, %rdi
callq 0x4720f0
movq %rax, %rdi
callq 0x4719d0
callq 0x404858
leaq 0x28(%rsp), %rdi
callq 0x405824
addq $0x80, %rsp
popq %rbx
popq %r14
popq %r15
retq
movq %rax, %rbx
jmp 0x405062
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
callq 0x481ff0
leaq 0x28(%rsp), %rdi
callq 0x404a14
jmp 0x40507b
movq %rax, %rbx
leaq 0x28(%rsp), %rdi
callq 0x405824
movq %rbx, %rdi
callq 0x4b2fa0
nop
// File: /workspace/github_cpp_makefile_star2_O2/toxaart[P]hierarchical_block_sparse_lib/test_source/test_matrix_alloc_problem.cc
// Function: get_wall_seconds()
static double get_wall_seconds() {
  struct timeval tv;
  if(gettimeofday(&tv, NULL) != 0)
    throw std::runtime_error("Error in cht::get_wall_seconds(), in gettimeofday().");
  double seconds = tv.tv_sec + (double)tv.tv_usec / 1000000;
  return seconds;
}

// Assembly:
pushq %r14
pushq %rbx
subq $0x18, %rsp
leaq 0x8(%rsp), %rdi
xorl %esi, %esi
callq 0x21d0
testl %eax, %eax
jne 0x2dcb
cvtsi2sdq 0x8(%rsp), %xmm1
cvtsi2sdq 0x10(%rsp), %xmm0
divsd 0x3261(%rip), %xmm0     # 0x6020
addsd %xmm1, %xmm0
addq $0x18, %rsp
popq %rbx
popq %r14
retq
pushq $0x10
popq %rdi
callq 0x20b0
movq %rax, %rbx
leaq 0x3345(%rip), %rsi      # 0x6122
movq %rax, %rdi
callq 0x2060
movq 0x7204(%rip), %rsi      # 0x9ff0
movq 0x71c5(%rip), %rdx      # 0x9fb8
movq %rbx, %rdi
callq 0x2200
movq %rax, %r14
movq %rbx, %rdi
callq 0x20f0
movq %r14, %rdi
callq 0x2220
// File: /workspace/github_cpp_makefile_star2_O2/davidsun[P]TinyCompiler/Item.cpp
// Function: Item::operator=(Item const&)
Item &Item::operator = (const Item &item){
    left_side = item.left_side;
    right_side = item.right_side;
    position = item.position;
    return *this;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
movb (%rsi), %al
movb %al, (%rdi)
addq $0x8, %rsi
addq $0x8, %rdi
callq 0x2120
movl 0x28(%rbx), %eax
movl %eax, 0x28(%r14)
movq %r14, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
nop
// File: /workspace/github_cpp_makefile_star2_O2/davidsun[P]TinyCompiler/CodeItem.cpp
// Function: CodeItem::operator=(CodeItem const&)
CodeItem &CodeItem::operator = (const CodeItem &code_item){
    command = code_item.command;
    param1 = code_item.param1;
    param2 = code_item.param2;
    return *this;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
callq 0x2120
movb 0x20(%rbx), %al
movb %al, 0x20(%r14)
movb 0x21(%rbx), %al
movb %al, 0x21(%r14)
movq %r14, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_cpp_makefile_star2_O2/davidsun[P]TinyCompiler/ItemSet.cpp
// Function: ItemSet::advance(char, std::vector<Item, std::allocator<Item>> const&) const
ItemSet ItemSet::advance(char c, const vector <Item> &rules) const{
    ItemSet ret;
    for (int i = 0; i < _items.size(); i ++){
        const Item &item = _items[i];
        if (item.position < item.right_side.size() && item.right_side[item.position] == c)
            ret.addItem(Item(item.left_side, item.right_side, item.position + 1));
    }
    for (int i = 0; i < ret.getItems().size(); i ++){
        for (int j = 0; j < rules.size(); j ++){
            const Item &item = ret.getItems()[i];
            const Item &rule = rules[j];
            if (item.position < item.right_side.size() && item.right_side[item.position] == rule.left_side)
                ret.addItem(Item(rule.left_side, rule.right_side, 0));
        }
    }
    return ret;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movq %rcx, 0x10(%rsp)
movl %edx, %r9d
movq %rsi, %r15
movq %rdi, %rbx
xorps %xmm0, %xmm0
movups %xmm0, (%rdi)
andq $0x0, 0x10(%rdi)
xorl %r12d, %r12d
pushq $0x30
popq %r8
leaq 0x18(%rsp), %r13
xorl %ebp, %ebp
movl %edx, 0x8(%rsp)
movq (%r15), %rsi
movq 0x8(%r15), %rax
subq %rsi, %rax
cqto
idivq %r8
cmpq %rbp, %rax
jbe 0x28fd
movslq 0x28(%rsi,%r12), %rcx
cmpq %rcx, 0x10(%rsi,%r12)
jbe 0x28f4
leaq (%rsi,%r12), %rdx
addq $0x8, %rdx
movq (%rdx), %rax
cmpb %r9b, (%rax,%rcx)
jne 0x28f4
addq %r12, %rsi
movsbl (%rsi), %esi
incl %ecx
movq %r13, %rdi
callq 0x2680
movq %rbx, %rdi
movq %r13, %r14
movq %r13, %rsi
callq 0x29fc
leaq 0x20(%rsp), %rdi
callq 0x20f0
pushq $0x30
popq %r8
movq %r14, %r13
movl 0x8(%rsp), %r9d
incq %rbp
addq $0x30, %r12
jmp 0x288f
xorl %ecx, %ecx
leaq 0x18(%rsp), %r13
movq 0x10(%rsp), %rsi
movq 0x8(%rbx), %rax
subq (%rbx), %rax
cqto
idivq %r8
cmpq %rcx, %rax
jbe 0x29b3
movq %rcx, 0x8(%rsp)
imulq $0x30, %rcx, %r15
pushq $0x8
popq %rbp
xorl %r12d, %r12d
movq (%rsi), %rcx
movq 0x8(%rsi), %rax
subq %rcx, %rax
cqto
idivq %r8
cmpq %r12, %rax
jbe 0x29a6
movq (%rbx), %rax
movslq 0x28(%rax,%r15), %rdx
cmpq %rdx, 0x10(%rax,%r15)
jbe 0x299d
addq %r15, %rax
movq 0x8(%rax), %rax
movb (%rax,%rdx), %al
cmpb -0x8(%rcx,%rbp), %al
jne 0x299d
addq %rbp, %rcx
movsbl %al, %esi
movq %r13, %rdi
movq %rcx, %rdx
xorl %ecx, %ecx
callq 0x2680
movq %rbx, %r14
movq %rbx, %rdi
movq %r13, %rbx
movq %r13, %rsi
callq 0x29fc
leaq 0x20(%rsp), %rdi
callq 0x20f0
movq %rbx, %r13
movq %r14, %rbx
movq 0x10(%rsp), %rsi
pushq $0x30
popq %r8
incq %r12
addq $0x30, %rbp
jmp 0x292d
movq 0x8(%rsp), %rcx
incq %rcx
jmp 0x2909
movq %rbx, %rax
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r15
leaq 0x20(%rsp), %rdi
callq 0x20f0
jmp 0x29eb
jmp 0x29e8
movq %rax, %r15
leaq 0x20(%rsp), %rdi
callq 0x20f0
movq %r14, %rbx
jmp 0x29eb
movq %rax, %r15
movq %rbx, %rdi
callq 0x2cd2
movq %r15, %rdi
callq 0x2330
nop
// File: /workspace/github_cpp_makefile_star2_O2/davidsun[P]TinyCompiler/ItemSet.cpp
// Function: ItemSet::operator==(ItemSet const&) const
bool ItemSet::operator == (const ItemSet &itemSet) const{
    if (_items.size() != itemSet._items.size()) return false;
    int found = 0;
    for (int i = 0; i < _items.size(); i ++){
        for (int j = 0; j < itemSet._items.size(); j ++){
            if (_items[i] == itemSet._items[j]){
                found ++;
                break;
            }
        }
    }
    return found == _items.size();
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rsi, %rbx
movq %rdi, %r14
movq (%rdi), %rcx
movq 0x8(%rdi), %rax
movq %rax, %rdx
subq %rcx, %rdx
movq 0x8(%rsi), %rsi
subq (%rbx), %rsi
xorl %edi, %edi
cmpq %rsi, %rdx
jne 0x2b16
movq $0x0, 0x8(%rsp)
pushq $0x30
popq %r12
xorl %esi, %esi
subq %rcx, %rax
cqto
idivq %r12
cmpq %rsi, %rax
jbe 0x2b0a
movq %rsi, 0x10(%rsp)
imulq $0x30, %rsi, %r13
xorl %r15d, %r15d
pushq $-0x1
popq %rbp
movq (%rbx), %rsi
movq 0x8(%rbx), %rax
subq %rsi, %rax
cqto
idivq %r12
incq %rbp
cmpq %rbp, %rax
jbe 0x2af9
movq (%r14), %rdi
addq %r13, %rdi
addq %r15, %rsi
addq $0x30, %r15
callq 0x26fc
testb %al, %al
je 0x2ac0
movq 0x8(%rsp), %rax
incl %eax
movq %rax, 0x8(%rsp)
movq 0x10(%rsp), %rsi
incq %rsi
movq (%r14), %rcx
movq 0x8(%r14), %rax
jmp 0x2aa4
movslq 0x8(%rsp), %rcx
cmpq %rcx, %rax
sete %dil
movl %edi, %eax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O2/davidsun[P]TinyCompiler/LRAnalytics.cpp
// Function: LRAnalytics::addRule(char, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)
void LRAnalytics::addRule(char left_side, const string &right_side){
    _rules.push_back(Item(left_side, right_side, 0));
    for (int i = 0; i < right_side.size(); i ++)
        if (std::string::npos == _letters.find(right_side[i])) _letters += right_side[i];
    if (std::string::npos == _letters.find(left_side)) _letters += left_side;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x30, %rsp
movq %rdx, %r14
movl %esi, %ebp
movq %rdi, %rbx
leaq 0x20(%rdi), %r15
movq %rsp, %r12
movq %r12, %rdi
xorl %ecx, %ecx
callq 0x2680
movq %r15, %rdi
movq %r12, %rsi
callq 0x4b02
leaq 0x8(%rsp), %rdi
callq 0x20f0
xorl %r15d, %r15d
cmpq %r15, 0x8(%r14)
jbe 0x3b22
movq (%r14), %rax
movsbl (%rax,%r15), %esi
movq %rbx, %rdi
xorl %edx, %edx
callq 0x2250
cmpq $-0x1, %rax
jne 0x3b1d
movq (%r14), %rax
movsbl (%rax,%r15), %esi
movq %rbx, %rdi
callq 0x2190
incq %r15
jmp 0x3aef
movsbl %bpl, %ebp
movq %rbx, %rdi
movl %ebp, %esi
xorl %edx, %edx
callq 0x2250
cmpq $-0x1, %rax
jne 0x3b42
movq %rbx, %rdi
movl %ebp, %esi
callq 0x2190
addq $0x30, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
callq 0x20f0
movq %rbx, %rdi
callq 0x2330
// File: /workspace/github_cpp_makefile_star2_O2/davidsun[P]TinyCompiler/LRAnalytics.cpp
// Function: LRAnalytics::genStates() const
vector <ItemSet> LRAnalytics::genStates() const{
    vector <ItemSet> ret;
    ret.push_back(_rules);
    int cur = 0;
    while (cur < ret.size()){
        for (int i = 0; i < _letters.size(); i ++){
            const ItemSet &p = ret[cur]; 
            ItemSet newSet = p.advance(_letters[i], _rules);
            int j;
            for (j = 0; j < ret.size(); j ++)
                if (newSet == ret[j]) break; 
            if (newSet.getItems().size() > 0 && j == ret.size()) ret.push_back(newSet);
        }
        cur ++;
    }
    return ret;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movq %rsi, %r14
movq %rdi, %rbx
xorps %xmm0, %xmm0
movups %xmm0, (%rdi)
andq $0x0, 0x10(%rdi)
addq $0x20, %rsi
leaq 0x20(%rsp), %rdi
movq %rsi, 0x10(%rsp)
callq 0x2842
leaq 0x20(%rsp), %rsi
movq %rbx, %rdi
callq 0x4cc8
leaq 0x20(%rsp), %r12
movq %r12, %rdi
callq 0x2cd2
xorl %ecx, %ecx
pushq $0x18
popq %rbp
movq %r14, 0x8(%rsp)
movq 0x8(%rbx), %rax
subq (%rbx), %rax
cqto
idivq %rbp
cmpq %rcx, %rax
jbe 0x3cc1
movq %rcx, (%rsp)
imulq $0x18, %rcx, %rax
movq %rax, 0x18(%rsp)
xorl %r15d, %r15d
cmpq %r15, 0x8(%r14)
jbe 0x3cb5
movq (%rbx), %rsi
addq 0x18(%rsp), %rsi
movq (%r14), %rax
movsbl (%rax,%r15), %edx
movq %r12, %rdi
movq 0x10(%rsp), %rcx
callq 0x2856
xorl %r14d, %r14d
xorl %ecx, %ecx
movq %rcx, %r13
movq (%rbx), %rsi
movq 0x8(%rbx), %rax
subq %rsi, %rax
cqto
idivq %rbp
cmpq %rcx, %rax
jbe 0x3c73
addq %r14, %rsi
movq %r12, %rdi
callq 0x2a62
leaq 0x1(%r13), %rcx
addq $0x18, %r14
testb %al, %al
je 0x3c45
movq %r12, %rdi
callq 0x2a5e
movq 0x8(%rax), %rcx
cmpq (%rax), %rcx
je 0x3ca0
movq 0x8(%rbx), %rax
subq (%rbx), %rax
cqto
idivq %rbp
cmpq %r13, %rax
jne 0x3ca0
movq %rbx, %rdi
movq %r12, %rsi
callq 0x4882
movq %r12, %rdi
callq 0x2cd2
incq %r15
movq 0x8(%rsp), %r14
jmp 0x3c19
movq (%rsp), %rcx
incq %rcx
jmp 0x3bf4
movq %rbx, %rax
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x3cde
jmp 0x3cd7
movq %rax, %r14
jmp 0x3ceb
jmp 0x3cde
movq %rax, %r14
leaq 0x20(%rsp), %rdi
callq 0x2cd2
movq %rbx, %rdi
callq 0x48ae
movq %r14, %rdi
callq 0x2330
nop
// File: /workspace/github_cpp_makefile_star2_O2/davidsun[P]TinyCompiler/LRAnalytics.cpp
// Function: LRAnalytics::getNonTerminals[abi:cxx11]() const
string LRAnalytics::getNonTerminals() const{
    string ret;
    for (int i = 0; i < _rules.size(); i ++)
        if (std::string::npos == ret.find(_rules[i].left_side)) ret += _rules[i].left_side;
    return ret;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movq %rsi, %r14
movq %rdi, %rbx
leaq 0x10(%rdi), %rax
movq %rax, (%rdi)
andq $0x0, 0x8(%rdi)
movb $0x0, 0x10(%rdi)
xorl %r15d, %r15d
pushq $0x30
popq %r12
xorl %r13d, %r13d
movq 0x20(%r14), %rcx
movq 0x28(%r14), %rax
subq %rcx, %rax
cqto
idivq %r12
cmpq %r13, %rax
jbe 0x3d69
movsbl (%rcx,%r15), %esi
movq %rbx, %rdi
xorl %edx, %edx
callq 0x2250
cmpq $-0x1, %rax
jne 0x3d60
movq 0x20(%r14), %rax
movsbl (%rax,%r15), %esi
movq %rbx, %rdi
callq 0x2190
incq %r13
addq $0x30, %r15
jmp 0x3d25
movq %rbx, %rax
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
movq %rax, %r14
movq %rbx, %rdi
callq 0x20f0
movq %r14, %rdi
callq 0x2330
nop
// File: /workspace/github_cpp_makefile_star2_O2/davidsun[P]TinyCompiler/LRAnalytics.cpp
// Function: LRAnalytics::getTerminals[abi:cxx11]() const
string LRAnalytics::getTerminals() const{
    string non = getNonTerminals();
    string ret;
    for (int i = 0; i < _letters.size(); i ++)
        if (std::string::npos == non.find(_letters[i])) ret += _letters[i];
    return ret;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rsi, %r14
movq %rdi, %rbx
leaq 0x8(%rsp), %r15
movq %r15, %rdi
callq 0x3cfc
leaq 0x10(%rbx), %rax
movq %rax, (%rbx)
andq $0x0, 0x8(%rbx)
movb $0x0, 0x10(%rbx)
xorl %r12d, %r12d
cmpq %r12, 0x8(%r14)
jbe 0x3df4
movq (%r14), %rax
movsbl (%rax,%r12), %esi
movq %r15, %rdi
xorl %edx, %edx
callq 0x2250
cmpq $-0x1, %rax
jne 0x3def
movq (%r14), %rax
movsbl (%rax,%r12), %esi
movq %rbx, %rdi
callq 0x2190
incq %r12
jmp 0x3dc1
leaq 0x8(%rsp), %rdi
callq 0x20f0
movq %rbx, %rax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
movq %rax, %r14
movq %rbx, %rdi
callq 0x20f0
leaq 0x8(%rsp), %rdi
callq 0x20f0
movq %r14, %rdi
callq 0x2330
// File: /workspace/github_cpp_makefile_star2_O2/davidsun[P]TinyCompiler/CodeGenerator.cpp
// Function: CodeGenerator::parse(LRAnalytics const&, std::vector<std::pair<char, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>, std::allocator<std::pair<char, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>>> const&, std::vector<int, std::allocator<int>> const&, std::vector<std::vector<CodeItem, std::allocator<CodeItem>>, std::allocator<std::vector<CodeItem, std::allocator<CodeItem>>>> const&)
vector <string> CodeGenerator::parse(const LRAnalytics &lr_analytics, const vector <pair <char, string> > &la_result, const vector <int> &lra_result, const vector <ListCodeItems> &code_rules){
    _lra_position = lra_result.size() - 1;
    _la_position = la_result.size() - 1;
    _tmp_count = 0;
    _label_count = 0;
    _lr_analytics = lr_analytics;
    _la_result = la_result;
    _lra_result = lra_result;
    _code_rules = code_rules;
    return parse_p().second;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x40, %rsp
movq %r9, %r15
movq %r8, %r12
movq %rcx, %r13
movq %rdx, %rcx
movq %rsi, %rbx
movq 0x8(%r8), %rax
subq (%r8), %rax
shrq $0x2, %rax
decl %eax
movl %eax, (%rsi)
movq 0x8(%r13), %rax
subq (%r13), %rax
movq %rdi, %r14
pushq $0x28
popq %rsi
cqto
idivq %rsi
decl %eax
movl %eax, 0x4(%rbx)
andq $0x0, 0x8(%rbx)
leaq 0x10(%rbx), %rdi
movq %rcx, %rsi
callq 0x6cd2
leaq 0x48(%rbx), %rdi
movq %r13, %rsi
callq 0x6cfc
leaq 0x60(%rbx), %rdi
movq %r12, %rsi
callq 0x6dda
leaq 0x78(%rbx), %rdi
movq %r15, %rsi
callq 0x6ea4
leaq 0x8(%rsp), %r15
movq %r15, %rdi
movq %rbx, %rsi
callq 0x6090
movups 0x20(%r15), %xmm0
movups %xmm0, (%r14)
movq 0x30(%r15), %rax
movq %rax, 0x10(%r14)
xorps %xmm0, %xmm0
movups %xmm0, 0x20(%r15)
andq $0x0, 0x30(%r15)
movq %r15, %rdi
callq 0x6f82
movq %r14, %rax
addq $0x40, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
nop
// File: /workspace/github_cpp_makefile_star2_O2/davidsun[P]TinyCompiler/CodeRunner.cpp
// Function: CodeRunner::getVariable_p(std::map<int, std::map<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, Variable*, std::less<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>, std::allocator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const, Variable*>>>, std::less<int>, std::allocator<std::pair<int const, std::map<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, Variable*, std::less<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>, std::allocator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const, Variable*>>>>>> const&, std::vector<int, std::allocator<int>> const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)
Variable *CodeRunner::getVariable_p(const map <int, map <string, Variable *> > &variables, const vector <int> &cur_scopes, const string &name){
    for (int i = 0; i < cur_scopes.size(); i ++){
        map <int, map <string, Variable *> >::const_iterator it = variables.find(cur_scopes[i]);
        if (it != variables.end()){
            map <string, Variable *>::const_iterator itx = it -> second.find(name);
            if (itx != it -> second.end()) return itx -> second;
        }
    }
    return 0;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rcx, (%rsp)
movq %rdx, %r15
movq %rsi, %r12
leaq 0x8(%rsi), %rbp
xorl %ebx, %ebx
xorl %r14d, %r14d
movq (%r15), %rsi
movq 0x8(%r15), %rax
subq %rsi, %rax
sarq $0x2, %rax
cmpq %r14, %rax
jbe 0xa243
addq %rbx, %rsi
movq %r12, %rdi
callq 0xb89c
cmpq %rbp, %rax
je 0xa23a
movq %rax, %r13
leaq 0x28(%rax), %rdi
movq (%rsp), %rsi
callq 0xb8ee
addq $0x30, %r13
cmpq %r13, %rax
jne 0xa247
incq %r14
addq $0x4, %rbx
jmp 0xa1fe
xorl %eax, %eax
jmp 0xa24b
movq 0x40(%rax), %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O2/KokiKishimoto[P]cp_decomposition/./model_file_load.hpp
// Function: ModelFileLoad::model_load(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
void model_load(std::string modelfile){
		std::ifstream fin;
		
		fin.open(modelfile);
		fin >> Size >> vecDim;
		Vec.resize(Size);
		for (int i = 0; i < Size; i++) {
			std::string tmp;
			fin >> tmp;
			Vec[i].resize(vecDim);
			for (int j = 0; j < vecDim; j++) {
				fin >> Vec[i][j];
			}
		}
		fin.close();
	}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x238, %rsp            # imm = 0x238
movq %rsi, %r14
movq %rdi, %rbx
leaq 0x30(%rsp), %r15
movq %r15, %rdi
callq 0x21f0
pushq $0x8
popq %rdx
movq %r15, %rdi
movq %r14, %rsi
callq 0x2180
leaq 0x30(%rsp), %rdi
movq %rbx, %rsi
callq 0x2120
leaq 0x4(%rbx), %r14
movq %rax, %rdi
movq %r14, %rsi
callq 0x2120
leaq 0x8(%rbx), %r15
movslq (%rbx), %rsi
movq %r15, %rdi
callq 0x579e
xorl %r13d, %r13d
leaq 0x30(%rsp), %r12
leaq 0x10(%rsp), %rbp
movq %rbx, (%rsp)
movslq (%rbx), %rax
cmpq %rax, %r13
jge 0x3fc5
leaq 0x20(%rsp), %rax
movq %rax, 0x10(%rsp)
andq $0x0, 0x18(%rsp)
movb $0x0, 0x20(%rsp)
movq %r12, %rdi
movq %rbp, %rsi
callq 0x2230
imulq $0x18, %r13, %rbx
movq (%r15), %rdi
addq %rbx, %rdi
movslq (%r14), %rsi
callq 0x40f0
movq %r13, 0x8(%rsp)
xorl %r13d, %r13d
xorl %ebp, %ebp
movslq (%r14), %rax
cmpq %rax, %rbp
jge 0x3fa7
movq (%r15), %rax
movq (%rax,%rbx), %rsi
addq %r13, %rsi
movq %r12, %rdi
callq 0x2130
incq %rbp
addq $0x8, %r13
jmp 0x3f84
leaq 0x10(%rsp), %rbp
movq %rbp, %rdi
callq 0x20d0
movq 0x8(%rsp), %r13
incq %r13
movq (%rsp), %rbx
jmp 0x3f40
leaq 0x30(%rsp), %rdi
callq 0x2060
leaq 0x30(%rsp), %rdi
callq 0x2070
addq $0x238, %rsp            # imm = 0x238
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
jmp 0x3fff
jmp 0x3ff2
movq %rax, %rbx
leaq 0x10(%rsp), %rdi
callq 0x20d0
leaq 0x30(%rsp), %rdi
callq 0x2070
movq %rbx, %rdi
callq 0x22c0
nop
// File: /workspace/github_cpp_makefile_star2_O2/KokiKishimoto[P]cp_decomposition/testcp.cpp
// Function: TestCP::generate_key(std::vector<Triple, std::allocator<Triple>>&)
void generate_key(std::vector<Triple>& triples){
		for (Triple& t : triples) {
			Key k1(t.relation, t.obj);
			subjSet[k1].insert(t.subj);

			Key k2(t.relation, t.subj);
			objSet[k2].insert(t.obj);
		}
	}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rdi, %rbx
movq (%rsi), %r14
movq 0x8(%rsi), %r12
leaq 0x318(%rdi), %r15
addq $0x348, %rbx            # imm = 0x348
leaq 0x8(%rsp), %r13
cmpq %r12, %r14
je 0x41aa
leaq 0x4(%r14), %rbp
movq 0x4(%r14), %xmm0
pshufd $0xe1, %xmm0, %xmm0     # xmm0 = xmm0[1,0,2,3]
movq %xmm0, 0x10(%rsp)
movq %r15, %rdi
leaq 0x10(%rsp), %rsi
callq 0x5faa
movq %rax, %rdi
movq %r14, %rsi
callq 0x63c2
movl 0x8(%r14), %eax
movl %eax, 0x8(%rsp)
movl (%r14), %eax
movl %eax, 0xc(%rsp)
movq %rbx, %rdi
movq %r13, %rsi
callq 0x5faa
movq %rax, %rdi
movq %rbp, %rsi
callq 0x63c2
addq $0x14, %r14
jmp 0x414d
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nop