LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_cpp_makefile_star2_O3/errantlinguist[P]Forecast/src/forecast_io/parsers/NotifyingFlagParser.cpp
// Function: forecast_io::parsers::NotifyingFlagParser::finishParse()
void NotifyingFlagParser::finishParse()
{
	// If there are no sources to notify about,
	if (sources.empty())
	{
		// If there are stations to notify about,
		if (!stations.empty())
		{
			for (listeners::FlagListener* const & pListener : getListeners())
			{
				pListener->notifyStations(stations);
			}
		}
	} else if (stations.empty())
	{
		// There are sources but no stations to notify about
		for (listeners::FlagListener* const & pListener : getListeners())
		{
			pListener->notifySources(sources);
		}
	} else
	{
		// There are both sources and stations to notify about
		for (listeners::FlagListener* const & pListener : getListeners())
		{
			pListener->notifySources(sources);
			pListener->notifyStations(stations);
		}
	}
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
leaq 0xb0(%rdi), %rbx
cmpq $0x0, 0x90(%rdi)
movq 0x28(%rdi), %r15
movq 0xc8(%rdi), %rax
je 0x24ffe
movq %rdi, %r14
addq $0x78, %r14
testq %rax, %rax
jne 0x24fe0
jmp 0x24ff7
movq 0x8(%r15), %rdi
movq (%rdi), %rax
movq %r14, %rsi
callq *0x18(%rax)
movq 0x8(%r15), %rdi
movq (%rdi), %rax
movq %rbx, %rsi
callq *0x20(%rax)
movq (%r15), %r15
testq %r15, %r15
jne 0x24fc3
jmp 0x25023
movq 0x8(%r15), %rdi
movq (%rdi), %rax
movq %r14, %rsi
callq *0x18(%rax)
movq (%r15), %r15
testq %r15, %r15
jne 0x24fe7
jmp 0x25023
testq %r15, %r15
sete %cl
testq %rax, %rax
sete %al
orb %cl, %al
jne 0x25023
movq 0x8(%r15), %rdi
movq (%rdi), %rax
movq %rbx, %rsi
callq *0x20(%rax)
movq (%r15), %r15
testq %r15, %r15
jne 0x2500e
popq %rbx
popq %r14
popq %r15
retq
nop
// File: /workspace/github_cpp_makefile_star2_O3/errantlinguist[P]Forecast/src/forecast_io/parsers/NotifyingFlagParser.cpp
// Function: forecast_io::parsers::NotifyingFlagParser::handleUnmappedAttribute(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, json_object* const&)
void NotifyingFlagParser::handleUnmappedAttribute(const std::string& key, json_object* const & pValue)
{
	const size_t foundIdx = key.find_last_of(sourceStationAttributeSuffix);
	if (foundIdx == std::string::npos)
	{
		json::AbstractJsonStateMapParser<FlagsAttribute>::handleUnmappedAttribute(key, pValue);
	}
	else
	{
		const std::string sourceName = key.substr(0, foundIdx);
		// Parse all values in the JSON array and add them to the set of station IDs for the given source
		json::insertJsonStringArrayValues(stations, sourceName, pValue);
	}
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rdx, %rbx
movq %rsi, %r15
movq %rdi, %r14
movq 0x58(%rdi), %rsi
movq 0x60(%rdi), %rcx
movq %r15, %rdi
movq $-0x1, %rdx
callq 0x94d0
cmpq $-0x1, %rax
je 0x250ac
leaq 0x8(%rsp), %r12
movq %r12, %rdi
movq %r15, %rsi
xorl %edx, %edx
movq %rax, %rcx
callq 0x9600
addq $0xb0, %r14
movq %r14, %rdi
movq %r12, %rsi
movq %rbx, %rdx
callq 0x255d5
leaq 0x18(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x250a0
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x90a0
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
movq %r14, %rdi
movq %r15, %rsi
movq %rbx, %rdx
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
jmp 0x25554
movq %rax, %rbx
leaq 0x18(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x250e3
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x90a0
movq %rbx, %rdi
callq 0x9390
nop
// File: /workspace/github_cpp_makefile_star2_O3/errantlinguist[P]Forecast/src/forecast_io/parsers/NotifyingFlagParser.cpp
// Function: forecast_io::parsers::NotifyingFlagParser::parseMeasurementSystem(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&) const
const math::MeasurementSystem& NotifyingFlagParser::parseMeasurementSystem(const MeasurementSystemAttributeValueMap::key_type& attributeValue) const
{
	auto iter = measurementSystemAttributeValues.find(attributeValue);
	if (iter == measurementSystemAttributeValues.end())
	{
		const json::ParseError error = createUnknownMeasurementSystemAttributeValueError(attributeValue);
		throw error;
	}
	else
	{
		const math::MeasurementSystem& measurementSystem = iter->second;
		return measurementSystem;
	}
}

// Assembly:
pushq %r14
pushq %rbx
subq $0x18, %rsp
movq %rsi, %rbx
movq 0x50(%rdi), %rdi
callq 0x1eace
testq %rax, %rax
je 0x252c8
addq $0x28, %rax
addq $0x18, %rsp
popq %rbx
popq %r14
retq
leaq 0x8(%rsp), %r14
movq %r14, %rdi
movq %rbx, %rsi
callq 0x25325
movl $0x10, %edi
callq 0x91c0
movq %rax, %rbx
movq %rax, %rdi
movq %r14, %rsi
callq 0x9560
leaq 0x19599(%rip), %rax     # 0x3e890
movq %rax, (%rbx)
leaq 0x17e8f(%rip), %rsi     # 0x3d190
movq 0x19c50(%rip), %rdx     # 0x3ef58
movq %rbx, %rdi
callq 0x9370
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
callq 0x9708
movq %rbx, %rdi
callq 0x9390
// File: /workspace/github_cpp_makefile_star2_O3/errantlinguist[P]Forecast/include/json/json_maps.hpp
// Function: void json::insertJsonStringArrayValues<std::unordered_set<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::hash<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>, std::equal_to<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::unordered_set<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::hash<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>, std::equal_to<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>>>>&, json_object* const&)
void insertJsonStringArrayValues(C& collection, json_object* const & pArray)
{
	const int arrayLength = json_object_array_length(pArray);
	for (int i = 0; i < arrayLength; ++i)
	{
		json_object* const & arrayElement = json_object_array_get_idx(pArray,
				i);
		const std::string& element = json_object_get_string(arrayElement);
		collection.insert(element);
	}

}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rsi, %rbx
movq %rdi, %r14
movq (%rsi), %rdi
callq 0x9240
movq %rax, %r15
testl %r15d, %r15d
jle 0x25790
andl $0x7fffffff, %r15d      # imm = 0x7FFFFFFF
xorl %r12d, %r12d
leaq 0x8(%rsp), %r13
movq %rsp, %rbp
movq (%rbx), %rdi
movq %r12, %rsi
callq 0x9550
movq %rax, %rdi
callq 0x96c0
movq %r13, %rdi
movq %rax, %rsi
movq %rbp, %rdx
callq 0xc40a
movq %r14, (%rsp)
movq %r14, %rdi
movq %r13, %rsi
movq %rbp, %rdx
callq 0x26524
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x25788
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x90a0
incq %r12
cmpq %r12, %r15
jne 0x25739
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x257be
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x90a0
movq %rbx, %rdi
callq 0x9390
// File: /workspace/github_cpp_makefile_star2_O3/errantlinguist[P]Forecast/src/json/TokenerParser.cpp
// Function: json::TokenerParser::parse(char const* const&, int)
void TokenerParser::parse(const char* const & input, int inputLength)
{
	json_object* const pJsonObj = json_tokener_parse_ex(pTokener, input, inputLength);
	const json_tokener_error parseErrorCode = json_tokener_get_error(pTokener);
	if (json_tokener_continue != parseErrorCode)
	{
		if (json_tokener_success == parseErrorCode)
		{
			parser.parse(pJsonObj);
		}
		else
		{
			const char * jsonErrorDesc = json_tokener_error_desc(parseErrorCode);
			throw json::ParseError(jsonErrorDesc);
		}
	}
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq 0x8(%rdi), %rdi
movq (%rsi), %rsi
callq 0x9670
movq %rax, (%rsp)
movq 0x8(%rbx), %rdi
callq 0x93f0
cmpl $0x1, %eax
je 0x2910a
testl %eax, %eax
jne 0x29112
movq 0x10(%rbx), %rdi
movq (%rdi), %rax
movq %rsp, %rsi
callq *0x18(%rax)
addq $0x8, %rsp
popq %rbx
popq %r14
retq
movl %eax, %edi
callq 0x9630
movq %rax, %r14
movl $0x10, %edi
callq 0x91c0
movq %rax, %rbx
movq %rax, %rdi
movq %r14, %rsi
callq 0x2905e
leaq 0x14055(%rip), %rsi     # 0x3d190
movq 0x15e16(%rip), %rdx     # 0x3ef58
movq %rbx, %rdi
callq 0x9370
movq %rax, %r14
movq %rbx, %rdi
callq 0x9510
movq %r14, %rdi
callq 0x9390
nop
// File: /workspace/github_cpp_makefile_star2_O3/errantlinguist[P]Forecast/src/json/TokenerParser.cpp
// Function: json::TokenerParser::parse(std::istream&, char*, int)
std::streamsize TokenerParser::parse(std::istream& input, char* pBuffer,
		int bufferSize)
{
	std::streamsize result(0);

	while (input.read(pBuffer, bufferSize))
	{
		result += input.gcount();
		parse(pBuffer, bufferSize);
	}
	// Add the number of bytes read for the final read attempt
	result += input.gcount();
	// Parse any remaining tokens
	parse(pBuffer, bufferSize);

	return result;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rdx, %r12
movq %rsi, %r15
movq %rdi, %r14
movq %rdx, 0x10(%rsp)
movl %ecx, 0xc(%rsp)
movslq %ecx, %rbp
movq %rsi, %rdi
movq %rdx, %rsi
movq %rbp, %rdx
callq 0x9290
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
testb $0x5, 0x20(%rax,%rcx)
je 0x291a2
xorl %r13d, %r13d
jmp 0x291d7
xorl %r13d, %r13d
leaq 0x10(%rsp), %rbx
addq 0x8(%r15), %r13
movq %r14, %rdi
movq %rbx, %rsi
movl %ebp, %edx
callq 0x290d4
movq %r15, %rdi
movq %r12, %rsi
movq %rbp, %rdx
callq 0x9290
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
testb $0x5, 0x20(%rax,%rcx)
je 0x291aa
addq 0x8(%r15), %r13
leaq 0x10(%rsp), %rsi
movq %r14, %rdi
movl 0xc(%rsp), %edx
callq 0x290d4
movq %r13, %rax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O3/errantlinguist[P]Forecast/src/math/Coordinate.cpp
// Function: math::Coordinate::createLatitudeString[abi:cxx11](double)
std::string Coordinate::createLatitudeString(double latitude)
{
	std::stringstream ss(std::stringstream::out);
	ss << std::setprecision(DEFAULT_PRECISION) << std::abs(latitude);
	ss << POLARITY_SEPARATOR;

	if (latitude < 0)
	{
		ss << LATITUDE_NEGATIVE_SYMBOL;

	}
	else
	{
		ss << LATITUDE_POSITIVE_SYMBOL;
	}

	return ss.str();
}

// Assembly:
pushq %r14
pushq %rbx
subq $0x1a8, %rsp            # imm = 0x1A8
movaps %xmm0, 0x10(%rsp)
movq %rdi, %rbx
leaq 0x20(%rsp), %rdi
movl $0x10, %esi
callq 0x9220
leaq 0x30(%rsp), %r14
movq (%r14), %rax
movq -0x18(%rax), %rax
movq $0x2, 0x38(%rsp,%rax)
movapd 0x3432(%rip), %xmm0     # 0x2c670
andpd 0x10(%rsp), %xmm0
movq %r14, %rdi
callq 0x9490
leaq 0x342d(%rip), %rsi      # 0x2c680
movl $0x3, %edx
movq %r14, %rdi
callq 0x95c0
xorpd %xmm0, %xmm0
ucomisd 0x10(%rsp), %xmm0
jbe 0x29283
leaq 0xf(%rsp), %rsi
movb $0x53, (%rsi)
movl $0x1, %edx
movq %r14, %rdi
callq 0x95c0
jmp 0x29298
leaq 0xf(%rsp), %rsi
movb $0x4e, (%rsi)
movl $0x1, %edx
movq %r14, %rdi
callq 0x95c0
leaq 0x38(%rsp), %rsi
movq %rbx, %rdi
callq 0x91d0
movq 0x15cf4(%rip), %rsi     # 0x3efa0
leaq 0x20(%rsp), %rdi
callq 0x9470
leaq 0xa0(%rsp), %rdi
callq 0x9420
movq %rbx, %rax
addq $0x1a8, %rsp            # imm = 0x1A8
popq %rbx
popq %r14
retq
movq %rax, %rbx
movq 0x15cc5(%rip), %rsi     # 0x3efa0
leaq 0x20(%rsp), %rdi
callq 0x9470
leaq 0xa0(%rsp), %rdi
callq 0x9420
movq %rbx, %rdi
callq 0x9390
// File: /workspace/github_cpp_makefile_star2_O3/errantlinguist[P]Forecast/src/math/Coordinate.cpp
// Function: math::Coordinate::createLongitudeString[abi:cxx11](double)
std::string Coordinate::createLongitudeString(double longitude)
{
	std::stringstream ss(std::stringstream::out);
	ss << std::setprecision(DEFAULT_PRECISION) << std::abs(longitude);
	ss << POLARITY_SEPARATOR;

	if (longitude < 0)
	{
		ss << LONGITUDE_NEGATIVE_SYMBOL;
	}
	else
	{
		ss << LONGITUDE_POSITIVE_SYMBOL;
	}

	return ss.str();
}

// Assembly:
pushq %r14
pushq %rbx
subq $0x1a8, %rsp            # imm = 0x1A8
movaps %xmm0, 0x10(%rsp)
movq %rdi, %rbx
leaq 0x20(%rsp), %rdi
movl $0x10, %esi
callq 0x9220
leaq 0x30(%rsp), %r14
movq (%r14), %rax
movq -0x18(%rax), %rax
movq $0x2, 0x38(%rsp,%rax)
movapd 0x3338(%rip), %xmm0     # 0x2c670
andpd 0x10(%rsp), %xmm0
movq %r14, %rdi
callq 0x9490
leaq 0x3333(%rip), %rsi      # 0x2c680
movl $0x3, %edx
movq %r14, %rdi
callq 0x95c0
xorpd %xmm0, %xmm0
ucomisd 0x10(%rsp), %xmm0
jbe 0x2937d
leaq 0xf(%rsp), %rsi
movb $0x57, (%rsi)
movl $0x1, %edx
movq %r14, %rdi
callq 0x95c0
jmp 0x29392
leaq 0xf(%rsp), %rsi
movb $0x45, (%rsi)
movl $0x1, %edx
movq %r14, %rdi
callq 0x95c0
leaq 0x38(%rsp), %rsi
movq %rbx, %rdi
callq 0x91d0
movq 0x15bfa(%rip), %rsi     # 0x3efa0
leaq 0x20(%rsp), %rdi
callq 0x9470
leaq 0xa0(%rsp), %rdi
callq 0x9420
movq %rbx, %rax
addq $0x1a8, %rsp            # imm = 0x1A8
popq %rbx
popq %r14
retq
movq %rax, %rbx
movq 0x15bcb(%rip), %rsi     # 0x3efa0
leaq 0x20(%rsp), %rdi
callq 0x9470
leaq 0xa0(%rsp), %rdi
callq 0x9420
movq %rbx, %rdi
callq 0x9390
// File: /workspace/github_cpp_makefile_star2_O3/errantlinguist[P]Forecast/src/math/RadialVelocity.cpp
// Function: math::RadialVelocity::dump(std::ostream&) const
std::ostream& RadialVelocity::dump(std::ostream& o) const
{
	o << "RadialVelocity[getMagnitude()=";
	o << common::to_quoted_string(getMagnitude());
	o << ", getDirection()=";
	o << common::to_quoted_string(getDirection());
	o << ']';

	return o;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x20, %rsp
movq %rsi, %rbx
movq %rdi, %r14
leaq 0x3087(%rip), %rsi      # 0x2c69b
movl $0x1e, %edx
movq %rbx, %rdi
callq 0x95c0
movsd 0x8(%r14), %xmm0
movq 0x1594a(%rip), %rsi     # 0x3ef78
leaq 0x3097(%rip), %rcx      # 0x2c6cc
movq %rsp, %r15
movl $0x148, %edx            # imm = 0x148
movq %r15, %rdi
movb $0x1, %al
callq 0x297c6
movq (%r15), %rsi
movq 0x8(%r15), %rdx
movq %rbx, %rdi
callq 0x95c0
leaq 0x10(%rsp), %r15
movq -0x10(%r15), %rdi
cmpq %r15, %rdi
je 0x29671
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x90a0
leaq 0x3042(%rip), %rsi      # 0x2c6ba
movl $0x11, %edx
movq %rbx, %rdi
callq 0x95c0
movsd 0x10(%r14), %xmm0
movq 0x158e6(%rip), %rsi     # 0x3ef78
leaq 0x3033(%rip), %rcx      # 0x2c6cc
movq %rsp, %r14
movl $0x148, %edx            # imm = 0x148
movq %r14, %rdi
movb $0x1, %al
callq 0x297c6
movq (%r14), %rsi
movq 0x8(%r14), %rdx
movq %rbx, %rdi
callq 0x95c0
movq (%rsp), %rdi
cmpq %r15, %rdi
je 0x296d0
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x90a0
movq %rsp, %rsi
movb $0x5d, (%rsi)
movl $0x1, %edx
movq %rbx, %rdi
callq 0x95c0
movq %rbx, %rax
addq $0x20, %rsp
popq %rbx
popq %r14
popq %r15
retq
movq %rax, %rbx
movq (%rsp), %rdi
cmpq %r15, %rdi
jne 0x2970f
jmp 0x2971c
movq %rax, %rbx
leaq 0x10(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x2971c
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x90a0
movq %rbx, %rdi
callq 0x9390
// File: /workspace/github_cpp_makefile_star2_O3/hanhwi[P]SimPoint/analysiscode/CmdLineParser.cpp
// Function: CmdLineParser::printExplanationsPretty(std::ostream&) const
void CmdLineParser::printExplanationsPretty(ostream &os) const {
    int prefixWidth = this->calculatePrefixColumnWidth();
    const unsigned int LINE_WIDTH = 80;
    for (unsigned int i = 0; i < allOptions.size(); i++) {
        printExplanationPretty(allOptions[i], prefixWidth, os, LINE_WIDTH);
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
callq 0x531c
movl %eax, %ebp
movq 0x8(%r14), %rax
cmpq %rax, 0x10(%r14)
je 0x5311
movl $0x1, %r15d
xorl %ecx, %ecx
movq (%rax,%rcx,8), %rdi
movl %ebp, %esi
movq %rbx, %rdx
movl $0x50, %ecx
callq 0x53ac
movl %r15d, %ecx
movq 0x8(%r14), %rax
movq 0x10(%r14), %rdx
subq %rax, %rdx
sarq $0x3, %rdx
incl %r15d
cmpq %rcx, %rdx
ja 0x52e4
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/hanhwi[P]SimPoint/analysiscode/Datapoint.cpp
// Function: Datapoint::maxNdx(int, int, double*) const
int Datapoint::maxNdx(int start, int end, double *value) const {
    start = start < 0 ? 0 : start;
    if (end == -1) { end = size(); }
    else { end = (end >= (int)size()) ? size() : end; }

    if (size() <= 0 || start >= end || start >= (int)size()) {
        return -1;
    }

    int ndx = start;
    double max = (*this)[start];

    for (unsigned int i = start + 1; i < (unsigned int)end; i++) {
        if ((*this)[i] > max) {
            max = (*this)[i];
            ndx = i;
        }
    }

    if (value) { *value = max; }

    return ndx;
}

// Assembly:
xorl %r8d, %r8d
testl %esi, %esi
cmovgl %esi, %r8d
movq (%rdi), %rsi
movq 0x8(%rdi), %rax
subq %rsi, %rax
sete %r9b
shrq $0x3, %rax
cmpl %edx, %eax
movl %edx, %edi
cmovll %eax, %edi
cmpl $-0x1, %edx
cmovel %eax, %edi
cmpl %edi, %r8d
setge %dl
cmpl %eax, %r8d
setge %r10b
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
orb %r9b, %r10b
orb %dl, %r10b
jne 0x651e
movl %r8d, %eax
movsd (%rsi,%rax,8), %xmm0
leal 0x1(%r8), %edx
cmpl %edi, %edx
jae 0x650e
incq %rax
movl %edi, %edx
movsd (%rsi,%rax,8), %xmm1
ucomisd %xmm0, %xmm1
cmoval %eax, %r8d
maxsd %xmm0, %xmm1
incq %rax
movapd %xmm1, %xmm0
cmpq %rax, %rdx
jne 0x64ef
jmp 0x6512
movapd %xmm0, %xmm1
testq %rcx, %rcx
je 0x651b
movsd %xmm1, (%rcx)
movl %r8d, %eax
retq
nop
// File: /workspace/github_cpp_makefile_star2_O3/hanhwi[P]SimPoint/analysiscode/Datapoint.cpp
// Function: Datapoint::operator+=(Datapoint const&)
Datapoint &Datapoint::operator+=(const Datapoint &dp) {
    unsigned int s = size();
    for (unsigned int i = 0; i < s; i++) {
        (*this)[i] += dp[i];
    }

    return *this;
}

// Assembly:
movq %rdi, %rax
movq (%rdi), %rcx
movq 0x8(%rdi), %rdi
subq %rcx, %rdi
shrq $0x3, %rdi
testl %edi, %edi
je 0x6553
movq (%rsi), %rdx
movl %edi, %esi
xorl %edi, %edi
movsd (%rdx,%rdi,8), %xmm0
addsd (%rcx,%rdi,8), %xmm0
movsd %xmm0, (%rcx,%rdi,8)
incq %rdi
cmpq %rdi, %rsi
jne 0x653c
retq
// File: /workspace/github_cpp_makefile_star2_O3/hanhwi[P]SimPoint/analysiscode/Datapoint.cpp
// Function: Datapoint::operator/=(double)
Datapoint &Datapoint::operator/=(double d) {
    unsigned int s = size();
    for (unsigned int i = 0; i < s; i++) {
        (*this)[i] /= d;
    }

    return *this;
}

// Assembly:
movq %rdi, %rax
movq (%rdi), %rcx
movq 0x8(%rdi), %rdx
subq %rcx, %rdx
shrq $0x3, %rdx
testl %edx, %edx
je 0x6583
movl %edx, %edx
xorl %esi, %esi
movsd (%rcx,%rsi,8), %xmm1
divsd %xmm0, %xmm1
movsd %xmm1, (%rcx,%rsi,8)
incq %rsi
cmpq %rsi, %rdx
jne 0x656d
retq
// File: /workspace/github_cpp_makefile_star2_O3/hanhwi[P]SimPoint/analysiscode/Datapoint.cpp
// Function: Datapoint::operator-(Datapoint const&) const
Datapoint Datapoint::operator-(const Datapoint &dp) const {
    Datapoint toReturn(*this);
    unsigned int s = size();

    for (unsigned int i = 0; i < s; i++) {
        toReturn[i] -= dp[i];
    }

    return toReturn;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rdx, %r14
movq %rsi, %r15
movq %rdi, %rbx
callq 0x6b64
movq 0x8(%r15), %rdx
subq (%r15), %rdx
shrq $0x3, %rdx
testl %edx, %edx
je 0x65fd
movq (%r14), %rax
movq (%rbx), %rcx
movl %edx, %edx
xorl %esi, %esi
movsd (%rcx,%rsi,8), %xmm0
subsd (%rax,%rsi,8), %xmm0
movsd %xmm0, (%rcx,%rsi,8)
incq %rsi
cmpq %rsi, %rdx
jne 0x65e6
movq %rbx, %rax
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O3/hanhwi[P]SimPoint/analysiscode/Datapoint.cpp
// Function: Datapoint::write(std::ostream&) const
void Datapoint::write(ostream &os) const {
    unsigned int s = size();
    os << s << ": ";

    for (unsigned int i = 0; i < s; i++) {
        os << (*this)[i] << " ";
    }
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movq %rsi, %rbx
movq %rdi, %r14
movq 0x8(%rdi), %r15
subq (%rdi), %r15
shrq $0x3, %r15
movl %r15d, %esi
movq %rbx, %rdi
callq 0x41c0
leaq 0x15a76(%rip), %rsi     # 0x1c0a8
movl $0x2, %edx
movq %rax, %rdi
callq 0x4330
testl %r15d, %r15d
je 0x667a
movl %r15d, %r12d
xorl %r13d, %r13d
leaq 0x18bb3(%rip), %r15     # 0x1f204
movq (%r14), %rax
movsd (%rax,%r13,8), %xmm0
movq %rbx, %rdi
callq 0x4510
movl $0x1, %edx
movq %rax, %rdi
movq %r15, %rsi
callq 0x4330
incq %r13
cmpq %r13, %r12
jne 0x6651
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O3/hanhwi[P]SimPoint/analysiscode/Datapoint.cpp
// Function: Datapoint::write(_IO_FILE*) const
void Datapoint::write(FILE *out) const {
    unsigned int s = size();
    fprintf(out, "%u: ", s);

    for (unsigned int i = 0; i < s; i++) {
        fprintf(out, "%.20f ", (*this)[i]);
    }
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movq %rsi, %rbx
movq %rdi, %r14
movq 0x8(%rdi), %r15
subq (%rdi), %r15
shrq $0x3, %r15
leaq 0x15b5b(%rip), %rsi     # 0x1c200
movq %rbx, %rdi
movl %r15d, %edx
xorl %eax, %eax
callq 0x4460
testl %r15d, %r15d
je 0x66e2
movl %r15d, %r12d
xorl %r13d, %r13d
leaq 0x15b41(%rip), %r15     # 0x1c205
movq (%r14), %rax
movsd (%rax,%r13,8), %xmm0
movq %rbx, %rdi
movq %r15, %rsi
movb $0x1, %al
callq 0x4460
incq %r13
cmpq %r13, %r12
jne 0x66c4
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O3/hanhwi[P]SimPoint/analysiscode/Datapoint.cpp
// Function: Datapoint::read(std::istream&)
void Datapoint::read(istream &is) {
    unsigned int length;
    is >> length;

    char c = is.get();
    Utilities::check(':' == c, "Datapoint::read() missing : separator");

    resize(length);

    for (unsigned int i = 0; i < length; i++) {
        is >> (*this)[i];
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x30, %rsp
movq %rsi, %rbx
movq %rdi, %r14
leaq 0xc(%rsp), %rsi
movq %rbx, %rdi
callq 0x4570
movq %rbx, %rdi
callq 0x4360
movl %eax, %ebp
leaq 0x20(%rsp), %r15
movq %r15, -0x10(%r15)
leaq 0x15ae7(%rip), %rsi     # 0x1c20c
leaq 0x15b05(%rip), %rdx     # 0x1c231
leaq 0x10(%rsp), %rdi
callq 0x6058
cmpb $0x3a, %bpl
jne 0x6797
movq 0x10(%rsp), %rdi
cmpq %r15, %rdi
je 0x6753
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x42d0
movl 0xc(%rsp), %esi
movq %r14, %rdi
callq 0x6be4
cmpl $0x0, 0xc(%rsp)
je 0x678a
xorl %r15d, %r15d
xorl %r12d, %r12d
movq (%r14), %rsi
addq %r15, %rsi
movq %rbx, %rdi
callq 0x41b0
incq %r12
movl 0xc(%rsp), %eax
addq $0x8, %r15
cmpq %rax, %r12
jb 0x676c
addq $0x30, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
leaq 0x20b92(%rip), %rax     # 0x27330
movl (%rax), %ecx
shrl $0x1f, %ecx
movq 0x8(%rax,%rcx,8), %rbx
leaq 0x159c9(%rip), %rsi     # 0x1c178
movl $0x8, %edx
movq %rbx, %rdi
callq 0x4330
movq 0x10(%rsp), %rsi
movq 0x18(%rsp), %rdx
movq %rbx, %rdi
callq 0x4330
movq %rax, %rdi
callq 0x4160
movl $0x1, %edi
callq 0x4370
movq %rax, %rbx
movq 0x10(%rsp), %rdi
cmpq %r15, %rdi
je 0x67fa
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x42d0
movq %rbx, %rdi
callq 0x4580
// File: /workspace/github_cpp_makefile_star2_O3/hanhwi[P]SimPoint/analysiscode/Datapoint.cpp
// Function: Datapoint::read(_IO_FILE*)
void Datapoint::read(FILE *in) {
    unsigned int length;
    fscanf(in, "%u", &length);

    char c = fgetc(in);
    Utilities::check(':' == c, "Datapoint::read() missing : separator");

    resize(length);

    for (unsigned int i = 0; i < length; i++) {
        fscanf(in, "%lf", &(*this)[i]);
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rsi, %rbx
movq %rdi, %r14
leaq 0x15a15(%rip), %rsi     # 0x1c232
leaq 0x4(%rsp), %rdx
movq %rbx, %rdi
xorl %eax, %eax
callq 0x45b0
movq %rbx, %rdi
callq 0x44e0
movl %eax, %ebp
leaq 0x18(%rsp), %r15
movq %r15, -0x10(%r15)
leaq 0x159c6(%rip), %rsi     # 0x1c20c
leaq 0x159e4(%rip), %rdx     # 0x1c231
leaq 0x8(%rsp), %rdi
callq 0x6058
cmpb $0x3a, %bpl
jne 0x68c6
movq 0x8(%rsp), %rdi
cmpq %r15, %rdi
je 0x6874
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x42d0
movl 0x4(%rsp), %esi
movq %r14, %rdi
callq 0x6be4
cmpl $0x0, 0x4(%rsp)
je 0x68b7
leaq 0x159a7(%rip), %r15     # 0x1c235
xorl %r12d, %r12d
xorl %r13d, %r13d
movq (%r14), %rdx
addq %r12, %rdx
movq %rbx, %rdi
movq %r15, %rsi
xorl %eax, %eax
callq 0x45b0
incq %r13
movl 0x4(%rsp), %eax
addq $0x8, %r12
cmpq %rax, %r13
jb 0x6894
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x20a63(%rip), %rax     # 0x27330
movl (%rax), %ecx
shrl $0x1f, %ecx
movq 0x8(%rax,%rcx,8), %rbx
leaq 0x1589a(%rip), %rsi     # 0x1c178
movl $0x8, %edx
movq %rbx, %rdi
callq 0x4330
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rdx
movq %rbx, %rdi
callq 0x4330
movq %rax, %rdi
callq 0x4160
movl $0x1, %edi
callq 0x4370
movq %rax, %rbx
movq 0x8(%rsp), %rdi
cmpq %r15, %rdi
je 0x6929
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x42d0
movq %rbx, %rdi
callq 0x4580
nop
// File: /workspace/github_cpp_makefile_star2_O3/hanhwi[P]SimPoint/analysiscode/Datapoint.cpp
// Function: operator<<(std::ostream&, Datapoint const&)
ostream &operator<<(ostream &os, const Datapoint &dp) {
    unsigned int s = dp.size();
    for (unsigned int i = 0; i < s; i++) {
        os.precision(20);
        os << dp[i] << "\t";
    }
    return os;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movq %rdi, %rbx
movq 0x8(%rsi), %rax
subq (%rsi), %rax
shrq $0x3, %rax
testl %eax, %eax
je 0x6ac9
movq %rsi, %r14
movl %eax, %r12d
xorl %r13d, %r13d
leaq 0x157a9(%rip), %r15     # 0x1c239
movq (%rbx), %rax
movq -0x18(%rax), %rax
movq $0x14, 0x8(%rbx,%rax)
movq (%r14), %rax
movsd (%rax,%r13,8), %xmm0
movq %rbx, %rdi
callq 0x4510
movl $0x1, %edx
movq %rax, %rdi
movq %r15, %rsi
callq 0x4330
incq %r13
cmpq %r13, %r12
jne 0x6a90
movq %rbx, %rax
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O3/hanhwi[P]SimPoint/analysiscode/Dataset.cpp
// Function: Dataset::write(std::ostream&) const
void Dataset::write(ostream &os) const {
    bool hasWeights = weights.size() > 0;
    os.precision(20);

    unsigned int nr = numRows();
    os << nr << ":" << (hasWeights ? "w\n" : "\n");

    for (unsigned int row = 0; row < nr; row++) {
        if (hasWeights) { os << weights[row] << " "; }
        (*this)[row].write(os);
        os << endl;
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
movq 0x18(%rdi), %r12
movq 0x20(%rdi), %r13
movq (%rsi), %rax
movq -0x18(%rax), %rax
movq $0x14, 0x8(%rsi,%rax)
movq 0x8(%rdi), %rax
subq (%rdi), %rax
sarq $0x3, %rax
movabsq $-0x5555555555555555, %rbp # imm = 0xAAAAAAAAAAAAAAAB
imulq %rax, %rbp
movl $0xffffffff, %r15d      # imm = 0xFFFFFFFF
movq %rbp, %rsi
andq %r15, %rsi
movq %rbx, %rdi
callq 0x41c0
movq %rax, (%rsp)
leaq 0x15212(%rip), %rsi     # 0x1c295
movl $0x1, %edx
movq %rax, %rdi
callq 0x4330
xorl %edx, %edx
cmpq %r12, %r13
leaq 0x15f89(%rip), %rax     # 0x1d025
leaq 0x151ed(%rip), %rsi     # 0x1c290
cmoveq %rax, %rsi
setne %dl
incq %rdx
movq (%rsp), %rdi
callq 0x4330
andq %rbp, %r15
je 0x712d
movl %ebp, %ebp
xorl %r15d, %r15d
cmpq %r12, %r13
je 0x70eb
movq 0x18(%r14), %rax
movsd (%rax,%r15,8), %xmm0
movq %rbx, %rdi
callq 0x4510
movl $0x1, %edx
movq %rax, %rdi
leaq 0x1811e(%rip), %rsi     # 0x1f204
callq 0x4330
leaq (%r15,%r15,2), %rdi
shlq $0x3, %rdi
addq (%r14), %rdi
movq %rbx, %rsi
callq 0x6606
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x4290
movsbl %al, %esi
movq %rbx, %rdi
callq 0x4030
movq %rax, %rdi
callq 0x41d0
incq %r15
cmpq %rbp, %r15
jne 0x70c0
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/hanhwi[P]SimPoint/analysiscode/Dataset.cpp
// Function: Dataset::write(_IO_FILE*) const
void Dataset::write(FILE *out) const {
    bool hasWeights = weights.size() > 0;
    unsigned int nr = numRows();

    fprintf(out, "%u:", nr);
    if (hasWeights) { fprintf(out, "w"); }
    fprintf(out, "\n");

    for (unsigned int row = 0; row < nr; row++) {
        if (hasWeights) { fprintf(out, "%.20f ", weights[row]); }
        (*this)[row].write(out);
        fprintf(out, "\n");
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
movq 0x20(%rdi), %r12
movq 0x8(%rdi), %rax
subq (%rdi), %rax
movq 0x18(%rdi), %r13
sarq $0x3, %rax
movabsq $-0x5555555555555555, %r15 # imm = 0xAAAAAAAAAAAAAAAB
imulq %rax, %r15
leaq 0x1511e(%rip), %rsi     # 0x1c293
movq %rbx, %rdi
movl %r15d, %edx
xorl %eax, %eax
callq 0x4460
cmpq %r13, %r12
je 0x7194
movl $0x77, %edi
movq %rbx, %rsi
callq 0x43a0
movl $0xa, %edi
movq %rbx, %rsi
callq 0x43a0
testl %r15d, %r15d
je 0x71f4
movl %r15d, %ebp
xorl %r15d, %r15d
cmpq %r13, %r12
je 0x71cc
movq 0x18(%r14), %rax
movsd (%rax,%r15,8), %xmm0
movq %rbx, %rdi
leaq 0x15040(%rip), %rsi     # 0x1c205
movb $0x1, %al
callq 0x4460
leaq (%r15,%r15,2), %rdi
shlq $0x3, %rdi
addq (%r14), %rdi
movq %rbx, %rsi
callq 0x6684
movl $0xa, %edi
movq %rbx, %rsi
callq 0x43a0
incq %r15
cmpq %rbp, %r15
jne 0x71ac
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O3/hanhwi[P]SimPoint/analysiscode/Dataset.cpp
// Function: Dataset::read(std::istream&)
void Dataset::read(istream &is) {
    unsigned int length;
    is >> length;

    char c = is.get();
    Utilities::check(':' == c, "Dataset::read() missing : separator");

    resize(length);

    // check for weights (backwards compatibility)
    c = is.get();
    bool hasWeights = (c == 'w');
    double weight;
    if (! hasWeights) { is.putback(c); }

    for (unsigned int i = 0; i < length; i++) {
        if (hasWeights) {
            is >> weight;
            setWeight(i, weight);
        } else {
            setWeight(i, 1.0 / length);
        }
        (*this)[i].read(is);
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movq %rsi, %rbx
movq %rdi, %r14
leaq 0xc(%rsp), %rsi
movq %rbx, %rdi
callq 0x4570
movq %rbx, %rdi
callq 0x4360
movl %eax, %ebp
leaq 0x20(%rsp), %r15
movq %r15, -0x10(%r15)
leaq 0x15058(%rip), %rsi     # 0x1c297
leaq 0x15074(%rip), %rdx     # 0x1c2ba
leaq 0x10(%rsp), %rdi
callq 0x6058
cmpb $0x3a, %bpl
jne 0x7347
movq 0x10(%rsp), %rdi
cmpq %r15, %rdi
je 0x7271
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x42d0
movl 0xc(%rsp), %r15d
leaq 0x30(%rsp), %r12
movq %r12, %rdi
callq 0x6360
movq %r14, %rdi
movq %r15, %rsi
movq %r12, %rdx
callq 0x7cd0
leaq 0x18(%r14), %rdi
movq %r15, %rsi
callq 0x6be4
movq 0x30(%rsp), %rdi
testq %rdi, %rdi
je 0x72b4
movq 0x40(%rsp), %rsi
subq %rdi, %rsi
callq 0x42d0
movq %rbx, %rdi
callq 0x4360
movzbl %al, %ebp
cmpl $0x77, %ebp
je 0x72cf
movsbl %al, %esi
movq %rbx, %rdi
callq 0x45c0
movl 0xc(%rsp), %eax
testl %eax, %eax
je 0x7338
xorl %r12d, %r12d
leaq 0x10(%rsp), %r15
xorl %r13d, %r13d
cmpl $0x77, %ebp
jne 0x72fa
movq %rbx, %rdi
movq %r15, %rsi
callq 0x41b0
movsd 0x10(%rsp), %xmm0
jmp 0x7310
movl %eax, %eax
xorps %xmm1, %xmm1
cvtsi2sd %rax, %xmm1
movsd 0x14f7c(%rip), %xmm0    # 0x1c288
divsd %xmm1, %xmm0
movq 0x18(%r14), %rax
movsd %xmm0, (%rax,%r13,8)
movq (%r14), %rdi
addq %r12, %rdi
movq %rbx, %rsi
callq 0x66ec
incq %r13
movl 0xc(%rsp), %eax
addq $0x18, %r12
cmpq %rax, %r13
jb 0x72e2
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x1ffe2(%rip), %rax     # 0x27330
movl (%rax), %ecx
shrl $0x1f, %ecx
movq 0x8(%rax,%rcx,8), %rbx
leaq 0x14e19(%rip), %rsi     # 0x1c178
movl $0x8, %edx
movq %rbx, %rdi
callq 0x4330
movq 0x10(%rsp), %rsi
movq 0x18(%rsp), %rdx
movq %rbx, %rdi
callq 0x4330
movq %rax, %rdi
callq 0x4160
movl $0x1, %edi
callq 0x4370
movq %rax, %rbx
movq 0x10(%rsp), %rdi
cmpq %r15, %rdi
je 0x73c6
movq 0x20(%rsp), %rsi
incq %rsi
jmp 0x73c1
movq %rax, %rbx
jmp 0x73c6
movq %rax, %rbx
movq 0x30(%rsp), %rdi
testq %rdi, %rdi
je 0x73c6
movq 0x40(%rsp), %rsi
subq %rdi, %rsi
callq 0x42d0
movq %rbx, %rdi
callq 0x4580
// File: /workspace/github_cpp_makefile_star2_O3/hanhwi[P]SimPoint/analysiscode/Dataset.cpp
// Function: Dataset::read(_IO_FILE*)
void Dataset::read(FILE *in) {
    unsigned int length;
    fscanf(in, "%u", &length);

    char c = fgetc(in);
    Utilities::check(':' == c, "Dataset::read() missing : separator");

    resize(length);

    // check for weights (backwards compatibility)
    c = fgetc(in);
    bool hasWeights = (c == 'w');
    double weight;
    if (! hasWeights) { ungetc(c, in); }

    for (unsigned int i = 0; i < length; i++) {
        if (hasWeights) {
            fscanf(in, "%lf", &weight);
            setWeight(i, weight);
        } else {
            setWeight(i, 1.0 / length);
        }
        (*this)[i].read(in);
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movq %rsi, %rbx
movq %rdi, %r14
leaq 0x14e21(%rip), %rsi     # 0x1c232
leaq 0xc(%rsp), %rdx
movq %rbx, %rdi
xorl %eax, %eax
callq 0x45b0
movq %rbx, %rdi
callq 0x44e0
movl %eax, %ebp
leaq 0x20(%rsp), %r15
movq %r15, -0x10(%r15)
leaq 0x14e5d(%rip), %rsi     # 0x1c297
leaq 0x14e79(%rip), %rdx     # 0x1c2ba
leaq 0x10(%rsp), %rdi
callq 0x6058
cmpb $0x3a, %bpl
jne 0x7555
movq 0x10(%rsp), %rdi
cmpq %r15, %rdi
je 0x746c
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x42d0
movl 0xc(%rsp), %r15d
leaq 0x30(%rsp), %r12
movq %r12, %rdi
callq 0x6360
movq %r14, %rdi
movq %r15, %rsi
movq %r12, %rdx
callq 0x7cd0
leaq 0x18(%r14), %rdi
movq %r15, %rsi
callq 0x6be4
movq 0x30(%rsp), %rdi
testq %rdi, %rdi
je 0x74af
movq 0x40(%rsp), %rsi
subq %rdi, %rsi
callq 0x42d0
movq %rbx, %rdi
callq 0x44e0
movl %eax, %ebp
shll $0x18, %ebp
cmpl $0x77000000, %ebp       # imm = 0x77000000
je 0x74d1
movl %ebp, %edi
sarl $0x18, %edi
movq %rbx, %rsi
callq 0x4070
movl 0xc(%rsp), %eax
testl %eax, %eax
je 0x7546
leaq 0x10(%rsp), %r12
xorl %r13d, %r13d
xorl %r15d, %r15d
cmpl $0x77000000, %ebp       # imm = 0x77000000
jne 0x7508
movq %rbx, %rdi
leaq 0x14d3f(%rip), %rsi     # 0x1c235
movq %r12, %rdx
xorl %eax, %eax
callq 0x45b0
movsd 0x10(%rsp), %xmm0
jmp 0x751e
movl %eax, %eax
xorps %xmm1, %xmm1
cvtsi2sd %rax, %xmm1
movsd 0x14d6e(%rip), %xmm0    # 0x1c288
divsd %xmm1, %xmm0
movq 0x18(%r14), %rax
movsd %xmm0, (%rax,%r15,8)
movq (%r14), %rdi
addq %r13, %rdi
movq %rbx, %rsi
callq 0x6802
incq %r15
movl 0xc(%rsp), %eax
addq $0x18, %r13
cmpq %rax, %r15
jb 0x74e4
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x1fdd4(%rip), %rax     # 0x27330
movl (%rax), %ecx
shrl $0x1f, %ecx
movq 0x8(%rax,%rcx,8), %rbx
leaq 0x14c0b(%rip), %rsi     # 0x1c178
movl $0x8, %edx
movq %rbx, %rdi
callq 0x4330
movq 0x10(%rsp), %rsi
movq 0x18(%rsp), %rdx
movq %rbx, %rdi
callq 0x4330
movq %rax, %rdi
callq 0x4160
movl $0x1, %edi
callq 0x4370
movq %rax, %rbx
movq 0x10(%rsp), %rdi
cmpq %r15, %rdi
je 0x75d4
movq 0x20(%rsp), %rsi
incq %rsi
jmp 0x75cf
movq %rax, %rbx
jmp 0x75d4
movq %rax, %rbx
movq 0x30(%rsp), %rdi
testq %rdi, %rdi
je 0x75d4
movq 0x40(%rsp), %rsi
subq %rdi, %rsi
callq 0x42d0
movq %rbx, %rdi
callq 0x4580
// File: /workspace/github_cpp_makefile_star2_O3/hanhwi[P]SimPoint/analysiscode/Dataset.cpp
// Function: Dataset::writeBinary(std::ostream&) const
void Dataset::writeBinary(ostream &os) const {
    // write the header information... size and whether weights are included
    unsigned int length = numRows();
    os.write((char *)&length, sizeof(unsigned int));

    unsigned int hasWeights = weights.size() > 0;
    os.write((char *)&hasWeights, sizeof(unsigned int));

    // write out all the data & weights (if appropriate)
    for (unsigned int row = 0; row < length; row++) {
        if (hasWeights) { os.write((char *)&(weights[row]), sizeof(double)); }
        (*this)[row].writeBinary(os);
    }
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x10, %rsp
movq %rsi, %rbx
movq %rdi, %r14
movq 0x8(%rdi), %rax
subq (%rdi), %rax
shrq $0x3, %rax
imull $0xaaaaaaab, %eax, %eax # imm = 0xAAAAAAAB
leaq 0xc(%rsp), %r15
movl %eax, (%r15)
movl $0x4, %edx
movq %rsi, %rdi
movq %r15, %rsi
callq 0x43e0
movq 0x20(%r14), %rax
xorl %ecx, %ecx
cmpq 0x18(%r14), %rax
setne %cl
leaq 0x8(%rsp), %rsi
movl %ecx, (%rsi)
movl $0x4, %edx
movq %rbx, %rdi
callq 0x43e0
cmpl $0x0, (%r15)
je 0x7685
xorl %r15d, %r15d
xorl %r12d, %r12d
xorl %r13d, %r13d
cmpl $0x0, 0x8(%rsp)
je 0x7663
movq 0x18(%r14), %rsi
addq %r15, %rsi
movl $0x8, %edx
movq %rbx, %rdi
callq 0x43e0
movq (%r14), %rdi
addq %r12, %rdi
movq %rbx, %rsi
callq 0x6932
incq %r13
movl 0xc(%rsp), %eax
addq $0x18, %r12
addq $0x8, %r15
cmpq %rax, %r13
jb 0x7648
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
nop
// File: /workspace/github_cpp_makefile_star2_O3/hanhwi[P]SimPoint/analysiscode/Dataset.cpp
// Function: Dataset::writeBinary(_IO_FILE*) const
void Dataset::writeBinary(FILE *out) const {
    // write the header information... size and whether weights are included
    unsigned int length = numRows();
    fwrite((void *)&length, sizeof(unsigned int), 1, out);

    unsigned int hasWeights = weights.size() > 0;
    fwrite((void *)&hasWeights, sizeof(unsigned int), 1, out);

    // write out all the data & weights (if appropriate)
    for (unsigned int row = 0; row < length; row++) {
        if (hasWeights) { fwrite((void *)&(weights[row]), sizeof(double), 1, out); }
        (*this)[row].writeBinary(out);
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x10, %rsp
movq %rsi, %rbx
movq %rdi, %r14
movq 0x8(%rdi), %rax
subq (%rdi), %rax
shrq $0x3, %rax
imull $0xaaaaaaab, %eax, %eax # imm = 0xAAAAAAAB
leaq 0xc(%rsp), %r15
movl %eax, (%r15)
movl $0x4, %esi
movl $0x1, %edx
movq %r15, %rdi
movq %rbx, %rcx
callq 0x45e0
movq 0x20(%r14), %rax
xorl %ecx, %ecx
cmpq 0x18(%r14), %rax
setne %cl
leaq 0x8(%rsp), %rdi
movl %ecx, (%rdi)
movl $0x4, %esi
movl $0x1, %edx
movq %rbx, %rcx
callq 0x45e0
movl (%r15), %r15d
testq %r15, %r15
je 0x7746
movl 0x8(%rsp), %ebp
xorl %r12d, %r12d
testl %ebp, %ebp
je 0x772b
leaq (,%r12,8), %rdi
addq 0x18(%r14), %rdi
movl $0x8, %esi
movl $0x1, %edx
movq %rbx, %rcx
callq 0x45e0
leaq (%r12,%r12,2), %rdi
shlq $0x3, %rdi
addq (%r14), %rdi
movq %rbx, %rsi
callq 0x6976
incq %r12
cmpq %r15, %r12
jne 0x7709
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O3/hanhwi[P]SimPoint/analysiscode/Dataset.cpp
// Function: Dataset::readBinary(std::istream&)
void Dataset::readBinary(istream &is) {
    unsigned int length;
    is.read((char *)&length, sizeof(unsigned int));

    unsigned int hasWeights;
    is.read((char *)&hasWeights, sizeof(unsigned int));

    resize(length);

    double weight;
    for (unsigned int i = 0; i < length; i++) {
        if (hasWeights) {
            is.read((char *)&weight, sizeof(double));
            setWeight(i, weight);
        } else {
            setWeight(i, 1.0 / length);
        }
        (*this)[i].readBinary(is);
    }
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x30, %rsp
movq %rsi, %rbx
movq %rdi, %r14
leaq 0x8(%rsp), %r15
movl $0x4, %edx
movq %rsi, %rdi
movq %r15, %rsi
callq 0x43b0
leaq 0xc(%rsp), %rsi
movl $0x4, %edx
movq %rbx, %rdi
callq 0x43b0
movl (%r15), %r15d
leaq 0x18(%rsp), %r12
movq %r12, %rdi
callq 0x6360
movq %r14, %rdi
movq %r15, %rsi
movq %r12, %rdx
callq 0x7cd0
leaq 0x18(%r14), %rdi
movq %r15, %rsi
callq 0x6be4
movq 0x18(%rsp), %rdi
testq %rdi, %rdi
je 0x77cf
movq 0x28(%rsp), %rsi
subq %rdi, %rsi
callq 0x42d0
movl 0x8(%rsp), %eax
testl %eax, %eax
je 0x783f
xorl %r12d, %r12d
leaq 0x10(%rsp), %r15
xorl %r13d, %r13d
cmpl $0x0, 0xc(%rsp)
je 0x7801
movl $0x8, %edx
movq %rbx, %rdi
movq %r15, %rsi
callq 0x43b0
movsd 0x10(%rsp), %xmm0
jmp 0x7817
movl %eax, %eax
xorps %xmm1, %xmm1
cvtsi2sd %rax, %xmm1
movsd 0x14a75(%rip), %xmm0    # 0x1c288
divsd %xmm1, %xmm0
movq 0x18(%r14), %rax
movsd %xmm0, (%rax,%r13,8)
movq (%r14), %rdi
addq %r12, %rdi
movq %rbx, %rsi
callq 0x69c6
incq %r13
movl 0x8(%rsp), %eax
addq $0x18, %r12
cmpq %rax, %r13
jb 0x77e2
addq $0x30, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
movq %rax, %rbx
movq 0x18(%rsp), %rdi
testq %rdi, %rdi
je 0x7867
movq 0x28(%rsp), %rsi
subq %rdi, %rsi
callq 0x42d0
movq %rbx, %rdi
callq 0x4580
nop
// File: /workspace/github_cpp_makefile_star2_O3/hanhwi[P]SimPoint/analysiscode/Dataset.cpp
// Function: Dataset::readBinary(_IO_FILE*)
void Dataset::readBinary(FILE *in) {
    unsigned int length;
    fread((void *)&length, sizeof(unsigned int), 1, in);

    unsigned int hasWeights;
    fread((void *)&hasWeights, sizeof(unsigned int), 1, in);

    resize(length);

    double weight;
    for (unsigned int i = 0; i < length; i++) {
        if (hasWeights) {
            fread((void *)&weight, sizeof(double), 1, in);
            setWeight(i, weight);
        } else {
            setWeight(i, 1.0 / length);
        }
        (*this)[i].readBinary(in);
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movq %rsi, %rbx
movq %rdi, %r14
leaq 0x1c(%rsp), %r15
movl $0x4, %esi
movl $0x1, %edx
movq %r15, %rdi
movq %rbx, %rcx
callq 0x4490
leaq 0x4(%rsp), %rdi
movl $0x4, %esi
movl $0x1, %edx
movq %rbx, %rcx
callq 0x4490
movl (%r15), %r15d
leaq 0x20(%rsp), %r12
movq %r12, %rdi
callq 0x6360
movq %r14, %rdi
movq %r15, %rsi
movq %r12, %rdx
callq 0x7cd0
leaq 0x18(%r14), %rdi
movq %r15, %rsi
callq 0x6be4
movq 0x20(%rsp), %rdi
testq %rdi, %rdi
je 0x78f6
movq 0x30(%rsp), %rsi
subq %rdi, %rsi
callq 0x42d0
testq %r15, %r15
je 0x796f
movl 0x4(%rsp), %ebp
cvtsi2sd %r15, %xmm0
movsd 0x1497c(%rip), %xmm1    # 0x1c288
divsd %xmm0, %xmm1
movsd %xmm1, 0x8(%rsp)
xorl %r13d, %r13d
leaq 0x10(%rsp), %r12
movsd 0x8(%rsp), %xmm0
testl %ebp, %ebp
je 0x7943
movl $0x8, %esi
movl $0x1, %edx
movq %r12, %rdi
movq %rbx, %rcx
callq 0x4490
movsd 0x10(%rsp), %xmm0
movq 0x18(%r14), %rax
movsd %xmm0, (%rax,%r13,8)
leaq (,%r13,2), %rdi
addq %r13, %rdi
shlq $0x3, %rdi
addq (%r14), %rdi
movq %rbx, %rsi
callq 0x6a12
incq %r13
cmpq %r15, %r13
jne 0x791e
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq 0x20(%rsp), %rdi
testq %rdi, %rdi
je 0x7998
movq 0x30(%rsp), %rsi
subq %rdi, %rsi
callq 0x42d0
movq %rbx, %rdi
callq 0x4580
// File: /workspace/github_cpp_makefile_star2_O3/hanhwi[P]SimPoint/analysiscode/Dataset.cpp
// Function: operator<<(std::ostream&, Dataset const&)
ostream &operator<<(ostream &os, const Dataset &ds) {
    unsigned int s = ds.size();
    for (unsigned int i = 0; i < s; i++) {
        os << ds[i] << endl;
    }

    return os;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movq %rdi, %rbx
movq 0x8(%rsi), %rcx
subq (%rsi), %rcx
sarq $0x3, %rcx
movabsq $-0x5555555555555555, %rax # imm = 0xAAAAAAAAAAAAAAAB
imulq %rcx, %rax
testl %eax, %eax
je 0x7a1a
movq %rsi, %r14
movl %eax, %eax
shlq $0x3, %rax
leaq (%rax,%rax,2), %r12
xorl %r13d, %r13d
movq (%r14), %rsi
addq %r13, %rsi
movq %rbx, %rdi
callq 0x6a65
movq %rax, %r15
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r15, %rdi
movl $0xa, %esi
callq 0x4290
movsbl %al, %esi
movq %r15, %rdi
callq 0x4030
movq %rax, %rdi
callq 0x41d0
addq $0x18, %r13
cmpq %r13, %r12
jne 0x79d9
movq %rbx, %rax
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
nop
// File: /workspace/github_cpp_makefile_star2_O3/hanhwi[P]SimPoint/analysiscode/FVParser.cpp
// Function: FVParser::FVParser(_IO_FILE*)
FVParser::FVParser(FILE *input_file) {
    Utilities::check(input_file != NULL, 
                     "FVParser::FVParser() input_file is NULL");
    input = input_file;
    lineNumber = 0;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x20, %rsp
movq %rsi, %r14
movq %rdi, %rbx
leaq 0x10(%rsp), %r15
movq %r15, -0x10(%r15)
leaq 0x13ecf(%rip), %rsi     # 0x1c2d2
leaq 0x13eef(%rip), %rdx     # 0x1c2f9
movq %rsp, %rdi
callq 0x6058
testq %r14, %r14
je 0x8441
movq (%rsp), %rdi
cmpq %r15, %rdi
je 0x842d
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x42d0
movq %r14, (%rbx)
movl $0x0, 0x8(%rbx)
addq $0x20, %rsp
popq %rbx
popq %r14
popq %r15
retq
leaq 0x1eee8(%rip), %rax     # 0x27330
movl (%rax), %ecx
shrl $0x1f, %ecx
movq 0x8(%rax,%rcx,8), %rbx
leaq 0x13d1f(%rip), %rsi     # 0x1c178
movl $0x8, %edx
movq %rbx, %rdi
callq 0x4330
movq (%rsp), %rsi
movq 0x8(%rsp), %rdx
movq %rbx, %rdi
callq 0x4330
movq %rax, %rdi
callq 0x4160
movl $0x1, %edi
callq 0x4370
movq %rax, %rbx
movq (%rsp), %rdi
cmpq %r15, %rdi
je 0x84a2
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x42d0
movq %rbx, %rdi
callq 0x4580
// File: /workspace/github_cpp_makefile_star2_O3/hanhwi[P]SimPoint/analysiscode/KMeans.cpp
// Function: KMeans::initializeRandomly(int, Dataset const&, Dataset*)
void KMeans::initializeRandomly(int randSeed, const Dataset &data,
        Dataset *centers) {
    Random rand(randSeed);

    for (unsigned int i = 0; i < centers->numRows(); i++) {
        int ndx = rand.randInt() % data.numRows();
        (*centers)[i] = data[ndx];
    }
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x120, %rsp            # imm = 0x120
movslq %edi, %rax
movq %rax, %rcx
negq %rcx
cmpl $0x2, %eax
cmovlq %rax, %rcx
movq %rcx, 0x8(%rsp)
movq $0x75bcd15, 0x10(%rsp)  # imm = 0x75BCD15
movq $0x0, 0x18(%rsp)
movq 0x8(%rdx), %rax
subq (%rdx), %rax
shrq $0x3, %rax
imull $0xaaaaaaab, %eax, %eax # imm = 0xAAAAAAAB
testl %eax, %eax
je 0x888c
movq %rdx, %rbx
movq %rsi, %r14
xorl %r12d, %r12d
leaq 0x8(%rsp), %r15
xorl %r13d, %r13d
movq %r15, %rdi
callq 0x198b2
mulss 0x13af3(%rip), %xmm0    # 0x1c330
cvttss2si %xmm0, %eax
movq (%r14), %rcx
movq 0x8(%r14), %rdx
subq %rcx, %rdx
shrq $0x3, %rdx
imull $0xaaaaaaab, %edx, %esi # imm = 0xAAAAAAAB
xorl %edx, %edx
divl %esi
movslq %edx, %rax
leaq (%rax,%rax,2), %rax
leaq (%rcx,%rax,8), %rsi
movq (%rbx), %rdi
addq %r12, %rdi
callq 0x828a
incq %r13
movq 0x8(%rbx), %rax
subq (%rbx), %rax
shrq $0x3, %rax
imull $0xaaaaaaab, %eax, %eax # imm = 0xAAAAAAAB
addq $0x18, %r12
cmpq %rax, %r13
jb 0x882d
addq $0x120, %rsp            # imm = 0x120
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
nop
// File: /workspace/github_cpp_makefile_star2_O3/hanhwi[P]SimPoint/analysiscode/KMeans.cpp
// Function: KMeans::findLabelsAndDists(Dataset const&, Dataset const&, std::vector<int, std::allocator<int>>*, Datapoint*)
void KMeans::findLabelsAndDists(const Dataset &data, const Dataset &centers,
                                vector<int> *labels, Datapoint *dists) {
    unsigned int n = data.numRows();
    unsigned int k = centers.numRows();
    for (unsigned int i = 0; i < n; i++) {
        (*labels)[i] = 0;
        double minDist = data[i].distSquared(centers[0]);

        for (unsigned int c = 1; c < k; c++) {
            double d = data[i].distSquared(centers[c]);
            if (d < minDist) {
                (*labels)[i] = c;
                minDist = d;
            }
        }
        if (dists) { (*dists)[i] = sqrt(minDist); }
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movq %rcx, 0x18(%rsp)
movq %rdx, 0x20(%rsp)
movq %rsi, 0x8(%rsp)
movq 0x8(%rdi), %rax
subq (%rdi), %rax
sarq $0x3, %rax
movabsq $-0x5555555555555555, %rcx # imm = 0xAAAAAAAAAAAAAAAB
imulq %rcx, %rax
testl %eax, %eax
je 0x9039
movq %rdi, %r12
movq 0x8(%rsp), %rdx
movq 0x8(%rdx), %rsi
subq (%rdx), %rsi
sarq $0x3, %rsi
imulq %rcx, %rsi
movl %eax, %eax
movq %rax, 0x28(%rsp)
movq %rsi, 0x30(%rsp)
movl %esi, %ebp
xorl %r13d, %r13d
movq 0x20(%rsp), %rax
movq (%rax), %rax
movl $0x0, (%rax,%r13,4)
leaq (,%r13,2), %rbx
addq %r13, %rbx
shlq $0x3, %rbx
movq (%r12), %rdi
addq %rbx, %rdi
movq 0x8(%rsp), %rax
movq (%rax), %rsi
callq 0x645c
testl $0xfffffffe, 0x30(%rsp) # imm = 0xFFFFFFFE
movsd %xmm0, 0x10(%rsp)
je 0x8ffa
movl $0x1, %r14d
movl $0x18, %r15d
movq (%r12), %rdi
addq %rbx, %rdi
movq 0x8(%rsp), %rax
movq (%rax), %rsi
addq %r15, %rsi
callq 0x645c
movsd 0x10(%rsp), %xmm1
ucomisd %xmm0, %xmm1
jbe 0x8fe8
movq 0x20(%rsp), %rax
movq (%rax), %rax
movl %r14d, (%rax,%r13,4)
movapd %xmm0, %xmm1
movsd %xmm1, 0x10(%rsp)
incq %r14
addq $0x18, %r15
cmpq %r14, %rbp
jne 0x8fb5
cmpq $0x0, 0x18(%rsp)
je 0x902b
movsd 0x10(%rsp), %xmm0
ucomisd 0x13330(%rip), %xmm0    # 0x1c340
jb 0x9018
sqrtsd %xmm0, %xmm0
jmp 0x901d
callq 0x4210
movq 0x18(%rsp), %rax
movq (%rax), %rax
movsd %xmm0, (%rax,%r13,8)
incq %r13
cmpq 0x28(%rsp), %r13
jne 0x8f66
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq