LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_cpp_makefile_star2_O1/narges64[P]SIMBA/ssd.cpp
// Function: trace_output(ssd_info*)
void trace_output(ssd_info* ssd){
	int flag = 1;
	int64_t start_time, end_time;
	request *req, *pre_node;
	sub_request *sub, *tmp;

	pre_node=NULL;
	req = ssd->request_queue;

	if(req == NULL)
		return;

	while(req != NULL)
	{
		if(req->response_time != 0)
		{

			collect_statistics(ssd, req);
			remove_request(ssd, &req, &pre_node);
		}
		else
		{
			sub = req->subs;
			flag = 1;
			start_time = 0;
			end_time = 0;

			while(sub != NULL)
			{
				if(start_time == 0)
					start_time = sub->begin_time;
				if(start_time > sub->begin_time)
					start_time = sub->begin_time;
				if (end_time < sub->complete_time){
					end_time = sub->complete_time;
					req->critical_sub = sub;
				}

				// if any sub-request is not completed, the request is not completed
				if( find_subrequest_state(ssd, sub) == SR_MODE_COMPLETE )
				{
					sub = sub->next_subs;
				}
				else
				{
					flag=0;
					break;
				}

			}

			if (flag == 1)
			{
				req->response_time = end_time;
				req->begin_time = start_time;
				collect_statistics(ssd, req );
				remove_request(ssd, &req, &pre_node);

			}
			else
			{
				// request is not complete yet, go to the next node
				pre_node = req;
				req = req->next_node;
			}
		}
	}

}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq $0x0, 0x10(%rsp)
movq 0x68(%rdi), %r12
movq %r12, 0x8(%rsp)
testq %r12, %r12
je 0x8c5a
movq %rdi, %rbx
leaq 0x8(%rsp), %r14
leaq 0x10(%rsp), %r15
cmpq $0x0, 0x28(%r12)
je 0x8b9b
movq %rbx, %rdi
movq %r12, %rsi
callq 0x956c
movq %rbx, %rdi
movq %r14, %rsi
jmp 0x8c27
movq 0x30(%r12), %r13
testq %r13, %r13
sete %bpl
je 0x8bf6
xorl %r15d, %r15d
xorl %r14d, %r14d
testq %r14, %r14
jne 0x8bb8
movq 0x48(%r13), %r14
movq %r14, %rcx
movq 0x48(%r13), %r14
movq 0x58(%r13), %rax
cmpq %r14, %rcx
cmovlq %rcx, %r14
cmpq %rax, %r15
jge 0x8bd7
movq %r13, 0x40(%r12)
movq %rax, %r15
movq %rbx, %rdi
movq %r13, %rsi
callq 0x6e78
cmpl $0x9, %eax
jne 0x8bfc
movq 0x68(%r13), %r13
testq %r13, %r13
sete %bpl
jne 0x8baf
jmp 0x8bfc
xorl %r14d, %r14d
xorl %r15d, %r15d
testb $0x1, %bpl
je 0x8c3f
movq %r15, 0x28(%r12)
movq %r14, 0x20(%r12)
movq %rbx, %rdi
movq %r12, %rsi
callq 0x956c
movq %rbx, %rdi
leaq 0x8(%rsp), %r14
movq %r14, %rsi
leaq 0x10(%rsp), %r15
movq %r15, %rdx
callq 0x96f2
movq 0x8(%rsp), %r12
testq %r12, %r12
jne 0x8b7d
jmp 0x8c5a
movq %r12, 0x10(%rsp)
movq 0x38(%r12), %rax
movq %rax, 0x8(%rsp)
leaq 0x8(%rsp), %r14
leaq 0x10(%rsp), %r15
jmp 0x8c2f
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/narges64[P]SIMBA/ssd.cpp
// Function: norm_dist(double, double)
double norm_dist(double mu, double sigma ) {
	const double epsilon = std::numeric_limits<double>::min(); 
	const double two_pi = 2.0 * 3.14159265358979323846; 
	
	static double z0, z1 = 0; 
	static bool generate = false; 
	generate = !generate; 
	
	if (!generate) 
		return z1 * sigma + mu; 

	double u1, u2; 
	do 
	{
		u1 = rand() * (1.0 / RAND_MAX); 
		u2 = rand() * (1.0 / RAND_MAX); 

	}while (u1 <= epsilon); 

	z0 = sqrt(-2.0 * log(u1)) * cos(two_pi * u2); 
	z1 = sqrt(-2.0 * log(u1)) * sin(two_pi * u2); 
	
	return z0 * sigma + mu; 

}

// Assembly:
subq $0x28, %rsp
movb 0x527c(%rip), %al       # 0xe1c8
movl %eax, %ecx
xorb $0x1, %cl
movb %cl, 0x5271(%rip)       # 0xe1c8
testb %al, %al
je 0x8f67
leaq 0x525e(%rip), %rax      # 0xe1c0
jmp 0x905f
movsd %xmm0, 0x18(%rsp)
movsd %xmm1, 0x20(%rsp)
callq 0x20a0
xorps %xmm0, %xmm0
cvtsi2sd %eax, %xmm0
mulsd 0x1c61(%rip), %xmm0     # 0xabe8
movsd %xmm0, (%rsp)
callq 0x20a0
movsd (%rsp), %xmm0
movsd 0x1c52(%rip), %xmm1     # 0xabf0
ucomisd %xmm0, %xmm1
jae 0x8f73
xorps %xmm1, %xmm1
cvtsi2sd %eax, %xmm1
mulsd 0x1c35(%rip), %xmm1     # 0xabe8
movsd %xmm1, 0x8(%rsp)
callq 0x2110
mulsd 0x1c32(%rip), %xmm0     # 0xabf8
xorpd %xmm1, %xmm1
ucomisd %xmm1, %xmm0
jb 0x8fd6
sqrtsd %xmm0, %xmm0
jmp 0x8fdb
callq 0x2100
movsd %xmm0, 0x10(%rsp)
movsd 0x8(%rsp), %xmm0
mulsd 0x1c11(%rip), %xmm0     # 0xac00
movsd %xmm0, 0x8(%rsp)
callq 0x2300
mulsd 0x10(%rsp), %xmm0
movsd %xmm0, 0x51b0(%rip)     # 0xe1b8
movsd (%rsp), %xmm0
callq 0x2110
mulsd 0x1bde(%rip), %xmm0     # 0xabf8
ucomisd 0x1be6(%rip), %xmm0     # 0xac08
jb 0x902a
sqrtsd %xmm0, %xmm0
jmp 0x902f
callq 0x2100
movsd %xmm0, (%rsp)
movsd 0x8(%rsp), %xmm0
callq 0x2090
mulsd (%rsp), %xmm0
movsd %xmm0, 0x5174(%rip)     # 0xe1c0
leaq 0x5165(%rip), %rax      # 0xe1b8
movsd 0x20(%rsp), %xmm1
movsd 0x18(%rsp), %xmm0
mulsd (%rax), %xmm1
addsd %xmm0, %xmm1
movapd %xmm1, %xmm0
addq $0x28, %rsp
retq
// File: /workspace/github_cpp_makefile_star2_O1/narges64[P]SIMBA/ssd.cpp
// Function: find_nearest_event(ssd_info*)
int64_t find_nearest_event(ssd_info *ssd) {
	unsigned int i,j;
	int64_t time=MAX_INT64;
	int64_t time1=MAX_INT64;
	int64_t time2=MAX_INT64;



	for (i=0;i<ssd->parameter->channel_number;i++)
	{
		if (ssd->channel_head[i]->next_state==CHANNEL_MODE_IDLE)
			if(time1>ssd->channel_head[i]->next_state_predict_time)
				if (ssd->channel_head[i]->next_state_predict_time > ssd->current_time)
					time1=ssd->channel_head[i]->next_state_predict_time;
		for (j=0;j<ssd->parameter->lun_channel[i];j++)
		{
			if (ssd->channel_head[i]->lun_head[j]->next_state==LUN_MODE_IDLE)
				if(time2>ssd->channel_head[i]->lun_head[j]->next_state_predict_time)
					if (ssd->channel_head[i]->lun_head[j]->next_state_predict_time>ssd->current_time)
						time2=ssd->channel_head[i]->lun_head[j]->next_state_predict_time;

		}
	}


	time=(time1>time2)?time2:time1;


	return time;
}

