summaryrefslogtreecommitdiff
path: root/src/expr/command.cpp
diff options
context:
space:
mode:
authorAndrew Reynolds <andrew.j.reynolds@gmail.com>2014-05-11 14:36:50 -0500
committerAndrew Reynolds <andrew.j.reynolds@gmail.com>2014-05-11 14:36:50 -0500
commit0b2f9943d55152e0958369083649dd71340864c9 (patch)
treecd040f1dd12816c6af37548597bd674cafb45271 /src/expr/command.cpp
parent8ebd49cb903ba19f9330820d02af08e226c9b791 (diff)
More preparation for CASC proofs. Minor fix for sort inference (rewrite new assertions). Bug fix for ambqi : simplify correctly for multi-sorted case. Bug fix for fmc : only do exh-simplification for uninterpreted sorts, ensure reps are enumerated for quantification over Real.
Diffstat (limited to 'src/expr/command.cpp')
-rw-r--r--src/expr/command.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/expr/command.cpp b/src/expr/command.cpp
index 34cdd2e30..9f502c2ea 100644
--- a/src/expr/command.cpp
+++ b/src/expr/command.cpp
@@ -1055,7 +1055,7 @@ GetInstantiationsCommand::GetInstantiationsCommand() throw() {
void GetInstantiationsCommand::invoke(SmtEngine* smtEngine) throw() {
try {
- smtEngine->printInstantiations();
+ d_smtEngine = smtEngine;
d_commandStatus = CommandSuccess::instance();
} catch(exception& e) {
d_commandStatus = new CommandFailure(e.what());
@@ -1070,19 +1070,21 @@ void GetInstantiationsCommand::printResult(std::ostream& out, uint32_t verbosity
if(! ok()) {
this->Command::printResult(out, verbosity);
} else {
- //d_result->toStream(out);
+ d_smtEngine->printInstantiations(out);
}
}
Command* GetInstantiationsCommand::exportTo(ExprManager* exprManager, ExprManagerMapCollection& variableMap) {
GetInstantiationsCommand* c = new GetInstantiationsCommand();
//c->d_result = d_result;
+ c->d_smtEngine = d_smtEngine;
return c;
}
Command* GetInstantiationsCommand::clone() const {
GetInstantiationsCommand* c = new GetInstantiationsCommand();
//c->d_result = d_result;
+ c->d_smtEngine = d_smtEngine;
return c;
}
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback