diff options
author | Gereon Kremer <gereon.kremer@cs.rwth-aachen.de> | 2020-08-19 15:04:53 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-08-19 08:04:53 -0500 |
commit | 533f87dc6cf44a7bcb84694a5c21e5280425be93 (patch) | |
tree | 2a45e18a7cd974d8e15441c59493b03e1f22faef /test/regress/regress0/smtlib | |
parent | bcbef9dfa053a14ac48f176fe4bde9a1aa2b4931 (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/smtlib')
-rw-r--r-- | test/regress/regress0/smtlib/issue4866.smt2 | 6 |
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) |