// Assembly:
pushq %r14
pushq %rbx
movabsq $0x7fffffffffffffff, %rax # imm = 0x7FFFFFFFFFFFFFFF
movq 0x58(%rdi), %rcx
movl 0x98(%rcx), %edx
testq %rdx, %rdx
je 0x9337
movq 0x90(%rdi), %r8
xorl %r9d, %r9d
movq %rax, %rsi
movq (%r8,%r9,8), %r11
cmpl $0x0, 0x3c(%r11)
jne 0x92f7
movq 0x48(%r11), %r10
cmpq %r10, %rsi
jle 0x92f7
cmpq (%rdi), %r10
cmovgq %r10, %rsi
movl 0x9c(%rcx,%r9,4), %r10d
testq %r10, %r10
je 0x932d
movq 0x50(%r11), %r11
xorl %ebx, %ebx
movq (%r11,%rbx,8), %r14
cmpl $0x0, 0x20(%r14)
jne 0x9325
movq 0x28(%r14), %r14
cmpq %r14, %rax
jle 0x9325
cmpq (%rdi), %r14
cmovgq %r14, %rax
incq %rbx
cmpq %rbx, %r10
jne 0x930a
incq %r9
cmpq %rdx, %r9
jne 0x92dc
jmp 0x933a
movq %rax, %rsi
cmpq %rax, %rsi
cmovlq %rsi, %rax
popq %rbx
popq %r14
retq
// File: /workspace/github_cpp_makefile_star2_O1/narges64[P]SIMBA/ssd.cpp
// Function: collect_statistics(ssd_info*, request*)
void collect_statistics(ssd_info * ssd, request * req){

	sub_request * sub;
	sub = req->subs; //  critical_sub;

	while (sub != NULL)
	{
		if (sub->complete_time != req->response_time) { sub = sub->next_subs; continue;  }
	for (unsigned int i = 0; i < SR_MODE_NUM; i++){
			ssd->stats->subreq_state_time[i] += sub->state_time[i];
		}

		sub = sub->next_subs;

	}

	if(req->response_time-req->begin_time==0)
	{
		printf("1. the response time is 0?? %lld %lld \n", req->response_time, req->begin_time);
		getchar();
	}
	
	if (req->operation==READ)
	{
		ssd->stats->read_request_size[req->app_id] += req->size;
		ssd->stats->read_RT.update(req->response_time - req->begin_time); 
		ssd->stats->read_throughput.add_time(req->begin_time, req->response_time); // changed 
		ssd->stats->read_throughput.add_capacity(req->size);
		ssd->stats->read_throughput.add_count(1);
	}
	else
	{
		ssd->stats->write_request_size[req->app_id] += req->size; 
		ssd->stats->write_RT.update(req->response_time - req->begin_time); 
		ssd->stats->write_throughput.add_time(req->begin_time, req->response_time); 
		ssd->stats->write_throughput.add_capacity(req->size);
		ssd->stats->write_throughput.add_count(1);
	}

}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
movq 0x30(%rsi), %rax
testq %rax, %rax
je 0x95b7
movq 0x58(%rax), %rcx
cmpq 0x28(%rbx), %rcx
jne 0x95b1
movq 0x80(%rax), %rcx
movq 0x98(%r14), %rdx
movq 0x188(%rdx), %rdx
xorl %esi, %esi
movq (%rcx,%rsi,8), %rdi
addq %rdi, (%rdx,%rsi,8)
incq %rsi
cmpq $0xa, %rsi
jne 0x95a0
movq 0x68(%rax), %rax
jmp 0x957a
movq 0x20(%rbx), %rdx
movq 0x28(%rbx), %rsi
cmpq %rdx, %rsi
jne 0x95d7
leaq 0x1733(%rip), %rdi      # 0xacfe
xorl %eax, %eax
callq 0x2060
callq 0x2250
cmpl $0x1, 0x18(%rbx)
movl (%rbx), %eax
movl 0x14(%rbx), %ecx
movq 0x98(%r14), %rdi
jne 0x9640
movq 0x58(%rdi), %rdx
addq %rcx, (%rdx,%rax,8)
addq $0x8, %rdi
movq 0x28(%rbx), %rsi
subq 0x20(%rbx), %rsi
callq 0x99b8
movq 0x98(%r14), %rax
movq 0x20(%rbx), %rdx
movq 0x28(%rbx), %rcx
movq 0x1a8(%rax), %rsi
cmpq %rdx, %rsi
setge %dil
cmpq %rcx, %rsi
setle %r8b
testb %r8b, %dil
jne 0x9697
cmpq %rdx, %rsi
setge %dil
cmpq %rcx, %rsi
setge %sil
orb %dil, %sil
je 0x969a
jmp 0x96ae
movq 0x68(%rdi), %rdx
addq %rcx, (%rdx,%rax,8)
addq $0x30, %rdi
movq 0x28(%rbx), %rsi
subq 0x20(%rbx), %rsi
callq 0x99b8
movq 0x98(%r14), %rax
movq 0x20(%rbx), %rdx
movq 0x28(%rbx), %rcx
movq 0x1c8(%rax), %rsi
cmpq %rdx, %rsi
setge %dil
cmpq %rcx, %rsi
setle %r8b
testb %r8b, %dil
jne 0x96c0
cmpq %rdx, %rsi
setge %dil
cmpq %rcx, %rsi
setge %sil
orb %dil, %sil
je 0x96c3
jmp 0x96d7
movq %rsi, %rdx
movq %rcx, %rsi
subq %rdx, %rsi
addq %rsi, 0x190(%rax)
movq %rcx, 0x1a8(%rax)
movl 0x14(%rbx), %ecx
addq %rcx, 0x198(%rax)
addq $0x1a0, %rax            # imm = 0x1A0
jmp 0x96e7
movq %rsi, %rdx
movq %rcx, %rsi
subq %rdx, %rsi
addq %rsi, 0x1b0(%rax)
movq %rcx, 0x1c8(%rax)
movl 0x14(%rbx), %ecx
addq %rcx, 0x1b8(%rax)
addq $0x1c0, %rax            # imm = 0x1C0
incq (%rax)
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_cpp_makefile_star2_O1/narges64[P]SIMBA/ssd.cpp
// Function: remove_request(ssd_info*, request**, request**)
void remove_request(ssd_info * ssd, request ** req, request ** pre_node){
	if(*pre_node == NULL)
	{
		if((*req)->next_node == NULL)
		{
			delete (*req);
			*req = NULL;
			ssd->request_queue = NULL;
			ssd->request_tail = NULL;
			ssd->request_queue_length--;
		}
		else
		{
			ssd->request_queue = (*req)->next_node;
			(*pre_node) = (*req);
			(*req) = (*req)->next_node;
			delete (*pre_node);
			*pre_node = NULL;
			ssd->request_queue_length--;
		}
	}
	else
	{
		if((*req)->next_node == NULL)
		{
			(*pre_node)->next_node = NULL;
			delete (*req);
			*req = NULL;
			ssd->request_tail = (*pre_node);
			ssd->request_queue_length--;
		}
		else
		{
			(*pre_node)->next_node = (*req)->next_node;
			delete (*req);
			(*req) = (*pre_node)->next_node;
			ssd->request_queue_length--;
		}
	}

}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, %r14
movq %rsi, %r15
movq %rdi, %rbx
movq (%rdx), %rcx
movq (%rsi), %r12
movq 0x38(%r12), %rax
testq %rcx, %rcx
je 0x9748
testq %rax, %rax
je 0x9787
movq %rax, 0x38(%rcx)
movq (%r15), %r12
testq %r12, %r12
je 0x9739
movq %r12, %rdi
callq 0x994e
movl $0x48, %esi
movq %r12, %rdi
callq 0x21a0
movq (%r14), %rax
movq 0x38(%rax), %rax
movq %rax, (%r15)
jmp 0x97e4
testq %rax, %rax
je 0x97bc
movq %rax, 0x68(%rbx)
movq (%r15), %rax
movq %rax, (%r14)
movq (%r15), %rax
movq 0x38(%rax), %rax
movq %rax, (%r15)
movq (%r14), %r15
testq %r15, %r15
je 0x977e
movq %r15, %rdi
callq 0x994e
movl $0x48, %esi
movq %r15, %rdi
callq 0x21a0
movq $0x0, (%r14)
jmp 0x97e4
movq $0x0, 0x38(%rcx)
movq (%r15), %r12
testq %r12, %r12
je 0x97ac
movq %r12, %rdi
callq 0x994e
movl $0x48, %esi
movq %r12, %rdi
callq 0x21a0
movq $0x0, (%r15)
movq (%r14), %rax
movq %rax, 0x70(%rbx)
jmp 0x97e4
testq %r12, %r12
je 0x97d6
movq %r12, %rdi
callq 0x994e
movl $0x48, %esi
movq %r12, %rdi
callq 0x21a0
movq $0x0, (%r15)
xorps %xmm0, %xmm0
movups %xmm0, 0x68(%rbx)
decl 0x1c(%rbx)
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O1/narges64[P]SIMBA/ssd.cpp
// Function: transfer_size(ssd_info*, unsigned int, request*)
unsigned int transfer_size(ssd_info *ssd,unsigned int lpn,request *req){
	unsigned int first_lpn,last_lpn,trans_size;
	uint64_t state;
	uint64_t mask=0,offset1=0,offset2=0;

	first_lpn=req->lsn/ssd->parameter->subpage_page;
	last_lpn=(req->lsn+req->size-1)/ssd->parameter->subpage_page;

	mask=~(0xffffffffffffffff<<(ssd->parameter->subpage_page));
	state=mask;
	if(lpn==first_lpn)
	{
		offset1=ssd->parameter->subpage_page-((lpn+1)*ssd->parameter->subpage_page-req->lsn);
		state=state&(0xffffffffffffffff<<offset1);
	}
	if(lpn==last_lpn)
	{
		offset2=ssd->parameter->subpage_page-((lpn+1)*ssd->parameter->subpage_page-(req->lsn+req->size));
		state=state&(~(0xffffffffffffffff<<offset2));
	}

	trans_size=size(state);

	return trans_size;
}

