Ghidra is a software reverse engineering (SRE) framework
Decompiler: Fix float comparison inputs swap in rule subflow_convert
Luke Serné318e4af95565
diff --git a/Ghidra/Features/Decompiler/src/decompile/cpp/subflow.cc b/Ghidra/Features/Decompiler/src/decompile/cpp/subflow.ccindex bde73ee843..966d805677 100644--- a/Ghidra/Features/Decompiler/src/decompile/cpp/subflow.cc+++ b/Ghidra/Features/Decompiler/src/decompile/cpp/subflow.cc@@ -2652,8 +2652,8 @@ bool SubfloatFlow::traceForward(TransformVar *rvn)}if (preexistingGuard(slot, rvn2)) {TransformOp *rop = newPreexistingOp(2, op->code(), op);- opSetInput(rop, rvn, 0);- opSetInput(rop, rvn2, 1);+ opSetInput(rop, rvn, slot);+ opSetInput(rop, rvn2, 1 - slot);terminatorCount += 1;}break;