LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_cpp_makefile_star2_O1/mgronhol[P]Ullur/ullur.cpp
// Function: handle_geo_put[abi:cxx11](double, double, unsigned long)
std::string handle_geo_put( double x, double y, uint64_t id ){
	// lat = -90 .. 90
	// lon = -180 .. 180

	x = (x + 90.0)/(2*90.0);
	y = (y + 180)/(2*180.0);

	return handle_put( x, y, id );
	}

// Assembly:
pushq %rbx
movq %rdi, %rbx
addsd 0x35a3(%rip), %xmm0     # 0x6008
movsd 0x35a3(%rip), %xmm2     # 0x6010
divsd %xmm2, %xmm0
addsd %xmm2, %xmm1
divsd 0x359b(%rip), %xmm1     # 0x6018
callq 0x28f7
movq %rbx, %rax
popq %rbx
retq
// File: /workspace/github_cpp_makefile_star2_O1/mgronhol[P]Ullur/ullur.cpp
// Function: handle_geo_get[abi:cxx11](double, double, double)
std::string handle_geo_get( double x, double y, double r ){
	// lat = -90 .. 90
	// lon = -180 .. 180

	x = (x + 90.0)/(2*90.0);
	y = (y + 180)/(2*180.0);

	r = r / ( 6380e3 * 3.14159265358979323 * 2 ); // Divide by Earth's circumfence

	return handle_get( x, y, r );
	}

// Assembly:
pushq %rbx
addsd 0x3176(%rip), %xmm0     # 0x6008
movq %rdi, %rbx
movsd 0x3173(%rip), %xmm3     # 0x6010
divsd %xmm3, %xmm0
addsd %xmm3, %xmm1
divsd 0x316b(%rip), %xmm1     # 0x6018
divsd 0x3173(%rip), %xmm2     # 0x6028
callq 0x2a87
movq %rbx, %rax
popq %rbx
retq
// File: /workspace/github_cpp_makefile_star2_O1/mgronhol[P]Ullur/ullur.cpp
// Function: handle_geo_getr[abi:cxx11](double, double, double, double)
std::string handle_geo_getr( double x0, double y0, double x1, double y1 ){
	// lat = -90 .. 90
	// lon = -180 .. 180

	x0 = (x0 + 90.0)/(2*90.0);
	y0 = (y0 + 180)/(2*180.0);

	x1 = (x1 + 90.0)/(2*90.0);
	y1 = (y1 + 180)/(2*180.0);

	return handle_getr( x0, y0, x1, y1 );
	}

// Assembly:
pushq %rbx
movq %rdi, %rbx
movsd 0x2d20(%rip), %xmm4     # 0x6008
addsd %xmm4, %xmm0
movsd 0x2d1c(%rip), %xmm5     # 0x6010
divsd %xmm5, %xmm0
addsd %xmm5, %xmm1
movsd 0x2d14(%rip), %xmm6     # 0x6018
divsd %xmm6, %xmm1
addsd %xmm4, %xmm2
divsd %xmm5, %xmm2
addsd %xmm5, %xmm3
divsd %xmm6, %xmm3
callq 0x2ebf
movq %rbx, %rax
popq %rbx
retq
// File: /workspace/github_cpp_makefile_star2_O1/mgronhol[P]Ullur/ullur.cpp
// Function: handle_del[abi:cxx11](unsigned long)
std::string handle_del( uint64_t id ){
	std::unordered_map< uint64_t, std::vector< uint64_t > >::iterator it;
	/* Fix this, probably broken... */
	
	it = database.find( id );
	if( it != database.end() ){
		hashes.erase( it->first );
		database.erase( it );
		}
	

	return "Ok.\r\n";
	}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rdi, %rbx
movq 0x5f9f(%rip), %r8       # 0x92d0
xorl %r10d, %r10d
movq %rsi, %rax
xorl %edx, %edx
divq %r8
movq 0x5f85(%rip), %rax      # 0x92c8
movq (%rax,%rdx,8), %rax
testq %rax, %rax
je 0x338a
movq (%rax), %r9
movq %rax, %r10
cmpq %rsi, 0x8(%r9)
je 0x338a
movq %rdx, %rcx
movq %r9, %r11
movq (%r9), %r9
testq %r9, %r9
je 0x3387
movq 0x8(%r9), %rdi
movq %rdi, %rax
xorl %edx, %edx
divq %r8
movl $0x0, %r10d
cmpq %rcx, %rdx
jne 0x338a
movq %r11, %r10
cmpq %rsi, %rdi
jne 0x335b
jmp 0x338a
xorl %r10d, %r10d
testq %r10, %r10
je 0x3394
movq (%r10), %r14
jmp 0x3397
xorl %r14d, %r14d
testq %r14, %r14
je 0x33c9
leaq 0x8(%r14), %rsi
leaq 0x5ef1(%rip), %r15      # 0x9298
movq %r15, %rdi
callq 0x4922
movq %r15, %rdi
movq %rax, %rsi
callq 0x499e
leaq 0x5f07(%rip), %rdi      # 0x92c8
movq %r14, %rsi
callq 0x4a3e
leaq 0x10(%rbx), %rax
movq %rax, (%rbx)
leaq 0x2c98(%rip), %rsi      # 0x606f
leaq 0x2c96(%rip), %rdx      # 0x6074
movq %rbx, %rdi
callq 0x4892
movq %rbx, %rax
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O1/mgronhol[P]Ullur/libhash.cpp
// Function: compute_hash(double, double)
uint64_t compute_hash( double x, double y ){
	uint64_t out = 0;
	double cx, cy, d;
	cx = cy = 0.5;
	d = 0.25;
	
	x = x - floor( x );
	y = y - floor( y );
	
	for( size_t i = 0 ; i < 32 ; ++i ){
		uint64_t p = 0;
		
		if( x >= cx ){
			p |= 1;
			cx += d;
			}
		else {
			cx -= d;
			}
		
		if( y <= cy ){
			p |= 2;
			cy -= d;
			}
		else{
			cy += d;
			}
		
		//std::cout << p << " ";
		
		d /= 2.0;
		out |= p;
		if( i < 32 - 1 ){
			out <<= 2;
			}
		}
	//std::cout << std::endl;
	return out;
	}

// Assembly:
subq $0x18, %rsp
movsd %xmm1, 0x10(%rsp)
movsd %xmm0, 0x8(%rsp)
callq 0x23d0
movsd 0x8(%rsp), %xmm1
subsd %xmm0, %xmm1
movsd %xmm1, 0x8(%rsp)
movsd 0x10(%rsp), %xmm0
callq 0x23d0
movsd 0x8(%rsp), %xmm9
movsd 0x10(%rsp), %xmm8
subsd %xmm0, %xmm8
movsd 0x116d(%rip), %xmm0     # 0x6030
movsd 0x12cd(%rip), %xmm1     # 0x6198
movl $0x20, %ecx
xorl %eax, %eax
movapd 0x1166(%rip), %xmm2     # 0x6040
movapd %xmm0, %xmm3
movapd %xmm0, %xmm4
xorl %edx, %edx
ucomisd %xmm4, %xmm9
setae %sil
movapd %xmm1, %xmm5
xorpd %xmm2, %xmm5
movapd %xmm1, %xmm6
jae 0x4eff
movapd %xmm5, %xmm6
addsd %xmm6, %xmm4
movb %sil, %dl
leaq 0x2(%rdx), %rsi
ucomisd %xmm8, %xmm3
movapd %xmm8, %xmm6
cmpnlesd %xmm3, %xmm6
movapd %xmm6, %xmm7
andpd %xmm1, %xmm7
andnpd %xmm5, %xmm6
orpd %xmm7, %xmm6
cmovbq %rdx, %rsi
addsd %xmm6, %xmm3
mulsd %xmm0, %xmm1
orq %rax, %rsi
leaq (,%rsi,4), %rax
cmpq $0x1, %rcx
cmoveq %rsi, %rax
decq %rcx
jne 0x4ee2
addq $0x18, %rsp
retq
// File: /workspace/github_cpp_makefile_star2_O1/mgronhol[P]Ullur/libhash.cpp
// Function: mask_hash(unsigned long, unsigned long)
std::pair<uint64_t,uint64_t> mask_hash( uint64_t H, size_t N ){
	uint64_t  mask = 0;
	for( size_t i = 0 ; i < 32  ; ++i ){
		if( i < N ){
			mask |= 0x03;
			}
		if( i < 31 ){
			mask  <<= 0x02;
			}
		}
	
	return std::make_pair( H & mask, (H & mask) | (~mask) );
	
	}

// Assembly:
xorl %eax, %eax
xorl %edx, %edx
movq %rdx, %rcx
orq $0x3, %rcx
cmpq %rsi, %rax
cmovaeq %rdx, %rcx
leaq (,%rcx,4), %rdx
cmpq $0x1f, %rax
cmoveq %rcx, %rdx
incq %rax
cmpq $0x20, %rax
jne 0x4f56
movq %rdx, %rax
andq %rdi, %rax
notq %rdx
orq %rdi, %rdx
retq
// File: /workspace/github_cpp_makefile_star2_O1/mgronhol[P]Ullur/libhash.cpp
// Function: compute_position(unsigned long)
std::pair<double, double> compute_position( uint64_t H ){
	double cx, cy, d;

	cx = 0.5;
	cy = 0.5;
	d = 0.25;
	
	for( uint64_t i = 0 ; i < 32 ; ++i ){
		uint64_t p = 2*(31 - i);
		uint64_t value = (H >> p) & 0x3;
		int x,y;
		x = value & 1;
		y = (value & 2) >> 1;
		
		cx += (2*x-1)*d;
		cy -= (2*y-1)*d;
		
		
		
		d *= 0.5;
		}
	//std::cout << std::endl;
	return std::make_pair( cx, cy );
	}

// Assembly:
movapd 0x121e(%rip), %xmm0     # 0x61b0
movsd 0x11fe(%rip), %xmm1     # 0x6198
movl $0x3e, %ecx
movapd 0x1099(%rip), %xmm2     # 0x6040
movsd 0x1081(%rip), %xmm3     # 0x6030
movq %rdi, %rax
shrq %cl, %rax
movl %eax, %edx
andl $0x2, %edx
andl $0x1, %eax
leal -0x1(,%rax,2), %eax
xorps %xmm4, %xmm4
cvtsi2sd %eax, %xmm4
decl %edx
xorps %xmm5, %xmm5
cvtsi2sd %edx, %xmm5
xorpd %xmm2, %xmm5
unpcklpd %xmm5, %xmm4            # xmm4 = xmm4[0],xmm5[0]
movapd %xmm1, %xmm5
unpcklpd %xmm1, %xmm5            # xmm5 = xmm5[0],xmm1[0]
mulpd %xmm4, %xmm5
addpd %xmm5, %xmm0
mulsd %xmm3, %xmm1
addq $-0x2, %rcx
cmpq $-0x2, %rcx
jne 0x4faf
movapd %xmm0, %xmm1
unpckhpd %xmm0, %xmm1            # xmm1 = xmm1[1],xmm0[1]
retq
// File: /workspace/github_cpp_makefile_star2_O1/mgronhol[P]Ullur/libhash.cpp
// Function: get_near_indices(unsigned long, unsigned long)
std::vector< std::pair<uint64_t, uint64_t> > get_near_indices( uint64_t level, uint64_t H ){
	std::vector< std::pair<uint64_t, uint64_t> > out;
	
	double dz = 1.0/( 1 << level );
	
	std::pair<double, double> pos = compute_position( H );
	
	uint64_t h;
	
	for( int p = -1 ; p < 2 ; ++p ){
		for( int q = -1 ; q < 2 ; ++q ){
			double x, y;
			x = pos.first + dz * p;
			y = pos.second + dz * q;
			
			h = compute_hash( x, y );
			
			out.push_back( mask_hash( h, level ) );
			
			
			}
		}
	
	
	return out;
	}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movq %rsi, %r14
movq %rdi, %rbx
xorps %xmm0, %xmm0
movups %xmm0, (%rdi)
movq $0x0, 0x10(%rdi)
movl $0x1, %eax
movl %r14d, %ecx
shll %cl, %eax
xorps %xmm0, %xmm0
cvtsi2sd %eax, %xmm0
movsd 0x1162(%rip), %xmm1     # 0x61a0
divsd %xmm0, %xmm1
movsd %xmm1, 0x8(%rsp)
movq %rdx, %rdi
callq 0x4f8a
movsd %xmm0, 0x10(%rsp)
movsd %xmm1, 0x18(%rsp)
movl $0xffffffff, %ebp       # imm = 0xFFFFFFFF
leaq 0x28(%rsp), %r15
xorps %xmm0, %xmm0
cvtsi2sd %ebp, %xmm0
mulsd 0x8(%rsp), %xmm0
addsd 0x10(%rsp), %xmm0
movsd %xmm0, 0x20(%rsp)
movl $0xffffffff, %r12d      # imm = 0xFFFFFFFF
xorps %xmm1, %xmm1
cvtsi2sd %r12d, %xmm1
mulsd 0x8(%rsp), %xmm1
addsd 0x18(%rsp), %xmm1
xorl %eax, %eax
xorl %r13d, %r13d
movq %r13, %rcx
orq $0x3, %rcx
cmpq %r14, %rax
cmovaeq %r13, %rcx
leaq (,%rcx,4), %r13
cmpq $0x1f, %rax
cmoveq %rcx, %r13
incq %rax
cmpq $0x20, %rax
jne 0x509e
movsd 0x20(%rsp), %xmm0
callq 0x4e78
movq %r13, %rcx
andq %rax, %rcx
notq %r13
orq %rax, %r13
movq %rcx, 0x28(%rsp)
movq %r13, 0x30(%rsp)
movq 0x8(%rbx), %rsi
cmpq 0x10(%rbx), %rsi
je 0x5101
movupd 0x28(%rsp), %xmm0
movupd %xmm0, (%rsi)
addq $0x10, 0x8(%rbx)
jmp 0x510c
movq %rbx, %rdi
movq %r15, %rdx
callq 0x5384
incl %r12d
cmpl $0x2, %r12d
jne 0x5085
incl %ebp
cmpl $0x2, %ebp
jne 0x5066
movq %rbx, %rax
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r14
movq (%rbx), %rdi
testq %rdi, %rdi
je 0x5146
callq 0x2270
movq %r14, %rdi
callq 0x23f0
// File: /workspace/github_cpp_makefile_star2_O1/mgronhol[P]Ullur/libhash.cpp
// Function: get_squared_distance(std::pair<double, double>&, std::pair<double, double>&)
double get_squared_distance( std::pair<double, double> &A, std::pair<double, double> &B ){
	double dx, dy;
	dx = A.first - B.first;
	dy = A.second - B.second;
	return dx*dx + dy*dy;
	}

// Assembly:
movsd (%rdi), %xmm0
movsd 0x8(%rdi), %xmm1
subsd (%rsi), %xmm0
subsd 0x8(%rsi), %xmm1
mulsd %xmm1, %xmm1
mulsd %xmm0, %xmm0
addsd %xmm1, %xmm0
retq
// File: /workspace/github_cpp_makefile_star2_O1/mgronhol[P]Ullur/libhash.cpp
// Function: extract_points(std::set<unsigned long, std::less<unsigned long>, std::allocator<unsigned long>>&, std::vector<std::pair<unsigned long, unsigned long>, std::allocator<std::pair<unsigned long, unsigned long>>>&)
std::vector< uint64_t > extract_points( std::set<uint64_t> & points, std::vector< std::pair<uint64_t, uint64_t> > &areas ){
	std::vector<uint64_t> out;
	
	for( size_t i = 0 ; i < areas.size() ; ++i ){
		std::set<uint64_t>::iterator start, stop, it;
			start = points.lower_bound( areas[i].first );
			stop = points.upper_bound( areas[i].second );
		
			for( it = start ; it != stop ; it++ ){
				out.push_back( *it );
				}
				}
	
	return out;
	}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, (%rsp)
movq %rdi, %rbx
xorps %xmm0, %xmm0
movups %xmm0, (%rdi)
movq $0x0, 0x10(%rdi)
movq (%rdx), %rax
cmpq %rax, 0x8(%rdx)
je 0x525e
movq %rdx, %r14
movq (%rsp), %rcx
leaq 0x8(%rcx), %r15
xorl %ebp, %ebp
movq %rbp, %rcx
shlq $0x4, %rcx
addq %rax, %rcx
movq (%rsp), %rax
movq 0x10(%rax), %rax
movq %r15, %r12
testq %rax, %rax
je 0x51e2
movq (%rcx), %rdx
movq %rax, %rsi
movq %r15, %r12
xorl %edi, %edi
cmpq %rdx, 0x20(%rsi)
setb %dil
cmovaeq %rsi, %r12
movq 0x10(%rsi,%rdi,8), %rsi
testq %rsi, %rsi
jne 0x51ca
movq %r15, %r13
testq %rax, %rax
je 0x5208
movq 0x8(%rcx), %rcx
movq %r15, %r13
xorl %edx, %edx
cmpq 0x20(%rax), %rcx
setae %dl
cmovbq %rax, %r13
movq 0x10(%rax,%rdx,8), %rax
testq %rax, %rax
jne 0x51f1
cmpq %r13, %r12
je 0x5244
leaq 0x20(%r12), %rdx
movq 0x8(%rbx), %rsi
cmpq 0x10(%rbx), %rsi
je 0x522c
movq (%rdx), %rax
movq %rax, (%rsi)
addq $0x8, %rsi
movq %rsi, 0x8(%rbx)
jmp 0x5234
movq %rbx, %rdi
callq 0x4374
movq %r12, %rdi
callq 0x2300
movq %rax, %r12
cmpq %r13, %rax
jne 0x520d
incq %rbp
movq (%r14), %rax
movq 0x8(%r14), %rcx
subq %rax, %rcx
sarq $0x4, %rcx
cmpq %rcx, %rbp
jb 0x51a7
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r14
movq (%rbx), %rdi
testq %rdi, %rdi
je 0x5280
callq 0x2270
movq %r14, %rdi
callq 0x23f0
// File: /workspace/github_cpp_makefile_star2_O1/mgronhol[P]Ullur/libhash.cpp
// Function: filter_points(std::vector<unsigned long, std::allocator<unsigned long>>&, std::unordered_map<unsigned long, unsigned long, std::hash<unsigned long>, std::equal_to<unsigned long>, std::allocator<std::pair<unsigned long const, unsigned long>>>&, std::pair<double, double>, double)
std::vector<uint64_t> filter_points( std::vector< uint64_t > &keys, std::unordered_map<uint64_t, uint64_t> &values, std::pair<double, double> point, double radius ){
	std::vector<uint64_t> out;
	std::pair<double, double> pos;
	
	radius = radius*radius;
	for( size_t i = 0 ; i < keys.size() ; ++i ){
		pos = compute_position( keys[i] );
		if( get_squared_distance( pos, point ) <= radius ){
			out.push_back( values[ keys[i] ] );
			}
		}
	
	
	return out;
	}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movsd %xmm2, (%rsp)
movsd %xmm1, 0x10(%rsp)
movsd %xmm0, 0x8(%rsp)
movq %rdi, %rbx
xorpd %xmm0, %xmm0
movupd %xmm0, (%rdi)
movq $0x0, 0x10(%rdi)
movq (%rsi), %r12
cmpq %r12, 0x8(%rsi)
je 0x5359
movq %rdx, %r14
movq %rsi, %r15
movsd (%rsp), %xmm0
mulsd %xmm0, %xmm0
movsd %xmm0, (%rsp)
xorl %r13d, %r13d
xorl %ebp, %ebp
movq (%r12,%r13), %rdi
callq 0x4f8a
subsd 0x8(%rsp), %xmm0
subsd 0x10(%rsp), %xmm1
mulsd %xmm1, %xmm1
mulsd %xmm0, %xmm0
addsd %xmm1, %xmm0
movsd (%rsp), %xmm1
ucomisd %xmm0, %xmm1
jb 0x533f
addq %r13, %r12
movq %r14, %rdi
movq %r12, %rsi
callq 0x54bc
movq 0x8(%rbx), %rsi
cmpq 0x10(%rbx), %rsi
je 0x5334
movq (%rax), %rax
movq %rax, (%rsi)
addq $0x8, %rsi
movq %rsi, 0x8(%rbx)
jmp 0x533f
movq %rbx, %rdi
movq %rax, %rdx
callq 0x4374
incq %rbp
movq (%r15), %r12
movq 0x8(%r15), %rax
subq %r12, %rax
sarq $0x3, %rax
addq $0x8, %r13
cmpq %rax, %rbp
jb 0x52e0
movq %rbx, %rax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r14
movq (%rbx), %rdi
testq %rdi, %rdi
je 0x537b
callq 0x2270
movq %r14, %rdi
callq 0x23f0
nop
// File: /workspace/github_cpp_makefile_star2_O1/cooljacket[P]Dormitory-distribution/utils.cpp
// Function: str2int(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)
int str2int(const string& str) {
	stringstream ss(str);
	int num;
	ss >> num;
	return num;
}

