summaryrefslogtreecommitdiff
path: root/src/theory/booleans/theory_bool.cpp
diff options
context:
space:
mode:
authorDejan Jovanović <dejan.jovanovic@gmail.com>2012-02-24 20:29:12 +0000
committerDejan Jovanović <dejan.jovanovic@gmail.com>2012-02-24 20:29:12 +0000
commitd8da6a3644d1cdbe62d44a8eb80068da4d1d2855 (patch)
tree773ccef817d1e5cbad85b4c0a1fb44666b1e0600 /src/theory/booleans/theory_bool.cpp
parent5a20a19a30929ad58a9e64a9d8d1f877f3a07ae6 (diff)
Theory interface changes:
solve -> ppAsert staticLearning -> ppStaticLearn preprocess -> ppRewrite SolveStatus -> PPAssertStatus (SOLVE_* -> PP_ASSERT_*) via Eclipse refactoring magic.
Diffstat (limited to 'src/theory/booleans/theory_bool.cpp')
-rw-r--r--src/theory/booleans/theory_bool.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/theory/booleans/theory_bool.cpp b/src/theory/booleans/theory_bool.cpp
index 229a40532..3b3cde33d 100644
--- a/src/theory/booleans/theory_bool.cpp
+++ b/src/theory/booleans/theory_bool.cpp
@@ -134,11 +134,11 @@ Node TheoryBool::getValue(TNode n) {
}
}
-Theory::SolveStatus TheoryBool::solve(TNode in, SubstitutionMap& outSubstitutions) {
+Theory::PPAssertStatus TheoryBool::ppAsert(TNode in, SubstitutionMap& outSubstitutions) {
if (in.getKind() == kind::CONST_BOOLEAN && !in.getConst<bool>()) {
// If we get a false literal, we're in conflict
- return SOLVE_STATUS_CONFLICT;
+ return PP_ASSERT_STATUS_CONFLICT;
}
// Add the substitution from the variable to it's value
@@ -146,17 +146,17 @@ Theory::SolveStatus TheoryBool::solve(TNode in, SubstitutionMap& outSubstitution
if (in[0].getKind() == kind::VARIABLE) {
outSubstitutions.addSubstitution(in[0], NodeManager::currentNM()->mkConst<bool>(false));
} else {
- return SOLVE_STATUS_UNSOLVED;
+ return PP_ASSERT_STATUS_UNSOLVED;
}
} else {
if (in.getKind() == kind::VARIABLE) {
outSubstitutions.addSubstitution(in, NodeManager::currentNM()->mkConst<bool>(true));
} else {
- return SOLVE_STATUS_UNSOLVED;
+ return PP_ASSERT_STATUS_UNSOLVED;
}
}
- return SOLVE_STATUS_SOLVED;
+ return PP_ASSERT_STATUS_SOLVED;
}
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback