#include "main/main.h"
+#include "smt/options.h"
+
namespace CVC4 {
namespace main {
} else {
status = smtEngineInvoke(&d_smtEngine, cmd, NULL);
}
+ //dump the model if option is set
+ if(status && d_options[options::produceModels] && d_options[options::dumpModels]) {
+ CheckSatCommand *cs = dynamic_cast<CheckSatCommand*>(cmd);
+ if(cs != NULL) {
+ if(cs->getResult().asSatisfiabilityResult().isSat() == Result::SAT ||
+ (cs->getResult().isUnknown() && cs->getResult().whyUnknown() == Result::INCOMPLETE) ){
+ Command * gm = new GetModelCommand;
+ status = doCommandSingleton(gm);
+ }
+ }
+ }
return status;
}
support the get-value and get-model commands
option checkModels check-models --check-models bool :predicate CVC4::smt::beforeSearch :predicate-include "smt/options_handlers.h"
after SAT/INVALID/UNKNOWN, check that the generated model satisfies user assertions
+option dumpModels --dump-models bool :default false
+ output models after every SAT/INVALID/UNKNOWN response
option proof produce-proofs --proof bool :default false :predicate CVC4::smt::proofEnabledBuild CVC4::smt::beforeSearch :predicate-include "smt/options_handlers.h"
turn on proof generation
# this is just a placeholder for later; it doesn't show up in command-line options listings