diff options
author | Morgan Deters <mdeters@gmail.com> | 2012-08-01 22:17:18 +0000 |
---|---|---|
committer | Morgan Deters <mdeters@gmail.com> | 2012-08-01 22:17:18 +0000 |
commit | ac7c25f879b222cadefca492102e277488df2bf2 (patch) | |
tree | 942c2fdc8dbf5e8370934e8ebc6d63a3dc84fd16 /src/smt/smt_options_template.cpp | |
parent | 1e94b6229e01806f3065066d8eb4917253ef8862 (diff) |
a couple fixes to SmtEngine::setOption(). thanks Andy for the report!
Diffstat (limited to 'src/smt/smt_options_template.cpp')
-rw-r--r-- | src/smt/smt_options_template.cpp | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/smt/smt_options_template.cpp b/src/smt/smt_options_template.cpp index 8c7fa1abf..f34a0e2db 100644 --- a/src/smt/smt_options_template.cpp +++ b/src/smt/smt_options_template.cpp @@ -47,13 +47,11 @@ void SmtEngine::setOption(const std::string& key, const CVC4::SExpr& value) Dump("benchmark") << SetOptionCommand(key, value); } - stringstream ss; - ss << value; - string optarg = ss.str(); + string optarg = value.getValue(); ${smt_setoption_handlers} -#line 57 "${template}" +#line 55 "${template}" throw BadOptionException(); } @@ -70,7 +68,7 @@ CVC4::SExpr SmtEngine::getOption(const std::string& key) const ${smt_getoption_handlers} -#line 74 "${template}" +#line 72 "${template}" throw BadOptionException(); } |