LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_cpp_makefile_star2_O2/menhits[P]phplus/src/utils/fileUtils.cpp
// Function: loadFile(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&)
void loadFile(string filepath, string& contents)
{
	std::fstream inFile;
	
	inFile.open(filepath);
	
	if (!inFile.is_open())
	{
		throw "tidak bisa membuka '"+filepath+"'";
	}
	else
	{
		stringstream strStream;
		strStream << inFile.rdbuf();//read the file
		contents = strStream.str();//str holds the content of the file
		inFile.close();
	}
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x3b8, %rsp            # imm = 0x3B8
movq %rsi, %rbx
movq %rdi, %r14
leaq 0x1a8(%rsp), %r15
movq %r15, %rdi
callq 0xa320
pushq $0x18
popq %rdx
movq %r15, %rdi
movq %r14, %rsi
callq 0xa3a0
leaq 0x228(%rsp), %rdi
callq 0xa0c0
testb %al, %al
je 0x4f783
leaq 0x20(%rsp), %rdi
callq 0xa220
leaq 0x30(%rsp), %rdi
leaq 0x1c0(%rsp), %rsi
callq 0xa0a0
leaq 0x38(%rsp), %rsi
movq %rsp, %rdi
callq 0xa480
movq %rsp, %r14
movq %rbx, %rdi
movq %r14, %rsi
callq 0xa350
movq %r14, %rdi
callq 0xa558
leaq 0x1a8(%rsp), %rdi
callq 0xa040
leaq 0x20(%rsp), %rdi
callq 0xa240
leaq 0x1a8(%rsp), %rdi
callq 0xa0b0
addq $0x3b8, %rsp            # imm = 0x3B8
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
pushq $0x20
popq %rdi
callq 0xa1b0
movq %rax, %rbx
leaq 0xac8a(%rip), %rsi      # 0x5a41f
leaq 0x20(%rsp), %rdi
movq %r14, %rdx
callq 0xc8a1
movb $0x1, %bpl
leaq 0x9aa6(%rip), %rdx      # 0x59252
leaq 0x20(%rsp), %rsi
movq %rbx, %rdi
callq 0xc882
xorl %ebp, %ebp
leaq 0x2919e(%rip), %rsi     # 0x78960
movq 0x2a7c7(%rip), %rdx     # 0x79f90
movq %rbx, %rdi
callq 0xa4e0
movq %rax, %r14
leaq 0x20(%rsp), %rdi
callq 0xa558
testb %bpl, %bpl
jne 0x4f7e8
jmp 0x4f808
movq %rax, %r14
movq %rbx, %rdi
callq 0xa230
jmp 0x4f808
jmp 0x4f7fb
jmp 0x4f7f6
movq %rax, %r14
jmp 0x4f808
movq %rax, %r14
leaq 0x20(%rsp), %rdi
callq 0xa240
leaq 0x1a8(%rsp), %rdi
callq 0xa0b0
movq %r14, %rdi
callq 0xa500
// File: /workspace/github_cpp_makefile_star2_O2/menhits[P]phplus/src/utils/fileUtils.cpp
// Function: writeFile(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)
void writeFile(string filepath, const string& contents)
{
	std::ofstream outFile;
	
	outFile.open(filepath);
	
	if (!outFile.is_open())
	{
		throw "error writing to '"+filepath+"'";
	}
	else
	{
		outFile << contents;
		
		outFile.close();
	}
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x228, %rsp            # imm = 0x228
movq %rsi, %rbx
movq %rdi, %r14
leaq 0x28(%rsp), %r15
movq %r15, %rdi
callq 0xa4d0
pushq $0x10
popq %rdx
movq %r15, %rdi
movq %r14, %rsi
callq 0xa190
leaq 0x98(%rsp), %rdi
callq 0xa0c0
testb %al, %al
je 0x4f88b
leaq 0x28(%rsp), %rdi
movq %rbx, %rsi
callq 0xa290
leaq 0x28(%rsp), %rdi
callq 0xa420
leaq 0x28(%rsp), %rdi
callq 0xa440
addq $0x228, %rsp            # imm = 0x228
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
pushq $0x20
popq %rdi
callq 0xa1b0
movq %rax, %rbx
leaq 0xab97(%rip), %rsi      # 0x5a434
leaq 0x8(%rsp), %rdi
movq %r14, %rdx
callq 0xc8a1
movb $0x1, %bpl
leaq 0x999e(%rip), %rdx      # 0x59252
leaq 0x8(%rsp), %rsi
movq %rbx, %rdi
callq 0xc882
xorl %ebp, %ebp
leaq 0x29096(%rip), %rsi     # 0x78960
movq 0x2a6bf(%rip), %rdx     # 0x79f90
movq %rbx, %rdi
callq 0xa4e0
movq %rax, %r14
leaq 0x8(%rsp), %rdi
callq 0xa558
testb %bpl, %bpl
jne 0x4f8f0
jmp 0x4f8fd
movq %rax, %r14
movq %rbx, %rdi
callq 0xa230
jmp 0x4f8fd
movq %rax, %r14
leaq 0x28(%rsp), %rdi
callq 0xa440
movq %r14, %rdi
callq 0xa500
nop
// File: /workspace/github_cpp_makefile_star2_O2/menhits[P]phplus/src/utils/stringArray.cpp
// Function: str::getMaxWidth(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>>>>&)
int getMaxWidth(vector<string>& in)
{
	int out=0;
	
	for (int i=0; i<(int)in.size(); i++)
	{
		int w=getWidth(in[i]);
		
		if (w>out)
			out=w;
	}
	
	return out;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
xorl %r14d, %r14d
xorl %r15d, %r15d
xorl %ebp, %ebp
movq (%rbx), %rdi
movq 0x8(%rbx), %rax
subq %rdi, %rax
shrq $0x5, %rax
cltq
cmpq %rax, %r15
jge 0x4f94d
addq %r14, %rdi
callq 0x4fb48
cmpl %ebp, %eax
cmovgl %eax, %ebp
incq %r15
addq $0x20, %r14
jmp 0x4f922
movl %ebp, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O2/menhits[P]phplus/src/utils/stringArray.cpp
// Function: str::padWidths(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>>>>&, int, str::StringPadAlignment, 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::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
void padWidths(vector<string>& out, int size, StringPadAlignment alignment, string pad, string leftCap, string rightCap)
{
	if (size<0)
	{
		size=getMaxWidth(out);
	}
	
	for (int i=0; i<(int)out.size(); i++)
	{
		out[i]=str::pad(out[i], size, alignment, pad, leftCap, rightCap);
	}
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xb8, %rsp
movq %r9, 0x18(%rsp)
movq %r8, 0x28(%rsp)
movq %rcx, 0x20(%rsp)
movl %edx, 0x14(%rsp)
movq %rdi, %r14
movl %esi, 0x10(%rsp)
testl %esi, %esi
jns 0x4f995
movq %r14, %rdi
callq 0x4f910
movl %eax, 0x10(%rsp)
xorl %r15d, %r15d
xorl %ecx, %ecx
movq (%r14), %r13
movq 0x8(%r14), %rax
subq %r13, %rax
shrq $0x5, %rax
cltq
cmpq %rax, %rcx
jge 0x4fa67
movq %r14, %rbx
movq %rcx, 0x30(%rsp)
leaq 0x78(%rsp), %rdi
movq 0x20(%rsp), %rsi
callq 0xa3b0
leaq 0x58(%rsp), %rdi
movq 0x28(%rsp), %rsi
callq 0xa3b0
leaq 0x38(%rsp), %r14
movq %r14, %rdi
movq 0x18(%rsp), %rsi
callq 0xa3b0
leaq 0x98(%rsp), %rdi
addq %r15, %r13
movq %r14, (%rsp)
movq %r13, %rsi
movl 0x10(%rsp), %edx
movl 0x14(%rsp), %ecx
leaq 0x78(%rsp), %r13
movq %r13, %r8
movq %rdi, %r12
movq %r15, %rbp
leaq 0x58(%rsp), %r15
movq %r15, %r9
callq 0x535ca
movq %rbx, %r14
movq (%rbx), %rdi
addq %rbp, %rdi
movq %r12, %rsi
callq 0xa350
movq %r12, %rdi
callq 0xa558
leaq 0x38(%rsp), %rdi
callq 0xa558
movq %r15, %rdi
callq 0xa558
movq %r13, %rdi
callq 0xa558
movq 0x30(%rsp), %rcx
incq %rcx
addq $0x20, %rbp
movq %rbp, %r15
jmp 0x4f99a
addq $0xb8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
leaq 0x38(%rsp), %rdi
callq 0xa558
jmp 0x4fa8b
movq %rax, %rbx
leaq 0x58(%rsp), %rdi
callq 0xa558
jmp 0x4fa9a
movq %rax, %rbx
leaq 0x78(%rsp), %rdi
callq 0xa558
movq %rbx, %rdi
callq 0xa500
// File: /workspace/github_cpp_makefile_star2_O2/menhits[P]phplus/src/utils/stringArray.cpp
// Function: str::join(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>>>>&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool)
string join(vector<string>& in, string joiner, bool addAtEnd)
{
	string out;
	
	for (int i=0; i<(int)in.size(); i++)
	{
		out+=in[i];
		
		if (addAtEnd || i!=(int)in.size()-1)
			out+=joiner;
	}
	
	return out;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl %ecx, %ebp
movq %rdx, %r14
movq %rdi, %rbx
leaq 0x10(%rdi), %rax
movq %rax, (%rdi)
andq $0x0, 0x8(%rdi)
movq %rsi, %r15
movb $0x0, 0x10(%rdi)
xorl %r12d, %r12d
xorl %r13d, %r13d
movq (%r15), %rsi
movq 0x8(%r15), %rax
subq %rsi, %rax
shrq $0x5, %rax
cltq
cmpq %rax, %r13
jge 0x4fb23
addq %r12, %rsi
movq %rbx, %rdi
callq 0xa540
testb %bpl, %bpl
jne 0x4fb0f
movq 0x8(%r15), %rax
subq (%r15), %rax
shrq $0x5, %rax
decl %eax
cmpq %rax, %r13
je 0x4fb1a
movq %rbx, %rdi
movq %r14, %rsi
callq 0xa540
incq %r13
addq $0x20, %r12
jmp 0x4fad8
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
callq 0xa558
movq %r14, %rdi
callq 0xa500
// File: /workspace/github_cpp_makefile_star2_O2/menhits[P]phplus/src/utils/../../h/utils/stringUtils.h
// Function: str::getWidth(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)
inline int getWidth(const string& in)
{
	int glyphPos=0;
	int bytePos=0;
	
	while (bytePos<(int)in.size())
	{
		nextGlyph(bytePos, in);
		glyphPos++;
	}
	
	return glyphPos;
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
subq $0x10, %rsp
leaq 0xc(%rsp), %rbx
andl $0x0, (%rbx)
movq %rdi, %r14
xorl %eax, %eax
xorl %ebp, %ebp
cmpl 0x8(%r14), %eax
jge 0x4fb78
movq %rbx, %rdi
movq %r14, %rsi
callq 0x4fb83
incl %ebp
movl 0xc(%rsp), %eax
jmp 0x4fb5f
movl %ebp, %eax
addq $0x10, %rsp
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O2/menhits[P]phplus/src/utils/stringDrawing.cpp
// Function: str::putStringInTreeNodeBox(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)
string putStringInTreeNodeBox(const string& in)
{
	vector<string> ary;
	splitByLine(ary, in);
	putArrayInTreeNodeBox(ary);
	return join(ary);
}

// Assembly:
pushq %rbx
subq $0x50, %rsp
movq %rdi, %rbx
xorps %xmm0, %xmm0
leaq 0x10(%rsp), %rdi
movaps %xmm0, (%rdi)
andq $0x0, 0x10(%rdi)
callq 0x53173
leaq 0x10(%rsp), %rdi
callq 0x507ac
leaq 0x4350(%rip), %rsi      # 0x54ef8
leaq 0x30(%rsp), %rdi
leaq 0xf(%rsp), %rdx
callq 0xa150
leaq 0x10(%rsp), %rsi
leaq 0x30(%rsp), %rdx
pushq $0x1
popq %rcx
movq %rbx, %rdi
callq 0x4faac
leaq 0x30(%rsp), %rdi
callq 0xa558
leaq 0x10(%rsp), %rdi
callq 0x11670
movq %rbx, %rax
addq $0x50, %rsp
popq %rbx
retq
movq %rax, %rbx
leaq 0x30(%rsp), %rdi
callq 0xa558
jmp 0x50bfd
jmp 0x50bfa
movq %rax, %rbx
leaq 0x10(%rsp), %rdi
callq 0x11670
movq %rbx, %rdi
callq 0xa500
// File: /workspace/github_cpp_makefile_star2_O2/menhits[P]phplus/src/utils/../../h/utils/stringUtils.h
// Function: str::seek(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, int, int)
inline int seek(const string& in, int distGlyph, int startPosByte)
{
	int i=startPosByte;
	
	while (distGlyph>0)
	{
		nextGlyph(i, in);
		
		distGlyph--;
	}
	
	return i;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x10, %rsp
movl %esi, %ebx
movq %rdi, %r14
leaq 0xc(%rsp), %r15
movl %edx, (%r15)
testl %ebx, %ebx
jle 0x5325e
movq %r15, %rdi
movq %r14, %rsi
callq 0x4fb83
decl %ebx
jmp 0x5324b
movl 0xc(%rsp), %eax
addq $0x10, %rsp
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O2/menhits[P]phplus/src/utils/stringNumConversion.cpp
// Function: str::charToCppStringLiteralEscaped[abi:cxx11](unsigned char)
string charToCppStringLiteralEscaped(unsigned char c)
{
	string out="\\";
	
	for (int i=0; i<3; i++)
	{
		out+=c%8+'0';
		c/=8;
	}
	
	return out;
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
subq $0x10, %rsp
movl %esi, %ebp
movq %rdi, %rbx
leaq 0x1e0e(%rip), %rsi      # 0x551ea
leaq 0xf(%rsp), %rdx
callq 0xa150
pushq $0x3
popq %r14
subl $0x1, %r14d
jb 0x53407
movl %ebp, %eax
andb $0x7, %al
orb $0x30, %al
movzbl %al, %esi
movq %rbx, %rdi
callq 0xa270
shrb $0x3, %bpl
jmp 0x533ea
movq %rbx, %rax
addq $0x10, %rsp
popq %rbx
popq %r14
popq %rbp
retq
movq %rax, %r14
movq %rbx, %rdi
callq 0xa558
movq %r14, %rdi
callq 0xa500
// File: /workspace/github_cpp_makefile_star2_O2/menhits[P]phplus/src/utils/stringNumConversion.cpp
// Function: str::intToBase62[abi:cxx11](unsigned int, int)
string intToBase62(unsigned int num, int maxDigits)
{
	int i=0;
	string out;
	
	while (num!=0 && (maxDigits<0 || i<maxDigits))
	{
		unsigned int digit=num%62;
		
		if (digit<10)
		{
			out+=(char)(digit+'0');
		}
		else if (digit<10+26)
		{
			out+=(char)(digit-10+'a');
		}
		else if (digit<10+26+26)
		{
			out+=(char)(digit-10-26+'A');
		}
		else
		{
			out+="_"; // this shouldn't happen
		}
		
		num/=62;
		i++;
	}
	
	return out;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movl %edx, %ebp
movq %rdi, %rbx
leaq 0x10(%rdi), %rax
movq %rax, (%rdi)
andq $0x0, 0x8(%rdi)
movl %esi, %r14d
movb $0x0, 0x10(%rdi)
xorl %r15d, %r15d
pushq $0x3e
popq %r12
testl %ebp, %ebp
sets %al
cmpl %ebp, %r15d
setl %cl
testl %r14d, %r14d
je 0x53493
orb %cl, %al
je 0x53493
movl %r14d, %eax
xorl %edx, %edx
divl %r12d
movl %eax, %r14d
cmpl $0x9, %edx
ja 0x53476
orb $0x30, %dl
jmp 0x53483
cmpl $0x23, %edx
ja 0x53480
addl $0x57, %edx
jmp 0x53483
addl $0x1d, %edx
movsbl %dl, %esi
movq %rbx, %rdi
callq 0xa270
incl %r15d
jmp 0x5344d
movq %rbx, %rax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r14
movq %rbx, %rdi
callq 0xa558
movq %r14, %rdi
callq 0xa500
// File: /workspace/github_cpp_makefile_star2_O2/menhits[P]phplus/src/utils/stringUtils.cpp
// Function: str::splitBy(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>>>>&, 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>> const&, bool)
void splitBy(vector<string>& out, const string& in, const string& splitter, bool keepSplitter)
{
	int i=0;
	int start=0;
	
	while (i<=(int)in.size()-(int)splitter.size())
	{
		if (subMatches(in, i, splitter))
		{
			if (keepSplitter)
				nextGlyph(i, in);
			
			out.push_back(in.substr(start, i-start));
			
			if (!keepSplitter)
				nextGlyph(i, in);
			
			start=i;
		}
		else
		{
			nextGlyph(i, in);
		}
	}
	
	if ((int)in.size()!=start)
		out.push_back(in.substr(start, in.size()-start));
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movl %ecx, %ebp
movq %rdx, %r15
leaq 0xc(%rsp), %r12
andl $0x0, (%r12)
movq %rsi, %r14
movq %rdi, 0x10(%rsp)
xorl %ebx, %ebx
movl %ebx, %esi
movq 0x8(%r14), %rcx
movl %ecx, %eax
subl 0x8(%r15), %eax
movslq %ebx, %r13
cmpl %eax, %esi
jg 0x53573
movq %r14, %rdi
movq %r15, %rdx
callq 0x3d9ca
testb %al, %al
jne 0x5351a
movq %r12, %rdi
movq %r14, %rsi
callq 0x4fb83
movl 0xc(%rsp), %esi
jmp 0x534e9
testb %bpl, %bpl
je 0x5352a
movq %r12, %rdi
movq %r14, %rsi
callq 0x4fb83
movslq 0xc(%rsp), %rcx
subq %r13, %rcx
leaq 0x18(%rsp), %rbx
movq %rbx, %rdi
movq %r14, %rsi
movq %r13, %rdx
callq 0xa2d0
movq 0x10(%rsp), %rdi
movq %rbx, %rsi
callq 0x13632
movq %rbx, %rdi
callq 0xa558
testb %bpl, %bpl
jne 0x5356a
movq %r12, %rdi
movq %r14, %rsi
callq 0x4fb83
movl 0xc(%rsp), %ebx
jmp 0x534e7
cmpl %ecx, %ebx
je 0x535a4
subq %r13, %rcx
leaq 0x18(%rsp), %r15
movq %r15, %rdi
movq %r14, %rsi
movq %r13, %rdx
callq 0xa2d0
movq 0x10(%rsp), %rdi
movq %r15, %rsi
callq 0x13632
leaq 0x18(%rsp), %rdi
callq 0xa558
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x535b5
movq %rax, %rbx
leaq 0x18(%rsp), %rdi
callq 0xa558
movq %rbx, %rdi
callq 0xa500
// File: /workspace/github_cpp_makefile_star2_O2/menhits[P]phplus/src/utils/stringUtils.cpp
// Function: str::getGlyphPosOf(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>>)
int getGlyphPosOf(const string& in, string pattern)
{
	int glyph=0;
	int byte=0;
	
	while (byte<(int)in.size())
	{
		if (subMatches(in, byte, pattern))
			return glyph;
		
		nextGlyph(byte, in);
		glyph++;
	}
	
	return -1;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x10, %rsp
movq %rsi, %r14
leaq 0xc(%rsp), %r15
andl $0x0, (%r15)
movq %rdi, %r12
xorl %esi, %esi
pushq $-0x1
popq %rbx
xorl %ebp, %ebp
cmpl 0x8(%r12), %esi
jge 0x53cd4
movq %r12, %rdi
movq %r14, %rdx
callq 0x3d9ca
testb %al, %al
jne 0x53cd2
movq %r15, %rdi
movq %r12, %rsi
callq 0x4fb83
incl %ebp
movl 0xc(%rsp), %esi
jmp 0x53ca9
movl %ebp, %ebx
movl %ebx, %eax
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O2/iZhangHui[P]CppPrimer/CH08_TheIOLibrary/examples/sstream.cc
// Function: getData(std::istream&)
vector<PersonInfo>
getData(istream &is)
{
	// will hold a line and word from input, respectively
	string line, word;

	// will hold all the records from the input
	vector<PersonInfo> people;

	// read the input a line at a time until end-of-file (or other error)
	while (getline(is, line)) {       
		PersonInfo info;            // object to hold this record's data
	    istringstream record(line); // bind record to the line we just read
		record >> info.name;        // read the name
	    while (record >> word)      // read the phone numbers 
			info.phones.push_back(word);  // and store them
		people.push_back(info); // append this record to people
	}
	
	return people;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x208, %rsp            # imm = 0x208
movq %rsi, -0x38(%rbp)
leaq -0xa0(%rbp), %rax
movq %rax, -0x10(%rax)
andq $0x0, -0x8(%rax)
xorl %ecx, %ecx
movb %cl, (%rax)
leaq -0x80(%rbp), %rax
movq %rax, -0x10(%rax)
andq $0x0, -0x8(%rax)
movb %cl, (%rax)
xorps %xmm0, %xmm0
andq $0x0, 0x10(%rdi)
movq %rdi, -0x30(%rbp)
movups %xmm0, (%rdi)
leaq -0x50(%rbp), %r15
leaq -0xb0(%rbp), %r12
leaq -0x230(%rbp), %r13
leaq -0x70(%rbp), %rbx
leaq -0x90(%rbp), %r14
movq -0x38(%rbp), %rdi
movq %r12, %rsi
callq 0x2030
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
testb $0x5, 0x20(%rax,%rcx)
jne 0x241a
leaq -0x60(%rbp), %rax
movq %rax, -0x70(%rbp)
andq $0x0, -0x68(%rbp)
movb $0x0, -0x60(%rbp)
xorps %xmm0, %xmm0
movups %xmm0, (%r15)
andq $0x0, 0x10(%r15)
movq %r13, %rdi
movq %r12, %rsi
pushq $0x8
popq %rdx
callq 0x21a0
movq %r13, %rdi
movq %rbx, %rsi
callq 0x2120
movq %r13, %rdi
movq %r14, %rsi
callq 0x2120
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
testb $0x5, 0x20(%rax,%rcx)
jne 0x23f9
movq %r15, %rdi
movq %r14, %rsi
callq 0x26b6
jmp 0x23d3
movq -0x30(%rbp), %rdi
movq %rbx, %rsi
callq 0x26f2
movq %r13, %rdi
callq 0x2090
movq %rbx, %rdi
callq 0x272e
jmp 0x2383
leaq -0x90(%rbp), %rdi
callq 0x2080
leaq -0xb0(%rbp), %rdi
callq 0x2080
movq -0x30(%rbp), %rax
addq $0x208, %rsp            # imm = 0x208
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
jmp 0x2463
movq %rax, %rbx
jmp 0x246c
jmp 0x2454
movq %rax, %rbx
leaq -0x230(%rbp), %rdi
callq 0x2090
leaq -0x70(%rbp), %rdi
callq 0x272e
movq -0x30(%rbp), %rdi
callq 0x274e
leaq -0x90(%rbp), %rdi
callq 0x2080
leaq -0xb0(%rbp), %rdi
callq 0x2080
movq %rbx, %rdi
callq 0x21b0
// File: /workspace/github_cpp_makefile_star2_O2/iZhangHui[P]CppPrimer/CH08_TheIOLibrary/examples/sstream.cc
// Function: process(std::ostream&, std::vector<PersonInfo, std::allocator<PersonInfo>>)
ostream& process(ostream &os, vector<PersonInfo> people)
{
	for (const auto &entry : people) {    // for each entry in people
		ostringstream formatted, badNums; // objects created on each loop
		for (const auto &nums : entry.phones) {  // for each number 
			if (!valid(nums)) {           
				badNums << " " << nums;  // string in badNums
			} else                        
				// ``writes'' to formatted's string
				formatted << " " << format(nums); 
		}
		if (badNums.str().empty())      // there were no bad numbers
			os << entry.name << " "     // print the name 
			   << formatted.str() << endl; // and reformatted numbers 
		else                   // otherwise, print the name and bad numbers
			cerr << "input error: " << entry.name 
			     << " invalid number(s) " << badNums.str() << endl;
	}
	
	return os;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x328, %rsp            # imm = 0x328
movq %rdi, -0x38(%rbp)
movq (%rsi), %rax
movq 0x8(%rsi), %rcx
movq %rcx, -0x40(%rbp)
leaq -0x350(%rbp), %r13
leaq -0x60(%rbp), %rbx
movq %rax, -0x30(%rbp)
cmpq -0x40(%rbp), %rax
je 0x260b
movq %r13, %rdi
callq 0x2140
leaq -0x1d8(%rbp), %rdi
callq 0x2140
movq -0x30(%rbp), %rax
movq 0x20(%rax), %r12
movq 0x28(%rax), %r15
cmpq %r15, %r12
je 0x252c
movq %r13, %rdi
leaq 0xb40(%rip), %rsi       # 0x3040
callq 0x20f0
movq %rax, %r14
movq %rbx, %rdi
movq %r12, %rsi
callq 0x2150
movq %r14, %rdi
movq %rbx, %rsi
callq 0x20e0
movq %rbx, %rdi
callq 0x2080
addq $0x20, %r12
jmp 0x24f1
movq %rbx, %rdi
leaq -0x1d0(%rbp), %rsi
callq 0x2180
movq -0x58(%rbp), %r14
movq %rbx, %rdi
callq 0x2080
testq %r14, %r14
je 0x25a1
movq 0x2a9d(%rip), %rdi      # 0x4ff0
leaq 0xac6(%rip), %rsi       # 0x3020
callq 0x20f0
movq %rax, %rdi
movq -0x30(%rbp), %rsi
callq 0x20e0
movq %rax, %rdi
leaq 0xab9(%rip), %rsi       # 0x302e
callq 0x20f0
movq %rax, %r12
movq %rbx, %rdi
leaq -0x1d0(%rbp), %rsi
callq 0x2180
movq %r12, %rdi
movq %rbx, %rsi
callq 0x20e0
movq %rax, %rdi
callq 0x20a0
jmp 0x25e2
movq -0x38(%rbp), %rdi
movq -0x30(%rbp), %rsi
callq 0x20e0
movq %rax, %rdi
leaq 0xa88(%rip), %rsi       # 0x3040
callq 0x20f0
movq %rax, %r12
movq %rbx, %rdi
leaq -0x348(%rbp), %rsi
callq 0x2180
movq %r12, %rdi
movq %rbx, %rsi
callq 0x20e0
movq %rax, %rdi
callq 0x20a0
movq %rbx, %rdi
callq 0x2080
leaq -0x1d8(%rbp), %rdi
callq 0x2040
movq %r13, %rdi
callq 0x2040
movq -0x30(%rbp), %rax
addq $0x38, %rax
jmp 0x24c3
movq -0x38(%rbp), %rax
addq $0x328, %rsp            # imm = 0x328
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x2634
jmp 0x2634
jmp 0x2639
jmp 0x2634
movq %rax, %rbx
jmp 0x2651
jmp 0x2639
jmp 0x2634
jmp 0x2634
movq %rax, %rbx
jmp 0x2645
movq %rax, %rbx
leaq -0x60(%rbp), %rdi
callq 0x2080
leaq -0x1d8(%rbp), %rdi
callq 0x2040
leaq -0x350(%rbp), %rdi
callq 0x2040
movq %rbx, %rdi
callq 0x21b0
// File: /workspace/github_cpp_makefile_star2_O2/aronszanto[P]strassen/main.cpp
// Function: initMatrix(Matrix*, int)
void initMatrix(Matrix* M, int dimension){
    M->dimension = dimension;
    M->matrix.resize(dimension);
    for (int i = 0; i < dimension; i++){
        M->matrix[i].resize(dimension);
    }
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
movl %esi, (%rdi)
addq $0x8, %rbx
movslq %esi, %r14
movq %rbx, %rdi
movq %r14, %rsi
callq 0x68a2
xorl %r15d, %r15d
testl %r14d, %r14d
movl $0x0, %eax
cmovgl %r14d, %eax
imulq $0x18, %rax, %r12
cmpq %r15, %r12
je 0x2417
movq (%rbx), %rdi
addq %r15, %rdi
movq %r14, %rsi
callq 0x68d8
addq $0x18, %r15
jmp 0x23fe
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O2/aronszanto[P]strassen/main.cpp
// Function: printMatrix(Matrix&)
void printMatrix(Matrix& A){
    for (int i = 0; i < A.dimension; i ++){
        for (int j = 0; j < A.dimension; j++){
            cout << A.matrix[i][j] << " ";
        }
        cout << endl;
    }
    cout << endl;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
xorl %r12d, %r12d
movq 0xcb95(%rip), %r14      # 0xefd0
leaq 0x7776(%rip), %r15      # 0x9bb8
movslq (%rbx), %rax
cmpq %rax, %r12
jge 0x2489
imulq $0x18, %r12, %r13
xorl %ebp, %ebp
cltq
cmpq %rax, %rbp
jge 0x247c
movq 0x8(%rbx), %rax
movq (%rax,%r13), %rax
movl (%rax,%rbp,4), %esi
movq %r14, %rdi
callq 0x2260
movq %rax, %rdi
movq %r15, %rsi
callq 0x2180
incq %rbp
movl (%rbx), %eax
jmp 0x2450
movq %r14, %rdi
callq 0x20e0
incq %r12
jmp 0x2442
movq 0xcb40(%rip), %rdi      # 0xefd0
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x20e0
// File: /workspace/github_cpp_makefile_star2_O2/aronszanto[P]strassen/main.cpp
// Function: isEqual(Matrix*, Matrix*)
bool isEqual(Matrix* A, Matrix* B){
    if (A->dimension != B->dimension) {
        return false;
    }
    else
    {
        for (int i = 0; i < A->dimension; ++i) {
            for (int j = 0; j < A->dimension; ++j) {
                if (A->matrix[i][j] != B->matrix[i][j]){
                    return false;
                }
            }
        }
        return true;
    }
}

// Assembly:
movl (%rdi), %ecx
xorl %eax, %eax
cmpl (%rsi), %ecx
jne 0x24fb
pushq %r14
pushq %rbx
movslq %ecx, %rdx
testl %ecx, %ecx
movl $0x0, %r8d
cmovgl %ecx, %r8d
cmpq %r8, %rax
je 0x24fc
imulq $0x18, %rax, %r9
xorl %r10d, %r10d
cmpq %r10, %rcx
je 0x24f1
movq 0x8(%rdi), %r11
movq (%r11,%r9), %r11
movl (%r11,%r10,4), %r11d
movq 0x8(%rsi), %rbx
movq (%rbx,%r9), %rbx
leaq 0x1(%r10), %r14
cmpl (%rbx,%r10,4), %r11d
movq %r14, %r10
je 0x24c9
jmp 0x24f6
incq %rax
jmp 0x24bd
xorl %eax, %eax
popq %rbx
popq %r14
retq
cmpq %rdx, %rax
setge %al
jmp 0x24f8
// File: /workspace/github_cpp_makefile_star2_O2/aronszanto[P]strassen/main.cpp
// Function: findOptDim(int, int)
int findOptDim(int n, int convThreshold){
    int counter = 0;
    while (n > convThreshold){
        if (n%2 == 0)
            n /= 2;
        else
            n = (n+1)/2;
        counter ++;
    }
    return n*pow(2,counter);
}

// Assembly:
movl %edi, %eax
xorl %edi, %edi
cmpl %esi, %eax
jle 0x251b
movl %eax, %ecx
andl $0x1, %ecx
addl %eax, %ecx
sarl %ecx
incl %edi
movl %ecx, %eax
jmp 0x2508
pushq %rax
cvtsi2sd %eax, %xmm0
movsd %xmm0, (%rsp)
movsd 0x6adb(%rip), %xmm0     # 0x9008
callq 0x2230
mulsd (%rsp), %xmm0
cvttsd2si %xmm0, %eax
popq %rcx
retq
// File: /workspace/github_cpp_makefile_star2_O2/aronszanto[P]strassen/main.cpp
// Function: initPadding(Matrix*, int)
void initPadding(Matrix* M, int newdim){
    M->dimension = newdim;

    M->matrix.resize(newdim);
    for (int i = 0; i < newdim; i++){
        M->matrix[i].resize(newdim);
    }
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
movl %esi, (%rdi)
addq $0x8, %rbx
movslq %esi, %r14
movq %rbx, %rdi
movq %r14, %rsi
callq 0x68a2
xorl %r15d, %r15d
testl %r14d, %r14d
movl $0x0, %eax
cmovgl %r14d, %eax
imulq $0x18, %rax, %r12
cmpq %r15, %r12
je 0x2588
movq (%rbx), %rdi
addq %r15, %rdi
movq %r14, %rsi
callq 0x68d8
addq $0x18, %r15
jmp 0x256f
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O2/aronszanto[P]strassen/main.cpp
// Function: removePadding(Matrix*, int)
void removePadding(Matrix* M, int newdim){
    M->dimension = newdim;

    M->matrix.resize(newdim);
    for (int i = 0; i < newdim; i++){
        M->matrix[i].resize(newdim);
    }
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
movl %esi, (%rdi)
addq $0x8, %rbx
movslq %esi, %r14
movq %rbx, %rdi
movq %r14, %rsi
callq 0x68a2
xorl %r15d, %r15d
testl %r14d, %r14d
movl $0x0, %eax
cmovgl %r14d, %eax
imulq $0x18, %rax, %r12
cmpq %r15, %r12
je 0x25df
movq (%rbx), %rdi
addq %r15, %rdi
movq %r14, %rsi
callq 0x68d8
addq $0x18, %r15
jmp 0x25c6
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O2/aronszanto[P]strassen/main.cpp
// Function: convMult(Matrix*, Matrix*, Matrix*, int, int, int, int, int, int, int)
void convMult(Matrix* A, Matrix* B, Matrix* C, int topA, int leftA, int topB, int leftB, int topC, int leftC, int dimension) {
    for (int i = 0; i < dimension; ++i)
		for (int k = 0; k < dimension; ++k)
			for (int j = 0; j < dimension; ++j)
                if (k == 0) 
                    C->matrix[topC + i][leftC + j] = A->matrix[topA + i][leftA + k] * B->matrix[topB + k][leftB + j]; 
				else
                    C->matrix[topC + i][leftC + j] += A->matrix[topA + i][leftA + k] * B->matrix[topB + k][leftB + j];
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movl %r9d, %eax
movl %ecx, %r10d
movl 0x50(%rsp), %r9d
movslq 0x48(%rsp), %rcx
movq %rcx, -0x8(%rsp)
movslq 0x38(%rsp), %rbx
movslq 0x40(%rsp), %rcx
movq %rcx, -0x20(%rsp)
movslq %r8d, %r8
cltq
movslq %r10d, %rcx
xorl %r10d, %r10d
testl %r9d, %r9d
movl $0x0, %r11d
cmovgl %r9d, %r11d
movq %r11, -0x18(%rsp)
imulq $0x18, %rcx, %r14
imulq $0x18, %rax, %r15
cmpq -0x18(%rsp), %r10
je 0x2854
movq -0x20(%rsp), %rax
addq %r10, %rax
movq %r10, -0x10(%rsp)
imulq $0x18, %r10, %r12
imulq $0x18, %rax, %r13
xorl %ebp, %ebp
movl 0x50(%rsp), %ecx
movq %rcx, %rax
movq %rbx, %r11
movq -0x8(%rsp), %r10
cmpq %rcx, %rbp
jne 0x283c
jmp 0x2847
movq 0x8(%rdi), %rcx
addq %r12, %rcx
movq (%r14,%rcx), %rcx
testq %rbp, %rbp
je 0x2819
leaq (%rcx,%rbp,4), %rcx
imulq $0x18, %rbp, %r9
addq 0x8(%rsi), %r9
movq (%r15,%r9), %r9
movl (%r9,%r11,4), %r9d
imull (%rcx,%r8,4), %r9d
movq 0x8(%rdx), %rcx
movq (%rcx,%r13), %rcx
addl %r9d, (%rcx,%r10,4)
jmp 0x2836
movq 0x8(%rsi), %r9
movq (%r9,%r15), %r9
movl (%r9,%r11,4), %r9d
imull (%rcx,%r8,4), %r9d
movq 0x8(%rdx), %rcx
movq (%rcx,%r13), %rcx
movl %r9d, (%rcx,%r10,4)
incq %r10
incq %r11
subq $0x1, %rax
jae 0x27e2
incq %rbp
jmp 0x27cc
movq -0x10(%rsp), %r10
incq %r10
jmp 0x27aa
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O2/aronszanto[P]strassen/main.cpp
// Function: multiply(Matrix*, Matrix*, Matrix*, int, int, int, int, int, int, int)
void multiply(Matrix* A, Matrix* B, Matrix* C, int topA, int leftA, int topB, int leftB, int topC, int leftC, int dimension){
    if (dimension > convThreshold) {
        if (dimension > threadThresh)
            strassenMultThread(A, B, C, topA, leftA, topB, leftB, topC, leftC, dimension);
        else
            strassenMult(A, B, C, topA, leftA, topB, leftB, topC, leftC, dimension);
        
    }
    else
        convMult(A, B, C, topA, leftA, topB, leftB, topC, leftC, dimension);
}

// Assembly:
pushq %rbx
movl 0x28(%rsp), %ebx
cmpl %ebx, 0xc3d2(%rip)      # 0xf170
jge 0x2dc3
movl 0x20(%rsp), %r11d
movl 0x18(%rsp), %r10d
movl 0x10(%rsp), %eax
cmpl %ebx, 0xc3b8(%rip)      # 0xf16c
jge 0x2dc9
pushq %rbx
pushq %r11
pushq %r10
pushq %rax
callq 0x2dda
jmp 0x2dd4
popq %rbx
jmp 0x2757
pushq %rbx
pushq %r11
pushq %r10
pushq %rax
callq 0x285f
addq $0x20, %rsp
popq %rbx
retq
// File: /workspace/github_cpp_makefile_star2_O2/aronszanto[P]strassen/main.cpp
// Function: multiply(Matrix*, Matrix*)
Matrix* multiply(Matrix* A, Matrix* B){
    if (A->dimension != B->dimension)
        return NULL;
    int dimension = A->dimension;
    Matrix* C = new Matrix();
    initMatrix(C, A->dimension);
    
    int padding = findOptDim(dimension, convThreshold);
    initPadding(A, padding);
    initPadding(B, padding);
    initPadding(C, padding);
    multiply(A,B,C,0,0,0,0,0,0,padding);
    
    removePadding(A, dimension);
    removePadding(B, dimension);
    removePadding(C, dimension);
    return C;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x20, %rsp
movl (%rdi), %ebp
cmpl (%rsi), %ebp
jne 0x3816
movq %rsi, %r14
movq %rdi, %r15
pushq $0x20
popq %rdi
callq 0x2190
movq %rax, %rbx
xorps %xmm0, %xmm0
movaps %xmm0, (%rax)
movaps %xmm0, 0x10(%rax)
movq %rax, %rdi
movl %ebp, %esi
callq 0x23cc
movl 0xb9cd(%rip), %esi      # 0xf170
movl %ebp, %edi
callq 0x2504
movl %eax, %r12d
movq %r15, %rdi
movl %eax, %esi
callq 0x253d
movq %r14, %rdi
movl %r12d, %esi
callq 0x253d
movq %rbx, %rdi
movl %r12d, %esi
callq 0x253d
andl $0x0, 0x10(%rsp)
andl $0x0, 0x8(%rsp)
andl $0x0, (%rsp)
movl %r12d, 0x18(%rsp)
movq %r15, %rdi
movq %r14, %rsi
movq %rbx, %rdx
xorl %ecx, %ecx
xorl %r8d, %r8d
xorl %r9d, %r9d
callq 0x2d93
movq %r15, %rdi
movl %ebp, %esi
callq 0x2594
movq %r14, %rdi
movl %ebp, %esi
callq 0x2594
movq %rbx, %rdi
movl %ebp, %esi
callq 0x2594
jmp 0x3818
xorl %ebx, %ebx
movq %rbx, %rax
addq $0x20, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O2/aronszanto[P]strassen/main.cpp
// Function: populateRandomMatrix(Matrix*, int, int)
void populateRandomMatrix(Matrix* M, int low, int high){
    random_device r;
    mt19937 mtgen(r());
    uniform_int_distribution<> dist(low,high);
    for (int i = 0; i < M->dimension; i++)
        for (int j = 0; j < M->dimension; j++)
            M->matrix[i][j] = dist(mtgen);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x2718, %rsp           # imm = 0x2718
movl %edx, %ebp
movl %esi, %r15d
movq %rdi, %rbx
leaq 0x8(%rsp), %r14
movq %r14, %rdi
callq 0x70fc
movq %r14, %rdi
callq 0x21b0
movl %eax, %esi
leaq 0x1390(%rsp), %rdi
callq 0x83bc
movq %rsp, %r14
movl %r15d, (%r14)
movl %ebp, 0x4(%r14)
movl (%rbx), %eax
xorl %r12d, %r12d
leaq 0x1390(%rsp), %r15
movslq %eax, %rcx
cmpq %rcx, %r12
jge 0x38b4
imulq $0x18, %r12, %r13
xorl %ebp, %ebp
movslq %eax, %rcx
cmpq %rcx, %rbp
jge 0x38af
movq %r14, %rdi
movq %r15, %rsi
callq 0x7152
movq 0x8(%rbx), %rcx
movq (%rcx,%r13), %rcx
movl %eax, (%rcx,%rbp,4)
incq %rbp
movl (%rbx), %eax
jmp 0x388a
incq %r12
jmp 0x387c
leaq 0x8(%rsp), %rdi
callq 0x715a
addq $0x2718, %rsp           # imm = 0x2718
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x38d2
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
callq 0x715a
movq %rbx, %rdi
callq 0x2270
// File: /workspace/github_cpp_makefile_star2_O2/aronszanto[P]strassen/main.cpp
// Function: findOptimalconvThreshold()
void findOptimalconvThreshold() {

    for (convThreshold = 8; convThreshold <= 256; convThreshold*=2){
    //for (convThreshold = 2; convThreshold <= 64; convThreshold++){    

        
        
        double total = 0;
        //cout << "multiplying matrices, n = " << i << endl;
        for (int j = 0; j < 5; j ++){
            Matrix* m1 = new Matrix();
            Matrix* m2 = new Matrix();
            initMatrix(m1, 256);
            initMatrix(m2, 256);
            //cout << "populating m1" << endl;
            populateRandomMatrix(m1, 0, 1);
            //cout << "populating m2" << endl;
            populateRandomMatrix(m2, 0, 1);
            clock_t start;
            start = clock();
            
            Matrix* m3 = multiply(m1, m2);
            total += (std::clock() - start) / (double)(CLOCKS_PER_SEC);
            delete(m1);
            delete(m2);
            delete(m3);
        }

        cout << convThreshold << "\t" << total / 5 << endl;

        //cout << "finished multiplying.\n" << endl;
        
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
pushq $0x8
popq %rax
movl %eax, 0xb872(%rip)      # 0xf170
cmpl $0x100, %eax            # imm = 0x100
jg 0x3a5a
xorps %xmm0, %xmm0
movsd %xmm0, (%rsp)
pushq $0x5
popq %rbx
subl $0x1, %ebx
jb 0x3a0f
pushq $0x20
popq %r14
movq %r14, %rdi
callq 0x2190
movq %rax, %r12
addq $0x8, %rax
movq %rax, 0x10(%rsp)
xorps %xmm0, %xmm0
movaps %xmm0, (%r12)
movaps %xmm0, 0x10(%r12)
movq %r14, %rdi
callq 0x2190
movq %rax, %r13
leaq 0x8(%rax), %r14
xorps %xmm0, %xmm0
movaps %xmm0, (%rax)
movaps %xmm0, 0x10(%rax)
movq %r12, %rdi
movl $0x100, %esi            # imm = 0x100
callq 0x23cc
movq %r13, %rdi
movl $0x100, %esi            # imm = 0x100
callq 0x23cc
movq %r12, %rdi
xorl %esi, %esi
pushq $0x1
popq %rbp
movl %ebp, %edx
callq 0x3828
movq %r13, %rdi
xorl %esi, %esi
movl %ebp, %edx
callq 0x3828
callq 0x2120
movq %rax, %rbp
movq %r12, %rdi
movq %r13, %rsi
callq 0x3762
movq %rax, %r15
callq 0x2120
subq %rbp, %rax
cvtsi2sd %rax, %xmm0
mulsd 0x5654(%rip), %xmm0     # 0x9010
movsd %xmm0, 0x8(%rsp)
movq 0x10(%rsp), %rdi
callq 0x71bc
movq %r12, %rdi
callq 0x2170
movq %r14, %rdi
callq 0x71bc
movq %r13, %rdi
callq 0x2170
testq %r15, %r15
je 0x39f2
leaq 0x8(%r15), %rdi
callq 0x71bc
movsd (%rsp), %xmm0
addsd 0x8(%rsp), %xmm0
movsd %xmm0, (%rsp)
movq %r15, %rdi
callq 0x2170
jmp 0x3914
movl 0xb75b(%rip), %esi      # 0xf170
movq 0xb5b4(%rip), %rdi      # 0xefd0
callq 0x2260
movq %rax, %rdi
leaq 0x6025(%rip), %rsi      # 0x9a50
callq 0x2180
movsd (%rsp), %xmm0
mulsd 0x55db(%rip), %xmm0     # 0x9018
movq %rax, %rdi
callq 0x2200
movq %rax, %rdi
callq 0x20e0
movl 0xb71d(%rip), %eax      # 0xf170
addl %eax, %eax
jmp 0x38f8
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O2/aronszanto[P]strassen/main.cpp
// Function: timeRandMult(int)
double timeRandMult(int dimension){
            Matrix* m1 = new Matrix();
            Matrix* m2 = new Matrix();
            initMatrix(m1, dimension);
            initMatrix(m2, dimension);
            populateRandomMatrix(m1, 0, 1);
            populateRandomMatrix(m2, 0, 1);
            clock_t start;
            start = clock();
            Matrix* m3 = multiply(m1, m2);
            delete(m1);
            delete(m2);
            delete(m3);
            return (std::clock() - start) / (double)(CLOCKS_PER_SEC);
    
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl %edi, %ebp
pushq $0x20
popq %r14
movq %r14, %rdi
callq 0x2190
movq %rax, %rbx
leaq 0x8(%rax), %r15
xorps %xmm0, %xmm0
movaps %xmm0, (%rax)
movaps %xmm0, 0x10(%rax)
movq %r14, %rdi
callq 0x2190
movq %rax, %r14
leaq 0x8(%rax), %r12
xorps %xmm0, %xmm0
movaps %xmm0, (%rax)
movaps %xmm0, 0x10(%rax)
movq %rbx, %rdi
movl %ebp, %esi
callq 0x23cc
movq %r14, %rdi
movl %ebp, %esi
callq 0x23cc
pushq $0x1
popq %rbp
movq %rbx, %rdi
xorl %esi, %esi
movl %ebp, %edx
callq 0x3828
movq %r14, %rdi
xorl %esi, %esi
movl %ebp, %edx
callq 0x3828
callq 0x2120
movq %rax, %r13
movq %rbx, %rdi
movq %r14, %rsi
callq 0x3762
movq %rax, %rbp
movq %r15, %rdi
callq 0x71bc
movq %rbx, %rdi
callq 0x2170
movq %r12, %rdi
callq 0x71bc
movq %r14, %rdi
callq 0x2170
testq %rbp, %rbp
je 0x3b22
movq %rbp, %rdi
addq $0x8, %rdi
callq 0x71bc
movq %rbp, %rdi
callq 0x2170
callq 0x2120
subq %r13, %rax
cvtsi2sd %rax, %xmm0
mulsd 0x54d1(%rip), %xmm0     # 0x9010
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O2/aronszanto[P]strassen/main.cpp
// Function: findOptimalThreadThresh()
void findOptimalThreadThresh() {
    convThreshold = 32;
    threadThresh = 64;
    while (threadThresh != 4096){
        //cout << threadThresh << endl;;
        
        
        double total = 0;
        //cout << "multiplying matrices, n = " << i << endl;
        for (int j = 0; j < 1; j ++){
            total += timeRandMult(2048);
        }
        cout << threadThresh << "\t" << total / 1 << endl;
        //cout << "finished multiplying.\n" << endl;
        threadThresh *= 2;
    }
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movl $0x20, 0xb614(%rip)     # 0xf170
pushq $0x40
popq %rax
movq 0xb46a(%rip), %rbx      # 0xefd0
leaq 0x5ee3(%rip), %r14      # 0x9a50
movl %eax, 0xb5f9(%rip)      # 0xf16c
cmpl $0x1000, %eax           # imm = 0x1000
je 0x3bdd
movb $0x1, %al
xorpd %xmm0, %xmm0
movsd %xmm0, (%rsp)
testb $0x1, %al
je 0x3ba5
movl $0x800, %edi            # imm = 0x800
callq 0x3a69
movsd (%rsp), %xmm1
addsd %xmm0, %xmm1
movsd %xmm1, (%rsp)
xorl %eax, %eax
jmp 0x3b85
movl 0xb5c1(%rip), %esi      # 0xf16c
movq %rbx, %rdi
callq 0x2260
movq %rax, %rdi
movq %r14, %rsi
callq 0x2180
movq %rax, %rdi
movsd (%rsp), %xmm0
callq 0x2200
movq %rax, %rdi
callq 0x20e0
movl 0xb593(%rip), %eax      # 0xf16c
addl %eax, %eax
jmp 0x3b6d
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_cpp_makefile_star2_O2/aronszanto[P]strassen/main.cpp
// Function: testRandMatrix()
void testRandMatrix(){
    Matrix* m = new Matrix();
    initMatrix(m,10);
    populateRandomMatrix(m, 0,1);
    printMatrix(*m);
    free(m);
}

// Assembly:
pushq %rbx
pushq $0x20
popq %rdi
callq 0x2190
movq %rax, %rbx
xorps %xmm0, %xmm0
movaps %xmm0, (%rax)
movaps %xmm0, 0x10(%rax)
pushq $0xa
popq %rsi
movq %rax, %rdi
callq 0x23cc
pushq $0x1
popq %rdx
movq %rbx, %rdi
xorl %esi, %esi
callq 0x3828
movq %rbx, %rdi
callq 0x2423
movq %rbx, %rdi
popq %rbx
jmp 0x21a0
// File: /workspace/github_cpp_makefile_star2_O2/aronszanto[P]strassen/main.cpp
// Function: testInitMatrix()
void testInitMatrix(){
    Matrix* m = new Matrix();
    initMatrix(m,3);
    printMatrix(*m);
    free(m);
}

// Assembly:
pushq %rbx
pushq $0x20
popq %rdi
callq 0x2190
movq %rax, %rbx
xorps %xmm0, %xmm0
movaps %xmm0, (%rax)
movaps %xmm0, 0x10(%rax)
pushq $0x3
popq %rsi
movq %rax, %rdi
callq 0x23cc
movq %rbx, %rdi
callq 0x2423
movq %rbx, %rdi
popq %rbx
jmp 0x21a0
// File: /workspace/github_cpp_makefile_star2_O2/aronszanto[P]strassen/main.cpp
// Function: testfindOptDim()
void testfindOptDim(){
    assert(findOptDim(258,17) == 272);
    assert(findOptDim(513,15) == 576);
    assert(findOptDim(1025,15) == 1152);

           cout << "all findOptDim tests pass" << endl;
}

// Assembly:
pushq %rax
pushq $0x11
popq %rsi
movl $0x102, %edi            # imm = 0x102
callq 0x2504
cmpl $0x110, %eax            # imm = 0x110
jne 0x60b4
pushq $0xf
popq %rsi
movl $0x201, %edi            # imm = 0x201
callq 0x2504
cmpl $0x240, %eax            # imm = 0x240
jne 0x60d3
pushq $0xf
popq %rsi
movl $0x401, %edi            # imm = 0x401
callq 0x2504
cmpl $0x480, %eax            # imm = 0x480
jne 0x60f2
movq 0x8f31(%rip), %rdi      # 0xefd0
leaq 0x3aaf(%rip), %rsi      # 0x9b55
callq 0x2180
movq %rax, %rdi
popq %rax
jmp 0x20e0
leaq 0x3a34(%rip), %rdi      # 0x9aef
leaq 0x399e(%rip), %rsi      # 0x9a60
leaq 0x3a40(%rip), %rcx      # 0x9b09
movl $0x278, %edx            # imm = 0x278
callq 0x2110
leaq 0x3a45(%rip), %rdi      # 0x9b1f
leaq 0x397f(%rip), %rsi      # 0x9a60
leaq 0x3a21(%rip), %rcx      # 0x9b09
movl $0x279, %edx            # imm = 0x279
callq 0x2110
leaq 0x3a40(%rip), %rdi      # 0x9b39
leaq 0x3960(%rip), %rsi      # 0x9a60
leaq 0x3a02(%rip), %rcx      # 0x9b09
movl $0x27a, %edx            # imm = 0x27A
callq 0x2110
// File: /workspace/github_cpp_makefile_star2_O2/aronszanto[P]strassen/main.cpp
// Function: testPowers2()
void testPowers2(){
    for (int i = 2; i <= 4096; i *= 2){
        Matrix* m1 = new Matrix();
        initMatrix(m1, i);
        Matrix* m2 = new Matrix();
        initMatrix(m2, i);
        //cout << "populating m1" << endl;
        populateRandomMatrix(m1, -10, 10);
        //cout << "populating m2" << endl;
        populateRandomMatrix(m2, -10, 10);
        
        //cout << "multiplying matrices, n = " << i << endl;
        clock_t start;
        start = clock();
        Matrix* m3 = multiply(m1, m2);
        

        cout << "multiplied " << i << "x" << i << " in " << ((double) (clock() - start) / (double)(CLOCKS_PER_SEC)) << "s" << endl;
        delete(m1);
        delete(m2);
        delete(m3);

    }

}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
pushq $0x2
popq %rbx
cmpl $0x1001, %ebx           # imm = 0x1001
jae 0x64ea
pushq $0x20
popq %r14
movq %r14, %rdi
callq 0x2190
movq %rax, %r13
addq $0x8, %rax
movq %rax, 0x10(%rsp)
xorps %xmm0, %xmm0
movaps %xmm0, (%r13)
movaps %xmm0, 0x10(%r13)
movq %r13, %rdi
movl %ebx, %esi
callq 0x23cc
movq %r14, %rdi
callq 0x2190
movq %rax, %r14
addq $0x8, %rax
movq %rax, 0x8(%rsp)
xorps %xmm0, %xmm0
movaps %xmm0, (%r14)
movaps %xmm0, 0x10(%r14)
movq %r14, %rdi
movl %ebx, %esi
callq 0x23cc
movq %r13, %rdi
pushq $-0xa
popq %rbp
movl %ebp, %esi
pushq $0xa
popq %r15
movl %r15d, %edx
callq 0x3828
movq %r14, %rdi
movl %ebp, %esi
movl %r15d, %edx
callq 0x3828
callq 0x2120
movq %rax, %r12
movq %r13, %rdi
movq %r14, %rsi
callq 0x3762
movq %rax, %r15
movq 0x8b9c(%rip), %rdi      # 0xefd0
leaq 0x3773(%rip), %rsi      # 0x9bae
callq 0x2180
movq %rax, %rdi
movl %ebx, %esi
callq 0x2260
movq %rax, %rdi
leaq 0x3766(%rip), %rsi      # 0x9bba
callq 0x2180
movq %rax, %rdi
movl %ebx, %esi
callq 0x2260
movq %rax, %rdi
leaq 0x374f(%rip), %rsi      # 0x9bbc
callq 0x2180
movq %rax, %rbp
callq 0x2120
subq %r12, %rax
cvtsi2sd %rax, %xmm0
mulsd 0x2b86(%rip), %xmm0     # 0x9010
movq %rbp, %rdi
callq 0x2200
movq %rax, %rdi
leaq 0x3710(%rip), %rsi      # 0x9bac
callq 0x2180
movq %rax, %rdi
callq 0x20e0
movq 0x10(%rsp), %rdi
callq 0x71bc
movq %r13, %rdi
callq 0x2170
movq 0x8(%rsp), %rdi
callq 0x71bc
movq %r14, %rdi
callq 0x2170
testq %r15, %r15
je 0x64db
leaq 0x8(%r15), %rdi
callq 0x71bc
movq %r15, %rdi
callq 0x2170
addl %ebx, %ebx
jmp 0x6391
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O2/aronszanto[P]strassen/main.cpp
// Function: FileToMatrix(char*, int, int)
Matrix* FileToMatrix(char* inputfile, int dimension, int order){
    Matrix* M = new Matrix();
    initMatrix(M, dimension);

    ifstream inFile(inputfile);
    string line;
    for (int i = 0; i < pow(dimension,2)*order; ++i)
    {
        getline(inFile, line);
    }

    for (int i = 0; i < dimension; ++i)
    {
        for (int j = 0; j < dimension; ++j)
        {
            getline(inFile, line);
            M->matrix[i][j] = stoi(line);
        }
    }
    inFile.close();
    return M;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x238, %rsp            # imm = 0x238
movl %edx, %r15d
movl %esi, %ebp
movq %rdi, %r12
pushq $0x20
popq %rdi
callq 0x2190
xorps %xmm0, %xmm0
movaps %xmm0, (%rax)
movaps %xmm0, 0x10(%rax)
movq %rax, %r14
movq %rax, %rdi
movl %ebp, %esi
callq 0x23cc
leaq 0x30(%rsp), %r13
pushq $0x8
popq %rdx
movq %r13, %rdi
movq %r12, %rsi
callq 0x2280
leaq 0x20(%rsp), %rax
movq %rax, -0x10(%rax)
andq $0x0, -0x8(%rax)
movb $0x0, (%rax)
cvtsi2sd %ebp, %xmm0
cvtsi2sd %r15d, %xmm1
mulsd %xmm0, %xmm0
mulsd %xmm0, %xmm1
movsd %xmm1, (%rsp)
xorl %ebx, %ebx
leaq 0x10(%rsp), %r15
cvtsi2sd %ebx, %xmm0
movsd (%rsp), %xmm1
ucomisd %xmm0, %xmm1
jbe 0x6590
movq %r13, %rdi
movq %r15, %rsi
callq 0x2050
incl %ebx
jmp 0x6572
xorl %eax, %eax
testl %ebp, %ebp
movl $0x0, %ecx
cmovgl %ebp, %ecx
movq %rcx, 0x8(%rsp)
movl %ebp, %r13d
leaq 0x10(%rsp), %r15
pushq $0xa
popq %rbp
cmpq 0x8(%rsp), %rax
je 0x65f4
movq %rax, (%rsp)
imulq $0x18, %rax, %r12
xorl %ebx, %ebx
cmpq %rbx, %r13
je 0x65eb
leaq 0x30(%rsp), %rdi
movq %r15, %rsi
callq 0x2050
movq %r15, %rdi
xorl %esi, %esi
movl %ebp, %edx
callq 0x71a0
movq 0x8(%r14), %rcx
movq (%rcx,%r12), %rcx
movl %eax, (%rcx,%rbx,4)
incq %rbx
jmp 0x65bd
movq (%rsp), %rax
incq %rax
jmp 0x65ac
leaq 0x30(%rsp), %rdi
callq 0x2060
leaq 0x10(%rsp), %rdi
callq 0x20c0
leaq 0x30(%rsp), %rdi
callq 0x2070
movq %r14, %rax
addq $0x238, %rsp            # imm = 0x238
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x662b
jmp 0x662b
movq %rax, %rbx
leaq 0x10(%rsp), %rdi
callq 0x20c0
leaq 0x30(%rsp), %rdi
callq 0x2070
movq %rbx, %rdi
callq 0x2270
// File: /workspace/github_cpp_makefile_star2_O2/justinpajak[P]Sum_SGX/aggsum.cpp
// Function: main
int main(int argc, char *argv[]) {
	
	int n = 1000000;
	auto start = std::chrono::high_resolution_clock::now();
	vector<float> nums(n);
	
	/* Read in data from d_enc.txt, decrypt and put in nums vector */
	readAndDecrypt(nums);

	/* Compute sum */
	std::cout << std::fixed << "Sum: " << agg_sum(nums) << std::endl;

	/* Compute time */
	auto stop = std::chrono::high_resolution_clock::now();
	auto duration = std::chrono::duration_cast<std::chrono::microseconds>(stop - start);
	std::cout << "n = " << n << ". Time: " << duration.count() / float(1000000) << " secs." << std::endl;
	return 0;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
subq $0x40, %rsp
callq 0x1040
movq %rax, %rbx
leaq -0x48(%rbp), %r14
leaq -0x11(%rbp), %rdx
movl $0xf4240, %esi          # imm = 0xF4240
movq %r14, %rdi
callq 0x160e
movq %r14, %rdi
callq 0x1470
movq 0x2c5d(%rip), %rdi      # 0x3fd0
movq (%rdi), %rax
movq -0x18(%rax), %rax
movl $0xfffffefb, %ecx       # imm = 0xFFFFFEFB
andl 0x18(%rdi,%rax), %ecx
orl $0x4, %ecx
movl %ecx, 0x18(%rdi,%rax)
leaq 0xc77(%rip), %rsi       # 0x2008
callq 0x1140
movq %rax, %r14
leaq -0x30(%rbp), %rdi
leaq -0x48(%rbp), %rsi
callq 0x1660
leaq -0x30(%rbp), %rdi
callq 0x155a
movq %r14, %rdi
callq 0x11c0
movq %rax, %rdi
callq 0x10b0
leaq -0x30(%rbp), %rdi
callq 0x16f2
callq 0x1040
subq %rbx, %rax
movl $0x3e8, %ecx            # imm = 0x3E8
cqto
idivq %rcx
movq %rax, %rbx
movq 0x2bec(%rip), %rdi      # 0x3fd0
leaq 0xc23(%rip), %rsi       # 0x200e
callq 0x1140
movq %rax, %rdi
movl $0xf4240, %esi          # imm = 0xF4240
callq 0x11e0
leaq 0xc0f(%rip), %rsi       # 0x2013
movq %rax, %rdi
callq 0x1140
cvtsi2ss %rbx, %xmm0
divss 0xbeb(%rip), %xmm0      # 0x2004
movq %rax, %rdi
callq 0x1110
leaq 0xbf4(%rip), %rsi       # 0x201c
movq %rax, %rdi
callq 0x1140
movq %rax, %rdi
callq 0x10b0
leaq -0x48(%rbp), %rdi
callq 0x16f2
xorl %eax, %eax
addq $0x40, %rsp
popq %rbx
popq %r14
popq %rbp
retq
movq %rax, %rbx
leaq -0x30(%rbp), %rdi
callq 0x16f2
jmp 0x145f
jmp 0x145c
movq %rax, %rbx
leaq -0x48(%rbp), %rdi
callq 0x16f2
movq %rbx, %rdi
callq 0x11f0