From 5f998504d88e507bae22cdd7cc0dfd20f786ed99 Mon Sep 17 00:00:00 2001 From: Abdalrhman Mohamed <32971963+abdoo8080@users.noreply.github.com> Date: Wed, 29 Sep 2021 21:59:18 -0500 Subject: [PATCH] Print `str.is_digit` and `int.pow2` correctly. (#7276) --- src/printer/smt2/smt2_printer.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/printer/smt2/smt2_printer.cpp b/src/printer/smt2/smt2_printer.cpp index fd98bdeca..0c107573f 100644 --- a/src/printer/smt2/smt2_printer.cpp +++ b/src/printer/smt2/smt2_printer.cpp @@ -965,7 +965,7 @@ std::string Smt2Printer::smtKindString(Kind k, Variant v) case kind::MULT: case kind::NONLINEAR_MULT: return "*"; case kind::IAND: return "iand"; - case kind::POW2: return "POW2"; + case kind::POW2: return "int.pow2"; case kind::EXPONENTIAL: return "exp"; case kind::SINE: return "sin"; case kind::COSINE: return "cos"; @@ -1169,6 +1169,7 @@ std::string Smt2Printer::smtKindString(Kind k, Variant v) case kind::STRING_LT: return "str.<"; case kind::STRING_FROM_CODE: return "str.from_code"; case kind::STRING_TO_CODE: return "str.to_code"; + case Kind::STRING_IS_DIGIT: return "str.is_digit"; case kind::STRING_ITOS: return "str.from_int"; case kind::STRING_STOI: return "str.to_int"; case kind::STRING_IN_REGEXP: return "str.in_re"; -- 2.30.2