// Assembly:
movl 0x10(%rdx), %r10d
movl 0x14(%rdx), %r8d
movq 0x58(%rdi), %rax
movl 0x238(%rax), %r9d
movl %r10d, %eax
xorl %edx, %edx
divl %r9d
movl %eax, %r11d
movq $-0x1, %rdi
movl %r9d, %ecx
shlq %cl, %rdi
leal (%r8,%r10), %eax
decl %eax
xorl %edx, %edx
divl %r9d
notq %rdi
cmpl %esi, %r11d
jne 0x9845
movl %esi, %ecx
notl %ecx
imull %r9d, %ecx
addl %r9d, %ecx
addl %r10d, %ecx
shrq %cl, %rdi
shlq %cl, %rdi
cmpl %esi, %eax
jne 0x4427
addl %r10d, %r8d
imull %esi, %r9d
subl %r9d, %r8d
movq $-0x1, %rax
movl %r8d, %ecx
shlq %cl, %rax
notq %rax
andq %rax, %rdi
jmp 0x4427
// File: /workspace/github_cpp_makefile_star2_O1/narges64[P]SIMBA/./common.hh
// Function: ssd_info::~ssd_info()
~ssd_info(){
		for (int i=0;i<parameter->channel_number;i++)
		{
			delete channel_head[i];
		}
		delete channel_head;
		delete dram;
		delete parameter;
		delete stats;
	}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rdi, %rbx
movq 0x58(%rdi), %rax
cmpl $0x0, 0x98(%rax)
je 0x98db
xorl %r15d, %r15d
movq 0x90(%rbx), %rax
movq (%rax,%r15,8), %r14
testq %r14, %r14
je 0x98c9
movq %r14, %rdi
callq 0x9a18
movl $0x60, %esi
movq %r14, %rdi
callq 0x21a0
incq %r15
movq 0x58(%rbx), %rax
movl 0x98(%rax), %eax
cmpq %rax, %r15
jb 0x98a4
movq 0x90(%rbx), %rdi
testq %rdi, %rdi
je 0x98f1
movl $0x8, %esi
callq 0x21a0
movq 0x60(%rbx), %r14
testq %r14, %r14
je 0x990f
movq %r14, %rdi
callq 0x9a86
movl $0x28, %esi
movq %r14, %rdi
callq 0x21a0
movq 0x58(%rbx), %rdi
testq %rdi, %rdi
je 0x9922
movl $0x350, %esi            # imm = 0x350
callq 0x21a0
movq 0x98(%rbx), %rbx
testq %rbx, %rbx
je 0x9948
movq %rbx, %rdi
callq 0x3e58
movl $0x1d0, %esi            # imm = 0x1D0
movq %rbx, %rdi
popq %rbx
popq %r14
popq %r15
jmp 0x21a0
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O1/narges64[P]SIMBA/./common.hh
// Function: request::~request()
~request(){

		sub_request * tmp;
		while(subs!=NULL)
		{
			tmp = subs->next_subs;
			delete subs;
			subs = tmp;
		}

	}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq 0x30(%rdi), %r14
testq %r14, %r14
je 0x9984
movq %rdi, %rbx
movq 0x68(%r14), %r15
movq %r14, %rdi
callq 0x66d0
movl $0xa0, %esi
movq %r14, %rdi
callq 0x21a0
movq %r15, 0x30(%rbx)
movq %r15, %r14
testq %r15, %r15
jne 0x995f
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O1/narges64[P]SIMBA/./common.hh
// Function: Stat::update(long)
void update(int64_t value){
		int64_t temp_value = value / 1000; // convert ns to us 
		if (temp_value > max) max = temp_value; 
		if (temp_value < min) min = temp_value; 
		count++; 
		sum += temp_value; 
		squared_sum += (temp_value / 1000) * (temp_value / 1000); 
	}

// Assembly:
movabsq $0x20c49ba5e353f7cf, %rcx # imm = 0x20C49BA5E353F7CF
movq %rsi, %rax
imulq %rcx
movq %rdx, %rax
shrq $0x3f, %rax
sarq $0x7, %rdx
addq %rax, %rdx
cmpq 0x18(%rdi), %rdx
jle 0x99e0
movq %rdx, 0x18(%rdi)
cmpq 0x20(%rdi), %rdx
jge 0x99ea
movq %rdx, 0x20(%rdi)
incl (%rdi)
addq %rdx, 0x8(%rdi)
movabsq $0x431bde82d7b634db, %rcx # imm = 0x431BDE82D7B634DB
movq %rsi, %rax
imulq %rcx
movq %rdx, %rax
shrq $0x3f, %rax
sarq $0x12, %rdx
addq %rax, %rdx
imulq %rdx, %rdx
addq %rdx, 0x10(%rdi)
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/narges64[P]SIMBA/./common.hh
// Function: channel_info::~channel_info()
~channel_info(){
		for (int i = 0; i < lun_num; i++){
			delete lun_head[i];
		}
		delete lun_head;
		delete state_time;
	}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rdi, %rbx
cmpl $0x0, (%rdi)
jle 0x9a55
xorl %r15d, %r15d
movq 0x50(%rbx), %rax
movq (%rax,%r15,8), %r14
testq %r14, %r14
je 0x9a4a
movq %r14, %rdi
callq 0x9ab2
movl $0x100, %esi            # imm = 0x100
movq %r14, %rdi
callq 0x21a0
incq %r15
movslq (%rbx), %rax
cmpq %rax, %r15
jl 0x9a28
movq 0x50(%rbx), %rdi
testq %rdi, %rdi
je 0x9a68
movl $0x8, %esi
callq 0x21a0
movq 0x58(%rbx), %rdi
testq %rdi, %rdi
je 0x9a80
movl $0x8, %esi
popq %rbx
popq %r14
popq %r15
jmp 0x21a0
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O1/narges64[P]SIMBA/./common.hh
// Function: lun_info::~lun_info()
~lun_info(){
		for (int i = 0; i < 2; i++){
			delete plane_head[i];
		}
		delete plane_head;
		delete state_time;
	}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rdi, %rbx
