summaryrefslogtreecommitdiff
path: root/test/regress/regress0
diff options
context:
space:
mode:
authorGereon Kremer <gereon.kremer@cs.rwth-aachen.de>2020-08-19 15:04:53 +0200
committerGitHub <noreply@github.com>2020-08-19 08:04:53 -0500
commit533f87dc6cf44a7bcb84694a5c21e5280425be93 (patch)
tree2a45e18a7cd974d8e15441c59493b03e1f22faef /test/regress/regress0
parentbcbef9dfa053a14ac48f176fe4bde9a1aa2b4931 (diff)
Fix SmtEngine::reset() (#4917)
Calling (reset) multiple times produced parsing problems (#4866) and could probably lead to all kinds of interesting issues. In a nutshell, reset() failed to properly reset d_initialOptions (which is used to properly reset d_options) so that all options defaulted after the second call to reset(). This PR properly sets d_initialOptions after a reset (and the filename as well). Fixes #4866.
Diffstat (limited to 'test/regress/regress0')
-rw-r--r--test/regress/regress0/smtlib/issue4866.smt26
1 files changed, 6 insertions, 0 deletions
diff --git a/test/regress/regress0/smtlib/issue4866.smt2 b/test/regress/regress0/smtlib/issue4866.smt2
new file mode 100644
index 000000000..1bbe25dc6
--- /dev/null
+++ b/test/regress/regress0/smtlib/issue4866.smt2
@@ -0,0 +1,6 @@
+; EXIT: 0
+; EXPECT:
+; Test triple reset. There was a bug with restoring options on reset.
+(reset)
+(reset)
+(reset)
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback