Fix (#7437)
authorGereon Kremer <nafur42@gmail.com>
Thu, 21 Oct 2021 01:22:55 +0000 (18:22 -0700)
committerGitHub <noreply@github.com>
Thu, 21 Oct 2021 01:22:55 +0000 (18:22 -0700)
This PR reintroduces support for the (deprecated) option interactive-mode. It was erroneously removed in #7295.

Fixes #7379.

src/options/smt_options.toml
test/regress/CMakeLists.txt
test/regress/regress0/options/interactive-mode.smt2 [new file with mode: 0644]

index 19862cab2ad0b056f39461005cd3d4efcd279637..42049619001836f2c8b7c63d3c40ce22148886af 100644 (file)
@@ -259,6 +259,7 @@ name   = "SMT Layer"
   category   = "common"
   long       = "produce-assertions"
   type       = "bool"
+  alias      = ["interactive-mode"]
   help       = "keep an assertions list (enables get-assertions command)"
 
 [[option]]
index 0d8123aa364c41a584c217342f702be1491c9cb0..fca1543c41ffdc83242a25502de398e1a8f8c342 100644 (file)
@@ -767,6 +767,7 @@ set(regress_0_tests
   regress0/nl/very-simple-unsat.smt2
   regress0/opt-abd-no-use.smt2
   regress0/options/ast-and-sexpr.smt2
+  regress0/options/interactive-mode.smt2
   regress0/options/invalid_dump.smt2
   regress0/options/set-after-init.smt2
   regress0/options/set-and-get-options.smt2
diff --git a/test/regress/regress0/options/interactive-mode.smt2 b/test/regress/regress0/options/interactive-mode.smt2
new file mode 100644 (file)
index 0000000..549fdfd
--- /dev/null
@@ -0,0 +1,10 @@
+; EXPECT: true
+; EXPECT: true
+; EXPECT: false
+; EXPECT: false
+(set-option :interactive-mode true)
+(get-option :interactive-mode)
+(get-option :produce-assertions)
+(set-option :produce-assertions false)
+(get-option :interactive-mode)
+(get-option :produce-assertions)
\ No newline at end of file