diff options
Diffstat (limited to 'examples/hashsmt')
-rw-r--r-- | examples/hashsmt/sha1smt.cpp | 6 | ||||
-rw-r--r-- | examples/hashsmt/word.cpp | 2 | ||||
-rw-r--r-- | examples/hashsmt/word.h | 2 |
3 files changed, 5 insertions, 5 deletions
diff --git a/examples/hashsmt/sha1smt.cpp b/examples/hashsmt/sha1smt.cpp index 3a33a4bc2..97b79a7d0 100644 --- a/examples/hashsmt/sha1smt.cpp +++ b/examples/hashsmt/sha1smt.cpp @@ -46,7 +46,7 @@ int main(int argc, char* argv[]) { output << DeclareFunctionCommand(ss.str(), cvc4input[i].getExpr(), cvc4input[i].getExpr().getType()) << endl; // Ouput the solution also - BoolExpr solution = (cvc4input[i] == hashsmt::cvc4_uchar8(msg.c_str()[i])); + Expr solution = (cvc4input[i] == hashsmt::cvc4_uchar8(msg.c_str()[i])); output << "; " << AssertCommand(solution) << endl; } @@ -65,9 +65,9 @@ int main(int argc, char* argv[]) { sha1encoder.get_digest(sha1digest); // Create the assertion - BoolExpr assertion; + Expr assertion; for (unsigned i = 0; i < 5; ++ i) { - BoolExpr conjunct = (cvc4digest[i] == hashsmt::cvc4_uint32(sha1digest[i])); + Expr conjunct = (cvc4digest[i] == hashsmt::cvc4_uint32(sha1digest[i])); if (i > 0) { assertion = assertion.andExpr(conjunct); } else { diff --git a/examples/hashsmt/word.cpp b/examples/hashsmt/word.cpp index d1b8e2fef..c6cb8caf2 100644 --- a/examples/hashsmt/word.cpp +++ b/examples/hashsmt/word.cpp @@ -34,7 +34,7 @@ ExprManager* Word::em() { return s_manager; } -BoolExpr Word::operator == (const Word& b) const { +Expr Word::operator == (const Word& b) const { return em()->mkExpr(kind::EQUAL, d_expr, b.getExpr()); } diff --git a/examples/hashsmt/word.h b/examples/hashsmt/word.h index 50fdee0c0..e8d6053c0 100644 --- a/examples/hashsmt/word.h +++ b/examples/hashsmt/word.h @@ -61,7 +61,7 @@ public: } /** Returns the comparison expression */ - CVC4::BoolExpr operator == (const Word& b) const; + CVC4::Expr operator == (const Word& b) const; }; inline std::ostream& operator << (std::ostream& out, const Word& word) { |