A bunch of shitty hacks to get slightly more accurate alignments

This commit is contained in:
Flawed
2023-10-02 19:06:17 -07:00
parent 26eaf724f4
commit 4bafe6d9e5
3 changed files with 105 additions and 4 deletions
+3 -1
View File
@@ -29,7 +29,9 @@ def debug_similarity_matrix(similarity_json_file, opcode):
print(f"Similarities for {hex(opcode)}")
for new_opcode, similarity in entries.items():
entries = list(entries.items())
entries.sort(key=lambda x: x[1], reverse=True)
for new_opcode, similarity in entries:
print(f"\t{hex(new_opcode)} => {similarity}")
if similarity > max_score:
max_opcode = new_opcode