summaryrefslogtreecommitdiff
path: root/src/smt/command.h
diff options
context:
space:
mode:
authorAbdalrhman Mohamed <32971963+abdoo8080@users.noreply.github.com>2021-02-01 12:40:58 -0600
committerGitHub <noreply@github.com>2021-02-01 12:40:58 -0600
commita85fec1cc9fc4f42dcfefd8c27171d8ce5647449 (patch)
tree4b6820199f4f2763b821de6eda1bfc839448122b /src/smt/command.h
parentc0937f742479d8a5054e42597da9447d55e876c0 (diff)
Avoid calling the printers while converting sexpr to string. (#5842)
This PR modifies sexprToString to use Term::getString to get string constants instead of Term::toString, which depends on the output language. The previous behavior caused CVC4 to crash when AST is picked as the output language.
Diffstat (limited to 'src/smt/command.h')
-rw-r--r--src/smt/command.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/smt/command.h b/src/smt/command.h
index 9330f2015..a88b7e022 100644
--- a/src/smt/command.h
+++ b/src/smt/command.h
@@ -51,8 +51,7 @@ class Model;
/**
* Convert a symbolic expression to string. This method differs from
- * Term::toString in that it does not surround constant strings with double
- * quote symbols.
+ * Term::toString in that it does not depend on the output language.
*
* @param sexpr the symbolic expression to convert
* @return the symbolic expression as string
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback