mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2025-10-06 03:50:02 +02:00
GP-2912 pcode emit test
This commit is contained in:
parent
2ee1d80215
commit
62f14d9f9d
1 changed files with 3 additions and 3 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue