From 39d25b212cb0b7ef11aeabea3c19877a31820d98 Mon Sep 17 00:00:00 2001 From: Clifford Wolf Date: Sun, 22 Feb 2015 12:42:05 +0100 Subject: [PATCH] Fixed "sat -initsteps" off-by-one bug --- passes/sat/sat.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/passes/sat/sat.cc b/passes/sat/sat.cc index b998359dd..79d1ec860 100644 --- a/passes/sat/sat.cc +++ b/passes/sat/sat.cc @@ -1436,7 +1436,7 @@ struct SatPass : public Pass { if (inductlen > 1) inductstep.force_unique_state(1, inductlen + 1); - if (inductlen < tempinduct_skip || inductlen < initsteps || inductlen % stepsize != 0) + if (inductlen <= tempinduct_skip || inductlen <= initsteps || inductlen % stepsize != 0) { if (inductlen < tempinduct_skip) log("\n[induction step %d] Skipping prove for this step (-tempinduct-skip %d).", -- 2.30.2