summaryrefslogtreecommitdiff
path: root/test/api/ouroborous.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/api/ouroborous.cpp')
-rw-r--r--test/api/ouroborous.cpp24
1 files changed, 12 insertions, 12 deletions
diff --git a/test/api/ouroborous.cpp b/test/api/ouroborous.cpp
index 3f1fa6733..b51982d59 100644
--- a/test/api/ouroborous.cpp
+++ b/test/api/ouroborous.cpp
@@ -10,10 +10,10 @@
* directory for licensing information.
* ****************************************************************************
*
- * "Ouroborous" test: does CVC4 read its own output?
+ * "Ouroborous" test: does cvc5 read its own output?
*
* The "Ouroborous" test, named after the serpent that swallows its
- * own tail, ensures that CVC4 can parse some input, output it again
+ * own tail, ensures that cvc5 can parse some input, output it again
* (in any of its languages) and then parse it again. The result of
* the first parse must be equal to the result of the second parse;
* both strings and expressions are compared for equality.
@@ -57,7 +57,7 @@ int main()
}
catch (...)
{
- std::cerr << "non-cvc4 exception thrown" << std::endl;
+ std::cerr << "non-cvc5 exception thrown" << std::endl;
}
return 1;
}
@@ -66,8 +66,8 @@ std::string parse(std::string instr,
std::string input_language,
std::string output_language)
{
- assert(input_language == "smt2" || input_language == "cvc4");
- assert(output_language == "smt2" || output_language == "cvc4");
+ assert(input_language == "smt2" || input_language == "cvc");
+ assert(output_language == "smt2" || output_language == "cvc");
std::string declarations;
@@ -125,8 +125,8 @@ std::string translate(std::string instr,
std::string input_language,
std::string output_language)
{
- assert(input_language == "smt2" || input_language == "cvc4");
- assert(output_language == "smt2" || output_language == "cvc4");
+ assert(input_language == "smt2" || input_language == "cvc");
+ assert(output_language == "smt2" || output_language == "cvc");
std::cout << "==============================================" << std::endl
<< "translating from "
@@ -159,9 +159,9 @@ void runTestString(std::string instr, std::string instr_language)
<< " in language " << input::LANG_SMTLIB_V2 << std::endl;
std::string smt2str = translate(instr, instr_language, "smt2");
std::cout << "in SMT2 : " << smt2str << std::endl;
- std::string cvcstr = translate(smt2str, "smt2", "cvc4");
+ std::string cvcstr = translate(smt2str, "smt2", "cvc");
std::cout << "in CVC : " << cvcstr << std::endl;
- std::string outstr = translate(cvcstr, "cvc4", "smt2");
+ std::string outstr = translate(cvcstr, "cvc", "smt2");
std::cout << "back to SMT2 : " << outstr << std::endl << std::endl;
assert(outstr == smt2str); // differences in output
@@ -170,8 +170,8 @@ void runTestString(std::string instr, std::string instr_language)
int32_t runTest()
{
runTestString("(= (f (f y)) x)", "smt2");
- runTestString("~BVPLUS(3, 0bin00, 0bin11)[2:1] = 0bin10", "cvc4");
- runTestString("~BVPLUS(3, BVMULT(2, 0bin01, 0bin11), 0bin11)[2:0]", "cvc4");
- runTestString("a[x][y] = a[y][x]", "cvc4");
+ runTestString("~BVPLUS(3, 0bin00, 0bin11)[2:1] = 0bin10", "cvc");
+ runTestString("~BVPLUS(3, BVMULT(2, 0bin01, 0bin11), 0bin11)[2:0]", "cvc");
+ runTestString("a[x][y] = a[y][x]", "cvc");
return 0;
}
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback