LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_cpp_makefile_star2_O2/zkl94[P]distributed-key-value-store/./MP2Node.h
// Function: Bundle::Bundle(MessageType, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
Bundle(MessageType t, string key, string value) {
		this->success_responses = 0;
		this->failure_responses = 0;
		this->t = t;
		this->key = key;
		this->value = value;
		this->iteration = 0; // the times being read by checkMessages
	}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rcx, %r15
movq %rdi, %r14
leaq 0x10(%rdi), %rbx
leaq 0x20(%rdi), %rax
movq %rax, 0x10(%rdi)
andq $0x0, 0x18(%rdi)
xorl %eax, %eax
movb %al, 0x20(%rdi)
leaq 0x30(%rdi), %r12
leaq 0x40(%rdi), %rcx
movq %rcx, 0x30(%rdi)
andq $0x0, 0x38(%rdi)
movb %al, 0x40(%rdi)
andq $0x0, (%rdi)
movl %esi, 0x8(%rdi)
movq %rbx, %rdi
movq %rdx, %rsi
callq 0x3150
movq %r12, %rdi
movq %r15, %rsi
callq 0x3150
andl $0x0, 0x50(%r14)
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
movq %rax, %r14
movq %r12, %rdi
callq 0x3110
movq %rbx, %rdi
callq 0x3110
movq %r14, %rdi
callq 0x3420
nop
// File: /workspace/github_cpp_makefile_star2_O2/j-faria[P]kima/examples/51Peg/kima_setup.cpp
// Function: main
int main(int argc, char** argv)
{
    /* set the RV data file */
    datafile = "51Peg.rv";

    // the second argument is the units of the RVs
    // the third (optional) argument, tells kima not to skip any line in the header of the file
    load(datafile, "ms", 0);

    // set the sampler and run it!
    Sampler<RVmodel> sampler = setup<RVmodel>(argc, argv);
    sampler.run(50); // print to terminal every 50th iteration

    return 0;
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
subq $0x6c0, %rsp            # imm = 0x6C0
movq %rsi, %rbx
movl %edi, %ebp
leaq 0x4370c(%rip), %r14     # 0x646c0
leaq 0x26062(%rip), %rsi     # 0x4701d
movq %r14, %rdi
callq 0x6770
leaq 0x8(%rsp), %rdx
andl $0x0, (%rdx)
leaq 0x1b50f(%rip), %rsi     # 0x3c4e1
movq %r14, %rdi
callq 0x21205
leaq 0x8(%rsp), %r14
movq %r14, %rdi
movl %ebp, %esi
movq %rbx, %rdx
callq 0x212ae
pushq $0x32
popq %rsi
movq %r14, %rdi
callq 0x212fa
leaq 0x8(%rsp), %rdi
callq 0x214c0
xorl %eax, %eax
addq $0x6c0, %rsp            # imm = 0x6C0
popq %rbx
popq %r14
popq %rbp
retq
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
callq 0x214c0
movq %rbx, %rdi
callq 0x66e0
// File: /workspace/github_cpp_makefile_star2_O2/wichtounet[P]articles/src/threads/part3/call_once.cpp
// Function: main
int main(){
    std::thread t1(do_something);
    std::thread t2(do_something);
    std::thread t3(do_something);
    std::thread t4(do_something);

    t1.join();
    t2.join();
    t3.join();
    t4.join();

    return 0;
}

// Assembly:
pushq %rbx
subq $0x20, %rsp
leaq -0x9a(%rip), %rbx       # 0x122c
leaq 0x18(%rsp), %rdi
movq %rbx, %rsi
callq 0x13b2
leaq 0x10(%rsp), %rdi
movq %rbx, %rsi
callq 0x13b2
leaq -0xbb(%rip), %rsi       # 0x122c
leaq 0x8(%rsp), %rdi
callq 0x13b2
leaq -0xcc(%rip), %rsi       # 0x122c
movq %rsp, %rdi
callq 0x13b2
leaq 0x18(%rsp), %rdi
callq 0x10e0
leaq 0x10(%rsp), %rdi
callq 0x10e0
leaq 0x8(%rsp), %rdi
callq 0x10e0
movq %rsp, %rdi
callq 0x10e0
movq %rsp, %rdi
callq 0x1418
leaq 0x8(%rsp), %rdi
callq 0x1418
leaq 0x10(%rsp), %rdi
callq 0x1418
leaq 0x18(%rsp), %rdi
callq 0x1418
xorl %eax, %eax
addq $0x20, %rsp
popq %rbx
retq
movq %rax, %rbx
jmp 0x136e
movq %rax, %rbx
jmp 0x1378
movq %rax, %rbx
jmp 0x1382
movq %rsp, %rdi
movq %rax, %rbx
callq 0x1418
leaq 0x8(%rsp), %rdi
callq 0x1418
leaq 0x10(%rsp), %rdi
callq 0x1418
leaq 0x18(%rsp), %rdi
callq 0x1418
movq %rbx, %rdi
callq 0x10f0
// File: /workspace/github_cpp_makefile_star2_O2/dcdolson[P]nsh-sf-devkit/examples/health_echo/main.cpp
// Function: main
int main(int argc, char** argv)
{
    try
    {
        auto interface = nshdev::NetInterfaceFactory::CreateInterfaceFromArgs(argc, argv);
        if(interface == nullptr)
        {
            std::cerr << "Failed to create interface" << std::endl;
            return 2;
        }

        HealthEcho echo;
        interface->SetConsumer(&echo);

        nshdev::Scheduler scheduler(*interface);

        scheduler.SchedulePackets();
    }
    catch(const std::exception& e)
    {
        std::cerr << "Caught exception (aborting)" << std::endl << e.what() << std::endl;
    }

    return 1;  // can only get here by exception
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
subq $0x30, %rsp
leaq 0xc(%rsp), %rax
movl %edi, (%rax)
leaq 0x28(%rsp), %rdx
movq %rsi, (%rdx)
movq %rsp, %rdi
movq %rax, %rsi
callq 0x26de
movq (%rsp), %rbx
testq %rbx, %rbx
je 0x251e
leaq 0x485a(%rip), %rax      # 0x6d48
addq $0x10, %rax
leaq 0x20(%rsp), %rsi
movq %rax, (%rsi)
movq %rbx, %rdi
callq 0x25e8
movq (%rsp), %rsi
leaq 0x10(%rsp), %rdi
callq 0x3168
leaq 0x10(%rsp), %rdi
callq 0x317a
xorl %ebp, %ebp
jmp 0x253c
movq 0x4ac3(%rip), %rdi      # 0x6fe8
leaq 0x1ad8(%rip), %rsi      # 0x4004
callq 0x21b0
movq %rax, %rdi
callq 0x2100
pushq $0x2
popq %rbp
movq (%rsp), %rdi
testq %rdi, %rdi
je 0x254b
movq (%rdi), %rax
callq *0x8(%rax)
testq %rbx, %rbx
je 0x2553
pushq $0x1
popq %rbp
movl %ebp, %eax
addq $0x30, %rsp
popq %rbx
popq %r14
popq %rbp
retq
jmp 0x2568
movq %rdx, %r14
movq %rax, %rbx
jmp 0x257d
movq %rdx, %r14
movq %rax, %rbx
movq (%rsp), %rdi
testq %rdi, %rdi
je 0x257d
movq (%rdi), %rax
callq *0x8(%rax)
cmpl $0x1, %r14d
jne 0x25d7
movq %rbx, %rdi
callq 0x20d0
movq %rax, %rbx
movq 0x4a53(%rip), %rdi      # 0x6fe8
leaq 0x1a83(%rip), %rsi      # 0x401f
callq 0x21b0
movq %rax, %rdi
callq 0x2100
movq %rax, %r14
movq (%rbx), %rax
movq %rbx, %rdi
callq *0x10(%rax)
movq %r14, %rdi
movq %rax, %rsi
callq 0x21b0
movq %rax, %rdi
callq 0x2100
callq 0x2250
jmp 0x2550
movq %rax, %rbx
callq 0x2250
movq %rbx, %rdi
callq 0x22a0
movq %rax, %rdi
callq 0x2612
nop
// File: /workspace/github_cpp_makefile_star2_O2/dcdolson[P]nsh-sf-devkit/src/NetInterfaceFactory/NetInterfaceFactory.cpp
// Function: nshdev::CreateDpdkIf(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
std::unique_ptr<DpdkNetInterface> CreateDpdkIf(std::string pciAddr)
{
    std::string progName = "CreateDpdkIf";
    std::string dashW = "-w";
    char * argv[] =
    {
        // ugh
        &progName[0],
        &dashW[0],
        &pciAddr[0]
    };

    const uint32_t numInterfaces = DpdkSetup(3, argv);

    if(numInterfaces < 1)
    {
        return std::unique_ptr<DpdkNetInterface>();
    }

    return std::make_unique<DpdkNetInterface>(0);
}

// Assembly:
pushq %r14
pushq %rbx
subq $0x68, %rsp
movq %rsi, %r14
movq %rdi, %rbx
leaq 0x1a6e(%rip), %rsi      # 0x40a2
leaq 0x30(%rsp), %rdi
leaq 0x10(%rsp), %rdx
callq 0x281c
leaq 0x1a65(%rip), %rsi      # 0x40af
leaq 0x10(%rsp), %rdi
leaq 0x50(%rsp), %rdx
callq 0x281c
movq 0x30(%rsp), %rax
leaq 0x50(%rsp), %rsi
movq %rax, (%rsi)
movq 0x10(%rsp), %rax
movq %rax, 0x8(%rsi)
movq (%r14), %rax
movq %rax, 0x10(%rsi)
pushq $0x3
popq %rdi
callq 0x30c8
testl %eax, %eax
je 0x2694
leaq 0xc(%rsp), %rsi
andl $0x0, (%rsi)
movq %rbx, %rdi
callq 0x2857
jmp 0x2698
andq $0x0, (%rbx)
leaq 0x10(%rsp), %rdi
callq 0x20f0
leaq 0x30(%rsp), %rdi
callq 0x20f0
movq %rbx, %rax
addq $0x68, %rsp
popq %rbx
popq %r14
retq
jmp 0x26b9
movq %rax, %rbx
leaq 0x10(%rsp), %rdi
callq 0x20f0
jmp 0x26cb
movq %rax, %rbx
leaq 0x30(%rsp), %rdi
callq 0x20f0
movq %rbx, %rdi
callq 0x22a0
nop
// File: /workspace/github_cpp_makefile_star2_O2/dcdolson[P]nsh-sf-devkit/src/NetInterfaceFactory/NetInterfaceFactory.cpp
// Function: nshdev::NetInterfaceFactory::CreateInterfaceFromArgs(int&, char**&)
std::unique_ptr<NetInterface>
NetInterfaceFactory::CreateInterfaceFromArgs(int& argc,
                                             char**& argv)
{
	// cache the "starting" values so that later users of the args can use getopt

	const int old_optind = optind;
	const int old_optopt = optopt;
	char * const old_optarg = optarg;

    InterfaceOptions options(argc, argv);
	
	// restore
	optind = old_optind;
	optopt = old_optopt;
	optarg = old_optarg;

    argc -= options.GetNumArgsConsumed();
    argv += options.GetNumArgsConsumed();

	if(!options.GetDpdkPciAddress().empty())
    {
        return CreateDpdkIf(options.GetDpdkPciAddress());
    }
    else
    {
        return std::make_unique<PacketSocket>(options.GetIfIndex());
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x68, %rsp
movq %rdx, %r14
movq %rsi, %r15
movq %rdi, 0x8(%rsp)
movq 0x48ca(%rip), %rax      # 0x6fc8
movl (%rax), %ebp
movq 0x48b1(%rip), %rax      # 0x6fb8
movl (%rax), %r13d
movq 0x488f(%rip), %rax      # 0x6fa0
movq (%rax), %rbx
movl (%rsi), %esi
movq (%rdx), %rdx
leaq 0x18(%rsp), %r12
movq %r12, %rdi
callq 0x2a02
movq 0x489b(%rip), %rax      # 0x6fc8
movl %ebp, (%rax)
movq 0x4882(%rip), %rax      # 0x6fb8
movl %r13d, (%rax)
movq 0x4860(%rip), %rax      # 0x6fa0
movq %rbx, (%rax)
movq %r12, %rdi
callq 0x2afa
subl %eax, (%r15)
leaq 0x18(%rsp), %rdi
callq 0x2afa
movl %eax, %eax
shlq $0x3, %rax
addq %rax, (%r14)
leaq 0x18(%rsp), %rdi
callq 0x2af4
cmpq $0x0, 0x8(%rax)
je 0x27b3
leaq 0x18(%rsp), %rdi
callq 0x2af4
movq 0x8(%rsp), %rbx
leaq 0x48(%rsp), %rdi
movq %rax, %rsi
callq 0x2200
movq %rsp, %rdi
leaq 0x48(%rsp), %rsi
callq 0x2620
movq (%rsp), %rax
movq %rax, (%rbx)
andq $0x0, (%rsp)
leaq 0x48(%rsp), %rdi
callq 0x20f0
jmp 0x27d8
leaq 0x18(%rsp), %rdi
callq 0x2af0
movq 0x8(%rsp), %rbx
leaq 0x14(%rsp), %rsi
movl %eax, (%rsi)
movq %rsp, %rdi
callq 0x289b
movq (%rsp), %rax
movq %rax, (%rbx)
leaq 0x20(%rsp), %rdi
callq 0x20f0
movq %rbx, %rax
addq $0x68, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
leaq 0x48(%rsp), %rdi
callq 0x20f0
jmp 0x280a
jmp 0x2807
jmp 0x2807
movq %rax, %rbx
leaq 0x20(%rsp), %rdi
callq 0x20f0
movq %rbx, %rdi
callq 0x22a0
// File: /workspace/github_cpp_makefile_star2_O2/dcdolson[P]nsh-sf-devkit/src/NetInterfaceFactory/InterfaceOptions.cpp
// Function: ResolveInterface(char const*)
int ResolveInterface(const char* name)
{
    unsigned i = if_nametoindex(name);
    if( i == 0 )
    {
        std::cerr << "Unknown interface name " << name << std::endl;
	exit(1);
    }
    return i;
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
callq 0x2070
testl %eax, %eax
je 0x298b
popq %rbx
retq
movq 0x4656(%rip), %rdi      # 0x6fe8
leaq 0x1743(%rip), %rsi      # 0x40dc
callq 0x21b0
movq %rax, %rdi
movq %rbx, %rsi
callq 0x21b0
movq %rax, %rdi
callq 0x2100
pushq $0x1
popq %rdi
callq 0x21e0
// File: /workspace/github_cpp_makefile_star2_O2/dcdolson[P]nsh-sf-devkit/src/NetInterfaceFactory/InterfaceOptions.cpp
// Function: InterfaceOptions::InterfaceOptions(int, char**)
InterfaceOptions::InterfaceOptions(int argc, char** argv):
    m_ifIndex(0),
    m_numArgsConsumed(0)
{
    while(1)
    {
        int option_index = 0;
        int c = getopt_long(argc, argv, "i:", long_options, &option_index);
        if ( c == -1 )
        {
            break;
        }
        switch(c)
        {
        case 'i':
            m_ifIndex = ResolveInterface(optarg);
            break;
        case 'd':
            m_dpdkPciAddress = optarg;
            break;
        case '?':
            Usage(basename(argv[0]));
            exit(1);
        }
    }

    m_numArgsConsumed = optind;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rdi, %r14
andl $0x0, (%rdi)
movq %rdx, %r15
movl %esi, %ebp
leaq 0x8(%rdi), %rax
movq %rax, 0x10(%rsp)
leaq 0x18(%rdi), %rax
movq %rax, 0x8(%rdi)
andq $0x0, 0x10(%rdi)
movb $0x0, 0x18(%rdi)
andl $0x0, 0x28(%rdi)
leaq 0x16f6(%rip), %r12      # 0x4136
leaq 0x4759(%rip), %r13      # 0x71a0
leaq 0xc(%rsp), %rbx
andl $0x0, 0xc(%rsp)
movl %ebp, %edi
movq %r15, %rsi
movq %r12, %rdx
movq %r13, %rcx
movq %rbx, %r8
callq 0x2260
cmpl $0x64, %eax
je 0x2a8e
cmpl $0x69, %eax
je 0x2a7a
cmpl $-0x1, %eax
je 0x2aa4
cmpl $0x3f, %eax
jne 0x2a4c
jmp 0x2ac0
movq 0x451f(%rip), %rax      # 0x6fa0
movq (%rax), %rdi
callq 0x297c
movl %eax, (%r14)
jmp 0x2a4c
movq 0x450b(%rip), %rax      # 0x6fa0
movq (%rax), %rsi
movq 0x10(%rsp), %rdi
callq 0x22d0
jmp 0x2a4c
movq 0x451d(%rip), %rax      # 0x6fc8
movl (%rax), %eax
movl %eax, 0x28(%r14)
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq (%r15), %rdi
callq 0x2290
movq %rax, %rdi
callq 0x29b9
pushq $0x1
popq %rdi
callq 0x21e0
jmp 0x2ada
movq %rax, %rbx
movq 0x10(%rsp), %rdi
callq 0x20f0
movq %rbx, %rdi
callq 0x22a0
nop
// File: /workspace/github_cpp_makefile_star2_O2/dcdolson[P]nsh-sf-devkit/src/PacketSocket/PacketSocket.cpp
// Function: nshdev::dump_ll(sockaddr_ll&, unsigned int)
void dump_ll(struct sockaddr_ll& addr, unsigned length)
    {
	printf("addr: len=%d %u/%u index %d hatype %u pkttype %u halen %u addr %02x:%02x:%02x:%02x:%02x:%02x\n",
            length,
	    addr.sll_family,
	    addr.sll_protocol,
	    addr.sll_ifindex,
	    addr.sll_hatype,
	    addr.sll_pkttype,
	    addr.sll_halen,
	    addr.sll_addr[0],
	    addr.sll_addr[1],
	    addr.sll_addr[2],
	    addr.sll_addr[3],
	    addr.sll_addr[4],
	    addr.sll_addr[5]);
    }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movzwl (%rdi), %edx
movzwl 0x2(%rdi), %ecx
movl 0x4(%rdi), %r8d
movzwl 0x8(%rdi), %r9d
movzbl 0xa(%rdi), %r10d
movzbl 0xb(%rdi), %r11d
movzbl 0xc(%rdi), %ebx
movzbl 0xd(%rdi), %r14d
movzbl 0xe(%rdi), %r15d
movzbl 0xf(%rdi), %r12d
movzbl 0x10(%rdi), %r13d
movzbl 0x11(%rdi), %ebp
leaq 0x15ff(%rip), %rdi      # 0x4147
xorl %eax, %eax
pushq %rbp
pushq %r13
pushq %r12
pushq %r15
pushq %r14
pushq %rbx
pushq %r11
pushq %r10
callq 0x2040
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O2/dcdolson[P]nsh-sf-devkit/src/PacketSocket/PacketSocket.cpp
// Function: nshdev::PacketSocket::PacketSocket(int, unsigned short)
PacketSocket::PacketSocket(int ifIndex, uint16_t etherType)
    {
	// looking for specified Ethertype, with Ethernet header removed.
	m_socket = socket(AF_PACKET, SOCK_DGRAM, htons(etherType));
	if(m_socket < 0)
	{
	    throw ErrMsg("Couldn't open socket", errno);
	}
	struct sockaddr_ll  bind_addr;
	memset(&bind_addr, 0, sizeof(bind_addr));
	bind_addr.sll_family = AF_PACKET;
	bind_addr.sll_ifindex = ifIndex;
	bind_addr.sll_protocol = htons(etherType);
	int const bind_result = bind(m_socket, reinterpret_cast<const struct sockaddr*>(&bind_addr), sizeof(bind_addr));
	if(bind_result != 0)
	{
	    close(m_socket);
	    throw ErrMsg("Unable to bind socket", errno);
	}
    }

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
subq $0x40, %rsp
movl %edx, %ebp
movl %esi, %r14d
movq %rdi, %rbx
andq $0x0, 0x8(%rdi)
leaq 0x40e0(%rip), %rax      # 0x6c68
movq %rax, (%rdi)
rolw $0x8, %bp
movzwl %bp, %edx
pushq $0x11
popq %rdi
pushq $0x2
popq %rsi
callq 0x2080
movl %eax, 0x10(%rbx)
testl %eax, %eax
js 0x2bd6
leaq 0x2c(%rsp), %rsi
andl $0x0, 0x10(%rsi)
andq $0x0, 0x8(%rsi)
movw $0x11, (%rsi)
movl %r14d, 0x4(%rsi)
movw %bp, 0x2(%rsi)
pushq $0x14
popq %rdx
movl %eax, %edi
callq 0x2060
testl %eax, %eax
jne 0x2c28
addq $0x40, %rsp
popq %rbx
popq %r14
popq %rbp
retq
pushq $0x28
popq %rdi
callq 0x2110
movq %rax, %rbx
leaq 0x15bd(%rip), %rsi      # 0x41a5
leaq 0x8(%rsp), %rdi
leaq 0x2c(%rsp), %rdx
callq 0x281c
callq 0x2030
movl (%rax), %edx
movb $0x1, %bpl
leaq 0x8(%rsp), %rsi
movq %rbx, %rdi
callq 0x2e3c
xorl %ebp, %ebp
leaq 0x4091(%rip), %rsi      # 0x6ca8
leaq 0x31c(%rip), %rdx       # 0x2f3a
movq %rbx, %rdi
callq 0x2270
jmp 0x2c80
movl 0x10(%rbx), %edi
callq 0x22e0
pushq $0x28
popq %rdi
callq 0x2110
movq %rax, %rbx
leaq 0x1578(%rip), %rsi      # 0x41ba
leaq 0x8(%rsp), %rdi
leaq 0x7(%rsp), %rdx
callq 0x281c
callq 0x2030
movl (%rax), %edx
movb $0x1, %bpl
leaq 0x8(%rsp), %rsi
movq %rbx, %rdi
callq 0x2e3c
xorl %ebp, %ebp
leaq 0x4037(%rip), %rsi      # 0x6ca8
leaq 0x2c2(%rip), %rdx       # 0x2f3a
movq %rbx, %rdi
callq 0x2270
jmp 0x2c89
jmp 0x2c9d
movq %rax, %r14
jmp 0x2ca8
movq %rax, %r14
leaq 0x8(%rsp), %rdi
callq 0x20f0
testb %bpl, %bpl
jne 0x2ca0
jmp 0x2ca8
movq %rax, %r14
movq %rbx, %rdi
callq 0x2150
movq %r14, %rdi
callq 0x22a0
// File: /workspace/github_cpp_makefile_star2_O2/dcdolson[P]nsh-sf-devkit/src/PacketSocket/PacketSocket.cpp
// Function: nshdev::PacketSocket::Run()
void PacketSocket::Run()
    {
	uint8_t data[2000];
	LinkAddr from;
	from.length = sizeof(from.addr);
	ssize_t read = recvfrom(m_socket, data, sizeof(data),
				/* flags */ 0,
				reinterpret_cast<struct sockaddr*>(&from.addr),
				&from.length);
	if(read < 0)
	{
	    throw ErrMsg("Error from recvfrom", errno);
	}
	//printf("Send addr: ");
	//dump_ll(from.addr, from.length);
        if( from.addr.sll_pkttype == PACKET_HOST ) // for us
	{
	    PacketRef pref(data, read, &from);
	    Forward(pref);
	}
    }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x818, %rsp            # imm = 0x818
movq %rdi, %rbx
leaq 0x3c(%rsp), %r9
movl $0x14, (%r9)
movl 0x10(%rdi), %edi
leaq 0x40(%rsp), %r15
leaq 0x28(%rsp), %r14
movl $0x7d0, %edx            # imm = 0x7D0
movq %r15, %rsi
xorl %ecx, %ecx
movq %r14, %r8
callq 0x2170
testq %rax, %rax
js 0x2d54
cmpb $0x0, 0x32(%rsp)
jne 0x2d46
leaq 0x8(%rsp), %rsi
movq %r15, (%rsi)
movl %eax, 0x8(%rsi)
movq %r14, 0x10(%rsi)
movq %rbx, %rdi
callq 0x3158
addq $0x818, %rsp            # imm = 0x818
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
pushq $0x28
popq %rdi
callq 0x2110
movq %rax, %rbx
leaq 0x146a(%rip), %rsi      # 0x41d0
leaq 0x8(%rsp), %rdi
leaq 0x7(%rsp), %rdx
callq 0x281c
callq 0x2030
movl (%rax), %edx
movb $0x1, %bpl
leaq 0x8(%rsp), %rsi
movq %rbx, %rdi
callq 0x2e3c
xorl %ebp, %ebp
leaq 0x3f13(%rip), %rsi      # 0x6ca8
leaq 0x19e(%rip), %rdx       # 0x2f3a
movq %rbx, %rdi
callq 0x2270
movq %rax, %r14
leaq 0x8(%rsp), %rdi
callq 0x20f0
testb %bpl, %bpl
jne 0x2dbb
jmp 0x2dc3
movq %rax, %r14
movq %rbx, %rdi
callq 0x2150
movq %r14, %rdi
callq 0x22a0
nop
// File: /workspace/github_cpp_makefile_star2_O2/dcdolson[P]nsh-sf-devkit/src/Scheduler/Scheduler.cpp
// Function: nshdev::Scheduler::SchedulePackets()
void Scheduler::SchedulePackets()
{
    if(m_if.GetWaitFD() < 0)
    {
        RunAsyncPollLoop();
    }
    else
    {
        RunSyncPollLoop();
    }
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
movq (%rdi), %rdi
movq (%rdi), %rax
callq *0x10(%rax)
movq %rbx, %rdi
testl %eax, %eax
jns 0x3193
callq 0x3198
callq 0x31bc
// File: /workspace/github_cpp_makefile_star2_O2/dcdolson[P]nsh-sf-devkit/src/Scheduler/Scheduler.cpp
// Function: nshdev::Scheduler::RunSyncPollLoop()
void Scheduler::RunSyncPollLoop()
{
    int fd = m_if.GetWaitFD();
	while(1)
	{
	    struct pollfd fds;
	    fds.fd = fd;
	    fds.events = POLLIN;
	    fds.revents = 0;
	   
	    int ready = poll(&fds, 1, m_syncTimeout_ms );
	    if(ready > 0)
	    {
		    m_if.Run();
	    }
	}
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq (%rdi), %rdi
movq (%rdi), %rax
callq *0x10(%rax)
movl %eax, %ebp
movq %rsp, %r14
pushq $0x1
popq %r15
movl %ebp, (%rsp)
movl $0x1, 0x4(%rsp)
movl 0xc(%rbx), %edx
movq %r14, %rdi
movq %r15, %rsi
callq 0x2220
testl %eax, %eax
jle 0x31d8
movq (%rbx), %rdi
movq (%rdi), %rax
callq *0x18(%rax)
jmp 0x31d8
// File: /workspace/github_cpp_makefile_star2_O2/ef-gy[P]libefgy/src/test-case/cube-mask.cpp
// Function: bool analyseCubeMaskProperties<efgy::geometry::generators::mask::cube<3ul>>(std::ostream&)
bool analyseCubeMaskProperties(std::ostream &log) {
  auto faces = C::faces();

  long c = 0;

  for (auto &f : faces) {
    std::cerr << "\n[";
    for (auto v : f) {
      log << "  (";
      for (auto w : v) {
        log << " " << w;
      }
      log << " )";
    }
    log << " ]";

    auto t = f;
    c++;
  }

  if (C::size() != faces.size()) {
    log << "wrong size() result; object said it would have " << C::size()
        << " elements, but iterator gave us " << c << " elements.\n";
    return false;
  }

  return true;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movq %rdi, %r14
leaq 0x18(%rsp), %rbx
movq %rbx, %rdi
callq 0x11a1e
movq 0x18(%rbx), %r15
movq $0x0, 0x10(%rsp)
leaq 0xfbb0(%rip), %rbp      # 0x14a71
leaq 0x20(%rsp), %rax
cmpq %rax, %r15
je 0x4f70
movq 0x1b112(%rip), %rdi     # 0x1ffe8
leaq 0xfbe3(%rip), %rsi      # 0x14ac0
callq 0x4270
pushq $0x20
popq %rbx
cmpq $0x2c, %rbx
je 0x4f4c
movb 0x2(%r15,%rbx), %al
movb %al, 0xe(%rsp)
movzwl (%r15,%rbx), %eax
movw %ax, 0xc(%rsp)
movq %r14, %rdi
leaq 0xfbbb(%rip), %rsi      # 0x14ac3
callq 0x4270
xorl %r12d, %r12d
cmpq $0x3, %r12
je 0x4f37
movb 0xc(%rsp,%r12), %r13b
movq %r14, %rdi
movq %rbp, %rsi
callq 0x4270
movzbl %r13b, %esi
movq %rax, %rdi
callq 0x43d0
incq %r12
jmp 0x4f10
movq %r14, %rdi
leaq 0xfb86(%rip), %rsi      # 0x14ac7
callq 0x4270
addq $0x3, %rbx
jmp 0x4ee5
movq %r14, %rdi
leaq 0xfb74(%rip), %rsi      # 0x14aca
callq 0x4270
incq 0x10(%rsp)
movq %r15, %rdi
callq 0x4300
movq %rax, %r15
jmp 0x4ec1
movq 0x40(%rsp), %rbx
cmpq $0x6, %rbx
je 0x4fc0
leaq 0xfb4b(%rip), %rsi      # 0x14acd
movq %r14, %rdi
callq 0x4270
pushq $0x6
popq %rsi
movq %rax, %rdi
callq 0x41c0
leaq 0xfb61(%rip), %rsi      # 0x14afd
movq %rax, %rdi
callq 0x4270
movq %rax, %rdi
movq 0x10(%rsp), %rsi
callq 0x4260
leaq 0xfb66(%rip), %rsi      # 0x14b1e
movq %rax, %rdi
callq 0x4270
cmpq $0x6, %rbx
sete %bl
leaq 0x18(%rsp), %rdi
callq 0x11d1c
movl %ebx, %eax
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x4fe8
jmp 0x4fe8
jmp 0x4fe8
movq %rax, %rbx
leaq 0x18(%rsp), %rdi
callq 0x11d1c
movq %rbx, %rdi
callq 0x4420
// File: /workspace/github_cpp_makefile_star2_O2/matengyue[P]Similar_test_demo/./src/cosSimilar.h
// Function: cosSimilar(int, int*, int*)
double cosSimilar(int dimension, int vector_A[], int vector_B[]){
    double score = 0;
    double sum = 0;
    double sq_A = 0, sq_B = 0;

    for (int i = 0; i < dimension; i++){
        sum += vector_A[i] * vector_B[i];
        sq_A += vector_A[i] * vector_A[i];
        sq_B += vector_B[i] * vector_B[i];
    }

    score = sum / (sqrt(sq_A) * sqrt(sq_B));

    return score;
}

// Assembly:
xorl %eax, %eax
testl %edi, %edi
cmovlel %eax, %edi
xorpd %xmm2, %xmm2
xorpd %xmm0, %xmm0
xorpd %xmm3, %xmm3
cmpq %rax, %rdi
je 0x2428
movl (%rsi,%rax,4), %ecx
movl (%rdx,%rax,4), %r8d
movl %r8d, %r9d
imull %ecx, %r9d
cvtsi2sd %r9d, %xmm1
addsd %xmm1, %xmm2
imull %ecx, %ecx
cvtsi2sd %ecx, %xmm1
addsd %xmm1, %xmm0
imull %r8d, %r8d
cvtsi2sd %r8d, %xmm1
addsd %xmm1, %xmm3
incq %rax
jmp 0x23ef
subq $0x18, %rsp
xorpd %xmm1, %xmm1
ucomisd %xmm1, %xmm0
movsd %xmm2, 0x10(%rsp)
jb 0x2442
sqrtsd %xmm0, %xmm2
jmp 0x245b
movsd %xmm3, 0x8(%rsp)
callq 0x2160
xorpd %xmm1, %xmm1
movsd 0x8(%rsp), %xmm3
movapd %xmm0, %xmm2
ucomisd %xmm1, %xmm3
jb 0x2467
sqrtsd %xmm3, %xmm0
jmp 0x247c
movapd %xmm3, %xmm0
movsd %xmm2, 0x8(%rsp)
callq 0x2160
movsd 0x8(%rsp), %xmm2
movsd 0x10(%rsp), %xmm1
mulsd %xmm0, %xmm2
divsd %xmm2, %xmm1
movapd %xmm1, %xmm0
addq $0x18, %rsp
retq
// File: /workspace/github_cpp_makefile_star2_O2/matengyue[P]Similar_test_demo/./src/deleteStopWords.h
// Function: ReadAllLinesFromFile(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)
vector<string> ReadAllLinesFromFile(const string &fn){
    vector<string> result;
    ifstream ifs(fn);

    //文件异常
    if (!ifs){
        throw runtime_error("Cannot open file!");
    }
    string tmp;
    while (ifs){
        getline(ifs, tmp);
        result.push_back(tmp);
    }
    result.erase(result.end() - 1);

    return result;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x230, %rsp            # imm = 0x230
movq %rdi, %rbx
xorps %xmm0, %xmm0
movups %xmm0, (%rdi)
andq $0x0, 0x10(%rdi)
leaq 0x28(%rsp), %rdi
pushq $0x8
popq %rdx
callq 0x2230
movq 0x28(%rsp), %rax
movq -0x18(%rax), %rax
testb $0x5, 0x48(%rsp,%rax)
jne 0x27c4
leaq 0x18(%rsp), %rax
movq %rax, -0x10(%rax)
andq $0x0, -0x8(%rax)
movb $0x0, (%rax)
leaq 0x28(%rsp), %r14
leaq 0x8(%rsp), %r15
movq 0x28(%rsp), %rax
movq -0x18(%rax), %rax
testb $0x5, 0x48(%rsp,%rax)
jne 0x2790
movq %r14, %rdi
movq %r15, %rsi
callq 0x2050
movq %rbx, %rdi
movq %r15, %rsi
callq 0x2fe2
jmp 0x2768
movq 0x8(%rbx), %rsi
addq $-0x20, %rsi
movq %rbx, %rdi
callq 0x3030
leaq 0x8(%rsp), %rdi
callq 0x20f0
leaq 0x28(%rsp), %rdi
callq 0x2070
movq %rbx, %rax
addq $0x230, %rsp            # imm = 0x230
popq %rbx
popq %r14
popq %r15
retq
pushq $0x10
popq %rdi
callq 0x2110
movq %rax, %r15
leaq 0x184a(%rip), %rsi      # 0x4020
movq %rax, %rdi
callq 0x20b0
movq 0x380b(%rip), %rsi      # 0x5ff0
movq 0x37dc(%rip), %rdx      # 0x5fc8
movq %r15, %rdi
callq 0x2250
movq %rax, %r14
jmp 0x281a
movq %rax, %r14
movq %r15, %rdi
callq 0x2140
jmp 0x281a
jmp 0x280d
movq %rax, %r14
jmp 0x2824
movq %rax, %r14
leaq 0x8(%rsp), %rdi
callq 0x20f0
leaq 0x28(%rsp), %rdi
callq 0x2070
movq %rbx, %rdi
callq 0x300e
movq %r14, %rdi
callq 0x2260
// File: /workspace/github_cpp_makefile_star2_O2/matengyue[P]Similar_test_demo/./src/deleteStopWords.h
// Function: deleteStopWords(std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>>)
vector<string> deleteStopWords(vector<string> vectorwords){
    vector<string> vectorwordsNStop;

    vector<string> stopwords = ReadAllLinesFromFile("../src/StopWord.txt");

    for (int i = 0; i < vectorwords.size(); i++){
        int flag = 1;
        for (int j = 0; j < stopwords.size(); j++){
            if (vectorwords[i] == stopwords[j]){
                flag = 0;
                break;
            }
        }
        if (flag){
            string word = vectorwords[i];
            vectorwordsNStop.push_back(word);    
        }
    }
    
    return vectorwordsNStop;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movq %rsi, %r14
xorps %xmm0, %xmm0
movups %xmm0, (%rdi)
movq %rdi, 0x8(%rsp)
andq $0x0, 0x10(%rdi)
leaq 0x17d6(%rip), %rsi      # 0x4032
leaq 0x28(%rsp), %rdi
leaq 0x7(%rsp), %rdx
callq 0x3036
leaq 0x10(%rsp), %rdi
leaq 0x28(%rsp), %rsi
callq 0x2716
leaq 0x28(%rsp), %r15
movq %r15, %rdi
callq 0x20f0
xorl %r13d, %r13d
movq 0x8(%r14), %rax
subq (%r14), %rax
sarq $0x5, %rax
cmpq %r13, %rax
jbe 0x28ff
movq %r13, %r12
shlq $0x5, %r12
xorl %ebx, %ebx
pushq $-0x1
popq %rbp
movq 0x10(%rsp), %rsi
movq 0x18(%rsp), %rax
subq %rsi, %rax
sarq $0x5, %rax
incq %rbp
cmpq %rbp, %rax
jbe 0x28d7
movq (%r14), %rdi
addq %r12, %rdi
addq %rbx, %rsi
addq $0x20, %rbx
callq 0x2fb9
testb %al, %al
je 0x28a6
jmp 0x28fa
addq (%r14), %r12
movq %r15, %rdi
movq %r12, %rsi
callq 0x21f0
movq 0x8(%rsp), %rdi
movq %r15, %rsi
callq 0x2fe2
movq %r15, %rdi
callq 0x20f0
incq %r13
jmp 0x288a
leaq 0x10(%rsp), %rdi
callq 0x300e
movq 0x8(%rsp), %rax
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r14
leaq 0x28(%rsp), %rdi
callq 0x20f0
jmp 0x294d
movq %rax, %r14
jmp 0x294d
movq %rax, %r14
leaq 0x28(%rsp), %rdi
callq 0x20f0
jmp 0x2943
movq %rax, %r14
leaq 0x10(%rsp), %rdi
callq 0x300e
movq 0x8(%rsp), %rdi
callq 0x300e
movq %r14, %rdi
callq 0x2260
// File: /workspace/github_cpp_makefile_star2_O2/jaldhar[P]Lets-Build-a-Simple-Interpreter/calc2.cc
// Function: Interpreter::expression()
long Interpreter::expression() {

    // set current token to the first token taken from the input
    _current_token = get_next_token();

    // we expect the current token to be an integer
    Token left = _current_token;
    eat(TOKENTYPE::INTEGER);

    long result = left.value;
    // loop while we still have tokens
    while(_current_token.type != TOKENTYPE::ENDOFFILE) {
        // we expect the current token to be an operator token
        switch(_current_token.type) {
        case TOKENTYPE::MINUS:
            eat(TOKENTYPE::MINUS);
            result = subtract(result);
            break;
        case TOKENTYPE::PLUS:
            eat(TOKENTYPE::PLUS);
            result = add(result);
            break;
        case TOKENTYPE::TIMES:
            eat(TOKENTYPE::TIMES);
            result = multiply(result);
            break;
        case TOKENTYPE::DIVIDE:
            eat(TOKENTYPE::DIVIDE);
            result = divide(result);
            break;
        case TOKENTYPE::ENDOFFILE:
            break;
        default:
            ostringstream out;
            out << "Error parsing input. Wanted operator, got: "
                << _current_token.type;
            throw(out.str().c_str());
        }
    }

    return result;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x198, %rsp            # imm = 0x198
movq %rdi, %r14
callq 0x2550
movq %rdx, %r15
leaq 0x18(%r14), %rbx
movl %eax, 0x18(%r14)
movq %rdx, 0x20(%r14)
pushq $0x1
popq %rsi
movq %r14, %rdi
callq 0x26e8
leaq 0xbd6(%rip), %r12       # 0x3004
pushq $0x4
popq %r13
pushq $0x5
popq %rbp
movl (%rbx), %eax
cmpq $0x5, %rax
ja 0x24ca
movslq (%r12,%rax,4), %rax
addq %r12, %rax
jmpq *%rax
movq %r14, %rdi
pushq $0x2
popq %rsi
callq 0x26e8
movq %r14, %rdi
movq %r15, %rsi
callq 0x27b8
movq %rax, %r15
jmp 0x2435
movq %r14, %rdi
movl %ebp, %esi
callq 0x26e8
movq %r14, %rdi
movq %r15, %rsi
callq 0x27e4
movq %rax, %r15
jmp 0x2435
movq %r14, %rdi
pushq $0x3
popq %rsi
callq 0x26e8
movq %r14, %rdi
movq %r15, %rsi
callq 0x27a2
movq %rax, %r15
jmp 0x2435
movq %r14, %rdi
movl %r13d, %esi
callq 0x26e8
movq %r14, %rdi
movq %r15, %rsi
callq 0x27ce
movq %rax, %r15
jmp 0x2435
movq %r15, %rax
addq $0x198, %rsp            # imm = 0x198
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x20(%rsp), %r14
movq %r14, %rdi
callq 0x2160
leaq 0xba3(%rip), %rsi       # 0x3081
movq %r14, %rdi
callq 0x2140
movq %rax, %rdi
movq %rbx, %rsi
callq 0x231c
pushq $0x8
popq %rdi
callq 0x20b0
movq %rax, %r14
leaq 0x28(%rsp), %rsi
movq %rsp, %rdi
callq 0x2190
movq (%rsp), %rax
movq %rax, (%r14)
movq 0x2a99(%rip), %rsi      # 0x4fb0
movq %r14, %rdi
xorl %edx, %edx
callq 0x21b0
movq %rax, %rbx
movq %rsp, %rdi
callq 0x2090
jmp 0x253e
movq %rax, %rbx
movq %r14, %rdi
callq 0x20e0
jmp 0x253e
movq %rax, %rbx
leaq 0x20(%rsp), %rdi
callq 0x2060
movq %rbx, %rdi
callq 0x21c0
// File: /workspace/github_cpp_makefile_star2_O2/jaldhar[P]Lets-Build-a-Simple-Interpreter/calc2.cc
// Function: Interpreter::subtract(long)
long Interpreter::subtract(long left_value) {
    // we expect the current token to be an integer
    Token right = _current_token;
    eat(TOKENTYPE::INTEGER);
    // after the above call _current_token is set to ENDOFFILE token

    // at this point INTEGER MINUS INTEGER sequence of tokens has been
    // successfully found and the method can just return the result of
    // subtracting two integers, thus effectively interpreting client input
    return left_value - right.value;
}

// Assembly:
pushq %rbx
movq %rsi, %rbx
subq 0x20(%rdi), %rbx
pushq $0x1
popq %rsi
callq 0x26e8
movq %rbx, %rax
popq %rbx
retq
nop
// File: /workspace/github_cpp_makefile_star2_O2/jaldhar[P]Lets-Build-a-Simple-Interpreter/calc2.cc
// Function: Interpreter::add(long)
long Interpreter::add(long left_value) {
    // we expect the current token to be an integer
    Token right = _current_token;
    eat(TOKENTYPE::INTEGER);
    // after the above call _current_token is set to ENDOFFILE token

    // at this point INTEGER PLUS INTEGER sequence of tokens has been
    // successfully found and the method can just return the result of adding
    // two integers, thus effectively interpreting client input
    return left_value + right.value;
}

// Assembly:
pushq %rbx
movq %rsi, %rbx
addq 0x20(%rdi), %rbx
pushq $0x1
popq %rsi
callq 0x26e8
movq %rbx, %rax
popq %rbx
retq
nop
// File: /workspace/github_cpp_makefile_star2_O2/jaldhar[P]Lets-Build-a-Simple-Interpreter/calc2.cc
// Function: Interpreter::divide(long)
long  Interpreter::divide(long left_value) {
    // we expect the current token to be an integer
    Token right = _current_token;
    eat(TOKENTYPE::INTEGER);

    // Handle division by 0
    if (right.value == 0) {
        throw("Division by zero");
    }
    // after the above call _current_token is set to ENDOFFILE token

    // at this point INTEGER TIMES INTEGER sequence of tokens has been
    // successfully found and the method can just return the result of
    // dividing two integers, thus effectively interpreting client input
    return left_value / right.value;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq 0x20(%rdi), %r14
pushq $0x1
popq %rsi
callq 0x26e8
testq %r14, %r14
je 0x280c
movq %rbx, %rax
cqto
idivq %r14
addq $0x8, %rsp
popq %rbx
popq %r14
retq
pushq $0x8
popq %rdi
callq 0x20b0
leaq 0x892(%rip), %rcx       # 0x30ad
movq %rcx, (%rax)
movq 0x278b(%rip), %rsi      # 0x4fb0
movq %rax, %rdi
xorl %edx, %edx
callq 0x21b0
nop
// File: /workspace/github_cpp_makefile_star2_O2/iZhangHui[P]CppPrimer/CH19_SpecializedToolsAndTechniques/examples/bitfields.cc
// Function: File::open(File::modes)
File &File::open(File::modes m)
{
	mode |= READ;    // set the READ bit by default
	// other processing
	if (m & WRITE) // if opening READ and WRITE 
	// processing to open the file in read/write mode
	cout << "myFile.mode READ is set" << endl;
	return *this;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
movq %rdi, %rbx
orb $0x1, (%rdi)
testb $0x2, %sil
je 0x11e9
movq 0x2e03(%rip), %rdi      # 0x3fd8
leaq 0xe28(%rip), %rsi       # 0x2004
callq 0x1050
movq %rax, %rdi
callq 0x1030
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O2/allasandeep[P]LocationBoundaryFinder/./functions.cc
// Function: delSpaces(char*)
void delSpaces(char *str)
{
	int count = 0;
	//Looping the char array and searching fro empty space
	for(int i = 0; str[i]; i++)
	{
		if(str[i] != ' ')
			str[count++] = str[i];
	}

	str[count] = '\0';
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
xorl %ecx, %ecx
movq %rdi, %rax
movzbl (%rax), %edx
cmpl $0x20, %edx
je 0x23ca
movslq %ecx, %rsi
testl %edx, %edx
je 0x23cf
leal 0x1(%rsi), %ecx
movb %dl, (%rdi,%rsi)
incq %rax
jmp 0x23b5
movb $0x0, (%rdi,%rsi)
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O2/allasandeep[P]LocationBoundaryFinder/./functions.cc
// Function: conn()
PGconn* conn()
{
	//Connecting to the Database with user credentials
	PGconn *db = PQconnectdb("host = 'courses' dbname = 'z1821331' user = 'z1821331'  password = '1996Jun06' ");
	//If the connection fails, print an error message
	if(!(CONNECTION_OK == PQstatus(db)))
	{
		cerr<<"Can't connect to db."<<endl;
		exit(EXIT_FAILURE);
	}
	cout<<"Database Connection Successfull!"<<endl;

	return db;;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
leaq 0x1c22(%rip), %rdi      # 0x4004
callq 0x2110
movq %rax, %rbx
movq %rax, %rdi
callq 0x2080
testl %eax, %eax
jne 0x241b
movq 0x3bd3(%rip), %rdi      # 0x5fd0
leaq 0x1c65(%rip), %rsi      # 0x4069
callq 0x2100
movq %rax, %rdi
callq 0x2210
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
movq 0x3bce(%rip), %rdi      # 0x5ff0
leaq 0x1c2b(%rip), %rsi      # 0x4054
callq 0x2100
movq %rax, %rdi
callq 0x2210
pushq $0x1
popq %rdi
callq 0x2170
// File: /workspace/github_cpp_makefile_star2_O2/allasandeep[P]LocationBoundaryFinder/prog1.cc
// Function: openFiles(std::basic_ifstream<char, std::char_traits<char>>&, char*)
void openFiles( ifstream& is, char *fileName)
{
	// opening the input file. 
	is.open(fileName);
	// If the file fails to open,then displays an error message. 
	if(is.fail()) 
	{
		cerr<<"Error Message:: Unable to read" <<fileName<< endl;
		exit(EXIT_FAILURE);
	}		
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
movq %rsi, %rbx
movq %rdi, %r14
pushq $0x8
popq %rdx
callq 0x21b0
movq (%r14), %rax
movq -0x18(%rax), %rax
testb $0x5, 0x20(%r14,%rax)
jne 0x2652
popq %rbx
popq %r14
popq %rbp
retq
movq 0x3997(%rip), %rdi      # 0x5ff0
leaq 0x1ab9(%rip), %rsi      # 0x4119
callq 0x2100
movq %rax, %rdi
movq %rbx, %rsi
callq 0x2100
movq %rax, %rdi
callq 0x2210
pushq $0x1
popq %rdi
callq 0x2170
// File: /workspace/github_cpp_makefile_star2_O2/j-faria[P]kima/examples/CoRoT7/kima_setup.cpp
// Function: main
int main(int argc, char** argv)
{
    datafile = "corot7.txt";

    load(datafile, "ms");

    Sampler<RVmodel> sampler = setup<RVmodel>(argc, argv);
    sampler.run(50);

    return 0;
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
subq $0x6c0, %rsp            # imm = 0x6C0
movq %rsi, %rbx
movl %edi, %ebp
leaq 0x43906(%rip), %r14     # 0x646c0
leaq 0x2625c(%rip), %rsi     # 0x4701d
movq %r14, %rdi
callq 0x6770
leaq 0x1b711(%rip), %rsi     # 0x3c4e1
movq %r14, %rdi
callq 0x21003
leaq 0x8(%rsp), %r14
movq %r14, %rdi
movl %ebp, %esi
movq %rbx, %rdx
callq 0x210a6
pushq $0x32
popq %rsi
movq %r14, %rdi
callq 0x210f2
leaq 0x8(%rsp), %rdi
callq 0x212b8
xorl %eax, %eax
addq $0x6c0, %rsp            # imm = 0x6C0
popq %rbx
popq %r14
popq %rbp
retq
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
callq 0x212b8
movq %rbx, %rdi
callq 0x66e0
// File: /workspace/github_cpp_makefile_star2_O2/EstherJin[P]TetrisRemake/basicboard.cc
// Function: BasicBoard::validMove(std::vector<Coordinates, std::allocator<Coordinates>>)
bool BasicBoard::validMove(vector<Coordinates> newPos) {
	for (int i = 0; i < newPos.size(); ++i) {
		int roww = newPos.at(i).row;
		int coll = newPos.at(i).col;
		if ((roww < 0) || (roww > 17) || (coll < 0) || (coll > 10)){
			return false;
		}
		char c = grid.at(roww).at(coll);
		if (c != ' ') return false;
	}
	return true;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
addq $0x70, %r14
xorl %ecx, %ecx
movq %rcx, %r15
movq 0x8(%rbx), %r13
subq (%rbx), %r13
sarq $0x3, %r13
cmpq %rcx, %r13
jbe 0x64bc
movq %rbx, %rdi
movq %r15, %rsi
callq 0x71fe
movl (%rax), %r12d
movq %rbx, %rdi
movq %r15, %rsi
callq 0x71fe
cmpq $0x11, %r12
ja 0x64bc
movl 0x4(%rax), %ebp
cmpl $0xa, %ebp
ja 0x64bc
movq %r14, %rdi
movq %r12, %rsi
callq 0x7220
movq %rax, %rdi
movl %ebp, %esi
callq 0xdfc4
leaq 0x1(%r15), %rcx
cmpb $0x20, %al
je 0x6465
cmpq %r15, %r13
setbe %al
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O2/EstherJin[P]TetrisRemake/basicboard.cc
// Function: BasicBoard::turnBlock(int)
void BasicBoard::turnBlock(int amount) {
	for (int i = 0; i < abs(amount); ++i) {
		bool valid = validMove(currentBlock->turnPos(amount/abs(amount)));
	cout << valid <<endl;
		if (valid) currentBlock->turn(amount/abs(amount));
		else break;
	}
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movl %esi, %r12d
negl %r12d
movl %esi, 0xc(%rsp)
cmovsl %esi, %r12d
movq %rdi, %r14
leaq 0x10(%rsp), %r15
movl %r12d, %ebx
subl $0x1, %ebx
jb 0x656a
movq 0xb8(%r14), %rsi
movl 0xc(%rsp), %eax
cltd
idivl %r12d
movl %eax, %ebp
movq (%rsi), %rax
movq %r15, %rdi
movl %ebp, %edx
callq *0x28(%rax)
movq (%r14), %rax
movq %r14, %rdi
movq %r15, %rsi
callq *0x50(%rax)
movl %eax, %r13d
movq %r15, %rdi
callq 0x7c3a
movzbl %r13b, %r13d
movq 0x13a7c(%rip), %rdi     # 0x19fc0
movl %r13d, %esi
callq 0x5420
movq %rax, %rdi
callq 0x5160
testb %r13b, %r13b
je 0x656a
movq 0xb8(%r14), %rdi
movq (%rdi), %rax
movl %ebp, %esi
callq *0x18(%rax)
jmp 0x6501
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
leaq 0x10(%rsp), %rdi
callq 0x7c3a
movq %rbx, %rdi
callq 0x5450
// File: /workspace/github_cpp_makefile_star2_O2/EstherJin[P]TetrisRemake/basicboard.cc
// Function: BasicBoard::moveBlock(int)
void BasicBoard::moveBlock(int amount) {
	for (int i = 0; i < abs(amount); ++i) {
		bool valid = validMove(currentBlock->movePos(amount/abs(amount)));
		if (valid) currentBlock->move(amount/abs(amount));
		else break;
	}
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rdi, %r14
movl %esi, %ebx
negl %ebx
movl %esi, 0xc(%rsp)
cmovsl %esi, %ebx
leaq 0x10(%rsp), %r15
movl %ebx, %r13d
subl $0x1, %r13d
jb 0x6600
movq 0xb8(%r14), %rsi
movl 0xc(%rsp), %eax
cltd
idivl %ebx
movl %eax, %ebp
movq (%rsi), %rax
movq %r15, %rdi
movl %ebp, %edx
callq *0x20(%rax)
movq (%r14), %rax
movq %r14, %rdi
movq %r15, %rsi
callq *0x50(%rax)
movl %eax, %r12d
movq %r15, %rdi
callq 0x7c3a
testb %r12b, %r12b
je 0x6600
movq 0xb8(%r14), %rdi
movq (%rdi), %rax
movl %ebp, %esi
callq *0x10(%rax)
jmp 0x65b2
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
leaq 0x10(%rsp), %rdi
callq 0x7c3a
movq %rbx, %rdi
callq 0x5450
// File: /workspace/github_cpp_makefile_star2_O2/EstherJin[P]TetrisRemake/basicboard.cc
// Function: BasicBoard::downBlock(int)
void BasicBoard::downBlock(int amount) {
	for (int i = 0; i < abs(amount); ++i) {
		bool valid = validMove(currentBlock->downPos(1));
		if (valid) {
			currentBlock->down(1);
		}
		else break;
	}
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x20, %rsp
movq %rdi, %rbx
movl %esi, %r12d
negl %r12d
cmovsl %esi, %r12d
leaq 0x8(%rsp), %r14
pushq $0x1
popq %rbp
subl $0x1, %r12d
jb 0x6688
movq 0xb8(%rbx), %rsi
movq %r14, %rdi
movl %ebp, %edx
callq 0x8492
movq (%rbx), %rax
movq %rbx, %rdi
movq %r14, %rsi
callq *0x50(%rax)
movl %eax, %r15d
movq %r14, %rdi
callq 0x7c3a
testb %r15b, %r15b
je 0x6688
movq 0xb8(%rbx), %rdi
movl %ebp, %esi
callq 0x83ac
jmp 0x6645
addq $0x20, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
callq 0x7c3a
movq %rbx, %rdi
callq 0x5450
// File: /workspace/github_cpp_makefile_star2_O2/EstherJin[P]TetrisRemake/basicboard.cc
// Function: BasicBoard::changeCurrentBlock(char)
void BasicBoard::changeCurrentBlock(char type) {
	if (type == 'I') currentBlock = make_unique<I>();
	else if (type == 'J') currentBlock = make_unique<J>();
	else if (type == 'L') currentBlock = make_unique<L>();
	else if (type == 'O') currentBlock = make_unique<O>();
	else if (type == 'S') currentBlock = make_unique<S>();
	else if (type == 'Z') currentBlock = make_unique<Z>();
	//else if (type == '.') currentBlock = make_unique<Dot>();
	else currentBlock = make_unique<T>();
	currentBlock->attach(&sg);
	if (!textOnly) currentBlock->attach(&gd);
	currentBlock->notifCurrPos();
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
leal -0x49(%rsi), %eax
cmpl $0xa, %eax
ja 0x6ece
leaq 0xa23c(%rip), %rcx      # 0x110f4
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movq %rsp, %r14
movq %r14, %rdi
callq 0x73aa
jmp 0x6f1f
cmpl $0x5a, %esi
jne 0x6ee0
movq %rsp, %r14
movq %r14, %rdi
callq 0x74e0
jmp 0x6f1f
movq %rsp, %r14
movq %r14, %rdi
callq 0x751e
jmp 0x6f1f
movq %rsp, %r14
movq %r14, %rdi
callq 0x74a2
jmp 0x6f1f
movq %rsp, %r14
movq %r14, %rdi
callq 0x7426
jmp 0x6f1f
movq %rsp, %r14
movq %r14, %rdi
callq 0x73e8
jmp 0x6f1f
movq %rsp, %r14
movq %r14, %rdi
callq 0x7464
movq (%r14), %rax
andq $0x0, (%r14)
movq 0xb8(%rbx), %rdi
movq %rax, 0xb8(%rbx)
testq %rdi, %rdi
je 0x6f4e
movq (%rdi), %rax
callq *0x8(%rax)
movq (%rsp), %rdi
testq %rdi, %rdi
je 0x6f4e
movq (%rdi), %rax
callq *0x8(%rax)
movq 0xb8(%rbx), %rdi
addq $0x8, %rdi
leaq 0x8(%rbx), %rsi
callq 0xf284
cmpb $0x0, 0xa8(%rbx)
jne 0x6f7f
movq 0xb8(%rbx), %rdi
addq $0x8, %rdi
leaq 0x30(%rbx), %rsi
callq 0xf284
movq 0xb8(%rbx), %rdi
movq (%rdi), %rax
callq *0x30(%rax)
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_cpp_makefile_star2_O2/EstherJin[P]TetrisRemake/block1.cc
// Function: Block1::~Block1()
Block1::~Block1(){
  for (int i = 0; i < coords.size(); ++i){
    State stat = {' ', coords[i], false};
    setState(stat);
    notifyObservers();
  }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %r14
leaq 0x11151(%rip), %rax     # 0x19330
movq %rax, (%rdi)
leaq 0x30(%rdi), %r15
leaq 0x8(%rdi), %rbx
xorl %r13d, %r13d
movabsq $-0x10000000000, %rbp   # imm = 0xFFFFFF0000000000
movq 0x30(%r14), %rax
movq 0x38(%r14), %rcx
subq %rax, %rcx
sarq $0x3, %rcx
cmpq %r13, %rcx
jbe 0x823a
movl (%rax,%r13,8), %esi
movl 0x4(%rax,%r13,8), %eax
shlq $0x20, %rsi
andq %rbp, %r12
orq %rax, %r12
orq $0x20, %rsi
movq %rbx, %rdi
movq %r12, %rdx
callq 0xf2c8
movq %rbx, %rdi
callq 0xf29c
incq %r13
jmp 0x81f7
movq %r15, %rdi
callq 0x7c3a
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x75ca
movq %rax, %rdi
callq 0x5e54
// File: /workspace/github_cpp_makefile_star2_O2/EstherJin[P]TetrisRemake/block1.cc
// Function: Block1::move(int)
void Block1::move(int shift){
  for (int i = 0; i < coords.size(); ++i){
    State stat = {' ', coords[i], false};
    setState(stat);
    notifyObservers();
  }
  for (int i = 0; i < coords.size(); ++i){
    coords.at(i).col += shift;
    State stat = {c, coords[i], true};
    setState(stat);
    notifyObservers();
  }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl %esi, %ebx
movq %rdi, %r14
leaq 0x30(%rdi), %r15
leaq 0x8(%rdi), %r12
xorl %ebp, %ebp
movq 0x30(%r14), %rax
movq 0x38(%r14), %rcx
movq %rcx, %rdx
subq %rax, %rdx
sarq $0x3, %rdx
cmpq %rbp, %rdx
jbe 0x82e8
movl (%rax,%rbp,8), %esi
movl 0x4(%rax,%rbp,8), %eax
shlq $0x20, %rsi
movabsq $-0x10000000000, %rcx   # imm = 0xFFFFFF0000000000
andq %rcx, %r13
orq %rax, %r13
orq $0x20, %rsi
movq %r12, %rdi
movq %r13, %rdx
callq 0xf2c8
movq %r12, %rdi
callq 0xf29c
incq %rbp
jmp 0x829a
xorl %r13d, %r13d
subq %rax, %rcx
sarq $0x3, %rcx
cmpq %r13, %rcx
jbe 0x8353
movq %r15, %rdi
movq %r13, %rsi
callq 0x71fe
addl %ebx, 0x4(%rax)
movzbl 0x4c(%r14), %eax
movq 0x30(%r14), %rcx
movl (%rcx,%r13,8), %esi
movl 0x4(%rcx,%r13,8), %ecx
shlq $0x20, %rsi
orq %rax, %rsi
movabsq $-0x10000000000, %rax   # imm = 0xFFFFFF0000000000
andq %rax, %rbp
orq %rcx, %rbp
btsq $0x20, %rbp
movq %r12, %rdi
movq %rbp, %rdx
callq 0xf2c8
movq %r12, %rdi
callq 0xf29c
incq %r13
movq 0x30(%r14), %rax
movq 0x38(%r14), %rcx
jmp 0x82eb
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O2/EstherJin[P]TetrisRemake/block1.cc
// Function: Block1::movePos(int)
vector<Coordinates> Block1::movePos(int shift){
  vector<Coordinates> cds = coords;
  for (int i = 0; i < 4; ++i){
    cds.at(i).col += shift;
  }
  return cds;
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
movl %edx, %ebp
movq %rdi, %rbx
addq $0x30, %rsi
callq 0x8588
xorl %r14d, %r14d
cmpq $0x4, %r14
je 0x8390
movq %rbx, %rdi
movq %r14, %rsi
callq 0x71fe
addl %ebp, 0x4(%rax)
incq %r14
jmp 0x8377
movq %rbx, %rax
popq %rbx
popq %r14
popq %rbp
retq
movq %rax, %r14
movq %rbx, %rdi
callq 0x7c3a
movq %r14, %rdi
callq 0x5450
nop
// File: /workspace/github_cpp_makefile_star2_O2/EstherJin[P]TetrisRemake/block1.cc
// Function: Block1::down(int)
void Block1::down(int shift){
  int size = coords.size();
  for (int i = 0; i < size; ++i){
    State stat = {' ', coords[i], false};
    setState(stat);
    notifyObservers();
  }
  for (int i = 0; i < coords.size(); ++i){
    coords.at(i).row += shift;
    State stat = {c, coords[i], true};
    setState(stat);
    notifyObservers();
  }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl %esi, 0x4(%rsp)
movq %rdi, %r14
leaq 0x30(%rdi), %r15
movq 0x38(%rdi), %rbp
subq 0x30(%rdi), %rbp
shrq $0x3, %rbp
leaq 0x8(%rdi), %r12
xorl %ebx, %ebx
testl %ebp, %ebp
cmovlel %ebx, %ebp
cmpq %rbx, %rbp
je 0x8418
movq (%r15), %rax
movl (%rax,%rbx,8), %esi
movl 0x4(%rax,%rbx,8), %eax
shlq $0x20, %rsi
movabsq $-0x10000000000, %rcx   # imm = 0xFFFFFF0000000000
andq %rcx, %r13
orq %rax, %r13
orq $0x20, %rsi
movq %r12, %rdi
movq %r13, %rdx
callq 0xf2c8
movq %r12, %rdi
callq 0xf29c
incq %rbx
jmp 0x83d9
xorl %r13d, %r13d
movl 0x4(%rsp), %ebx
movq 0x38(%r14), %rax
subq 0x30(%r14), %rax
sarq $0x3, %rax
cmpq %r13, %rax
jbe 0x8483
movq %r15, %rdi
movq %r13, %rsi
callq 0x71fe
addl %ebx, (%rax)
movzbl 0x4c(%r14), %eax
movq 0x30(%r14), %rcx
movl (%rcx,%r13,8), %esi
movl 0x4(%rcx,%r13,8), %ecx
shlq $0x20, %rsi
orq %rax, %rsi
movabsq $-0x10000000000, %rax   # imm = 0xFFFFFF0000000000
andq %rax, %rbp
orq %rcx, %rbp
btsq $0x20, %rbp
movq %r12, %rdi
movq %rbp, %rdx
callq 0xf2c8
movq %r12, %rdi
callq 0xf29c
incq %r13
jmp 0x841f
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq