summaryrefslogtreecommitdiff
path: root/src/smt/smt_options_template.cpp
diff options
context:
space:
mode:
authorMorgan Deters <mdeters@cs.nyu.edu>2014-03-11 15:07:38 -0400
committerMorgan Deters <mdeters@cs.nyu.edu>2014-03-11 17:38:30 -0400
commit01e3d838982658349f429063834379b7cda43dbc (patch)
tree2b3ab2c5d2f46727cf7f9790a868c3bb9dc0f3a8 /src/smt/smt_options_template.cpp
parenta8efcd91a8f7dc107355f347996fb8dd3ba7e74a (diff)
Fix some Win32 and SMT-LIB compliance bugs discovered by David Cok.
Diffstat (limited to 'src/smt/smt_options_template.cpp')
-rw-r--r--src/smt/smt_options_template.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/smt/smt_options_template.cpp b/src/smt/smt_options_template.cpp
index 4edd91a8d..987d2e3c7 100644
--- a/src/smt/smt_options_template.cpp
+++ b/src/smt/smt_options_template.cpp
@@ -62,11 +62,15 @@ void SmtEngine::setOption(const std::string& key, const CVC4::SExpr& value)
throw OptionException("command-verbosity value must be a tuple (command-name, integer)");
}
+ if(!value.isAtom()) {
+ throw OptionException("bad value for :" + key);
+ }
+
string optionarg = value.getValue();
${smt_setoption_handlers}
-#line 70 "${template}"
+#line 74 "${template}"
throw UnrecognizedOptionException(key);
}
@@ -126,7 +130,7 @@ CVC4::SExpr SmtEngine::getOption(const std::string& key) const
${smt_getoption_handlers}
-#line 130 "${template}"
+#line 134 "${template}"
throw UnrecognizedOptionException(key);
}
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback