Merge remote-tracking branch 'origin/Ghidra_11.4'

This commit is contained in:
Ryan Kurtz 2025-05-14 16:29:33 -04:00
commit 717cb2a0ce

View file

@ -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;
} }