MCPcopy Create free account
hub / github.com/Hiro420/NikkeTools / bytecode_equal

Method bytecode_equal

UnLuac/src/unluac/test/Compare.java:32–36  ·  view source on GitHub ↗

Determines if two files of lua bytecode are the same (except possibly for line numbers).

(String file1, String file2)

Source from the content-addressed store, hash-verified

30 * (except possibly for line numbers).
31 */
32 public boolean bytecode_equal(String file1, String file2) {
33 LFunction main1 = file_to_function(file1);
34 LFunction main2 = file_to_function(file2);
35 return function_equal(main1, main2);
36 }
37
38 public boolean function_equal(LFunction f1, LFunction f2) {
39 if(f1.maximumStackSize != f2.maximumStackSize) {

Callers 2

testMethod · 0.95
testcMethod · 0.95

Calls 2

file_to_functionMethod · 0.95
function_equalMethod · 0.95

Tested by

no test coverage detected