diff options
author | Morgan Deters <mdeters@gmail.com> | 2011-04-10 00:44:20 +0000 |
---|---|---|
committer | Morgan Deters <mdeters@gmail.com> | 2011-04-10 00:44:20 +0000 |
commit | 969b144a5f9630d646afdf0ff0a053df38d0ed1a (patch) | |
tree | 92eb38ad161abfe3af979a86285549168d118c5e /src/prop/minisat/core | |
parent | 8495ee8e7de4a7e472d72cfb20290940c59794e3 (diff) |
merge from replay branch
Diffstat (limited to 'src/prop/minisat/core')
-rw-r--r-- | src/prop/minisat/core/Solver.cc | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/prop/minisat/core/Solver.cc b/src/prop/minisat/core/Solver.cc index fd4b18222..10cd02f94 100644 --- a/src/prop/minisat/core/Solver.cc +++ b/src/prop/minisat/core/Solver.cc @@ -395,6 +395,13 @@ void Solver::popTrail() { Lit Solver::pickBranchLit() { +#ifdef CVC4_REPLAY + Lit nextLit = proxy->getNextReplayDecision(); + if (nextLit != lit_Undef) { + return nextLit; + } +#endif /* CVC4_REPLAY */ + Var next = var_Undef; // Random decision: @@ -1051,6 +1058,10 @@ lbool Solver::search(int nof_conflicts) check_type = CHECK_WITHOUTH_PROPAGATION_FINAL; continue; } + +#ifdef CVC4_REPLAY + proxy->logDecision(next); +#endif /* CVC4_REPLAY */ } // Increase decision level and enqueue 'next' |