// Assembly:
pushq %rbx
subq $0x190, %rsp            # imm = 0x190
movq %rdi, %rsi
leaq 0x8(%rsp), %rbx
movq %rbx, %rdi
movl $0x18, %edx
callq 0x2300
leaq 0x4(%rsp), %rsi
movq %rbx, %rdi
callq 0x2150
movl 0x4(%rsp), %ebx
movq 0xbd1f(%rip), %rsi      # 0xefb0
leaq 0x8(%rsp), %rdi
callq 0x21a0
leaq 0x88(%rsp), %rdi
callq 0x20c0
movl %ebx, %eax
addq $0x190, %rsp            # imm = 0x190
popq %rbx
retq
movq %rax, %rbx
movq 0xbcf3(%rip), %rsi      # 0xefb0
leaq 0x8(%rsp), %rdi
callq 0x21a0
leaq 0x88(%rsp), %rdi
callq 0x20c0
movq %rbx, %rdi
callq 0x2370
// File: /workspace/github_cpp_makefile_star2_O1/cooljacket[P]Dormitory-distribution/main.cpp
// Function: findNearestExclude(Student const&, std::vector<Student, std::allocator<Student>> const&, unsigned long)
size_t findNearestExclude(const Student& key, const vector<Student>& group, size_t exclude) {
	double d = 1e10;
	size_t ans = exclude;

	for (size_t i = 0; i < group.size(); ++i) {
		if (i != exclude && key.dist(group[i]) < d) {
			d = key.dist(group[i]);
			ans = i;
		}
	}

	return ans;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rdx, %rbx
movq %rsi, %r14
movq (%rsi), %rsi
cmpq %rsi, 0x8(%r14)
je 0x3e23
movq %rdi, %r15
movsd 0x62c0(%rip), %xmm0     # 0xa070
movsd %xmm0, 0x10(%rsp)
xorl %r13d, %r13d
movabsq $-0xf0f0f0f0f0f0f0f, %rbp # imm = 0xF0F0F0F0F0F0F0F1
xorl %r12d, %r12d
movq %rbx, 0x8(%rsp)
cmpq %r12, %rbx
je 0x3e00
addq %r13, %rsi
movq %r15, %rdi
callq 0x7474
movsd 0x10(%rsp), %xmm1
ucomisd %xmm0, %xmm1
jbe 0x3e00
movq (%r14), %rsi
addq %r13, %rsi
movq %r15, %rdi
callq 0x7474
movsd %xmm0, 0x10(%rsp)
movq %r12, 0x8(%rsp)
incq %r12
movq (%r14), %rsi
movq 0x8(%r14), %rax
subq %rsi, %rax
sarq $0x3, %rax
imulq %rbp, %rax
addq $0x88, %r13
cmpq %rax, %r12
jb 0x3dcb
jmp 0x3e28
movq %rbx, 0x8(%rsp)
movq 0x8(%rsp), %rax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/cooljacket[P]Dormitory-distribution/./KMeans.h
// Function: KMeans<Student>::train_inc()
void train_inc() {
		for (size_t iter = 0; iter < MaxIters; ++iter) {
			for (size_t e = 0; e < size; ++e) {
				for (size_t c = 0; c < K; ++c) {
					double distance = elements[e].dist(centroids[c]);
					if (distance < dist[e]) {
						dist[e] = distance;
						my_centroids[e] = c;
					}
				}
				if (my_centroids[e] != my_centroids_map[e]) {
					size_t oldC = my_centroids_map[e], newC = my_centroids[e];
					// printf("hehe, change c=%d, for e=%d, oldC=%d\n", int(newC), int(e), int(oldC));

					my_centroids_map[e] = newC;
					my_points_map[oldC].erase(e);
					my_points_map[newC].insert(e);
					update_centroid(oldC);
					update_centroid(newC);
				}
			}

			printf("Iteration [%d], SSE=%lf\n", int(iter), SSE());
		}
	}

// Assembly:
cmpq $0x0, 0x10(%rdi)
je 0x48de
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rdi, %rbx
leaq 0x78(%rdi), %r14
leaq 0xa8(%rdi), %r15
xorl %r12d, %r12d
leaq 0x8(%rsp), %rbp
movq %r12, 0x20(%rsp)
movq $0x0, 0x8(%rsp)
cmpq $0x0, 0x8(%rbx)
je 0x48a5
cmpq $0x0, (%rbx)
je 0x47e2
xorl %r13d, %r13d
xorl %r12d, %r12d
movq 0x8(%rsp), %rax
movq %rax, %rcx
shlq $0x7, %rcx
leaq (%rcx,%rax,8), %rdi
addq 0x18(%rbx), %rdi
movq 0x30(%rbx), %rsi
addq %r13, %rsi
callq 0x7474
movq 0x8(%rsp), %rax
movq 0x48(%rbx), %rcx
movsd (%rcx,%rax,8), %xmm1
ucomisd %xmm0, %xmm1
jbe 0x47d3
movsd %xmm0, (%rcx,%rax,8)
movq 0x60(%rbx), %rcx
movq %r12, (%rcx,%rax,8)
incq %r12
addq $0x88, %r13
cmpq (%rbx), %r12
jb 0x4792
movq 0x8(%rsp), %rax
movq 0x60(%rbx), %rcx
movq (%rcx,%rax,8), %r12
movq %r14, %rdi
movq %rbp, %rsi
callq 0x5d20
cmpq (%rax), %r12
je 0x488e
movq %r14, %rdi
movq %rbp, %rsi
callq 0x5d20
movq (%rax), %rax
movq %rax, 0x18(%rsp)
movq 0x8(%rsp), %rax
movq 0x60(%rbx), %rcx
movq (%rcx,%rax,8), %r12
movq %r12, 0x10(%rsp)
movq %r14, %rdi
movq %rbp, %rsi
callq 0x5d20
movq %r12, (%rax)
movq %r15, %rdi
leaq 0x18(%rsp), %rsi
callq 0x6440
movq %rax, %r13
movq %rax, %rdi
movq %rbp, %rsi
callq 0x6654
movq %r13, %rdi
movq %rax, %rsi
callq 0x66d0
movq %r15, %rdi
leaq 0x10(%rsp), %rsi
callq 0x6440
movq %rax, %rdi
movq %rbp, %rsi
callq 0x611a
movq 0x18(%rsp), %rsi
movq %rbx, %rdi
callq 0x64a6
movq 0x10(%rsp), %rsi
movq %rbx, %rdi
callq 0x64a6
movq 0x8(%rsp), %rax
incq %rax
movq %rax, 0x8(%rsp)
cmpq 0x8(%rbx), %rax
jb 0x4786
movq %rbx, %rdi
callq 0x5d86
leaq 0x5964(%rip), %rdi      # 0xa218
movq 0x20(%rsp), %r12
movl %r12d, %esi
movb $0x1, %al
callq 0x2050
incq %r12
cmpq 0x10(%rbx), %r12
jb 0x476d
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/cooljacket[P]Dormitory-distribution/./KMeans.h
// Function: KMeans<Student>::explain() const
void explain() const {
		for (size_t c = 0; c < K; ++c) {
			printf("In centroids [%d], there have:\n", int(c));
			for (size_t e = 0; e < size; ++e) {
				if (my_centroids[e] == c)
					elements[e].output(cout);
			}

			printf("-----------\n\n\n");
		}
	}

// Assembly:
cmpq $0x0, (%rdi)
je 0x496d
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
leaq 0x5952(%rip), %r15      # 0xa251
movq 0xa6ca(%rip), %r12      # 0xefd0
xorl %r13d, %r13d
leaq 0x5921(%rip), %rdi      # 0xa231
movl %r13d, %esi
xorl %eax, %eax
callq 0x2050
cmpq $0x0, 0x8(%rbx)
je 0x494f
xorl %ebp, %ebp
xorl %r14d, %r14d
movq 0x60(%rbx), %rax
cmpq %r13, (%rax,%r14,8)
jne 0x493f
movq 0x18(%rbx), %rdi
addq %rbp, %rdi
movq %r12, %rsi
callq 0x7164
incq %r14
addq $0x88, %rbp
cmpq 0x8(%rbx), %r14
jb 0x4926
movq %r15, %rdi
callq 0x22e0
incq %r13
cmpq (%rbx), %r13
jb 0x4909
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/cooljacket[P]Dormitory-distribution/./KMeans.h
// Function: KMeans<Student>::getSortedRepresentative()
vector<size_t> getSortedRepresentative() {
		vector<size_t> rep(K);
		for (size_t i = 0; i < K; ++i) {
			rep[i] = getBestPointInCluster(i);
		}
		sort(rep.begin(), rep.end());
		return rep;
	}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x10, %rsp
movq %rsi, %r14
movq %rdi, %rbx
movq (%rsi), %rsi
leaq 0xf(%rsp), %rdx
callq 0x58a8
cmpq $0x0, (%r14)
je 0x49ad
xorl %r15d, %r15d
movq %r14, %rdi
movq %r15, %rsi
callq 0x6776
movq (%rbx), %rcx
movq %rax, (%rcx,%r15,8)
incq %r15
cmpq (%r14), %r15
jb 0x4993
movq (%rbx), %r14
movq 0x8(%rbx), %r15
cmpq %r15, %r14
je 0x49e6
movq %r15, %rax
subq %r14, %rax
sarq $0x3, %rax
bsrq %rax, %rdx
xorl $0x3f, %edx
addl %edx, %edx
xorq $0x7e, %rdx
movq %r14, %rdi
movq %r15, %rsi
callq 0x6820
movq %r14, %rdi
movq %r15, %rsi
callq 0x6909
movq %rbx, %rax
addq $0x10, %rsp
popq %rbx
popq %r14
popq %r15
retq
jmp 0x49f5
movq %rax, %r14
movq (%rbx), %rdi
testq %rdi, %rdi
je 0x4a0c
movq 0x10(%rbx), %rsi
subq %rdi, %rsi
callq 0x2230
movq %r14, %rdi
callq 0x2370
// File: /workspace/github_cpp_makefile_star2_O1/cooljacket[P]Dormitory-distribution/./KMeans.h
// Function: KMeans<Student>::SSE()
double SSE() {
		double error = 0.0;

		for (size_t e = 0; e < size; ++e) {
			// double tmp = centroids[my_centroids[e]].dist(elements[e]);
			// error += tmp * tmp;
			error += centroids[my_centroids[e]].dist(elements[e]);;
		}

		return error;
	}

// Assembly:
cmpq $0x0, 0x8(%rdi)
je 0x5dfc
pushq %r15
pushq %r14
pushq %rbx
subq $0x10, %rsp
movq %rdi, %rbx
xorpd %xmm0, %xmm0
xorl %r14d, %r14d
xorl %r15d, %r15d
movsd %xmm0, 0x8(%rsp)
movq 0x60(%rbx), %rax
movq (%rax,%r15,8), %rax
movq %rax, %rcx
shlq $0x7, %rcx
leaq (%rcx,%rax,8), %rdi
addq 0x30(%rbx), %rdi
movq 0x18(%rbx), %rsi
addq %r14, %rsi
callq 0x7474
movsd 0x8(%rsp), %xmm1
addsd %xmm0, %xmm1
movsd %xmm1, 0x8(%rsp)
movsd 0x8(%rsp), %xmm0
incq %r15
addq $0x88, %r14
cmpq 0x8(%rbx), %r15
jb 0x5da3
addq $0x10, %rsp
popq %rbx
popq %r14
popq %r15
retq
xorps %xmm0, %xmm0
retq
// File: /workspace/github_cpp_makefile_star2_O1/cooljacket[P]Dormitory-distribution/./KMeans.h
// Function: KMeans<Student>::update_centroid(unsigned long)
void update_centroid(size_t c) {
		set<size_t>& points = my_points_map[c];
		set<size_t>::iterator it = points.begin();
		centroids[c].clear();
		while (it != points.end()) {
			centroids[c] += elements[*it];
			++it;
		}
		if (points.size() > 1)
			centroids[c] /= points.size();
		// printf("heheheh size=%d, c=%d\n", int(points.size()), int(c));
	}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq %rsp, %r12
movq %rsi, (%r12)
addq $0xa8, %rdi
movq %r12, %rsi
callq 0x6440
movq %rax, %r14
movq 0x18(%rax), %r15
movq (%r12), %rax
movq %rax, %rcx
shlq $0x7, %rcx
leaq (%rcx,%rax,8), %rdi
addq 0x30(%rbx), %rdi
callq 0x74be
movq %r14, %r12
addq $0x8, %r12
cmpq %r12, %r15
je 0x652d
movq 0x20(%r15), %rax
movq %rax, %rcx
shlq $0x7, %rcx
leaq (%rcx,%rax,8), %rsi
addq 0x18(%rbx), %rsi
movq (%rsp), %rax
movq %rax, %rcx
shlq $0x7, %rcx
leaq (%rcx,%rax,8), %rdi
addq 0x30(%rbx), %rdi
callq 0x74e6
movq %r15, %rdi
callq 0x2260
movq %rax, %r15
cmpq %r12, %rax
jne 0x64f2
movq 0x28(%r14), %rax
cmpq $0x2, %rax
jb 0x6570
movq %rax, %xmm1
punpckldq 0x3b0c(%rip), %xmm1 # xmm1 = xmm1[0],mem[0],xmm1[1],mem[1]
subpd 0x3b14(%rip), %xmm1     # 0xa060
movapd %xmm1, %xmm0
unpckhpd %xmm1, %xmm0            # xmm0 = xmm0[1],xmm1[1]
addsd %xmm1, %xmm0
movq (%rsp), %rax
movq %rax, %rcx
shlq $0x7, %rcx
leaq (%rcx,%rax,8), %rdi
addq 0x30(%rbx), %rdi
callq 0x751e
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O1/cooljacket[P]Dormitory-distribution/./KMeans.h
// Function: KMeans<Student>::getBestPointInCluster(unsigned long)
size_t getBestPointInCluster(size_t c) {
		set<size_t>& points = my_points_map[c];
		set<size_t>::iterator it = points.begin();

		double d = 1e10, tmpD;
		size_t ans = size;
		while (it != points.end()) {
			if ((tmpD = centroids[c].dist(elements[*it])) < d) {
				d = tmpD;
				ans = *it;
			}
			++it;
		}

		return ans;
	}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rdi, %rbx
leaq 0x10(%rsp), %rax
movq %rsi, (%rax)
addq $0xa8, %rdi
movq %rax, %rsi
callq 0x6440
movq %rax, %r15
movq 0x18(%rax), %r12
movq 0x8(%rbx), %r14
addq $0x8, %r15
cmpq %r15, %r12
je 0x6811
movsd 0x38b9(%rip), %xmm0     # 0xa070
movsd %xmm0, 0x8(%rsp)
movq 0x10(%rsp), %rax
movq %rax, %rcx
shlq $0x7, %rcx
leaq (%rcx,%rax,8), %rdi
addq 0x30(%rbx), %rdi
movq 0x20(%r12), %rax
movq %rax, %rcx
shlq $0x7, %rcx
leaq (%rcx,%rax,8), %rsi
addq 0x18(%rbx), %rsi
callq 0x7474
movsd 0x8(%rsp), %xmm1
ucomisd %xmm0, %xmm1
jbe 0x6801
movq 0x20(%r12), %r14
movsd %xmm0, 0x8(%rsp)
movq %r12, %rdi
callq 0x2260
movq %rax, %r12
cmpq %r15, %rax
jne 0x67bd
movq %r14, %rax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O1/cooljacket[P]Dormitory-distribution/Student.cpp
// Function: Student::Student(std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>> const&)
Student::Student(const vector<string>& row)
: Element(size, question_ratio), id(row[0]), name(row[1]) {
	for (int i = 2; i < row.size(); ++i)
		data[i-2] = str2int(row[i]);

	raw_data = data;

	data[2] = sqrt_trans(data[2] += 1);	// 起床时间
	data[3] = sqrt_trans(data[3] += 1);	// 就寝时间
	data[12] = sqrt_trans(data[12] += 1);// 家庭收入水平
	data[10] *= MAX[10];	// 性格分明，尽量不要出现三个安静+1个活跃
	for (int i = 0; i < size; ++i)
		if (MAX[i] > MIN[i])
			data[i] = (data[i] - MIN[i]) / (MAX[i] - MIN[i]);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rsi, %r12
movq %rdi, %rbx
leaq 0x3487(%rip), %rdx      # 0xa270
movl $0xf, %esi
callq 0x73fc
leaq 0x30(%rbx), %r14
movq (%r12), %rax
leaq 0x40(%rbx), %rcx
movq %rcx, 0x8(%rsp)
movq %rcx, 0x30(%rbx)
movq (%rax), %rsi
movq 0x8(%rax), %rdx
addq %rsi, %rdx
movq %r14, %rdi
callq 0x4ca2
movq %r14, 0x10(%rsp)
leaq 0x50(%rbx), %r15
movq (%r12), %rax
leaq 0x60(%rbx), %rcx
movq %rcx, (%rsp)
movq %rcx, 0x50(%rbx)
movq 0x20(%rax), %rsi
movq 0x28(%rax), %rdx
addq %rsi, %rdx
movq %r15, %rdi
callq 0x4ca2
leaq 0x70(%rbx), %r13
xorpd %xmm0, %xmm0
movupd %xmm0, 0x70(%rbx)
movq $0x0, 0x80(%rbx)
movq (%r12), %rdi
movq 0x8(%r12), %rax
subq %rdi, %rax
cmpq $0x41, %rax
jb 0x6eb0
movl $0x2, %r14d
movl $0x40, %ebp
addq %rbp, %rdi
callq 0x325c
xorps %xmm0, %xmm0
cvtsi2sd %eax, %xmm0
movq (%rbx), %rax
movsd %xmm0, -0x10(%rax,%r14,8)
incq %r14
movq (%r12), %rdi
movq 0x8(%r12), %rax
subq %rdi, %rax
sarq $0x5, %rax
addq $0x20, %rbp
cmpq %r14, %rax
ja 0x6e7b
movq %r13, %rdi
movq %rbx, %rsi
callq 0x5e00
movq (%rbx), %rax
movsd 0x339a(%rip), %xmm0     # 0xa260
movsd 0x10(%rax), %xmm1
addsd %xmm0, %xmm1
mulsd %xmm1, %xmm1
movsd %xmm1, 0x10(%rax)
movsd 0x18(%rax), %xmm1
addsd %xmm0, %xmm1
mulsd %xmm1, %xmm1
movsd %xmm1, 0x18(%rax)
addsd 0x60(%rax), %xmm0
mulsd %xmm0, %xmm0
movsd %xmm0, 0x60(%rax)
movsd 0x50(%rax), %xmm0
mulsd 0x3363(%rip), %xmm0     # 0xa268
movsd %xmm0, 0x50(%rax)
xorl %ecx, %ecx
leaq 0x345d(%rip), %rdx      # 0xa370
leaq 0x33d6(%rip), %rsi      # 0xa2f0
movsd (%rcx,%rdx), %xmm0
movsd (%rcx,%rsi), %xmm1
ucomisd %xmm1, %xmm0
jbe 0x6f40
movsd (%rax,%rcx), %xmm2
subsd %xmm1, %xmm2
subsd %xmm1, %xmm0
divsd %xmm0, %xmm2
movsd %xmm2, (%rax,%rcx)
addq $0x8, %rcx
cmpq $0x78, %rcx
jne 0x6f1a
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x6f65
movq %rax, %r12
jmp 0x6f98
movq %rax, %r12
jmp 0x6fb7
movq %rax, %r12
movq (%r13), %rdi
testq %rdi, %rdi
je 0x6f80
movq 0x80(%rbx), %rsi
subq %rdi, %rsi
callq 0x2230
movq (%r15), %rdi
cmpq (%rsp), %rdi
je 0x6f98
movq (%rsp), %rax
movq (%rax), %rsi
incq %rsi
callq 0x2230
movq 0x10(%rsp), %rax
movq (%rax), %rdi
cmpq 0x8(%rsp), %rdi
je 0x6fb7
movq 0x8(%rsp), %rax
movq (%rax), %rsi
incq %rsi
callq 0x2230
movq %rbx, %rdi
callq 0x4b0e
movq %r12, %rdi
callq 0x2370
nop
// File: /workspace/github_cpp_makefile_star2_O1/cooljacket[P]Dormitory-distribution/Student.cpp
// Function: operator>>(std::istream&, Student&)
istream& operator >> (istream& is, Student& stu) {
	vector<string> row(Student::size);
	for (int i = 0; i < Student::size; ++i)
		is >> row[i];
	stu = Student(row);
	return is;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0xa0, %rsp
movq %rsi, %r14
movq %rdi, %rbx
movq %rsp, %rdi
leaq 0x18(%rsp), %rdx
movl $0xf, %esi
callq 0x7346
xorl %r15d, %r15d
movq (%rsp), %rsi
addq %r15, %rsi
movq %rbx, %rdi
callq 0x2280
addq $0x20, %r15
cmpq $0x1e0, %r15            # imm = 0x1E0
jne 0x6ff4
leaq 0x18(%rsp), %rdi
movq %rsp, %rsi
callq 0x6dce
leaq 0x18(%rsp), %rsi
movq %r14, %rdi
callq 0x5274
leaq 0x18(%r14), %rdi
leaq 0x30(%rsp), %rsi
callq 0x5274
leaq 0x30(%r14), %rdi
leaq 0x48(%rsp), %rsi
callq 0x2270
leaq 0x50(%r14), %rdi
leaq 0x68(%rsp), %rsi
callq 0x2270
addq $0x70, %r14
leaq 0x88(%rsp), %r15
movq %r14, %rdi
movq %r15, %rsi
callq 0x5274
movq (%r15), %rdi
testq %rdi, %rdi
je 0x7083
movq 0x98(%rsp), %rsi
subq %rdi, %rsi
callq 0x2230
leaq 0x78(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x709e
movq 0x78(%rsp), %rsi
incq %rsi
callq 0x2230
leaq 0x58(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x70b9
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x2230
movq 0x30(%rsp), %rdi
testq %rdi, %rdi
je 0x70d0
movq 0x40(%rsp), %rsi
subq %rdi, %rsi
callq 0x2230
movq 0x18(%rsp), %rdi
testq %rdi, %rdi
je 0x70e7
movq 0x28(%rsp), %rsi
subq %rdi, %rsi
callq 0x2230
movq %rsp, %rdi
callq 0x4b8c
movq %rbx, %rax
addq $0xa0, %rsp
popq %rbx
popq %r14
popq %r15
retq
jmp 0x7101
movq %rax, %rbx
movq %rsp, %rdi
callq 0x4b8c
movq %rbx, %rdi
callq 0x2370
// File: /workspace/github_cpp_makefile_star2_O1/cooljacket[P]Dormitory-distribution/Student.cpp
// Function: Student::display() const
void Student::display() const {
	printf("Id is %s", id.c_str());
	for (int i = 0; i < size; ++i)
		printf(", %.3lf", data[i]);
	printf("\n");
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rdi, %rbx
movq 0x30(%rdi), %rsi
leaq 0x3429(%rip), %rdi      # 0xa550
xorl %r15d, %r15d
xorl %eax, %eax
callq 0x2050
leaq 0x3421(%rip), %r14      # 0xa559
movq (%rbx), %rax
movsd (%rax,%r15,8), %xmm0
movq %r14, %rdi
movb $0x1, %al
callq 0x2050
incq %r15
cmpq $0xf, %r15
jne 0x7138
movl $0xa, %edi
popq %rbx
popq %r14
popq %r15
jmp 0x22a0
nop
// File: /workspace/github_cpp_makefile_star2_O1/cooljacket[P]Dormitory-distribution/Student.cpp
// Function: Student::output(std::ostream&) const
void Student::output(ostream& out) const {
	out << id << ',' << name;

	for (int i = 0; i < size; ++i) {
		if (i == 4) {
			out << ",\"";
			bool have = false;
			for (int j = 0; j < 6; ++i, ++j) {
				if (!have && answers[i][int(raw_data[i])].size() > 0) {
					have = true;
					out << answers[i][int(raw_data[i])];
				}
				else if (answers[i][int(raw_data[i])].size() > 0)
					out << ',' << answers[i][int(raw_data[i])];
			}
			out << "\"";
			--i;
		}
		else
			out << ',' << answers[i][int(raw_data[i])];
	}
	out << endl;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
movq 0x30(%rdi), %rsi
movq 0x38(%rdi), %rdx
movq %rbx, %rdi
callq 0x2250
leaq 0x7(%rsp), %rsi
movb $0x2c, (%rsi)
movl $0x1, %edx
movq %rax, %rdi
callq 0x2250
movq 0x50(%r14), %rsi
movq 0x58(%r14), %rdx
movq %rax, %rdi
callq 0x2250
xorl %ebp, %ebp
leaq 0x807d(%rip), %r15      # 0xf230
cmpl $0x4, %ebp
jne 0x72a9
movl $0x2, %edx
movq %rbx, %rdi
leaq 0x3396(%rip), %rsi      # 0xa561
callq 0x2250
movl $0x4, %r13d
xorl %ebp, %ebp
xorl %r12d, %r12d
testb $0x1, %r12b
jne 0x7216
movq 0x70(%r14), %rax
cvttsd2si (%rax,%r13,8), %eax
cltq
shlq $0x5, %rax
addq %r15, %rax
movq 0x308(%rbp,%rax), %rdx
testq %rdx, %rdx
je 0x7216
movq 0x300(%rax,%rbp), %rsi
movq %rbx, %rdi
callq 0x2250
movb $0x1, %r12b
jmp 0x7277
movq 0x70(%r14), %rax
cvttsd2si (%rax,%r13,8), %eax
cltq
shlq $0x5, %rax
addq %r15, %rax
cmpq $0x0, 0x308(%rbp,%rax)
je 0x7277
movb $0x2c, 0x5(%rsp)
movl $0x1, %edx
movq %rbx, %rdi
leaq 0x5(%rsp), %rsi
callq 0x2250
movq 0x70(%r14), %rcx
cvttsd2si (%rcx,%r13,8), %ecx
movslq %ecx, %rcx
shlq $0x5, %rcx
addq %r15, %rcx
movq 0x300(%rbp,%rcx), %rsi
movq 0x308(%rbp,%rcx), %rdx
movq %rax, %rdi
callq 0x2250
incq %r13
addq $0xc0, %rbp
cmpq $0x480, %rbp            # imm = 0x480
jne 0x71db
movl $0x1, %edx
movq %rbx, %rdi
leaq 0x32c5(%rip), %rsi      # 0xa562
callq 0x2250
movl $0xa, %ebp
jmp 0x72f1
movb $0x2c, 0x6(%rsp)
movl $0x1, %edx
movq %rbx, %rdi
leaq 0x6(%rsp), %rsi
callq 0x2250
movslq %ebp, %rcx
movq 0x70(%r14), %rdx
cvttsd2si (%rdx,%rcx,8), %edx
movslq %edx, %rdx
leaq (%rcx,%rcx,2), %rcx
shlq $0x6, %rcx
addq %r15, %rcx
shlq $0x5, %rdx
movq (%rdx,%rcx), %rsi
movq 0x8(%rdx,%rcx), %rdx
movq %rax, %rdi
callq 0x2250
incl %ebp
cmpl $0xf, %ebp
jl 0x71b3
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x2210
movsbl %al, %esi
movq %rbx, %rdi
callq 0x2030
movq %rax, %rdi
callq 0x2160
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/cooljacket[P]Dormitory-distribution/Element.cpp
// Function: Element::dist(Element const&) const
double Element::dist(const Element& e) const {
	double d = 0.0, tmp;
	for (size_t i = 0; i < data.size(); ++i) {
		tmp = data[i] - e.data[i];
		d += tmp * tmp * weights[i];
	}

	return d;
}

// Assembly:
movq (%rdi), %rax
movq 0x8(%rdi), %rcx
subq %rax, %rcx
je 0x74b9
sarq $0x3, %rcx
movq (%rsi), %rdx
movq 0x18(%rdi), %rsi
cmpq $0x1, %rcx
adcq $0x0, %rcx
xorpd %xmm0, %xmm0
xorl %edi, %edi
movsd (%rax,%rdi,8), %xmm1
subsd (%rdx,%rdi,8), %xmm1
mulsd %xmm1, %xmm1
mulsd (%rsi,%rdi,8), %xmm1
addsd %xmm1, %xmm0
incq %rdi
cmpq %rdi, %rcx
jne 0x7499
retq
xorps %xmm0, %xmm0
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/cooljacket[P]Dormitory-distribution/transform.cpp
// Function: transform_original_data(char const*)
int transform_original_data(const char* inputFile) {
	const char* outputFile = file_after_process;
	const char* studentsListFile = "data/students_list_2016.csv";
	transform(inputFile, outputFile, studentsListFile);
	return 0;
}

// Assembly:
pushq %rax
leaq 0x7c24(%rip), %rax      # 0xf1e8
movq (%rax), %rsi
leaq 0x2f9e(%rip), %rdx      # 0xa56c
callq 0x75d7
xorl %eax, %eax
popq %rcx
retq
// File: /workspace/github_cpp_makefile_star2_O1/cooljacket[P]Dormitory-distribution/transform.cpp
// Function: province2int(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&)
void province2int(string& province) {
	if (province.find(GuangDong) != string::npos)
		province = "0";
	else
		province = "1";
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
leaq 0x7718(%rip), %rax      # 0xf1e0
movq (%rax), %r14
movq %r14, %rdi
callq 0x20f0
movq %rbx, %rdi
movq %r14, %rsi
xorl %edx, %edx
movq %rax, %rcx
callq 0x2360
cmpq $-0x1, %rax
movq 0x8(%rbx), %rdx
leaq 0x2a96(%rip), %rax      # 0xa588
leaq 0x2a3d(%rip), %rcx      # 0xa536
cmoveq %rax, %rcx
movl $0x1, %r8d
movq %rbx, %rdi
xorl %esi, %esi
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x22f0
// File: /workspace/github_cpp_makefile_star2_O1/cooljacket[P]Dormitory-distribution/transform.cpp
// Function: readStudentsList(char const*, std::map<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::less<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>, std::allocator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>>>&)
void readStudentsList(const char* fileName, map<string, string>& list) {
	// CSVReader reader;
	// vector<vector<string> > data;
	// reader.read(fileName, data);
	// for (int i = 0; i < data.size(); ++i)
	// 	list[data[i][1]] = data[i][0];

	CSVMapContainer mc(1);
	CSVReader::read(fileName, &mc);
	mc.getColData(list, 0);
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x60, %rsp
movq %rsi, %rbx
movq %rdi, %r14
leaq 0x8(%rsp), %r15
movl $0x1, %esi
movq %r15, %rdi
callq 0x8ff0
movq %r14, %rdi
movq %r15, %rsi
movl $0x1, %edx
callq 0x83b0
leaq 0x8(%rsp), %rdi
movq %rbx, %rsi
xorl %edx, %edx
callq 0x91f2
leaq 0x7205(%rip), %rax      # 0xed60
addq $0x10, %rax
leaq 0x28(%rsp), %rdi
movq %rax, -0x20(%rdi)
callq 0x7c2c
leaq 0x10(%rsp), %rdi
callq 0x4b8c
addq $0x60, %rsp
popq %rbx
popq %r14
popq %r15
retq
movq %rax, %rbx
leaq 0x71d5(%rip), %rax      # 0xed60
addq $0x10, %rax
leaq 0x28(%rsp), %rdi
movq %rax, -0x20(%rdi)
callq 0x7c2c
leaq 0x10(%rsp), %rdi
callq 0x4b8c
movq %rbx, %rdi
callq 0x2370
nop
// File: /workspace/github_cpp_makefile_star2_O1/cooljacket[P]Dormitory-distribution/CSVReader/CSVReader.cpp
// Function: CSVReader::read(char const*, CSVContainerAdapter*, bool)
void CSVReader::read(const char* fileName, CSVContainerAdapter* adapter, bool haveHeader) {
	fstream in(fileName, ios::in);
	string line;

	if (haveHeader)
		getline(in, line, line_delimiter);

	while (getline(in, line, line_delimiter)) {
		line_to_cells(line, adapter);
	}

	in.close();
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x238, %rsp            # imm = 0x238
movl %edx, %r14d
movq %rsi, %rbx
movq %rdi, %rsi
leaq -0x248(%rbp), %rdi
movl $0x8, %edx
callq 0x2290
leaq -0x28(%rbp), %r15
movq %r15, -0x10(%r15)
movq $0x0, -0x8(%r15)
movb $0x0, (%r15)
testl %r14d, %r14d
je 0x840a
movsbl 0x6e07(%rip), %edx      # 0xf201
leaq -0x248(%rbp), %rdi
leaq -0x38(%rbp), %rsi
callq 0x2390
movsbl 0x6df0(%rip), %edx      # 0xf201
leaq -0x248(%rbp), %rdi
leaq -0x38(%rbp), %rsi
callq 0x2390
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
testb $0x5, 0x20(%rax,%rcx)
jne 0x843d
leaq -0x38(%rbp), %rdi
movq %rbx, %rsi
callq 0x84a6
jmp 0x840a
leaq -0x248(%rbp), %rdi
callq 0x2060
movq -0x38(%rbp), %rdi
cmpq %r15, %rdi
je 0x845e
movq -0x28(%rbp), %rsi
incq %rsi
callq 0x2230
leaq -0x248(%rbp), %rdi
callq 0x2080
addq $0x238, %rsp            # imm = 0x238
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
jmp 0x847a
movq %rax, %rbx
movq -0x38(%rbp), %rdi
cmpq %r15, %rdi
je 0x8492
movq -0x28(%rbp), %rsi
incq %rsi
callq 0x2230
leaq -0x248(%rbp), %rdi
callq 0x2080
movq %rbx, %rdi
callq 0x2370
// File: /workspace/github_cpp_makefile_star2_O1/cooljacket[P]Dormitory-distribution/CSVReader/CSVReader.cpp
// Function: CSVReader::escape_double_quots(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&)
void CSVReader::escape_double_quots(string& str) {
	string tmp;
	bool last_is_quot = false;
	int len = str.length();
	for (int i = 0; i < len; ++i) {
		if (last_is_quot && str[i] == DOUBLE_QUOTS) {
			tmp.erase(tmp.size()-1, 1);
			last_is_quot = false;
		} else {
			last_is_quot = str[i] == DOUBLE_QUOTS;
			tmp.push_back(str[i]);
		}
	}

	str = tmp;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rdi, %rbx
leaq -0x38(%rbp), %rax
movq %rax, -0x10(%rax)
movq $0x0, -0x8(%rax)
movb $0x0, (%rax)
movq 0x8(%rdi), %r12
testl %r12d, %r12d
jle 0x870f
andl $0x7fffffff, %r12d      # imm = 0x7FFFFFFF
xorl %r13d, %r13d
leaq -0x48(%rbp), %r14
xorl %r15d, %r15d
testb $0x1, %r15b
je 0x86f0
movq (%rbx), %rax
cmpb $0x22, (%rax,%r13)
jne 0x86f0
movq -0x40(%rbp), %rsi
decq %rsi
movl $0x1, %edx
movq %r14, %rdi
callq 0x2090
xorl %r15d, %r15d
jmp 0x8707
movq (%rbx), %rax
movsbl (%rax,%r13), %esi
cmpl $0x22, %esi
sete %r15b
movq %r14, %rdi
callq 0x21d0
incq %r13
cmpq %r13, %r12
jne 0x86c7
leaq -0x48(%rbp), %rsi
movq %rbx, %rdi
callq 0x2120
movq -0x48(%rbp), %rdi
leaq -0x38(%rbp), %rax
cmpq %rax, %rdi
je 0x8734
movq -0x38(%rbp), %rsi
incq %rsi
callq 0x2230
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x8745
movq %rax, %rbx
movq -0x48(%rbp), %rdi
leaq -0x38(%rbp), %rax
cmpq %rax, %rdi
je 0x8761
movq -0x38(%rbp), %rsi
incq %rsi
callq 0x2230
movq %rbx, %rdi
callq 0x2370
nopl (%rax)
// File: /workspace/github_cpp_makefile_star2_O1/cooljacket[P]Dormitory-distribution/CSVReader/CSVVectorContainer.cpp
// Function: CSVVectorContainer::getColData(std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>>&, unsigned long) const
void CSVVectorContainer::getColData(vector<string>& data, size_t indexOfCol) const {
	for (int i = 0; i < m_table.size(); ++i) {
		if (indexOfCol >= m_table[i].size())
			throw logic_error("The index of column is large than the row's size.");
		data.push_back(m_table[i][indexOfCol]);
	}
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, -0x30(%rbp)
movq 0x20(%rdi), %rax
cmpq %rax, 0x28(%rdi)
je 0x891c
movq %rdx, %r14
movq %rdi, %r15
movl $0x8, %r12d
xorl %r13d, %r13d
movq %rdx, %rbx
shlq $0x5, %rbx
movq -0x8(%rax,%r12), %rsi
movq (%rax,%r12), %rax
subq %rsi, %rax
sarq $0x5, %rax
cmpq %r14, %rax
jbe 0x892b
addq %rbx, %rsi
movq -0x30(%rbp), %rdi
callq 0x8970
incq %r13
movq 0x20(%r15), %rax
movq 0x28(%r15), %rcx
subq %rax, %rcx
sarq $0x3, %rcx
movabsq $-0x5555555555555555, %rdx # imm = 0xAAAAAAAAAAAAAAAB
imulq %rdx, %rcx
addq $0x18, %r12
cmpq %r13, %rcx
ja 0x88d2
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl $0x10, %edi
callq 0x2100
movq %rax, %rbx
leaq 0x1c81(%rip), %rsi      # 0xa5c0
movq %rax, %rdi
callq 0x22b0
movq 0x6692(%rip), %rsi      # 0xefe0
movq 0x6673(%rip), %rdx      # 0xefc8
movq %rbx, %rdi
callq 0x2340
movq %rax, %r14
movq %rbx, %rdi
callq 0x2190
movq %r14, %rdi
callq 0x2370
// File: /workspace/github_cpp_makefile_star2_O1/cooljacket[P]Dormitory-distribution/CSVReader/CSVMapContainer.cpp
// Function: CSVMapContainer::addToRowDone()
void CSVMapContainer::addToRowDone() {
	if (m_indexOfKeyRow >= m_row.size())
		throw logic_error("The key's index is large than the size of row.");
	if (m_table.find(m_row[m_indexOfKeyRow]) != m_table.end())
		throw logic_error("The key is duplicate.");
	m_table[m_row[m_indexOfKeyRow]] = m_row;
	m_row.clear();
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq 0x50(%rdi), %rax
movq 0x8(%rdi), %rsi
movq 0x10(%rdi), %rcx
subq %rsi, %rcx
sarq $0x5, %rcx
cmpq %rcx, %rax
jae 0x90b4
movq %rdi, %rbx
leaq 0x20(%rdi), %r14
shlq $0x5, %rax
addq %rax, %rsi
movq %r14, %rdi
callq 0x94c2
leaq 0x28(%rbx), %rcx
cmpq %rcx, %rax
jne 0x90d2
leaq 0x8(%rbx), %r15
movq 0x50(%rbx), %rsi
shlq $0x5, %rsi
addq 0x8(%rbx), %rsi
movq %r14, %rdi
callq 0x92b4
movq %rax, %rdi
movq %r15, %rsi
callq 0x9334
movq 0x8(%rbx), %rsi
movq %r15, %rdi
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp 0x8f9c
movl $0x10, %edi
callq 0x2100
movq %rax, %rbx
leaq 0x1555(%rip), %rsi      # 0xa61d
movq %rax, %rdi
callq 0x22b0
jmp 0x90ee
movl $0x10, %edi
callq 0x2100
movq %rax, %rbx
leaq 0x1566(%rip), %rsi      # 0xa64c
movq %rax, %rdi
callq 0x22b0
movq 0x5eeb(%rip), %rsi      # 0xefe0
movq 0x5ecc(%rip), %rdx      # 0xefc8
movq %rbx, %rdi
callq 0x2340
jmp 0x9106
movq %rax, %r14
movq %rbx, %rdi
callq 0x2190
movq %r14, %rdi
callq 0x2370
nop
// File: /workspace/github_cpp_makefile_star2_O1/cooljacket[P]Dormitory-distribution/CSVReader/CSVMapContainer.cpp
// Function: CSVMapContainer::display() const
void CSVMapContainer::display() const {
	map<string, vector<string> >::const_iterator it = m_table.begin();
	while (it != m_table.end()) {
		const vector<string>& row = it->second;
		for (int i = 0; i < row.size(); ++i)
			cout << row[i] << '\t';
		cout << endl;
		++it;
	}
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq 0x38(%rdi), %r14
addq $0x28, %rdi
movq %rdi, -0x38(%rbp)
cmpq %rdi, %r14
je 0x91d9
movq 0x5e89(%rip), %r15      # 0xefd0
leaq -0x29(%rbp), %r12
movq 0x40(%r14), %rax
cmpq %rax, 0x48(%r14)
je 0x919d
movl $0x8, %r13d
xorl %ebx, %ebx
movq -0x8(%rax,%r13), %rsi
movq (%rax,%r13), %rdx
movq %r15, %rdi
callq 0x2250
movb $0x9, -0x29(%rbp)
movl $0x1, %edx
movq %rax, %rdi
movq %r12, %rsi
callq 0x2250
incq %rbx
movq 0x40(%r14), %rax
movq 0x48(%r14), %rcx
subq %rax, %rcx
sarq $0x5, %rcx
addq $0x20, %r13
cmpq %rbx, %rcx
ja 0x915d
movq (%r15), %rax
movq -0x18(%rax), %rdi
addq %r15, %rdi
movl $0xa, %esi
callq 0x2210
movsbl %al, %esi
movq %r15, %rdi
callq 0x2030
movq %rax, %rdi
callq 0x2160
movq %r14, %rdi
callq 0x2260
movq %rax, %r14
cmpq -0x38(%rbp), %rax
jne 0x914b
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/cooljacket[P]Dormitory-distribution/CSVReader/CSVMapContainer.cpp
// Function: CSVMapContainer::getColData(std::map<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::less<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>, std::allocator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>>>&, unsigned long) const
void CSVMapContainer::getColData(map<string, string>& data, size_t indexOfCol) const {
	map<string, vector<string> >::const_iterator it = m_table.begin();
	while (it != m_table.end()) {
		const vector<string>& row = it->second;
		if (indexOfCol >= row.size())
			throw logic_error("The index of column is large than the row's size.");
		data[it->first] = row[indexOfCol];
		++it;
	}
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, -0x30(%rbp)
movq %rdi, %r15
movq 0x38(%rdi), %r12
addq $0x28, %r15
cmpq %r15, %r12
je 0x9260
movq %rdx, %r14
movq %rdx, %rbx
shlq $0x5, %rbx
movq 0x40(%r12), %r13
movq 0x48(%r12), %rax
subq %r13, %rax
sarq $0x5, %rax
cmpq %r14, %rax
jbe 0x926f
leaq 0x20(%r12), %rsi
addq %rbx, %r13
movq -0x30(%rbp), %rdi
callq 0x7bb0
movq %rax, %rdi
movq %r13, %rsi
callq 0x2120
movq %r12, %rdi
callq 0x2260
movq %rax, %r12
cmpq %r15, %rax
jne 0x921e
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl $0x10, %edi
callq 0x2100
movq %rax, %rbx
leaq 0x133d(%rip), %rsi      # 0xa5c0
movq %rax, %rdi
callq 0x22b0
movq 0x5d4e(%rip), %rsi      # 0xefe0
movq 0x5d2f(%rip), %rdx      # 0xefc8
movq %rbx, %rdi
callq 0x2340
movq %rax, %r14
movq %rbx, %rdi
callq 0x2190
movq %r14, %rdi
callq 0x2370
// File: /workspace/github_cpp_makefile_star2_O1/sopanpatra160[P]OOO_Superscalar_Processor_Simulator/cache.cc
// Function: cache::lru_update(unsigned int, unsigned int)
void cache::lru_update(unsigned int ind, unsigned int blk){
	unsigned int tmp;
	tmp=lru_store[ind][blk];
	for (unsigned int j=0; j<a; j++){
		if(lru_store[ind][j]<tmp)
			lru_store[ind][j]++;
	}
	lru_store[ind][blk]=0;

}

// Assembly:
movq 0x40(%rdi), %rax
movl %esi, %ecx
movq (%rax,%rcx,8), %rax
movl %edx, %ecx
cmpl $0x0, 0x18(%rdi)
je 0x1e09
movl (%rax,%rcx,4), %edx
xorl %esi, %esi
movl (%rax,%rsi,4), %r8d
cmpl %edx, %r8d
jae 0x1dfd
incl %r8d
movl %r8d, (%rax,%rsi,4)
incq %rsi
movl 0x18(%rdi), %r8d
cmpq %r8, %rsi
jb 0x1ded
movl $0x0, (%rax,%rcx,4)
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/sopanpatra160[P]OOO_Superscalar_Processor_Simulator/cache.cc
// Function: cache::lru_block2evict(unsigned int)
unsigned int cache::lru_block2evict(unsigned int ind){

	unsigned int max=0;
	for(unsigned int j=0;j<a; j++){	
		if(lru_store[ind][max]<lru_store[ind][j])
			max=j;
	}
	return max;
}

// Assembly:
movl 0x18(%rdi), %ecx
testq %rcx, %rcx
je 0x2045
movq 0x40(%rdi), %rax
movl %esi, %edx
movq (%rax,%rdx,8), %rdx
xorl %esi, %esi
xorl %edi, %edi
movl %edi, %eax
movl (%rdx,%rax,4), %r8d
movl %esi, %eax
cmpl (%rdx,%rsi,4), %r8d
jb 0x203a
movl %edi, %eax
incq %rsi
movl %eax, %edi
cmpq %rsi, %rcx
jne 0x202a
retq
xorl %eax, %eax
retq
// File: /workspace/github_cpp_makefile_star2_O1/sopanpatra160[P]OOO_Superscalar_Processor_Simulator/cache.cc
// Function: cache::lfu_block2evict(unsigned int)
unsigned int cache::lfu_block2evict(unsigned int ind){
	unsigned int min=0;
	for(unsigned int j=0; j<a; j++){	
		if(lfu_block_store[ind][min]>lfu_block_store[ind][j])
			min=j;
	}
	return min;
}

// Assembly:
movl 0x18(%rdi), %ecx
testq %rcx, %rcx
je 0x2079
movq 0x48(%rdi), %rax
movl %esi, %edx
movq (%rax,%rdx,8), %rdx
xorl %esi, %esi
xorl %edi, %edi
movl %edi, %eax
movl (%rdx,%rax,4), %r8d
movl %esi, %eax
cmpl (%rdx,%rsi,4), %r8d
ja 0x206e
movl %edi, %eax
incq %rsi
movl %eax, %edi
cmpq %rsi, %rcx
jne 0x205e
retq
xorl %eax, %eax
retq