GP-2912 pcode emit test

This commit is contained in:
James 2023-01-06 22:40:31 +00:00
parent 2ee1d80215
commit 62f14d9f9d

View file

@ -1753,7 +1753,7 @@ public class PcodeEmitContextTest extends AbstractGhidraHeadlessIntegrationTest
program.endTransaction(tid, true); program.endTransaction(tid, true);
} }
private boolean equalPcodeOpArrays(PcodeOp[] array1, PcodeOp[] array2) { public static boolean equalPcodeOpArrays(PcodeOp[] array1, PcodeOp[] array2) {
if (array1 == null && array2 == null) { if (array1 == null && array2 == null) {
return true; return true;
} }
@ -1771,7 +1771,7 @@ public class PcodeEmitContextTest extends AbstractGhidraHeadlessIntegrationTest
return true; return true;
} }
private boolean equalPcodeOps(PcodeOp op1, PcodeOp op2) { public static boolean equalPcodeOps(PcodeOp op1, PcodeOp op2) {
if (op1.getOpcode() != op2.getOpcode()) { if (op1.getOpcode() != op2.getOpcode()) {
return false; return false;
} }
@ -1779,7 +1779,7 @@ public class PcodeEmitContextTest extends AbstractGhidraHeadlessIntegrationTest
} }
//for testing modifications that can the pcode op but nothing else //for testing modifications that can the pcode op but nothing else
private boolean equalInputsAndOutput(PcodeOp op1, PcodeOp op2) { public static boolean equalInputsAndOutput(PcodeOp op1, PcodeOp op2) {
if (!Objects.equals(op1.getOutput(), op2.getOutput())) { if (!Objects.equals(op1.getOutput(), op2.getOutput())) {
return false; return false;
} }