return d_stats;
}
+ SmtEngine* getSmtEngine() { return d_smtEngine; }
+
/**
* Flushes statistics to a file descriptor.
*/
ReferenceStat<std::string> s_statFilename("filename", filenameStr);
RegisterStatistic statFilenameReg(&pExecutor->getStatisticsRegistry(),
&s_statFilename);
+ // set filename in smt engine
+ pExecutor->getSmtEngine()->setFilename(filenameStr);
// Parse and execute commands until we are done
Command* cmd;
LogicInfo SmtEngine::getLogicInfo() const {
return d_logic;
}
+void SmtEngine::setFilename(std::string filename) { d_filename = filename; }
+std::string SmtEngine::getFilename() const { return d_filename; }
void SmtEngine::setLogicInternal()
{
Assert(!d_fullyInited, "setting logic in SmtEngine but the engine has already"
Result d_status;
/**
- * The name of the input (if any).
+ * The input file name (if any) or the name set through setInfo (if any)
*/
std::string d_filename;
void setOption(const std::string& key, const CVC4::SExpr& value)
/* throw(OptionException, ModalException) */;
+ /** sets the input name */
+ void setFilename(std::string filename);
+ /** return the input name (if any) */
+ std::string getFilename() const;
/**
* Get the model (only if immediately preceded by a SAT
* or INVALID query). Only permitted if CVC4 was built with model