summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKshitij Bansal <kshitij@cs.nyu.edu>2015-04-17 14:43:20 -0400
committerKshitij Bansal <kshitij@cs.nyu.edu>2015-04-17 14:43:20 -0400
commitd60c406206e9ac414cde2c219a748d51a64d000b (patch)
tree8872501fdbb8947587864f3063c76826c0924ccc
parent1c95df5efa3727a8b709049ef26ebb3fe6f0c6eb (diff)
parentb4b81cc02386e8ef25b9a4fa8bee05de8633c616 (diff)
Merge pull request #72 from kbansal/decision-requirephase
https://www.starexec.org/starexec/secure/details/job.jsp?id=6972 The plot is bit misleading. Those not on x=y, are from QF_BV/asp which are segfaulting (see bugzilla 623). No performance impact on other logics it was tested on.
-rw-r--r--src/prop/minisat/core/Solver.cc8
-rw-r--r--test/regress/regress0/strings/Makefile.am7
2 files changed, 12 insertions, 3 deletions
diff --git a/src/prop/minisat/core/Solver.cc b/src/prop/minisat/core/Solver.cc
index ea370ac08..e54a03435 100644
--- a/src/prop/minisat/core/Solver.cc
+++ b/src/prop/minisat/core/Solver.cc
@@ -482,6 +482,7 @@ Lit Solver::pickBranchLit()
Lit nextLit;
#ifdef CVC4_REPLAY
+
nextLit = MinisatSatSolver::toMinisatLit(proxy->getNextReplayDecision());
if (nextLit != lit_Undef) {
@@ -512,7 +513,12 @@ Lit Solver::pickBranchLit()
if(nextLit != lit_Undef) {
Assert(value(var(nextLit)) == l_Undef, "literal to decide already has value");
decisions++;
- return nextLit;
+ Var next = var(nextLit);
+ if(polarity[next] & 0x2) {
+ return mkLit(next, polarity[next] & 0x1);
+ } else {
+ return nextLit;
+ }
}
Var next = var_Undef;
diff --git a/test/regress/regress0/strings/Makefile.am b/test/regress/regress0/strings/Makefile.am
index 32876bccd..420361af3 100644
--- a/test/regress/regress0/strings/Makefile.am
+++ b/test/regress/regress0/strings/Makefile.am
@@ -33,7 +33,6 @@ TESTS = \
str007.smt2 \
fmf002.smt2 \
type001.smt2 \
- type003.smt2 \
model001.smt2 \
substr001.smt2 \
regexp001.smt2 \
@@ -46,19 +45,23 @@ TESTS = \
loop004.smt2 \
loop005.smt2 \
loop006.smt2 \
- loop007.smt2 \
loop008.smt2 \
loop009.smt2 \
reloop.smt2
+
FAILING_TESTS =
EXTRA_DIST = $(TESTS) \
artemis-0512-nonterm.smt2 \
fmf001.smt2 \
+ type003.smt2 \
+ loop007.smt2 \
type002.smt2
# slow after changes on Nov 20 : artemis-0512-nonterm.smt2
+# slow after decision engine respects requirePhase: type003.smt2 loop007.smt2
+
# and make sure to distribute it
EXTRA_DIST +=
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback