LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_cpp_makefile_star2_O3/lolonet[P]Timer/Timer.cpp
// Function: Timer::StartTimer(int, int, int (*)(int))
int Timer::StartTimer(int timeid, int timeout, TimerCallback *func)
{
	if (func == NULL)
		return -1;

	TimerObject *pTimeObj = this->GetTimerObj(timeid);
	pTimeObj->StopTimer();
	pTimeObj->StartTimer(timeout, func);
	return 0;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
testq %rcx, %rcx
je 0x2b0d
movq %rcx, %r14
movl %edx, %r15d
callq 0x2a2c
movq %rax, %r12
movq 0x10(%rax), %rax
xorl %ebx, %ebx
testq %rax, %rax
je 0x2b12
movq 0x30(%rax), %rdi
testq %rdi, %rdi
je 0x2af0
movq %r12, %rsi
callq 0x27cc
movq 0x10(%r12), %rax
testq %rax, %rax
je 0x2b12
movq 0x30(%rax), %rdi
testq %rdi, %rdi
je 0x2b12
movl %r15d, 0x4(%r12)
movq %r14, 0x8(%r12)
movq %r12, %rsi
callq 0x28ec
jmp 0x2b12
movl $0xffffffff, %ebx       # imm = 0xFFFFFFFF
movl %ebx, %eax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O3/lolonet[P]Timer/Timer.cpp
// Function: TimerContraller::CheckExpire()
int TimerContraller::CheckExpire(void)
{
	const int64 now = TimerContraller::GetTimeStamp();

	while(!m_TimerQueue.empty())
	{
		const int64 minExpire = m_TimerQueue.top();
		if (minExpire > now)
			break;

		// time out 
		list<TimerObject*> &timeList = m_SameTimerList[minExpire];
		while(!timeList.empty())
		{
			TimerObject *pTimerObj = timeList.front();
			timeList.pop_front();
			pTimerObj->TimeOutNotify();
			delete pTimerObj;
		}

		m_SameTimerList.erase(minExpire);
		m_TimerQueue.pop();
	}

	return 0;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rdi, %rbx
xorps %xmm0, %xmm0
leaq -0x50(%rbp), %r14
movaps %xmm0, (%r14)
movq %r14, %rdi
xorl %esi, %esi
callq 0x2180
movq 0x8(%r14), %rax
movabsq $0x431bde82d7b634db, %rcx # imm = 0x431BDE82D7B634DB
movq %rax, %rdi
imulq %rcx
movq 0x30(%rbx), %rax
cmpq 0x38(%rbx), %rax
je 0x2c3f
leaq -0x50(%rbp), %r15
imulq $0xf4240, (%r15), %rcx  # imm = 0xF4240
movq %rdx, %rsi
shrq $0x3f, %rsi
sarq $0x12, %rdx
addq %rsi, %rdx
imulq $0xf4240, %rdx, %rdx    # imm = 0xF4240
subq %rdx, %rdi
addq %rcx, %rdi
movq %rdi, -0x38(%rbp)
leaq 0x30(%rbx), %rcx
movq %rcx, -0x30(%rbp)
movq (%rax), %rax
movq %rax, -0x50(%rbp)
cmpq -0x38(%rbp), %rax
jg 0x2c3f
movq %rbx, %rdi
movq %r15, %r14
movq %r15, %rsi
callq 0x2d4c
movq (%rax), %r15
cmpq %rax, %r15
je 0x2c0f
movq %rax, %r13
movq 0x10(%r15), %r12
decq 0x10(%r13)
movq %r15, %rdi
callq 0x21a0
movl $0x18, %esi
movq %r15, %rdi
callq 0x2120
movl (%r12), %edi
callq *0x8(%r12)
movq 0x10(%r12), %rdi
movl (%r12), %esi
callq 0x29d8
movl $0x18, %esi
movq %r12, %rdi
callq 0x2120
movq (%r13), %r15
cmpq %r13, %r15
jne 0x2bc5
movq %rbx, %rdi
movq %r14, %r15
movq %r14, %rsi
callq 0x33ac
movq %rbx, %rdi
movq %rax, %rsi
callq 0x3434
movq -0x30(%rbp), %rdi
callq 0x2db4
movq 0x30(%rbx), %rax
cmpq 0x38(%rbx), %rax
jne 0x2b9b
xorl %eax, %eax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/ctSkennerton[P]fxtract/util/bitmat_t.c
// Function: main
int
main(void)
{
    plan_tests(5);
    setvbuf(stdout, 0, _IOLBF, 0);
    int pts[] = { 1,3, 2,5, 4,0, 8,9, 5,20, 6,23, 10,10, 10,11, 10,12, 15,22, 13,23, -1 };
    
    dotest( 8,  8, pts);
    dotest( 8, 24, pts);
    dotest(16, 16, pts);
    dotest(16, 24, pts);
    dotest(24, 24, pts);
 
    return exit_status();
}

// Assembly:
pushq %rbx
movl $0x5, %edi
callq 0x552e
movq 0x5a9a(%rip), %rax      # 0x8fc8
movq (%rax), %rdi
xorl %esi, %esi
movl $0x1, %edx
xorl %ecx, %ecx
callq 0x3030
leaq 0x2aca(%rip), %rbx      # 0x6010
movl $0x8, %edi
movl $0x8, %esi
movq %rbx, %rdx
callq 0x35a6
movl $0x8, %edi
movl $0x18, %esi
movq %rbx, %rdx
callq 0x35a6
movl $0x10, %edi
movl $0x10, %esi
movq %rbx, %rdx
callq 0x35a6
movl $0x10, %edi
movl $0x18, %esi
movq %rbx, %rdx
callq 0x35a6
movl $0x18, %edi
movl $0x18, %esi
movq %rbx, %rdx
callq 0x35a6
popq %rbx
jmp 0x57d0
// File: /workspace/github_cpp_makefile_star2_O3/ctSkennerton[P]fxtract/util/bitmat_t.c
// Function: dotest
void
dotest(int nrows, int ncols, int *xys)
{
    BITMAT *inp = bitmat(nrows, ncols);
    BITMAT *exp = bitmat(ncols, nrows);

    for (; *xys >= 0; xys += 2) {
        bitmat_set(inp, xys[0] % nrows, xys[1] % ncols, 1);
        bitmat_set(exp, xys[1] % ncols, xys[0] % nrows, 1);
    }

    BITMAT *act = bitmat_trans(inp);
    int rc = refcmp(bitmat_ref(act), bitmat_ref(exp));
    ok(!rc, "trans %d x %d", nrows, ncols);
    if (rc) {
        puts("expected:"); prbm(exp);
        puts("actual:"); prbm(act);
    }

    bitmat_destroy(inp);
    bitmat_destroy(exp);
    bitmat_destroy(act);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, %r13
movl %esi, %r12d
movl %edi, %r15d
callq 0x37c0
movq %rax, %rbx
movl %r12d, %edi
movl %r15d, %esi
callq 0x37c0
movq %rax, %r14
movl (%r13), %eax
testl %eax, %eax
js 0x3624
addq $0x8, %r13
cltd
idivl %r15d
movl %edx, %esi
movl -0x4(%r13), %eax
cltd
idivl %r12d
movq %rbx, %rdi
movl $0x1, %ecx
callq 0x3892
movl -0x8(%r13), %ecx
movl -0x4(%r13), %eax
cltd
idivl %r12d
movl %edx, %esi
movl %ecx, %eax
cltd
idivl %r15d
movq %r14, %rdi
movl $0x1, %ecx
callq 0x3892
movl (%r13), %eax
addq $0x8, %r13
testl %eax, %eax
jns 0x35dc
movq %rbx, %rdi
callq 0x3934
movq %rax, (%rsp)
movq %rax, %rdi
callq 0x3926
movq %rax, %rbp
movq %rdx, %r13
movq %r14, %rdi
callq 0x3926
movq %rdx, %rcx
movq %rbp, %rdi
movq %r13, %rsi
movq %rax, %rdx
callq 0x47b0
subq $0x8, %rsp
testl %eax, %eax
je 0x36c2
leaq 0x2a18(%rip), %r10      # 0x607e
leaq 0x2a06(%rip), %r11      # 0x6073
leaq 0x29f8(%rip), %r9       # 0x606c
xorl %edi, %edi
xorl %esi, %esi
xorl %edx, %edx
xorl %ecx, %ecx
xorl %r8d, %r8d
xorl %eax, %eax
pushq %r12
pushq %r15
pushq %r10
pushq $0x38
pushq %r11
callq 0x4c48
addq $0x30, %rsp
leaq 0x29f1(%rip), %rdi      # 0x608c
callq 0x32e0
movq %r14, %rdi
callq 0x3724
leaq 0x29e7(%rip), %rdi      # 0x6096
callq 0x32e0
movq (%rsp), %r15
movq %r15, %rdi
callq 0x3724
jmp 0x36fe
leaq 0x29b5(%rip), %r10      # 0x607e
leaq 0x29a3(%rip), %r11      # 0x6073
leaq 0x2995(%rip), %r9       # 0x606c
movl $0x1, %esi
xorl %edi, %edi
xorl %edx, %edx
xorl %ecx, %ecx
xorl %r8d, %r8d
xorl %eax, %eax
pushq %r12
pushq %r15
pushq %r10
pushq $0x38
pushq %r11
callq 0x4c48
addq $0x30, %rsp
movq (%rsp), %r15
movq %rbx, %rdi
callq 0x382b
movq %r14, %rdi
callq 0x382b
movq %r15, %rdi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x382b
// File: /workspace/github_cpp_makefile_star2_O3/ctSkennerton[P]fxtract/util/bitmat_t.c
// Function: prbm
void
prbm(BITMAT const*bmp)
{
    int r, c, nrows = bitmat_rows(bmp), ncols = bitmat_cols(bmp);

    for (r = 0; r < nrows; ++r) {
        printf("%3d ", r);
        for (c = 0; c < ncols; ++c) {
            if (!(c & 7)) putchar(' ');
            putchar("-#"[bitmat_get(bmp, r, c)]);
        }
        putchar('\n');
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
callq 0x391e
movl %eax, %ebp
movq %rbx, %rdi
callq 0x3922
testl %ebp, %ebp
jle 0x37af
movl %eax, %r14d
leaq 0x2954(%rip), %r15      # 0x60a3
xorl %r12d, %r12d
leaq 0x2945(%rip), %rdi      # 0x609e
movl %r12d, %esi
xorl %eax, %eax
callq 0x3050
testl %r14d, %r14d
jle 0x379d
xorl %r13d, %r13d
testb $0x7, %r13b
jne 0x377b
movl $0x20, %edi
callq 0x3280
movq %rbx, %rdi
movl %r12d, %esi
movl %r13d, %edx
callq 0x3846
cltq
movsbl (%rax,%r15), %edi
callq 0x3280
incl %r13d
cmpl %r13d, %r14d
jne 0x376b
movl $0xa, %edi
callq 0x3280
incl %r12d
cmpl %ebp, %r12d
jne 0x3752
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O3/ctSkennerton[P]fxtract/util/bitmat.c
// Function: bitmat
BITMAT*
bitmat(int nrows, int ncols)
{
    assert (nrows % 8 == 0 && ncols % 8 == 0);
    BITMAT *bmp = (BITMAT *) malloc(sizeof*bmp);
    *bmp = (BITMAT) { (uint8_t *) calloc(nrows, ncols/8), nrows, ncols };
    return bmp;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movl %esi, %eax
orl %edi, %eax
testb $0x7, %al
jne 0x380c
movl %esi, %ebx
movl %edi, %ebp
movl $0x10, %edi
callq 0x3260
movq %rax, %r14
movslq %ebp, %r15
movl %ebx, %eax
sarl $0x3, %eax
movslq %eax, %rsi
movq %r15, %rdi
callq 0x3130
movq %rax, (%r14)
movl %r15d, 0x8(%r14)
movl %ebx, 0xc(%r14)
movq %r14, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
leaq 0x2893(%rip), %rdi      # 0x60a6
leaq 0x28ad(%rip), %rsi      # 0x60c7
leaq 0x28af(%rip), %rcx      # 0x60d0
movl $0x1e, %edx
callq 0x3120
// File: /workspace/github_cpp_makefile_star2_O3/ctSkennerton[P]fxtract/util/bitmat.c
// Function: bitmat_set
void
bitmat_set(BITMAT *bmp, int row, int col, int val)
{
    assert((unsigned)row < bmp->nrows && (unsigned)col < bmp->ncols);
    col += row * bmp->ncols;
    uint8_t bit = 1 << (col & 7), *at = &bmp->data[col >> 3];
    *at = val ? *at | bit : *at & ~bit;
}

// Assembly:
cmpl %esi, 0x8(%rdi)
jbe 0x38c9
movl 0xc(%rdi), %eax
cmpl %edx, %eax
jbe 0x38c9
imull %esi, %eax
addl %edx, %eax
movl %eax, %edx
andb $0x7, %dl
movq (%rdi), %rsi
sarl $0x3, %eax
cltq
movzbl (%rsi,%rax), %edi
movl %edi, %r8d
btsl %edx, %r8d
btrl %edx, %edi
testl %ecx, %ecx
cmovnel %r8d, %edi
movb %dil, (%rsi,%rax)
retq
pushq %rax
leaq 0x2818(%rip), %rdi      # 0x60e9
leaq 0x27ef(%rip), %rsi      # 0x60c7
leaq 0x286c(%rip), %rcx      # 0x614b
movl $0x35, %edx
callq 0x3120
// File: /workspace/github_cpp_makefile_star2_O3/bonetblai[P]mdp-engine/rect/./rect.h
// Function: problem_t::next(state_t const&, int, std::vector<std::pair<state_t, float>, std::allocator<std::pair<state_t, float>>>&) const
virtual void next(const state_t &s, Problem::action_t a, std::vector<std::pair<state_t, float> > &outcomes) const {
        ++expansions_;
        outcomes.clear();
        if( a != fwd ) {
            outcomes.reserve(1);
            outcomes.push_back(std::make_pair(s, 1.0));
            if( a == ::left ) {
                outcomes.back().first.left(cols_);
            } else if( a == ::right ) {
                outcomes.back().first.right(cols_);
            }
        } else if( a == fwd ) {
            outcomes.reserve(3);
            if( p_ > 0 ) {
                outcomes.push_back(std::make_pair(s, p_));
                outcomes.back().first.fwd(rows_);
            }
            if( 1 - p_ > 0 ) {
                outcomes.push_back(std::make_pair(s, (1 - p_) / 2));
                outcomes.back().first.left(cols_);
                outcomes.push_back(std::make_pair(s, (1 - p_) / 2));
                outcomes.back().first.right(cols_);
            }
        }
    }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rcx, %rbx
movl %edx, %ebp
movq %rdi, %r14
incq 0x10(%rdi)
movq %rsi, %r15
movq (%rcx), %rax
cmpq %rax, 0x8(%rcx)
je 0x885f
movq %rax, 0x8(%rbx)
testl %ebp, %ebp
je 0x88b1
movl $0x1, %esi
movq %rbx, %rdi
callq 0x8990
movl (%r15), %eax
movq %rsp, %rsi
movl %eax, (%rsi)
movl $0x3f800000, 0x4(%rsi)  # imm = 0x3F800000
movq %rbx, %rdi
callq 0x8a7c
cmpl $0x2, %ebp
je 0x896b
cmpl $0x1, %ebp
jne 0x8983
movq 0x8(%rbx), %rax
movzwl -0x6(%rax), %ecx
testw %cx, %cx
je 0x8983
decl %ecx
jmp 0x897f
movl $0x3, %esi
movq %rbx, %rdi
callq 0x8990
movss 0x20(%r14), %xmm0
xorps %xmm1, %xmm1
ucomiss %xmm0, %xmm1
jae 0x88ff
movl (%r15), %eax
movq %rsp, %rsi
movl %eax, (%rsi)
movss %xmm0, 0x4(%rsi)
movq %rbx, %rdi
callq 0x8a7c
movq 0x8(%rbx), %rax
movl 0x18(%r14), %edx
movzwl -0x8(%rax), %ecx
decl %edx
cmpl %ecx, %edx
jbe 0x88f9
incl %ecx
movw %cx, -0x8(%rax)
movss 0x20(%r14), %xmm0
ucomiss 0x1b6fe(%rip), %xmm0    # 0x24004
jae 0x8983
movss 0x1b6fc(%rip), %xmm1    # 0x2400c
mulss %xmm1, %xmm0
subss %xmm0, %xmm1
movl (%r15), %eax
movq %rsp, %rsi
movl %eax, (%rsi)
movss %xmm1, 0x4(%rsi)
movq %rbx, %rdi
callq 0x8a7c
movq 0x8(%rbx), %rax
movzwl -0x6(%rax), %ecx
testw %cx, %cx
je 0x8940
decl %ecx
movw %cx, -0x6(%rax)
movss 0x20(%r14), %xmm0
movss 0x1b6be(%rip), %xmm1    # 0x2400c
mulss %xmm1, %xmm0
subss %xmm0, %xmm1
movl (%r15), %eax
movq %rsp, %rsi
movl %eax, (%rsi)
movss %xmm1, 0x4(%rsi)
movq %rbx, %rdi
callq 0x8a7c
movq 0x8(%rbx), %rax
movl 0x1c(%r14), %edx
movzwl -0x6(%rax), %ecx
decl %edx
cmpl %ecx, %edx
jbe 0x8983
incl %ecx
movw %cx, -0x6(%rax)
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/Tumelo4[P]-Single-Linked-List-In-CPP/LinkedList.cpp
// Function: LinkedList::~LinkedList()
LinkedList::~LinkedList()
{
	while(head)
	{
		Node* tmp = head;
		head = head->next;
		delete tmp;
		tmp = NULL;
	}
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq (%rdi), %rdi
testq %rdi, %rdi
je 0x4045cc
movq (%rdi), %rax
movq %rax, (%rbx)
movl $0x10, %esi
callq 0x404950
movq (%rbx), %rdi
jmp 0x4045b2
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O3/Tumelo4[P]-Single-Linked-List-In-CPP/LinkedList.cpp
// Function: LinkedList::prepend(int)
void LinkedList::prepend(int data)
{
	// check if link is empty
	if(!head)
	{
		head = new Node(data);
	}
	else
	{
		Node* node = new Node(data);
		node->next = head;
		head = node;
	}
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movl %esi, %r15d
movq %rdi, %r14
movq (%rdi), %r12
movl $0x10, %edi
callq 0x405650
movq %rax, %rbx
testq %r12, %r12
je 0x404623
movq %rbx, %rdi
movl %r15d, %esi
callq 0x404934
movq (%r14), %rax
movq %rax, (%rbx)
jmp 0x40462e
movq %rbx, %rdi
movl %r15d, %esi
callq 0x404934
movq %rbx, (%r14)
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
jmp 0x40463c
movq %rax, %r14
movl $0x10, %esi
movq %rbx, %rdi
callq 0x404950
movq %r14, %rdi
callq 0x4a5520
// File: /workspace/github_cpp_makefile_star2_O3/Tumelo4[P]-Single-Linked-List-In-CPP/LinkedList.cpp
// Function: LinkedList::indexInsertion(int, int)
void LinkedList::indexInsertion(int data, int index)
{
	if (index == 0)
	{
		this->prepend(data);
	}
	else if ( index == size())
	{
		this->append(data);
	}
	else
	{
		int count = 0;
		Node* curr = head;
		Node* prev = NULL;
		for(;count != index; count++, prev = curr, curr=curr->next);
		Node* newNode = new Node(data);
		newNode->next = curr;
		prev->next = newNode;
	}
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movl %esi, %ebx
testl %edx, %edx
je 0x4046b2
leal 0x1(%rdx), %eax
movq %rdi, %rcx
movq (%rcx), %rcx
decl %eax
testq %rcx, %rcx
jne 0x40466b
testl %eax, %eax
je 0x4046c1
incl %edx
xorl %r15d, %r15d
movq %r15, %r12
movq (%rdi), %r15
movq %r15, %rdi
decl %edx
jne 0x40467e
movl $0x10, %edi
callq 0x405650
movq %rax, %r14
movq %rax, %rdi
movl %ebx, %esi
callq 0x404934
movq %r15, (%r14)
movq %r14, (%r12)
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movl %ebx, %esi
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
jmp 0x4045ea
movl %ebx, %esi
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
jmp 0x4046e8
movq %rax, %rbx
movl $0x10, %esi
movq %r14, %rdi
callq 0x404950
movq %rbx, %rdi
callq 0x4a5520
// File: /workspace/github_cpp_makefile_star2_O3/Tumelo4[P]-Single-Linked-List-In-CPP/LinkedList.cpp
// Function: LinkedList::append(int)
void LinkedList::append(int data)
{
	// check if head is null
	if(!head)
	{
		head = new Node(data);
	}
	else
	{
		Node* curr = head;
		for(;curr->next != NULL; curr = curr->next);
		curr->next = new Node(data);
	}
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movl %esi, %r14d
movq (%rdi), %rax
testq %rax, %rax
je 0x404722
movq %rax, %r15
movq (%rax), %rax
testq %rax, %rax
jne 0x4046fd
movl $0x10, %edi
callq 0x405650
movq %rax, %rbx
movq %rax, %rdi
movl %r14d, %esi
callq 0x404934
jmp 0x40473d
movq %rdi, %r15
movl $0x10, %edi
callq 0x405650
movq %rax, %rbx
movq %rax, %rdi
movl %r14d, %esi
callq 0x404934
movq %rbx, (%r15)
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
jmp 0x40474d
movq %rax, %r14
movl $0x10, %esi
movq %rbx, %rdi
callq 0x404950
movq %r14, %rdi
callq 0x4a5520
// File: /workspace/github_cpp_makefile_star2_O3/Tumelo4[P]-Single-Linked-List-In-CPP/LinkedList.cpp
// Function: operator<<(std::ostream&, LinkedList&)
ostream& operator<<(ostream &os, LinkedList&obj)
{
	for(Node* curr = obj.head; curr != NULL; curr=curr->next)
	{

		if(curr->next == NULL)
		{
			os<<curr->getData();
		}
		else
		{
			os<<curr->getData()<<",";
		}
	}
	return os;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rdi, %rbx
movq (%rsi), %r14
testq %r14, %r14
je 0x4047b4
leaq 0x171882(%rip), %r15    # 0x576004
movq (%r14), %r12
movq %r14, %rdi
callq 0x404944
movq %rbx, %rdi
movl %eax, %esi
callq 0x46dcd0
testq %r12, %r12
je 0x4047ac
movl $0x1, %edx
movq %rax, %rdi
movq %r15, %rsi
callq 0x46d400
movq (%r14), %r14
testq %r14, %r14
jne 0x404782
movq %rbx, %rax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/Tumelo4[P]-Single-Linked-List-In-CPP/LinkedList.cpp
// Function: LinkedList::reverse()
void LinkedList::reverse()
{
	if( head != NULL && size()> 1)
	{
		Node* curr = head;
		Node* prev = NULL;
		Node* prevprev = NULL;
		bool flag = false;

		for(;curr != NULL;prevprev = prev,prev=curr,curr = curr->next)
		{
			if(flag == false)
			{
				if(prevprev != NULL)
				{
					prevprev->next = NULL;
					prev->next = prevprev;
					flag = true;
				}
			}
			else
			{
				prev->next = prevprev;
			}
		}
		if (size() == 2)
		{
			prevprev->next = NULL;
			prev->next = prevprev;
		}
		else
		{
			prev->next = prevprev;
		}
		head = prev;
	}
}

// Assembly:
movq (%rdi), %rdx
testq %rdx, %rdx
je 0x404836
pushq %rbp
movq %rsp, %rbp
movl $0x1, %eax
movq %rdx, %rcx
movq (%rcx), %rcx
decl %eax
testq %rcx, %rcx
jne 0x4047d4
testl %eax, %eax
je 0x404835
xorl %esi, %esi
xorl %r8d, %r8d
xorl %ecx, %ecx
movq %rcx, %rax
movq %rdx, %rcx
testb $0x1, %sil
jne 0x404804
testq %r8, %r8
je 0x404807
movq $0x0, (%r8)
movb $0x1, %sil
movq %r8, (%rax)
movq (%rcx), %rdx
movq %rax, %r8
testq %rdx, %rdx
jne 0x4047e9
movl $0x3, %edx
movq %rdi, %rsi
movq (%rsi), %rsi
decl %edx
testq %rsi, %rsi
jne 0x40481a
testl %edx, %edx
jne 0x40482f
movq $0x0, (%rax)
movq %rax, (%rcx)
movq %rcx, (%rdi)
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O3/Tumelo4[P]-Single-Linked-List-In-CPP/Main.cpp
// Function: main
int main()
{
	LinkedList* linkedList = new LinkedList();

	linkedList->append(2);
	linkedList->append(4);
	linkedList->prepend(1);
	linkedList->indexInsertion(0,0);
	linkedList->indexInsertion(5,4);
	linkedList->indexInsertion(3,3);
	//cout<<linkedList<<"\n";  output memory
	cout<<*linkedList<<"\n";
	linkedList->reverse();
	cout<<*linkedList<<"\n";
	delete linkedList;
	linkedList = NULL;
	return 0;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movl $0x8, %edi
callq 0x405650
movq %rax, %rbx
movq %rax, %rdi
callq 0x404598
movq %rbx, %rdi
movl $0x2, %esi
callq 0x4046e8
movq %rbx, %rdi
movl $0x4, %esi
callq 0x4046e8
movq %rbx, %rdi
movl $0x1, %esi
callq 0x4045ea
movq %rbx, %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x404654
movq %rbx, %rdi
movl $0x5, %esi
movl $0x4, %edx
callq 0x404654
movq %rbx, %rdi
movl $0x3, %esi
movl $0x3, %edx
callq 0x404654
movq $0x5e3440, %r14         # imm = 0x5E3440
movq %r14, %rdi
movq %rbx, %rsi
callq 0x404765
leaq 0x1782e3(%rip), %r15    # 0x57cbaa
movl $0x1, %edx
movq %rax, %rdi
movq %r15, %rsi
callq 0x46d400
movq %rbx, %rdi
callq 0x4047c0
movq %r14, %rdi
movq %rbx, %rsi
callq 0x404765
movl $0x1, %edx
movq %rax, %rdi
movq %r15, %rsi
callq 0x46d400
movq %rbx, %rdi
callq 0x4045a6
movl $0x8, %esi
movq %rbx, %rdi
callq 0x404950
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r14
movl $0x8, %esi
movq %rbx, %rdi
callq 0x404950
movq %r14, %rdi
callq 0x4a5520
// File: /workspace/github_cpp_makefile_star2_O3/devanshdalal[P]cloud-computing-concepts-part-2/MP1Node.cpp
// Function: MP1Node::MP1Node(Member*, Params*, EmulNet*, Log*, Address*)
MP1Node::MP1Node(Member *member, Params *params, EmulNet *emul, Log *log, Address *address)
{
    for (int i = 0; i < 6; i++)
    {
        NULLADDR[i] = 0;
    }
    this->memberNode = member;
    this->this_node_ = *(int *)address;
    // std::cout << "this_node_: " << this_node_ << "\n";
    this->emulNet = emul;
    this->log = log;
    this->par = params;
    this->memberNode->addr = *address;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
leaq 0x1c168(%rip), %rax     # 0x1fc40
movq %rax, (%rdi)
leaq 0x30(%rdi), %rbx
leaq 0x60(%rdi), %rax
movq %rax, 0x30(%rdi)
movl $0x1, %eax
movq %rax, 0x38(%rdi)
xorps %xmm0, %xmm0
movups %xmm0, 0x40(%rdi)
movl $0x3f800000, %r10d      # imm = 0x3F800000
movl %r10d, 0x50(%rdi)
movups %xmm0, 0x58(%rdi)
leaq 0x68(%rdi), %r14
leaq 0x98(%rdi), %r11
movq %r11, 0x68(%rdi)
movq %rax, 0x70(%rdi)
movups %xmm0, 0x78(%rdi)
movl %r10d, 0x88(%rdi)
xorl %eax, %eax
movl %eax, 0x28(%rdi)
movw $0x0, 0x2c(%rdi)
movups %xmm0, 0x90(%rdi)
movl %eax, 0xa0(%rdi)
movq %rsi, 0x20(%rdi)
movl (%r9), %eax
movl %eax, 0xa4(%rdi)
movq %rcx, 0x8(%rdi)
movq %r8, 0x10(%rdi)
movq %rdx, 0x18(%rdi)
leaq 0x8(%rsi), %rdi
movq %r9, %rsi
callq 0xcd3a
popq %rbx
popq %r14
popq %r15
retq
movq %rax, %r15
movq %r14, %rdi
callq 0x5902
movq %rbx, %rdi
callq 0x597c
movq %r15, %rdi
callq 0x3470
nop
// File: /workspace/github_cpp_makefile_star2_O3/devanshdalal[P]cloud-computing-concepts-part-2/MP1Node.cpp
// Function: MP1Node::introduceSelfToGroup(Address*)
int MP1Node::introduceSelfToGroup(Address *joinaddr)
{
#ifdef DEBUGLOG
    static char s[1024];
#endif

    if (0 == memcmp((char *)&(memberNode->addr.addr), (char *)&(joinaddr->addr), sizeof(memberNode->addr.addr)))
    {
        // I am the group booter (first process to join the group). Boot up the group
#ifdef DEBUGLOG
        log->LOG(&memberNode->addr, "Starting up group...");
#endif
        memberNode->inGroup = true;
        AddNode(this_node_);
    }
    else
    {
        size_t msgsize = sizeof(MessageHdr) + sizeof(joinaddr->addr) + sizeof(long) + 1;
        // cout << "msgsize: " << sizeof(MessageHdr) << " " << sizeof(joinaddr->addr) << " " << sizeof(long) << " " << 1 << "\n";
        MessageHdr *msg = (MessageHdr *)malloc(msgsize * sizeof(char));

        // create JOINREQ message: format of data is {struct Address myaddr}
        msg->msgType = JOINREQ;
        memcpy((char *)(msg + 1), &memberNode->addr.addr, sizeof(memberNode->addr.addr));
        memcpy((char *)(msg + 1) + 1 + sizeof(memberNode->addr.addr), &memberNode->heartbeat, sizeof(long));

#ifdef DEBUGLOG
        sprintf(s, "Trying to join...");
        log->LOG(&memberNode->addr, s);
#endif

        // send JOINREQ message to introducer member
        emulNet->ENsend(&memberNode->addr, joinaddr, (char *)msg, msgsize);
        free(msg);
    }

    return 1;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movq %rdi, %rbx
movq 0x20(%rdi), %r13
leaq 0x8(%r13), %r15
movl 0x8(%r13), %eax
xorl (%rsi), %eax
movzwl 0xc(%r13), %ecx
xorw 0x4(%rsi), %cx
movzwl %cx, %ecx
orl %eax, %ecx
je 0x3da1
movq %rsi, %r14
movl $0x13, %edi
callq 0x3370
movq %rax, %r12
movl $0x0, (%rax)
movl (%r15), %eax
movl %eax, 0x4(%r12)
movzwl 0x4(%r15), %eax
movw %ax, 0x8(%r12)
movq 0x18(%r13), %rax
movq %rax, 0xb(%r12)
movups 0x142e1(%rip), %xmm0    # 0x18036
movaps %xmm0, 0x1c544(%rip)    # 0x202a0
movw $0x2e, 0x1c54b(%rip)    # 0x202b0
leaq 0x1c534(%rip), %rdx     # 0x202a0
movq 0x10(%rbx), %rdi
movq %r15, %rsi
xorl %eax, %eax
callq 0xc0b4
movq 0x8(%rbx), %rdi
movq 0x20(%rbx), %rsi
addq $0x8, %rsi
movq %r14, %rdx
movq %r12, %rcx
movl $0x13, %r8d
callq 0x6994
movq %r12, %rdi
callq 0x3320
jmp 0x3dcc
movq 0x10(%rbx), %rdi
leaq 0x14275(%rip), %rdx     # 0x18021
movq %r15, %rsi
xorl %eax, %eax
callq 0xc0b4
movq 0x20(%rbx), %rax
movb $0x1, 0xf(%rax)
movl 0xa4(%rbx), %esi
movq %rbx, %rdi
callq 0x3df2
movl $0x1, %eax
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
nop
// File: /workspace/github_cpp_makefile_star2_O3/devanshdalal[P]cloud-computing-concepts-part-2/MP1Node.cpp
// Function: MP1Node::AddNode(int)
void MP1Node::AddNode(int node)
{
    if (m_.find(node) != m_.end())
        return;
    m_.insert(node);
    memberNode->memberList.emplace_back(node, 0);
    if (node == this_node_)
    {
        memberNode->inGroup = 1;
    }
    Address a(std::to_string(node) + ":0");
#ifdef DEBUGLOG
    log->logNodeAdd(&memberNode->addr, &a);
#endif
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x58, %rsp
movq %rdi, %rbx
leaq 0xc(%rsp), %rax
movl %esi, (%rax)
leaq 0x30(%rdi), %r14
movq %r14, %rdi
movq %rax, %rsi
callq 0x5cd8
testq %rax, %rax
jne 0x3fa8
leaq 0x18(%rsp), %r15
movq %r14, (%r15)
leaq 0xc(%rsp), %r12
movq %r14, %rdi
movq %r12, %rsi
movq %r15, %rdx
callq 0x5d34
movq 0x20(%rbx), %rdi
addq $0x28, %rdi
movl $0x0, (%r15)
leaq 0x18(%rsp), %rdx
movq %r12, %rsi
callq 0x56ea
movl (%r12), %r13d
cmpl 0xa4(%rbx), %r13d
jne 0x3e6e
movq 0x20(%rbx), %rax
movb $0x1, 0xf(%rax)
movl %r13d, %ebp
negl %ebp
cmovsl %r13d, %ebp
movl $0x1, %r14d
cmpl $0xa, %ebp
jb 0x3ecb
movl $0x4, %r14d
movl $0xd1b71759, %eax       # imm = 0xD1B71759
movl %ebp, %ecx
cmpl $0x63, %ecx
jbe 0x3ec2
cmpl $0x3e7, %ecx            # imm = 0x3E7
jbe 0x3ec8
cmpl $0x2710, %ecx           # imm = 0x2710
jb 0x3ecb
movl %ecx, %edx
imulq %rax, %rdx
shrq $0x2d, %rdx
addl $0x4, %r14d
cmpl $0x1869f, %ecx          # imm = 0x1869F
movl %edx, %ecx
ja 0x3e8f
addl $-0x3, %r14d
jmp 0x3ecb
addl $-0x2, %r14d
jmp 0x3ecb
decl %r14d
shrl $0x1f, %r13d
movl %r13d, %esi
addl %r14d, %esi
leaq 0x28(%rsp), %r12
movq %r12, -0x10(%r12)
leaq 0x18(%rsp), %r15
movq %r15, %rdi
movl $0x2d, %edx
callq 0x32f0
movq (%r15), %rdi
addq %r13, %rdi
movl %r14d, %esi
movl %ebp, %edx
callq 0x5c6b
leaq 0x14140(%rip), %rsi     # 0x18048
movq %r15, %rdi
callq 0x34a0
leaq 0x48(%rsp), %r14
movq %r14, -0x10(%r14)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x3f37
movq %rdx, 0x38(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x48(%rsp)
jmp 0x3f3e
movups (%rcx), %xmm0
movups %xmm0, (%r14)
movq 0x8(%rax), %rdx
leaq 0x38(%rsp), %rsi
movq %rdx, 0x8(%rsi)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x12(%rsp), %rdi
callq 0x572e
movq 0x38(%rsp), %rdi
cmpq %r14, %rdi
je 0x3f7b
movq 0x48(%rsp), %rsi
incq %rsi
callq 0x3280
movq 0x18(%rsp), %rdi
cmpq %r12, %rdi
je 0x3f92
movq 0x28(%rsp), %rsi
incq %rsi
callq 0x3280
movq 0x10(%rbx), %rdi
movq 0x20(%rbx), %rsi
addq $0x8, %rsi
leaq 0x12(%rsp), %rdx
callq 0xc368
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq 0x38(%rsp), %rdi
cmpq %r14, %rdi
je 0x3fd6
movq 0x48(%rsp), %rsi
incq %rsi
callq 0x3280
jmp 0x3fd6
movq %rax, %rbx
movq 0x18(%rsp), %rdi
cmpq %r12, %rdi
je 0x3fed
movq 0x28(%rsp), %rsi
incq %rsi
callq 0x3280
movq %rbx, %rdi
callq 0x3470
nop
// File: /workspace/github_cpp_makefile_star2_O3/devanshdalal[P]cloud-computing-concepts-part-2/MP1Node.cpp
// Function: MP1Node::ModifyLocalState()
void MP1Node::ModifyLocalState()
{
    // std::cout << "Start ModifyLocalState\n";
    const auto current_time = par->getcurrtime();
    for (auto it = local_state_.begin(); it != local_state_.end();)
    {
        const auto &node_status = it->second;
        // std::cout << "node_status.state: " << node_status.state << " " << this_node_ << " " << it->first << "\n";
        // std::cout << "node_status: " << node_status.timeout << " " << current_time << "\n";
        if (node_status.timeout <= current_time)
        {
            switch (node_status.state)
            {
            case FINALWAITING:
            {
                it = local_state_.erase(it);
            }
            break;
            case SWIMWAITING:
            {
                // remove
                auto *message = CreateMessage(FAILED, it->first, this_node_);
                PublishToAll(*message, MSGSIZE);
                free(message);
                it = local_state_.erase(it);
            }
            break;
            case TIMEOUTWAITING:
            {
                PingK(it->first);
                local_state_[it->first] = {SWIMWAITING, current_time + WAITING_TIMEOUT, -1};
            }
            break;
            default:
                break;
            }
            // it = local_state_.erase(it);
        }
        else
        {
            ++it;
        }
    }
    // std::cout << "End ModifyLocalState\n";
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rdi, %rbx
movq 0x18(%rdi), %rdi
callq 0xcd1e
movq %rbx, (%rsp)
movq 0x78(%rbx), %r15
testq %r15, %r15
je 0x5294
movq (%rsp), %rcx
leaq 0x68(%rcx), %r14
movslq %eax, %r13
leal 0xa(%r13), %eax
cltq
movq %rax, 0x8(%rsp)
movq %r14, 0x10(%rsp)
movq (%rsp), %rbx
cmpq %r13, 0x18(%r15)
jle 0x51f0
movq (%r15), %r15
jmp 0x528b
movl 0x10(%r15), %eax
testl %eax, %eax
je 0x5259
cmpl $0x1, %eax
je 0x5207
cmpl $0x2, %eax
je 0x5249
jmp 0x528b
movl 0x8(%r15), %ebp
movl 0xa4(%rbx), %r14d
movl $0xc, %edi
callq 0x3370
movq %rax, %r12
movl $0x2, (%rax)
movl %ebp, 0x4(%rax)
movl %r14d, 0x8(%rax)
movq 0x10(%rsp), %r14
movl $0xc, %edx
movq %rbx, %rdi
movq %rax, %rsi
callq 0x4db8
movq %r12, %rdi
callq 0x3320
movq %r14, %rdi
movq %r15, %rsi
callq 0x6772
movq %rax, %r15
jmp 0x528b
leaq 0x8(%r15), %r12
movl (%r12), %esi
movq (%rsp), %rdi
callq 0x52a4
movq %r14, %rdi
movq %r12, %rsi
callq 0x622a
movl $0x1, (%rax)
movq 0x8(%rsp), %rcx
movq %rcx, 0x8(%rax)
movl $0xffffffff, 0x10(%rax) # imm = 0xFFFFFFFF
testq %r15, %r15
jne 0x51e2
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O3/devanshdalal[P]cloud-computing-concepts-part-2/MP2Node.cpp
// Function: PrintRing(std::vector<Node, std::allocator<Node>>)
void PrintRing(std::vector<Node> ring)
{
	std::cout << "RING:";
	for (auto &node : ring)
	{
		std::cout << " " << node.getAddress()->getAddress();
	}
	std::cout << "\n";
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rdi, %r14
movq 0x1173c(%rip), %rdi     # 0x1ffd0
leaq 0xa3dd(%rip), %rsi      # 0x18c78
movl $0x5, %edx
callq 0x32d0
movq (%r14), %rbx
movq 0x8(%r14), %rbp
cmpq %rbp, %rbx
je 0xe91e
leaq 0x18(%rsp), %r13
movq 0x11713(%rip), %r14     # 0x1ffd0
leaq 0x99f2(%rip), %r15      # 0x182b6
leaq 0x8(%rsp), %r12
movl $0x1, %edx
movq %r14, %rdi
movq %r15, %rsi
callq 0x32d0
movq %rbx, %rdi
callq 0x14a0c
movq %r12, %rdi
movq %rax, %rsi
callq 0xb42e
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rdx
movq %r14, %rdi
callq 0x32d0
movq 0x8(%rsp), %rdi
cmpq %r13, %rdi
je 0xe915
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x3280
addq $0x20, %rbx
cmpq %rbp, %rbx
jne 0xe8c9
movq 0x116ab(%rip), %rdi     # 0x1ffd0
leaq 0x99c9(%rip), %rsi      # 0x182f5
movl $0x1, %edx
callq 0x32d0
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq 0x8(%rsp), %rdi
cmpq %r13, %rdi
je 0xe95f
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x3280
movq %rbx, %rdi
callq 0x3470
nop
// File: /workspace/github_cpp_makefile_star2_O3/devanshdalal[P]cloud-computing-concepts-part-2/MP2Node.cpp
// Function: MP2Node::MP2Node(Member*, Params*, EmulNet*, Log*, Address*)
MP2Node::MP2Node(Member *memberNode, Params *par, EmulNet *emulNet, Log *log, Address *address)
{
	this->memberNode = memberNode;
	this->par = par;
	this->emulNet = emulNet;
	this->log = log;
	ht = new HashTable();
	secondary = new HashTable();
	tertiary = new HashTable();
	this->memberNode->addr = *address;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %r9, %r14
movq %rdi, %rbx
leaq 0x88(%rdi), %rax
xorl %edi, %edi
movl %edi, 0x88(%rbx)
movq %rdi, 0x90(%rbx)
xorps %xmm0, %xmm0
movups %xmm0, (%rbx)
movups %xmm0, 0x10(%rbx)
movups %xmm0, 0x20(%rbx)
movups %xmm0, 0x30(%rbx)
movq %rdi, 0x40(%rbx)
movq %rax, 0x98(%rbx)
movq %rax, 0xa0(%rbx)
movq %rdi, 0xa8(%rbx)
movl %edi, 0xb0(%rbx)
movq %rsi, 0x60(%rbx)
movq %rdx, 0x68(%rbx)
movq %rcx, 0x70(%rbx)
movq %r8, 0x78(%rbx)
movl $0x38, %edi
callq 0x3270
movq %rax, %r15
movq %rax, %rdi
callq 0x14a24
movq %r15, 0x48(%rbx)
movl $0x38, %edi
callq 0x3270
movq %rax, %r15
movq %rax, %rdi
callq 0x14a24
movq %r15, 0x50(%rbx)
movl $0x38, %edi
callq 0x3270
movq %rax, %r15
movq %rax, %rdi
callq 0x14a24
movq %r15, 0x58(%rbx)
movq 0x60(%rbx), %rdi
addq $0x8, %rdi
movq %r14, %rsi
callq 0xcd3a
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
jmp 0xea38
jmp 0xea38
movq %rax, %r14
movl $0x38, %esi
movq %r15, %rdi
callq 0x3280
jmp 0xea4d
movq %rax, %r14
leaq 0x30(%rbx), %r15
leaq 0x18(%rbx), %r12
leaq 0x80(%rbx), %rdi
callq 0x138dc
movq %r15, %rdi
callq 0xb770
movq %r12, %rdi
callq 0xb770
movq %rbx, %rdi
callq 0xb770
movq %r14, %rdi
callq 0x3470
nop
// File: /workspace/github_cpp_makefile_star2_O3/devanshdalal[P]cloud-computing-concepts-part-2/MP2Node.cpp
// Function: MP2Node::~MP2Node()
MP2Node::~MP2Node()
{
	delete ht;
	delete secondary;
	delete tertiary;
	delete memberNode;
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
movq 0x48(%rdi), %rdi
testq %rdi, %rdi
je 0xea95
movq (%rdi), %rax
callq *0x8(%rax)
movq 0x50(%rbx), %rdi
testq %rdi, %rdi
je 0xeaa4
movq (%rdi), %rax
callq *0x8(%rax)
movq 0x58(%rbx), %rdi
testq %rdi, %rdi
je 0xeab3
movq (%rdi), %rax
callq *0x8(%rax)
movq 0x60(%rbx), %rdi
testq %rdi, %rdi
je 0xeac2
movq (%rdi), %rax
callq *0x8(%rax)
leaq 0x80(%rbx), %rdi
callq 0x138dc
leaq 0x30(%rbx), %rdi
callq 0xb770
leaq 0x18(%rbx), %rdi
callq 0xb770
movq %rbx, %rdi
popq %rbx
jmp 0xb770
nop
// File: /workspace/github_cpp_makefile_star2_O3/devanshdalal[P]cloud-computing-concepts-part-2/MP2Node.cpp
// Function: MP2Node::createKeyValue(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, ReplicaType)
bool MP2Node::createKeyValue(string key, string value, ReplicaType replica)
{
	/*
	 * Implement this
	 */
	// Insert key, value, replicaType into the hash table

	switch (replica)
	{
	case ReplicaType::PRIMARY:
	{
		ht->create(key, value);
		break;
	}
	case ReplicaType::SECONDARY:
	{
		secondary->create(key, value);
		break;
	}
	case ReplicaType::TERTIARY:
	{
		tertiary->create(key, value);
		break;
	}
	default:
		break;
	}
	return true;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0xc8, %rsp
movq %rdx, %rbx
cmpl $0x2, %ecx
je 0x10fb0
cmpl $0x1, %ecx
je 0x10f32
testl %ecx, %ecx
jne 0x11030
movq 0x48(%rdi), %r14
leaq 0xb8(%rsp), %r15
movq %r15, -0x10(%r15)
movq (%rsi), %rax
movq 0x8(%rsi), %rdx
addq %rax, %rdx
leaq 0xa8(%rsp), %rdi
movq %rax, %rsi
callq 0xba52
leaq 0x58(%rsp), %r12
movq %r12, -0x10(%r12)
movq (%rbx), %rsi
movq 0x8(%rbx), %rdx
addq %rsi, %rdx
leaq 0x48(%rsp), %rdi
callq 0xba52
leaq 0xa8(%rsp), %rsi
leaq 0x48(%rsp), %rdx
movq %r14, %rdi
callq 0x14a86
movq 0x48(%rsp), %rdi
cmpq %r12, %rdi
je 0x10f25
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x3280
movq 0xa8(%rsp), %rdi
jmp 0x11020
movq 0x50(%rdi), %r14
leaq 0x98(%rsp), %r15
movq %r15, -0x10(%r15)
movq (%rsi), %rax
movq 0x8(%rsi), %rdx
addq %rax, %rdx
leaq 0x88(%rsp), %rdi
movq %rax, %rsi
callq 0xba52
leaq 0x38(%rsp), %r12
movq %r12, -0x10(%r12)
movq (%rbx), %rsi
movq 0x8(%rbx), %rdx
addq %rsi, %rdx
leaq 0x28(%rsp), %rdi
callq 0xba52
leaq 0x88(%rsp), %rsi
leaq 0x28(%rsp), %rdx
movq %r14, %rdi
callq 0x14a86
movq 0x28(%rsp), %rdi
cmpq %r12, %rdi
je 0x10fa6
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x3280
movq 0x88(%rsp), %rdi
jmp 0x11020
movq 0x58(%rdi), %r14
leaq 0x78(%rsp), %r15
movq %r15, -0x10(%r15)
movq (%rsi), %rax
movq 0x8(%rsi), %rdx
addq %rax, %rdx
leaq 0x68(%rsp), %rdi
movq %rax, %rsi
callq 0xba52
leaq 0x18(%rsp), %r12
movq %r12, -0x10(%r12)
movq (%rbx), %rsi
movq 0x8(%rbx), %rdx
addq %rsi, %rdx
leaq 0x8(%rsp), %rdi
callq 0xba52
leaq 0x68(%rsp), %rsi
leaq 0x8(%rsp), %rdx
movq %r14, %rdi
callq 0x14a86
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
je 0x1101b
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x3280
movq 0x68(%rsp), %rdi
cmpq %r15, %rdi
je 0x11030
movq (%r15), %rsi
incq %rsi
callq 0x3280
movb $0x1, %al
addq $0xc8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
movq %rax, %rbx
movq 0x48(%rsp), %rdi
cmpq %r12, %rdi
je 0x11098
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x3280
jmp 0x11098
movq %rax, %rbx
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
je 0x110a5
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x3280
jmp 0x110a5
movq %rax, %rbx
movq 0x28(%rsp), %rdi
cmpq %r12, %rdi
je 0x110af
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x3280
jmp 0x110af
movq %rax, %rbx
movq 0xa8(%rsp), %rdi
jmp 0x110b7
movq %rax, %rbx
movq 0x68(%rsp), %rdi
jmp 0x110b7
movq %rax, %rbx
movq 0x88(%rsp), %rdi
cmpq %r15, %rdi
je 0x110c7
movq (%r15), %rsi
incq %rsi
callq 0x3280
movq %rbx, %rdi
callq 0x3470
nop
// File: /workspace/github_cpp_makefile_star2_O3/devanshdalal[P]cloud-computing-concepts-part-2/MP2Node.cpp
// Function: MP2Node::readKey(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
string MP2Node::readKey(string key)
{
	/*
	 * Implement this
	 */
	// Read key from local hash table and return value
	if (ht->count(key))
	{
		return ht->read(key);
	}
	if (secondary->count(key))
	{
		return secondary->read(key);
	}
	return tertiary->read(key);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xa8, %rsp
movq %rdx, %r14
movq %rsi, %r15
movq %rdi, %rbx
movq 0x48(%rsi), %r12
leaq 0x38(%rsp), %rbp
movq %rbp, -0x10(%rbp)
movq (%rdx), %rsi
movq 0x8(%rdx), %rdx
addq %rsi, %rdx
leaq 0x28(%rsp), %r13
movq %r13, %rdi
callq 0xba52
movq %r12, %rdi
movq %r13, %rsi
callq 0x14cac
movq %rax, %r12
movq 0x28(%rsp), %rdi
cmpq %rbp, %rdi
je 0x11133
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x3280
testq %r12, %r12
je 0x1117d
movq 0x48(%r15), %r15
leaq 0x98(%rsp), %rbp
movq %rbp, -0x10(%rbp)
movq (%r14), %rsi
movq 0x8(%r14), %rdx
addq %rsi, %rdx
leaq 0x88(%rsp), %r14
movq %r14, %rdi
callq 0xba52
movq %rbx, %rdi
movq %r15, %rsi
movq %r14, %rdx
callq 0x14a94
movq 0x88(%rsp), %rdi
jmp 0x1123b
movq 0x50(%r15), %r12
leaq 0x18(%rsp), %rbp
movq %rbp, -0x10(%rbp)
movq (%r14), %rsi
movq 0x8(%r14), %rdx
addq %rsi, %rdx
leaq 0x8(%rsp), %r13
movq %r13, %rdi
callq 0xba52
movq %r12, %rdi
movq %r13, %rsi
callq 0x14cac
movq %rax, %r12
movq 0x8(%rsp), %rdi
cmpq %rbp, %rdi
je 0x111c6
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x3280
testq %r12, %r12
je 0x11204
movq 0x50(%r15), %r15
leaq 0x78(%rsp), %rbp
movq %rbp, -0x10(%rbp)
movq (%r14), %rsi
movq 0x8(%r14), %rdx
addq %rsi, %rdx
leaq 0x68(%rsp), %r14
movq %r14, %rdi
callq 0xba52
movq %rbx, %rdi
movq %r15, %rsi
movq %r14, %rdx
callq 0x14a94
movq 0x68(%rsp), %rdi
jmp 0x1123b
movq 0x58(%r15), %r15
leaq 0x58(%rsp), %rbp
movq %rbp, -0x10(%rbp)
movq (%r14), %rsi
movq 0x8(%r14), %rdx
addq %rsi, %rdx
leaq 0x48(%rsp), %r14
movq %r14, %rdi
callq 0xba52
movq %rbx, %rdi
movq %r15, %rsi
movq %r14, %rdx
callq 0x14a94
movq 0x48(%rsp), %rdi
cmpq %rbp, %rdi
je 0x1124c
movq (%rbp), %rsi
incq %rsi
callq 0x3280
movq %rbx, %rax
addq $0xa8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq 0x48(%rsp), %rdi
jmp 0x11294
movq %rax, %rbx
movq 0x68(%rsp), %rdi
jmp 0x11294
movq %rax, %rbx
movq 0x8(%rsp), %rdi
jmp 0x11294
movq %rax, %rbx
movq 0x88(%rsp), %rdi
jmp 0x11294
movq %rax, %rbx
movq 0x28(%rsp), %rdi
cmpq %rbp, %rdi
je 0x112a5
movq (%rbp), %rsi
incq %rsi
callq 0x3280
movq %rbx, %rdi
callq 0x3470
nop
// File: /workspace/github_cpp_makefile_star2_O3/devanshdalal[P]cloud-computing-concepts-part-2/MP2Node.cpp
// Function: MP2Node::recvLoop()
bool MP2Node::recvLoop()
{
	deleteExpired();
	if (memberNode->bFailed)
	{
		return false;
	}
	else
	{
		return emulNet->ENrecv(&(memberNode->addr), this->enqueueWrapper, NULL, 1, &(memberNode->mp2q));
	}
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
callq 0x1315a
movq 0x60(%rbx), %r9
cmpb $0x0, 0x10(%r9)
je 0x13130
xorl %eax, %eax
jmp 0x13158
movq 0x70(%rbx), %rdi
leaq 0x8(%r9), %rsi
addq $0x98, %r9
leaq 0x3fe(%rip), %rdx       # 0x13544
xorl %ecx, %ecx
movl $0x1, %r8d
callq 0x6ba8
testl %eax, %eax
setne %al
popq %rbx
retq
// File: /workspace/github_cpp_makefile_star2_O3/t0mm4rx[P]piscine_cpp/day06/ex00/main.cpp
// Function: main
int		main(int argc, char **argv)
{
	if (argc != 2)
	{
		std::cout << "Wrong usage: ./convert <number>" << std::endl;
		return (1);
	}
	go(argv[1]);
	return (0);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
cmpl $0x2, %edi
jne 0x28f6
movq 0x8(%rsi), %rdi
callq 0x230c
xorl %eax, %eax
jmp 0x293d
movq 0x26db(%rip), %rbx      # 0x4fd8
leaq 0x7cf(%rip), %rsi       # 0x30d3
movl $0x1f, %edx
movq %rbx, %rdi
callq 0x2120
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x2100
movsbl %al, %esi
movq %rbx, %rdi
callq 0x2030
movq %rax, %rdi
callq 0x20b0
movl $0x1, %eax
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/DCTewi[P]Truthtable-Calculator/functions.cpp
// Function: isLegal(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)
bool isLegal(const std::string &expr)
{
    // Start error
    if (expr[0] != '!' && expr[0] != '(' && !isalpha(expr[0])) return false;
    // Tail error
    if (expr[expr.size() - 1] != ')' && !isalpha(expr[expr.size() - 1])) return false;
    
    for (int i = 1; i < static_cast<int>(expr.size()); i++)
    {
        if (expr[i - 1] == '!' || expr[i] == '!') continue;
        // Consequent operators
        if (operators.count(expr[i]) && operators.count(expr[i - 1])) return false;
        // Consequent variables
        if (isalpha(expr[i]) && isalpha(expr[i - 1])) return false;
    }

    return true;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rdi, %rbx
movq (%rdi), %r14
movzbl (%r14), %eax
cmpl $0x21, %eax
je 0x2854
cmpl $0x28, %eax
je 0x2854
movsbl %al, %edi
callq 0x2210
testl %eax, %eax
je 0x28e9
movq 0x8(%rbx), %r15
movsbl -0x1(%r14,%r15), %edi
cmpl $0x29, %edi
je 0x286c
callq 0x2210
testl %eax, %eax
je 0x28e9
movb $0x1, %bpl
cmpl $0x2, %r15d
jl 0x28eb
movl $0x1, %r12d
leaq 0x68ee(%rip), %r15      # 0x9170
cmpb $0x21, -0x1(%r14,%r12)
je 0x28db
cmpb $0x21, (%r14,%r12)
je 0x28db
addq %r12, %r14
movq %r15, %rdi
movq %r14, %rsi
callq 0x43e0
testq %rax, %rax
je 0x28bb
movq (%rbx), %rax
leaq (%rax,%r12), %rsi
decq %rsi
movq %r15, %rdi
callq 0x43e0
testq %rax, %rax
jne 0x28e9
movq (%rbx), %r14
movsbl (%r14,%r12), %edi
callq 0x2210
testl %eax, %eax
je 0x28db
movsbl -0x1(%r14,%r12), %edi
callq 0x2210
testl %eax, %eax
jne 0x28e9
incq %r12
movslq 0x8(%rbx), %rax
cmpq %rax, %r12
jl 0x2882
jmp 0x28eb
xorl %ebp, %ebp
movl %ebp, %eax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/rpetit3[P]fastq-scan/fastq-scan.cpp
// Function: Stats::init()
void init(void) {
            read_total = 0;
            total_bp = 0;
            qual_sum = 0;
            read_length_count.resize(MAX_READ_LENGTH,0);
            per_base_qual.resize(MAX_READ_LENGTH,0);
            per_base_count.resize(MAX_READ_LENGTH,0);
            phred = 33;
        }

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x10, %rsp
movq %rdi, %rbx
xorl %r15d, %r15d
movq %r15, 0x38(%rdi)
movq %r15, (%rdi)
movq %r15, 0xc8(%rdi)
addq $0x20, %rdi
leaq 0x8(%rsp), %r14
movl $0x0, (%r14)
movl $0x2faf080, %esi        # imm = 0x2FAF080
movq %r14, %rdx
callq 0x4496
leaq 0x88(%rbx), %rdi
movq %r15, (%r14)
leaq 0x8(%rsp), %r14
movl $0x2faf080, %esi        # imm = 0x2FAF080
movq %r14, %rdx
callq 0x44ca
leaq 0xa0(%rbx), %rdi
movq %r15, (%r14)
leaq 0x8(%rsp), %rdx
movl $0x2faf080, %esi        # imm = 0x2FAF080
callq 0x44ca
movl $0x21, 0xb8(%rbx)
addq $0x10, %rsp
popq %rbx
popq %r14
popq %r15
retq
nop
// File: /workspace/github_cpp_makefile_star2_O3/rpetit3[P]fastq-scan/fastq-scan.cpp
// Function: Stats::transform_quality(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
int transform_quality(string qual) {
            unsigned int total = 0;
            total_bp += qual.length();
            read_length_count[qual.length()]++;
            for (unsigned int i = 0; i < qual.length(); i++) {
                unsigned int qual_val = (unsigned int)qual[i];
                per_base_qual[i] += qual_val;
                per_base_count[i]++;
                total += qual_val;
            }

            if (qual.length() > 0) {
                double avg_qual = total / qual.length();
                qual_sum += avg_qual;
                per_read_qual.push_back(avg_qual);
                return 0;
            } else {
                return 1;
            }
        }

// Assembly:
pushq %rax
movq 0x8(%rsi), %rax
addq %rax, (%rdi)
movq 0x20(%rdi), %rcx
incl (%rcx,%rax,4)
testq %rax, %rax
je 0x2e7a
movq (%rsi), %rcx
movq 0x88(%rdi), %rdx
movq 0xa0(%rdi), %r8
xorl %r10d, %r10d
movl $0x1, %r9d
xorl %eax, %eax
movsbl (%rcx,%r10), %r11d
addq %r11, (%rdx,%r10,8)
incq (%r8,%r10,8)
addl %r11d, %eax
movl %r9d, %r10d
movq 0x8(%rsi), %r11
incl %r9d
cmpq %r10, %r11
ja 0x2e18
testq %r11, %r11
je 0x2e7a
xorl %edx, %edx
divl %r11d
cvtsi2sd %rax, %xmm0
movsd %xmm0, (%rsp)
movsd 0xc8(%rdi), %xmm1
addsd %xmm0, %xmm1
movsd %xmm1, 0xc8(%rdi)
movq 0x78(%rdi), %rsi
cmpq 0x80(%rdi), %rsi
je 0x2e81
movsd %xmm0, (%rsi)
addq $0x8, %rsi
movq %rsi, 0x78(%rdi)
jmp 0x2e8d
movl $0x1, %eax
jmp 0x2e8f
addq $0x70, %rdi
movq %rsp, %rdx
callq 0x4f5a
xorl %eax, %eax
popq %rcx
retq
nop
// File: /workspace/github_cpp_makefile_star2_O3/smuething[P]dune-cxx11/16-shared_from_this.cc
// Function: main
int main()
{
  std::shared_ptr<A> p1(new A());
  std::shared_ptr<A> p2 = p1->shared_from_this();
  assert(p1 == p2);
  return 0;
}

// Assembly:
pushq %rbx
subq $0x20, %rsp
movl $0x10, %edi
callq 0x1070
xorps %xmm0, %xmm0
movups %xmm0, (%rax)
movq %rsp, %rbx
movq %rbx, %rdi
movq %rax, %rsi
callq 0x12e0
movq (%rbx), %rsi
leaq 0x10(%rsp), %rdi
callq 0x14b8
movq (%rsp), %rax
cmpq 0x10(%rsp), %rax
jne 0x122d
movq 0x18(%rsp), %rdi
testq %rdi, %rdi
je 0x1216
callq 0x1266
movq 0x8(%rsp), %rdi
testq %rdi, %rdi
je 0x1225
callq 0x1266
xorl %eax, %eax
addq $0x20, %rsp
popq %rbx
retq
leaq 0xdd0(%rip), %rdi       # 0x2004
leaq 0xdd2(%rip), %rsi       # 0x200d
leaq 0xde2(%rip), %rcx       # 0x2024
movl $0xc, %edx
callq 0x1060
movq %rax, %rbx
movq 0x8(%rsp), %rdi
testq %rdi, %rdi
je 0x125e
callq 0x1266
movq %rbx, %rdi
callq 0x10c0
// File: /workspace/github_cpp_makefile_star2_O3/matteorr[P]EarleyParser/EarleyParser.cpp
// Function: EarleyParser::~EarleyParser()
EarleyParser::~EarleyParser()
{
	for( unsigned int i = 0; i <= this->inputVector.size(); i++ )
	{
		//int j = 0;
		//cout << i << "  *****************************************************" << endl << "*****************************************************" << endl;
		for( vector<State*>::iterator it = this->earleyParserChart.at(i).begin(); it != this->earleyParserChart.at(i).end(); it++ )
		{
			//j++;
			delete *it;

		}
		//cout << endl << endl << "DELETED STATEs: " << j << endl << endl;

	}

	for( vector<Node*>::iterator it = this->returnVector.begin(); it != this->returnVector.end(); it++ )
	{
		delete *(it);
	}

}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rdi, %rbx
leaq 0xb68f(%rip), %rax      # 0xdd08
movq %rax, (%rdi)
leaq 0x98(%rdi), %rax
movq %rax, -0x30(%rbp)
leaq 0x80(%rdi), %rax
movq %rax, -0x38(%rbp)
movq 0x80(%rdi), %rax
movq 0x88(%rdi), %rcx
xorl %r12d, %r12d
movabsq $-0x5555555555555555, %r13 # imm = 0xAAAAAAAAAAAAAAAB
movq %rcx, %rdx
subq %rax, %rdx
sarq $0x3, %rdx
imulq %r13, %rdx
cmpq %r12, %rdx
jbe 0x27b1
leaq (%r12,%r12,2), %r14
movq (%rax,%r14,8), %r15
cmpq 0x8(%rax,%r14,8), %r15
je 0x270c
movq (%r15), %rdi
testq %rdi, %rdi
je 0x26ef
movq (%rdi), %rax
callq *0x8(%rax)
movq 0x80(%rbx), %rax
movq 0x88(%rbx), %rcx
movq %rcx, %rdx
subq %rax, %rdx
sarq $0x3, %rdx
imulq %r13, %rdx
cmpq %r12, %rdx
jbe 0x27b1
addq $0x8, %r15
jmp 0x26cc
incl %r12d
movq 0xa0(%rbx), %rdx
subq 0x98(%rbx), %rdx
sarq $0x5, %rdx
cmpq %r12, %rdx
jae 0x26ad
movq 0xb0(%rbx), %r12
movq 0xb8(%rbx), %rax
cmpq %rax, %r12
je 0x2769
movq -0x38(%rbp), %r14
movq -0x30(%rbp), %r15
movq (%r12), %rdi
testq %rdi, %rdi
je 0x2757
movq (%rdi), %rax
callq *0x8(%rax)
movq 0xb8(%rbx), %rax
addq $0x8, %r12
cmpq %rax, %r12
jne 0x2741
movq 0xb0(%rbx), %r12
jmp 0x2771
movq -0x38(%rbp), %r14
movq -0x30(%rbp), %r15
testq %r12, %r12
je 0x277e
movq %r12, %rdi
callq 0x21a0
movq %r15, %rdi
callq 0x60b2
movq %r14, %rdi
callq 0x610a
leaq 0x48(%rbx), %rdi
callq 0x641e
addq $0x10, %rbx
movq %rbx, %rdi
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x64fa
leaq 0x7e5d(%rip), %rdi      # 0xa615
movq %r12, %rsi
xorl %eax, %eax
callq 0x2280
movq %rax, %rdi
callq 0x60a4