xorl %r15d, %r15d
movq (%rbx), %rax
movq (%rax,%r15,8), %r14
testq %r14, %r14
je 0x9ade
movq %r14, %rdi
callq 0x9b1a
movl $0x78, %esi
movq %r14, %rdi
callq 0x21a0
incq %r15
cmpq $0x1, %r15
je 0x9abd
movq (%rbx), %rdi
testq %rdi, %rdi
je 0x9af9
movl $0x8, %esi
callq 0x21a0
movq 0x90(%rbx), %rdi
testq %rdi, %rdi
je 0x9b14
movl $0x8, %esi
popq %rbx
popq %r14
popq %r15
jmp 0x21a0
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O1/narges64[P]SIMBA/./common.hh
// Function: plane_info::~plane_info()
~plane_info(){
		for (int i = 0; i < block_num; i++){
			delete blk_head[i];
		}
		delete blk_head;
		delete state_time;
	}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rdi, %rbx
cmpq $0x0, 0x28(%rdi)
jle 0x9b57
xorl %r15d, %r15d
movq 0x20(%rbx), %rax
movq (%rax,%r15,8), %r14
testq %r14, %r14
je 0x9b4e
movq %r14, %rdi
callq 0x9b88
movl $0x28, %esi
movq %r14, %rdi
callq 0x21a0
incq %r15
cmpq %r15, 0x28(%rbx)
jg 0x9b2c
movq 0x20(%rbx), %rdi
testq %rdi, %rdi
je 0x9b6a
movl $0x8, %esi
callq 0x21a0
movq 0x60(%rbx), %rdi
testq %rdi, %rdi
je 0x9b82
movl $0x8, %esi
popq %rbx
popq %r14
popq %r15
jmp 0x21a0
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O1/waltersharpWEI[P]CommentEliminator/main.cpp
// Function: isSource(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
bool isSource(string Name) {
    //The last 2 suffix
    string Bisuf = Name.c_str() + (Name.length() - 2);
    //The last 3 suffix
    string Trisuf = Name.c_str() + (Name.length() - 3);
    //The last 4 suffix
    string Fousuf = Name.c_str() + (Name.length() - 4);

    if (Bisuf == ".c" || Bisuf == ".h") {
        return true;
    }
    if (Trisuf == ".cc" || Trisuf ==".hh") {
        return true;
    }
    if (Fousuf == ".hpp" || Fousuf == ".cpp") {
        return true;
    }
    return false;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
subq $0x68, %rsp
movq %rdi, %rbx
movq (%rdi), %rax
movq 0x8(%rdi), %rcx
leaq (%rax,%rcx), %rsi
addq $-0x2, %rsi
leaq -0x50(%rbp), %rdi
leaq -0x30(%rbp), %rdx
callq 0x3aba
movq (%rbx), %rax
movq 0x8(%rbx), %rcx
leaq (%rax,%rcx), %rsi
addq $-0x3, %rsi
leaq -0x30(%rbp), %rdi
leaq -0x70(%rbp), %rdx
callq 0x3aba
movq (%rbx), %rax
movq 0x8(%rbx), %rcx
leaq (%rax,%rcx), %rsi
addq $-0x4, %rsi
leaq -0x70(%rbp), %rdi
leaq -0x9(%rbp), %rdx
callq 0x3aba
leaq 0x26cb(%rip), %rsi      # 0x5037
leaq -0x50(%rbp), %rdi
callq 0x2070
movb $0x1, %bl
testl %eax, %eax
je 0x29e0
leaq 0x26b8(%rip), %rsi      # 0x503a
leaq -0x50(%rbp), %rdi
callq 0x2070
testl %eax, %eax
je 0x29e0
leaq 0x26a7(%rip), %rsi      # 0x503d
leaq -0x30(%rbp), %rdi
callq 0x2070
testl %eax, %eax
je 0x29e0
leaq 0x2697(%rip), %rsi      # 0x5041
leaq -0x30(%rbp), %rdi
callq 0x2070
testl %eax, %eax
je 0x29e0
leaq 0x2687(%rip), %rsi      # 0x5045
leaq -0x70(%rbp), %rdi
callq 0x2070
testl %eax, %eax
je 0x29e0
leaq 0x2678(%rip), %rsi      # 0x504a
leaq -0x70(%rbp), %rdi
callq 0x2070
testl %eax, %eax
sete %bl
leaq -0x60(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x29f9
movq -0x60(%rbp), %rsi
incq %rsi
callq 0x21e0
leaq -0x20(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x2a12
movq -0x20(%rbp), %rsi
incq %rsi
callq 0x21e0
leaq -0x40(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x2a2b
movq -0x40(%rbp), %rsi
incq %rsi
callq 0x21e0
movl %ebx, %eax
addq $0x68, %rsp
popq %rbx
popq %rbp
retq
movq %rax, %rbx
leaq -0x20(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x2a55
movq -0x20(%rbp), %rsi
incq %rsi
callq 0x21e0
jmp 0x2a55
movq %rax, %rbx
leaq -0x40(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x2a6e
movq -0x40(%rbp), %rsi
incq %rsi
callq 0x21e0
movq %rbx, %rdi
callq 0x2300
// File: /workspace/github_cpp_makefile_star2_O1/waltersharpWEI[P]CommentEliminator/main.cpp
// Function: threadEliminator(void*)
void* threadEliminator(void* FilesPointer) {
    vector<string> *Files = (vector<string> *)FilesPointer;
    if (Files->size() <= 0) {
        return NULL;
    }
    for (vector<string>::iterator It = Files->begin(); It != Files->end(); It++) {
        string FilePath = *It;
        cout << "Removing comment from file " << FilePath << endl;
        removeComment(FilePath);
        cout << "Comment removed" << endl;
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movq (%rdi), %r13
cmpq %r13, 0x8(%rdi)
jne 0x30a3
xorl %eax, %eax
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq -0x58(%rbp), %r15
movq 0x4f1a(%rip), %r14      # 0x7fc8
leaq -0x68(%rbp), %r12
leaq -0x38(%rbp), %rax
movq %rax, -0x48(%rbp)
movq (%r13), %rsi
movq 0x8(%r13), %rdx
addq %rsi, %rdx
leaq -0x48(%rbp), %rdi
callq 0x3d4a
movl $0x1b, %edx
movq %r14, %rdi
leaq 0x1fc4(%rip), %rsi      # 0x50a1
callq 0x2200
movq -0x48(%rbp), %rsi
movq -0x40(%rbp), %rdx
movq %r14, %rdi
callq 0x2200
movq %rax, %rbx
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x21b0
movsbl %al, %esi
movq %rbx, %rdi
callq 0x2030
movq %rax, %rdi
callq 0x2100
movq %r15, -0x68(%rbp)
movq -0x48(%rbp), %rsi
movq -0x40(%rbp), %rdx
addq %rsi, %rdx
movq %r12, %rdi
callq 0x3d4a
movq %r12, %rdi
callq 0x25dc
movq -0x68(%rbp), %rdi
cmpq %r15, %rdi
je 0x3150
movq -0x58(%rbp), %rsi
incq %rsi
callq 0x21e0
movl $0xf, %edx
movq %r14, %rdi
leaq 0x1f5e(%rip), %rsi      # 0x50bd
callq 0x2200
movq (%r14), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x21b0
movsbl %al, %esi
movq %r14, %rdi
callq 0x2030
movq %rax, %rdi
callq 0x2100
movq -0x48(%rbp), %rdi
leaq -0x38(%rbp), %rax
cmpq %rax, %rdi
je 0x31a4
movq -0x38(%rbp), %rsi
incq %rsi
callq 0x21e0
addq $0x20, %r13
jmp 0x30b2
movq %rax, %rbx
movq -0x68(%rbp), %rdi
cmpq %r15, %rdi
je 0x31ca
movq -0x58(%rbp), %rsi
incq %rsi
callq 0x21e0
jmp 0x31ca
movq %rax, %rbx
movq -0x48(%rbp), %rdi
leaq -0x38(%rbp), %rax
cmpq %rax, %rdi
je 0x31e3
movq -0x38(%rbp), %rsi
incq %rsi
callq 0x21e0
movq %rbx, %rdi
callq 0x2300
// File: /workspace/github_cpp_makefile_star2_O1/waltersharpWEI[P]CommentEliminator/main.cpp
// Function: completeDistribute(bool*, int)
bool completeDistribute(bool* used,int size) {
    int Result = true;
    for (int I = 0;I < size;I++) {
        if (!used[I]) {
            return false;
        }
    }
    return Result;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
testl %esi, %esi
setle %al
jle 0x3434
cmpb $0x1, (%rdi)
jne 0x3434
movl %esi, %eax
movl $0x1, %edx
movq %rdx, %rcx
cmpq %rdx, %rax
je 0x342e
leaq 0x1(%rcx), %rdx
cmpb $0x0, (%rdi,%rcx)
jne 0x341c
cmpq %rax, %rcx
setae %al
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/waltersharpWEI[P]CommentEliminator/main.cpp
// Function: showHelp()
void showHelp() {
    cout << "Use -a to choose algorithm 0:greedy 1:random\n"
            "Use -t to set the number of threads you want to use\n"
            "Use Directory of Project as Argument"
         << endl;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
movq 0x476a(%rip), %rbx      # 0x7fc8
leaq 0x18b3(%rip), %rsi      # 0x5118
movl $0x85, %edx
movq %rbx, %rdi
callq 0x2200
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x21b0
movsbl %al, %esi
movq %rbx, %rdi
callq 0x2030
movq %rax, %rdi
addq $0x8, %rsp
popq %rbx
popq %rbp
jmp 0x2100
// File: /workspace/github_cpp_makefile_star2_O1/iZhangHui[P]CppPrimer/CH02_VariablesAndBasicTypes/examples/literals.cc
// Function: main
int main() 
{
	std::cout << "Hello World!";  // simple character string literal
	std::cout << "";              // empty character string literal
	// literal using newlines and tabs
	std::cout << "\nCC\toptions\tfile.[cC]\n";

    // multiline string literal
    std::cout << "a really, really long string literal "
	             "that spans two lines" << std::endl;

	// three ways to print a capital M
	std::cout << 'M' << " " << '\115' << " " << '\x4d' << std::endl;

    unsigned long long bigVal = -1ULL;
    std::cout << bigVal << std::endl;

    return 0;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x10, %rsp
movq 0x2de6(%rip), %rbx      # 0x3fd8
leaq 0xe0b(%rip), %rsi       # 0x2004
movl $0xc, %edx
movq %rbx, %rdi
callq 0x1080
leaq 0xe1a(%rip), %rsi       # 0x2027
movq %rbx, %rdi
xorl %edx, %edx
callq 0x1080
leaq 0xdf3(%rip), %rsi       # 0x2011
movl $0x16, %edx
movq %rbx, %rdi
callq 0x1080
leaq 0xdf6(%rip), %rsi       # 0x2028
movl $0x39, %edx
movq %rbx, %rdi
callq 0x1080
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x1070
movsbl %al, %esi
movq %rbx, %rdi
callq 0x1030
movq %rax, %rdi
callq 0x1050
movb $0x4d, %r12b
leaq -0x21(%rbp), %rsi
movb %r12b, (%rsi)
movl $0x1, %edx
movq %rbx, %rdi
callq 0x1080
movq %rax, %r14
leaq 0xddb(%rip), %r15       # 0x2062
movl $0x1, %edx
movq %rax, %rdi
movq %r15, %rsi
callq 0x1080
leaq -0x22(%rbp), %rsi
movb %r12b, (%rsi)
movl $0x1, %edx
movq %r14, %rdi
callq 0x1080
movq %rax, %r14
movl $0x1, %edx
movq %rax, %rdi
movq %r15, %rsi
callq 0x1080
leaq -0x23(%rbp), %rsi
movb %r12b, (%rsi)
movl $0x1, %edx
movq %r14, %rdi
callq 0x1080
movq %rax, %r14
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x1070
movsbl %al, %esi
movq %r14, %rdi
callq 0x1030
movq %rax, %rdi
callq 0x1050
movq %rbx, %rdi
movq $-0x1, %rsi
callq 0x1040
movq %rax, %rbx
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x1070
movsbl %al, %esi
movq %rbx, %rdi
callq 0x1030
movq %rax, %rdi
callq 0x1050
xorl %eax, %eax
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/mororo18[P]simplex-method/src/model.cpp
// Function: Model::Model(void (*)(std::vector<std::vector<double, std::allocator<double>>, std::allocator<std::vector<double, std::allocator<double>>>>&), int)
Model::Model(solver_func func, int qnt){
    solver = func;

    var_qnt = qnt;

    main_func = nullptr;
    solved = false;
    analysed = false;
    analysed_mod = false;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movl %edx, %ebp
movq %rsi, %r14
movq %rdi, %rbx
leaq 0x18(%rdi), %rax
movq %rax, 0x8(%rdi)
xorl %r15d, %r15d
movq %r15, 0x10(%rdi)
movb %r15b, 0x18(%rdi)
addq $0x58, %rdi
leaq 0x200(%rbx), %r12
movl $0x198, %edx            # imm = 0x198
xorl %esi, %esi
callq 0x2130
movq %r12, 0x1f0(%rbx)
movq %r15, 0x1f8(%rbx)
movb %r15b, 0x200(%rbx)
leaq 0x220(%rbx), %rax
movq %rax, 0x210(%rbx)
movq %r15, 0x218(%rbx)
movb %r15b, 0x220(%rbx)
leaq 0x240(%rbx), %rax
movq %rax, 0x230(%rbx)
movq %r15, 0x238(%rbx)
movb %r15b, 0x240(%rbx)
leaq 0x260(%rbx), %rax
movq %rax, 0x250(%rbx)
movq %r15, 0x258(%rbx)
movb %r15b, 0x260(%rbx)
leaq 0x280(%rbx), %rax
movq %rax, 0x270(%rbx)
movq %r15, 0x278(%rbx)
movb %r15b, 0x280(%rbx)
leaq 0x2a0(%rbx), %rax
movq %rax, 0x290(%rbx)
movq %r15, 0x298(%rbx)
movb %r15b, 0x2a0(%rbx)
movq %r14, 0x48(%rbx)
movl %ebp, (%rbx)
movq %r15, 0x50(%rbx)
movw $0x0, 0x40(%rbx)
movb %r15b, 0x42(%rbx)
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/mororo18[P]simplex-method/src/model.cpp
// Function: Model::def(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
void Model::def(std::string model_type){
    /*
        max -> 1
        min -> -1
    */

    if(!model_type.compare("max")){
        type = model_type;
        // for 'max problem' the coefs have the opposite sign on the tableau
        type_id = -1; 
    }else if(!model_type.compare("min")){
        type = model_type;
        type_id = 1;
    }else{
        std::cout << "Invalid constraint type" << std::endl; 
        exit(0);
    }

}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
movq %rsi, %r14
movq %rdi, %rbx
leaq 0xab00(%rip), %rsi      # 0x100b9
movq %r14, %rdi
callq 0x2090
testl %eax, %eax
je 0x55ff
leaq 0xaac4(%rip), %rsi      # 0x10090
movq %r14, %rdi
callq 0x2090
movl $0x1, %ebp
testl %eax, %eax
je 0x5604
movq 0xf9f4(%rip), %rdi      # 0x14fd8
leaq 0xad15(%rip), %rsi      # 0x10300
callq 0x21e0
movq %rax, %rdi
callq 0x2100
xorl %edi, %edi
callq 0x2240
movl $0xffffffff, %ebp       # imm = 0xFFFFFFFF
leaq 0x8(%rbx), %rdi
movq %r14, %rsi
callq 0x2120
movl %ebp, 0x28(%rbx)
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/mororo18[P]simplex-method/src/model.cpp
// Function: Model::cstr_add(Model::cstr)
void Model::cstr_add(Model::cstr constraint){

    if(constraint.coef_get().size() != var_qnt){
        std::cout << "Invalid constraint's variables" << std::endl;
        exit(0);
    }
        
    cstr_vec.push_back(constraint);
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rsi, %rbx
movq %rdi, %r14
addq $0x30, %rsi
movq %rsp, %r15
movq %r15, %rdi
callq 0x4b20
movq (%r15), %rdi
movq 0x8(%r15), %r15
subq %rdi, %r15
sarq $0x3, %r15
movslq (%r14), %r12
testq %rdi, %rdi
je 0x570b
callq 0x21c0
cmpq %r12, %r15
jne 0x572b
addq $0x58, %r14
movq %r14, %rdi
movq %rbx, %rsi
callq 0xd47c
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
movq 0xf8a6(%rip), %rdi      # 0x14fd8
leaq 0xabef(%rip), %rsi      # 0x10328
callq 0x21e0
movq %rax, %rdi
callq 0x2100
xorl %edi, %edi
callq 0x2240
nop
// File: /workspace/github_cpp_makefile_star2_O1/mororo18[P]simplex-method/src/model.cpp
// Function: Model::analyse_add(Model::cstr)
void Model::analyse_add(Model::cstr cstr_new){

    if(cstr_new.coef_get().size() != var_qnt){
        std::cout << "Invalid constraint added to analysis" << std::endl;
        exit(0);
    }

    cstr_vec_new.push_back(cstr_new); 
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rsi, %rbx
movq %rdi, %r14
addq $0x30, %rsi
movq %rsp, %r15
movq %r15, %rdi
callq 0x4b20
movq (%r15), %rdi
movq 0x8(%r15), %r15
subq %rdi, %r15
sarq $0x3, %r15
movslq (%r14), %r12
testq %rdi, %rdi
je 0x579b
callq 0x21c0
cmpq %r12, %r15
jne 0x57bb
addq $0x70, %r14
movq %r14, %rdi
movq %rbx, %rsi
callq 0xd47c
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
movq 0xf816(%rip), %rdi      # 0x14fd8
leaq 0xab7e(%rip), %rsi      # 0x10347
callq 0x21e0
movq %rax, %rdi
callq 0x2100
xorl %edi, %edi
callq 0x2240
nop
// File: /workspace/github_cpp_makefile_star2_O1/mororo18[P]simplex-method/src/model.cpp
// Function: Model::vec_multiply_scalar(std::vector<double, std::allocator<double>>&, double)
void Model::vec_multiply_scalar(std::vector<double> & vec, double scalar){
    for(int i = 0; i < vec.size(); i++){
        if(vec[i] <= DBL_EPSILON && vec[i] >= -DBL_EPSILON) //eq to 0
            continue;

        vec[i] *= scalar;
    }
}

// Assembly:
movq (%rsi), %rax
movq 0x8(%rsi), %rcx
subq %rax, %rcx
je 0x582c
sarq $0x3, %rcx
cmpq $0x1, %rcx
adcq $0x0, %rcx
xorl %edx, %edx
movapd 0xaaa0(%rip), %xmm1     # 0x102a0
movsd 0xaac8(%rip), %xmm2     # 0x102d0
movsd (%rax,%rdx,8), %xmm3
movapd %xmm3, %xmm4
andpd %xmm1, %xmm4
ucomisd %xmm4, %xmm2
jae 0x5824
mulsd %xmm0, %xmm3
movsd %xmm3, (%rax,%rdx,8)
incq %rdx
cmpq %rdx, %rcx
jne 0x5808
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/mororo18[P]simplex-method/src/model.cpp
// Function: Model::inverse_matrix_store()
void Model::inverse_matrix_store(){
    inverse_matrix = std::vector<std::vector<double>> (I_index.size(), std::vector<double> (I_index.size()));

    for(int i = 0; i < I_index.size(); i++){
        int col = I_index[i];
        for(int j = 1; j < tableau.size(); j++){
            inverse_matrix[j-1][i] = tableau[j][col]; 
        }
    }
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x60, %rsp
movq %rdi, %rbx
movq 0x198(%rdi), %r14
subq 0x190(%rdi), %r14
sarq $0x2, %r14
leaq 0x8(%rsp), %r15
leaq 0x7(%rsp), %rdx
movq %r15, %rdi
movq %r14, %rsi
callq 0xd4d2
leaq 0x20(%rsp), %rdi
leaq 0x6(%rsp), %rcx
movq %r14, %rsi
movq %r15, %rdx
callq 0xd55c
xorps %xmm0, %xmm0
leaq 0x40(%rsp), %rdi
movaps %xmm0, (%rdi)
movq $0x0, 0x10(%rdi)
movups 0x1a8(%rbx), %xmm0
movq 0x1b8(%rbx), %rax
leaq 0x20(%rsp), %r14
movaps (%r14), %xmm1
movups %xmm1, 0x1a8(%rbx)
movq 0x10(%r14), %rcx
movq %rcx, 0x1b8(%rbx)
movq 0x10(%rdi), %rcx
movq %rax, 0x10(%rdi)
movaps (%rdi), %xmm1
movaps %xmm0, (%rdi)
movaps %xmm1, (%r14)
movq %rcx, 0x10(%r14)
callq 0xd414
movq %r14, %rdi
callq 0xd414
movq 0x8(%rsp), %rdi
testq %rdi, %rdi
je 0x5f58
callq 0x21c0
movq 0x190(%rbx), %rax
movq 0x198(%rbx), %rcx
subq %rax, %rcx
je 0x5fdd
sarq $0x2, %rcx
movq 0x88(%rbx), %rdx
movq 0x90(%rbx), %rdi
subq %rdx, %rdi
sarq $0x3, %rdi
movabsq $-0x5555555555555555, %rsi # imm = 0xAAAAAAAAAAAAAAAB
imulq %rdi, %rsi
movq 0x1a8(%rbx), %rdi
cmpq $0x1, %rcx
adcq $0x0, %rcx
leaq -0x1(%rsi), %r8
xorl %r9d, %r9d
cmpq $0x2, %rsi
jb 0x5fd5
movslq (%rax,%r9,4), %r10
movq %r8, %r11
xorl %ebx, %ebx
movq 0x18(%rdx,%rbx), %r14
movsd (%r14,%r10,8), %xmm0
movq (%rdi,%rbx), %r14
movsd %xmm0, (%r14,%r9,8)
addq $0x18, %rbx
decq %r11
jne 0x5fb7
incq %r9
cmpq %rcx, %r9
jne 0x5fa8
addq $0x60, %rsp
popq %rbx
popq %r14
popq %r15
retq
movq %rax, %rbx
movq 0x8(%rsp), %rdi
testq %rdi, %rdi
je 0x5ff9
callq 0x21c0
movq %rbx, %rdi
callq 0x2310
nop
// File: /workspace/github_cpp_makefile_star2_O1/mororo18[P]simplex-method/src/model.cpp
// Function: Model::basic_coef_get()
void Model::basic_coef_get(){
    std::vector<double> coef (tableau.size() - 1);
    for(int col = 0; col < tableau[0].size(); col++){
        if(tableau[0][col] == 0){
            for(int row = 1; row < tableau.size(); row++){
                if(tableau[row][col] == 1)
                    coef[row-1] = -1 * type_id * original_coef[col];
            }
        }
    }

    basic_coef.clear();
    basic_coef = coef;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x20, %rsp
movq %rdi, %rbx
movq 0x90(%rdi), %rsi
subq 0x88(%rdi), %rsi
sarq $0x3, %rsi
movabsq $-0x5555555555555555, %r14 # imm = 0xAAAAAAAAAAAAAAAB
imulq %r14, %rsi
decq %rsi
leaq 0x8(%rsp), %rdi
leaq 0x7(%rsp), %rdx
callq 0xd4d2
movq 0x88(%rbx), %rax
movq (%rax), %rcx
movq 0x8(%rax), %rdx
subq %rcx, %rdx
je 0x60f6
sarq $0x3, %rdx
movq 0x90(%rbx), %rsi
subq %rax, %rsi
sarq $0x3, %rsi
imulq %r14, %rsi
cmpq $0x1, %rdx
adcq $0x0, %rdx
addq $0x18, %rax
leaq -0x1(%rsi), %rdi
xorl %r8d, %r8d
xorpd %xmm0, %xmm0
movsd 0x9fc4(%rip), %xmm1     # 0x10050
movsd (%rcx,%r8,8), %xmm2
ucomisd %xmm0, %xmm2
jne 0x60ee
jp 0x60ee
cmpq $0x2, %rsi
jb 0x60ee
xorl %r9d, %r9d
subl 0x28(%rbx), %r9d
xorps %xmm2, %xmm2
cvtsi2sd %r9d, %xmm2
movq 0x1c0(%rbx), %r9
movq 0x8(%rsp), %r10
xorl %r11d, %r11d
movq %rax, %r14
movq (%r14), %r15
movsd (%r15,%r8,8), %xmm3
ucomisd %xmm1, %xmm3
jne 0x60e2
jp 0x60e2
movsd (%r9,%r8,8), %xmm3
mulsd %xmm2, %xmm3
movsd %xmm3, (%r10,%r11,8)
addq $0x18, %r14
incq %r11
cmpq %r11, %rdi
jne 0x60c1
incq %r8
cmpq %rdx, %r8
jne 0x608c
leaq 0x1d8(%rbx), %rdi
movq 0x1d8(%rbx), %rax
cmpq %rax, 0x1e0(%rbx)
je 0x6114
movq %rax, 0x1e0(%rbx)
leaq 0x8(%rsp), %rsi
callq 0xd5ec
movq 0x8(%rsp), %rdi
testq %rdi, %rdi
je 0x612d
callq 0x21c0
addq $0x20, %rsp
popq %rbx
popq %r14
popq %r15
retq
movq %rax, %rbx
movq 0x8(%rsp), %rdi
testq %rdi, %rdi
je 0x6149
callq 0x21c0
movq %rbx, %rdi
callq 0x2310
nop
// File: /workspace/github_cpp_makefile_star2_O1/mororo18[P]simplex-method/src/model.cpp
// Function: Model::solution_primal_get(std::vector<double, std::allocator<double>>&)
void Model::solution_primal_get(std::vector<double> & solution_primal){
    if(!solution_primal.empty())
        solution_primal.clear();

    const int s_col = tableau[0].size() - 1;
    
    for(int i = 0; i < var_qnt; i++){
        if(tableau[0][i] == 0){
            for(int j = 1; j < tableau.size(); j++){
                if(tableau[j][i] == 1)
                    solution_primal.push_back(tableau[j][s_col]);
            }
        }else
            solution_primal.push_back(0);
    }

}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
movq (%rsi), %rax
cmpq 0x8(%rsi), %rax
je 0x6170
movq %rax, 0x8(%rbx)
cmpl $0x0, (%r14)
jle 0x62c5
movq 0x88(%r14), %rax
movq 0x8(%rax), %rcx
subq (%rax), %rcx
shlq $0x1d, %rcx
movabsq $-0x100000000, %r12     # imm = 0xFFFFFFFF00000000
addq %rcx, %r12
sarq $0x1d, %r12
xorl %r13d, %r13d
movabsq $-0x5555555555555555, %rdi # imm = 0xAAAAAAAAAAAAAAAB
movsd 0x9e9e(%rip), %xmm1     # 0x10050
movq 0x88(%r14), %rax
movq (%rax), %rax
movsd (%rax,%r13,8), %xmm0
ucomisd 0xa116(%rip), %xmm0     # 0x102e0
jne 0x6276
jp 0x6276
movq 0x88(%r14), %rax
movq 0x90(%r14), %rcx
subq %rax, %rcx
sarq $0x3, %rcx
imulq %rdi, %rcx
cmpq $0x2, %rcx
jb 0x62b6
movl $0x1, %r15d
movl $0x18, %ebp
movq (%rax,%rbp), %rdx
movsd (%rdx,%r13,8), %xmm0
ucomisd %xmm1, %xmm0
jne 0x624f
jp 0x624f
addq %r12, %rdx
movq 0x8(%rbx), %rsi
cmpq 0x10(%rbx), %rsi
je 0x6235
movsd (%rdx), %xmm0
movsd %xmm0, (%rsi)
addq $0x8, %rsi
movq %rsi, 0x8(%rbx)
jmp 0x624f
movq %rbx, %rdi
callq 0xe388
movsd 0x9e0b(%rip), %xmm1     # 0x10050
movabsq $-0x5555555555555555, %rdi # imm = 0xAAAAAAAAAAAAAAAB
incq %r15
movq 0x88(%r14), %rax
movq 0x90(%r14), %rcx
subq %rax, %rcx
sarq $0x3, %rcx
imulq %rdi, %rcx
addq $0x18, %rbp
cmpq %r15, %rcx
ja 0x6204
jmp 0x62b6
movq $0x0, (%rsp)
movq 0x8(%rbx), %rsi
cmpq 0x10(%rbx), %rsi
je 0x6299
movq $0x0, (%rsi)
addq $0x8, %rsi
movq %rsi, 0x8(%rbx)
jmp 0x62b6
movq %rbx, %rdi
movq %rsp, %rdx
callq 0xe26c
movsd 0x9da4(%rip), %xmm1     # 0x10050
movabsq $-0x5555555555555555, %rdi # imm = 0xAAAAAAAAAAAAAAAB
incq %r13
movslq (%r14), %rax
cmpq %rax, %r13
jl 0x61b2
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/mororo18[P]simplex-method/src/model.cpp
// Function: Model::solution_dual_get(std::vector<double, std::allocator<double>>&)
void Model::solution_dual_get(std::vector<double> & solution_dual){
    if(!solution_dual.empty())
        solution_dual.clear();
        
    inverse_matrix_store();
    basic_coef_get();
    
    for(int i = 0; i < inverse_matrix.size(); i++){
        double sum = 0;
        for(int j = 0; j < inverse_matrix.size(); j++){
            sum += basic_coef[j] * inverse_matrix[j][i]; 
        }

        if(sum < DBL_EPSILON && sum > -DBL_EPSILON)
            sum = 0;

        solution_dual.push_back(sum);
    }
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x10, %rsp
movq %rsi, %rbx
movq %rdi, %r14
movq (%rsi), %rax
cmpq 0x8(%rsi), %rax
je 0x62f4
movq %rax, 0x8(%rbx)
movq %r14, %rdi
callq 0x5ea2
movq %r14, %rdi
callq 0x6002
movq 0x1a8(%r14), %rax
movq 0x1b0(%r14), %rcx
subq %rax, %rcx
je 0x63fe
sarq $0x3, %rcx
movabsq $-0x5555555555555555, %r12 # imm = 0xAAAAAAAAAAAAAAAB
imulq %r12, %rcx
xorl %r13d, %r13d
movapd 0x9f68(%rip), %xmm2     # 0x102a0
movsd 0x9f90(%rip), %xmm3     # 0x102d0
leaq 0x8(%rsp), %r15
movq $0x0, 0x8(%rsp)
movq 0x1d8(%r14), %rdx
cmpq $0x1, %rcx
adcq $0x0, %rcx
xorpd %xmm0, %xmm0
xorl %esi, %esi
movsd (%rdx,%rsi,8), %xmm1
movq (%rax), %rdi
mulsd (%rdi,%r13,8), %xmm1
addsd %xmm1, %xmm0
movsd %xmm0, 0x8(%rsp)
incq %rsi
addq $0x18, %rax
cmpq %rsi, %rcx
jne 0x6363
movsd 0x8(%rsp), %xmm0
andpd %xmm2, %xmm0
ucomisd %xmm0, %xmm3
jbe 0x63a0
movq $0x0, 0x8(%rsp)
movq 0x8(%rbx), %rsi
cmpq 0x10(%rbx), %rsi
je 0x63be
movsd 0x8(%rsp), %xmm0
movsd %xmm0, (%rsi)
addq $0x8, %rsi
movq %rsi, 0x8(%rbx)
jmp 0x63d9
movq %rbx, %rdi
movq %r15, %rdx
callq 0xe388
movsd 0x9eff(%rip), %xmm3     # 0x102d0
movapd 0x9ec7(%rip), %xmm2     # 0x102a0
incq %r13
movq 0x1a8(%r14), %rax
movq 0x1b0(%r14), %rcx
subq %rax, %rcx
sarq $0x3, %rcx
imulq %r12, %rcx
cmpq %r13, %rcx
ja 0x6345
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O1/mororo18[P]simplex-method/src/model.cpp
// Function: Model::b_opt_store()
void Model::b_opt_store(){
    if(!b_opt.empty())
        b_opt.clear();
            
    const int s_col = tableau[0].size() - 1;
    for(int j = 1; j < tableau.size(); j++)
        b_opt.push_back(tableau[j][s_col]);
    
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq 0x118(%rdi), %rax
cmpq 0x120(%rdi), %rax
je 0x6431
movq %rax, 0x120(%rbx)
movq 0x88(%rbx), %rax
movq 0x90(%rbx), %rcx
subq %rax, %rcx
sarq $0x3, %rcx
movabsq $-0x5555555555555555, %r15 # imm = 0xAAAAAAAAAAAAAAAB
imulq %r15, %rcx
cmpq $0x2, %rcx
jb 0x64ec
leaq 0x118(%rbx), %r14
movq 0x88(%rbx), %rcx
movq 0x8(%rcx), %rdx
subq (%rcx), %rdx
shlq $0x1d, %rdx
movabsq $-0x100000000, %r12     # imm = 0xFFFFFFFF00000000
addq %rdx, %r12
sarq $0x1d, %r12
movl $0x1, %r13d
movl $0x18, %ebp
movq (%rax,%rbp), %rdx
addq %r12, %rdx
movq 0x120(%rbx), %rsi
cmpq 0x128(%rbx), %rsi
je 0x64bf
movsd (%rdx), %xmm0
movsd %xmm0, (%rsi)
addq $0x8, %rsi
movq %rsi, 0x120(%rbx)
jmp 0x64c7
movq %r14, %rdi
callq 0xe388
incq %r13
movq 0x88(%rbx), %rax
movq 0x90(%rbx), %rcx
subq %rax, %rcx
sarq $0x3, %rcx
imulq %r15, %rcx
addq $0x18, %rbp
cmpq %r13, %rcx
ja 0x6493
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/mororo18[P]simplex-method/src/model.cpp
// Function: Model::b_range_calc(std::vector<std::pair<double, double>, std::allocator<std::pair<double, double>>>&)
void Model::b_range_calc(std::vector<std::pair<double, double>> & b_range){
    b_opt_store();    
    
    if(!b_range.empty())
        b_range.clear();

    //std::cout << "inve size " << inverse_matrix.size() << std::endl;
    for(int col = 0; col < inverse_matrix[0].size(); col++){
        double upper_bound = INFINITE; 
        double lower_bound = -INFINITE;


        //if(col == 6)
            //vec_print_dbl(b_opt);
        for(int row = 0; row < inverse_matrix.size(); row++){
            double coef =  inverse_matrix[row][col];
            double coef_inv = 1.0f / coef;
            double value = -1.0 * b_opt[row];

            value = value * coef_inv;

            if(coef_inv < 0 && value < upper_bound){
                upper_bound = value; 

            }else if(value > lower_bound){
                lower_bound = value;
            }

        }

        std::pair<double, double> range;
        range.first = lower_bound;
        range.second = upper_bound;

        b_range.push_back(range);

        //std::cout << "cstr n" << col << "  de " << lower_bound << " a " << upper_bound << std::endl;
    }
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x10, %rsp
movq %rsi, %rbx
movq %rdi, %r14
callq 0x640c
movq (%rbx), %rax
cmpq 0x8(%rbx), %rax
je 0x6521
movq %rax, 0x8(%rbx)
movq 0x1a8(%r14), %rax
movq 0x8(%rax), %rcx
cmpq (%rax), %rcx
je 0x6666
xorl %r12d, %r12d
movsd 0x9d98(%rip), %xmm4     # 0x102d8
movsd 0x9da0(%rip), %xmm5     # 0x102e8
xorps %xmm6, %xmm6
movq %rsp, %r15
movabsq $-0x5555555555555555, %r13 # imm = 0xAAAAAAAAAAAAAAAB
movsd 0x9af0(%rip), %xmm7     # 0x10050
movapd 0x9d47(%rip), %xmm8     # 0x102b0
xorpd %xmm9, %xmm9
movq 0x1b0(%r14), %rcx
movapd %xmm5, %xmm0
movapd %xmm4, %xmm1
subq %rax, %rcx
je 0x65eb
sarq $0x3, %rcx
imulq %r13, %rcx
cmpq $0x1, %rcx
adcq $0x0, %rcx
movq 0x118(%r14), %rdx
xorl %esi, %esi
movapd %xmm4, %xmm2
movapd %xmm5, %xmm0
movq (%rax), %rdi
movapd %xmm7, %xmm3
divsd (%rdi,%r12,8), %xmm3
movsd (%rdx,%rsi,8), %xmm1
xorpd %xmm8, %xmm1
mulsd %xmm3, %xmm1
ucomisd %xmm3, %xmm9
jbe 0x65d1
ucomisd %xmm1, %xmm0
jbe 0x65d1
movapd %xmm1, %xmm0
jmp 0x65d7
ucomisd %xmm2, %xmm1
ja 0x65db
movapd %xmm2, %xmm1
incq %rsi
addq $0x18, %rax
movapd %xmm1, %xmm2
cmpq %rsi, %rcx
jne 0x65a3
movaps %xmm6, (%rsp)
movsd %xmm1, (%rsp)
movsd %xmm0, 0x8(%rsp)
movq 0x8(%rbx), %rsi
cmpq 0x10(%rbx), %rsi
je 0x6614
movapd (%rsp), %xmm0
movupd %xmm0, (%rsi)
addq $0x10, 0x8(%rbx)
jmp 0x6648
movq %rbx, %rdi
movq %r15, %rdx
callq 0xe5fa
xorpd %xmm9, %xmm9
movapd 0x9c83(%rip), %xmm8     # 0x102b0
movsd 0x9a1b(%rip), %xmm7     # 0x10050
xorps %xmm6, %xmm6
movsd 0x9ca8(%rip), %xmm5     # 0x102e8
movsd 0x9c90(%rip), %xmm4     # 0x102d8
incq %r12
movq 0x1a8(%r14), %rax
movq 0x8(%rax), %rcx
subq (%rax), %rcx
sarq $0x3, %rcx
cmpq %r12, %rcx
ja 0x656e
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O1/mororo18[P]simplex-method/src/model.cpp
// Function: Model::analyse()
void Model::analyse(){
    if(!solved){
        std::cout << "The Model wasnt already solved to be analysed\n";
        exit(0);
    }
    
    tableau = solution_tableau;

    // right hand
    b_range_calc(b_range);
    c_range_calc(c_range);

    analysed = true;

    output_generate();
}

// Assembly:
pushq %rbx
cmpb $0x0, 0x40(%rdi)
je 0x68b2
movq %rdi, %rbx
leaq 0xa0(%rdi), %rsi
addq $0x88, %rdi
callq 0xd6ba
leaq 0x130(%rbx), %rsi
movq %rbx, %rdi
callq 0x64fc
leaq 0x160(%rbx), %rsi
movq %rbx, %rdi
callq 0x6674
movb $0x1, 0x41(%rbx)
movq %rbx, %rdi
popq %rbx
jmp 0x68cc
movq 0xe71f(%rip), %rdi      # 0x14fd8
leaq 0x9aac(%rip), %rsi      # 0x1036c
callq 0x21e0
xorl %edi, %edi
callq 0x2240