import pybinkit
binary = pybinkit.Binary()
binary.open(filename, 0)
diff_algorithms = pybinkit.DiffAlgorithms(self.binaries[0], self.binaries[1])
diff_algorithms.do_instruction_hash_match()
diff_algorithms.do_blocks_instruction_hash_match(source_basic_block_addresses, target_basic_block_addresses):
child_matches = diff_algorithms.do_control_flow_match(match.source, match.target, control_flow_type)
control_flow_type:
basic_block_match_combinations = diff_algorithms.do_control_flow_matches((address_pair,), control_flow_type)
basic_block_match_combinations = diff_algorithms.get_basic_block_match_combinations(function_match.basic_block_match_list)
function_matches.add_matches(matches)
function_matches.do_instruction_hash_match()
for function_match in function_matches.get_matches():
print('%x - %x (size: %d)' % (function_match.source, function_match.target, len(function_match.basic_block_match_list)))