if(Dump.isOn("skolems") && comment != "") {
Dump("skolems") << CommentCommand(id + " is " + comment);
}
- d_smt.addToModelCommandAndDump(c, "skolems");
+ d_smt.addToModelCommandAndDump(c, false, "skolems");
}
Node applySubstitutions(TNode node) const {
return SExpr(sexprs);
}
-void SmtEngine::addToModelCommandAndDump(const Command& c, const char* dumpTag) {
- Trace("smt") << "SMT addToModelCommand(" << c << ")" << endl;
+void SmtEngine::addToModelCommandAndDump(const Command& c, bool userVisible, const char* dumpTag) {
+ Trace("smt") << "SMT addToModelCommandAndDump(" << c << ")" << endl;
SmtScope smts(this);
// If we aren't yet fully inited, the user might still turn on
// produce-models. So let's keep any commands around just in
// decouple SmtEngine and ExprManager if the user does a few
// ExprManager::mkSort() before SmtEngine::setOption("produce-models")
// and expects to find their cardinalities in the model.
- if( !d_fullyInited || options::produceModels() ) {
+ if(userVisible && (!d_fullyInited || options::produceModels())) {
doPendingPops();
d_modelCommands->push_back(c.clone());
}
* Add to Model command. This is used for recording a command
* that should be reported during a get-model call.
*/
- void addToModelCommandAndDump(const Command& c, const char* dumpTag = "declarations");
+ void addToModelCommandAndDump(const Command& c, bool userVisible = true, const char* dumpTag = "declarations");
/**
* Get the model (only if immediately preceded by a SAT