summaryrefslogtreecommitdiff
path: root/src/smt/smt_engine.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/smt/smt_engine.cpp')
-rw-r--r--src/smt/smt_engine.cpp15
1 files changed, 10 insertions, 5 deletions
diff --git a/src/smt/smt_engine.cpp b/src/smt/smt_engine.cpp
index 6058c66d7..e4d21c72e 100644
--- a/src/smt/smt_engine.cpp
+++ b/src/smt/smt_engine.cpp
@@ -566,6 +566,15 @@ void SmtEngine::finishInit() {
d_assertionList = new(true) AssertionList(d_userContext);
}
+ // dump out a set-logic command
+ if(Dump.isOn("benchmark")) {
+ // Dump("benchmark") << SetBenchmarkLogicCommand(logic.getLogicString());
+ LogicInfo everything;
+ everything.lock();
+ Dump("benchmark") << CommentCommand("CVC4 always dumps the most general, \"all-supported\" logic (above), as some internals might require the use of a logic more general than the input.")
+ << SetBenchmarkLogicCommand(everything.getLogicString());
+ }
+
// dump out any pending declaration commands
for(unsigned i = 0; i < d_dumpCommands.size(); ++i) {
Dump("declarations") << *d_dumpCommands[i];
@@ -697,10 +706,6 @@ SmtEngine::~SmtEngine() throw() {
void SmtEngine::setLogic(const LogicInfo& logic) throw(ModalException) {
SmtScope smts(this);
- if(Dump.isOn("benchmark")) {
- Dump("benchmark") << SetBenchmarkLogicCommand(logic.getLogicString());
- }
-
d_logic = logic;
setLogicInternal();
}
@@ -3016,7 +3021,7 @@ SExpr SmtEngine::getStatistic(std::string name) const throw() {
return d_statisticsRegistry->getStatistic(name);
}
-void SmtEngine::setUserAttribute(std::string& attr, Expr expr) {
+void SmtEngine::setUserAttribute(const std::string& attr, Expr expr) {
SmtScope smts(this);
d_theoryEngine->setUserAttribute(attr, expr.getNode());
}
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback