mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2025-10-03 09:49:23 +02:00
Merge remote-tracking branch 'origin/Ghidra_11.4'
This commit is contained in:
commit
717cb2a0ce
1 changed files with 10 additions and 1 deletions
|
@ -1476,8 +1476,17 @@ int4 BooleanMatch::evaluate(Varnode *vn1,Varnode *vn2,int4 depth)
|
||||||
else {
|
else {
|
||||||
// Two boolean output ops, compare them directly
|
// Two boolean output ops, compare them directly
|
||||||
if (opc1 == opc2) {
|
if (opc1 == opc2) {
|
||||||
if (varnodeSame(op1->getIn(0),op2->getIn(0)) && varnodeSame(op1->getIn(1),op2->getIn(1)))
|
bool sameOp = true;
|
||||||
|
int numInputs = op1->numInput();
|
||||||
|
for (int i = 0; i < numInputs; ++i){
|
||||||
|
if (!varnodeSame(op1->getIn(i),op2->getIn(i))){
|
||||||
|
sameOp = false;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (sameOp){
|
||||||
return same;
|
return same;
|
||||||
|
}
|
||||||
if (sameOpComplement(op1,op2)) {
|
if (sameOpComplement(op1,op2)) {
|
||||||
return complementary;
|
return complementary;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue