From 31efb570a9d5811fd88a34d4915d7d08c81d13fa Mon Sep 17 00:00:00 2001 From: Andres Noetzli Date: Fri, 28 Feb 2020 22:20:18 -0800 Subject: Add support for str.from_code (#3829) This commit adds support for `str.from_code`. This is work towards supporting the new strings standard. The code currently just does an eager expansion of the operator. The commit also renames `STRING_CODE` to `STRING_TO_CODE` to better reflect the names of the operators in the new standard. --- test/unit/theory/evaluator_white.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'test/unit/theory') diff --git a/test/unit/theory/evaluator_white.h b/test/unit/theory/evaluator_white.h index cfdab7c9e..c02aaaed8 100644 --- a/test/unit/theory/evaluator_white.h +++ b/test/unit/theory/evaluator_white.h @@ -168,14 +168,14 @@ class TheoryEvaluatorWhite : public CxxTest::TestSuite // (str.code "A") ---> 65 { - Node n = d_nm->mkNode(kind::STRING_CODE, a); + Node n = d_nm->mkNode(kind::STRING_TO_CODE, a); Node r = eval.eval(n, args, vals); TS_ASSERT_EQUALS(r, d_nm->mkConst(Rational(65))); } // (str.code "") ---> -1 { - Node n = d_nm->mkNode(kind::STRING_CODE, empty); + Node n = d_nm->mkNode(kind::STRING_TO_CODE, empty); Node r = eval.eval(n, args, vals); TS_ASSERT_EQUALS(r, d_nm->mkConst(Rational(-1))); } -- cgit v1.2.3