diff options
author | Aina Niemetz <aina.niemetz@gmail.com> | 2021-04-20 13:25:10 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-20 20:25:10 +0000 |
commit | eee194ba0e228d28aa8bdd40a360b98fc3d0613f (patch) | |
tree | 73013077dbfdf0cad49291abe851d1ed2cc54370 /test | |
parent | 54c3b8f716b4313f967c91ca9f55d2385a21e28c (diff) |
Remove support for CVC3 language. (#6369)
Diffstat (limited to 'test')
-rw-r--r-- | test/api/ouroborous.cpp | 24 |
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; } |