summaryrefslogtreecommitdiff
path: root/examples/api/bitvectors.cpp
diff options
context:
space:
mode:
authorAina Niemetz <aina.niemetz@gmail.com>2020-03-31 18:12:16 -0700
committerGitHub <noreply@github.com>2020-03-31 18:12:16 -0700
commitcfeaf40ed6a9d4d7fec925352e30d2470a1ca567 (patch)
treee69411603787d99cea12d729ec0a0a2ae8889f20 /examples/api/bitvectors.cpp
parent186b3872a3de454d0f30224dc2e0a396163c3fdc (diff)
Rename checkValid/query to checkEntailed. (#4191)
This renames api::Solver::checkValidAssuming to checkEntailed and removes api::Solver::checkValid. Internally, SmtEngine::query is renamed to SmtEngine::checkEntailed, and these changes are further propagated to the Result class.
Diffstat (limited to 'examples/api/bitvectors.cpp')
-rw-r--r--examples/api/bitvectors.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/examples/api/bitvectors.cpp b/examples/api/bitvectors.cpp
index 259eb48ff..494a45abc 100644
--- a/examples/api/bitvectors.cpp
+++ b/examples/api/bitvectors.cpp
@@ -87,8 +87,8 @@ int main() {
Expr new_x_eq_new_x_ = em.mkExpr(kind::EQUAL, new_x, new_x_);
cout << " Querying: " << new_x_eq_new_x_ << endl;
- cout << " Expect valid. " << endl;
- cout << " CVC4: " << smt.query(new_x_eq_new_x_) << endl;
+ cout << " Expect entailed. " << endl;
+ cout << " CVC4: " << smt.checkEntailed(new_x_eq_new_x_) << endl;
cout << " Popping context. " << endl;
smt.pop();
@@ -103,14 +103,14 @@ int main() {
smt.assertFormula(assignment2);
cout << " Querying: " << new_x_eq_new_x_ << endl;
- cout << " Expect valid. " << endl;
- cout << " CVC4: " << smt.query(new_x_eq_new_x_) << endl;
+ cout << " Expect ENTAILED. " << endl;
+ cout << " CVC4: " << smt.checkEntailed(new_x_eq_new_x_) << endl;
Expr x_neq_x = em.mkExpr(kind::EQUAL, x, x).notExpr();
std::vector<Expr> v{new_x_eq_new_x_, x_neq_x};
cout << " Querying: " << v << endl;
- cout << " Expect invalid. " << endl;
- cout << " CVC4: " << smt.query(v) << endl;
+ cout << " Expect NOT_ENTAILED. " << endl;
+ cout << " CVC4: " << smt.checkEntailed(v) << endl;
// Assert that a is odd
Expr extract_op = em.mkConst(BitVectorExtract(0, 0));
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback