summaryrefslogtreecommitdiff
path: root/src/main
diff options
context:
space:
mode:
authorMorgan Deters <mdeters@cs.nyu.edu>2013-07-24 14:41:29 -0400
committerMorgan Deters <mdeters@cs.nyu.edu>2013-07-24 14:41:29 -0400
commit028b3ee2dce5ae7491f1019c32ac6faf6c4d6ef1 (patch)
tree5326a0fd00b1691d1af4419268773ea61e37ef8a /src/main
parentf370dbd93ba38f4619a0d63abb8a01e2a8482861 (diff)
some portfolio driver cleanup
Diffstat (limited to 'src/main')
-rw-r--r--src/main/command_executor_portfolio.cpp15
1 files changed, 3 insertions, 12 deletions
diff --git a/src/main/command_executor_portfolio.cpp b/src/main/command_executor_portfolio.cpp
index 48dcc17ef..2cdcc344c 100644
--- a/src/main/command_executor_portfolio.cpp
+++ b/src/main/command_executor_portfolio.cpp
@@ -214,7 +214,7 @@ bool CommandExecutorPortfolio::doCommandSingleton(Command* cmd)
// We currently don't support changing number of threads for each
// command, but things have been architected in a way so that this
- // can be acheived with not a lot of work
+ // can be achieved without a lot of work.
Command *seqs[d_numThreads];
if(d_lastWinner == 0)
@@ -238,7 +238,7 @@ bool CommandExecutorPortfolio::doCommandSingleton(Command* cmd)
int(i) == d_lastWinner ?
cmd->exportTo(d_exprMgrs[i], *(d_vmaps[i])) :
d_seq->exportTo(d_exprMgrs[i], *(d_vmaps[i]) );
- }catch(ExportUnsupportedException& e){
+ } catch(ExportUnsupportedException& e) {
if(d_options[options::fallbackSequential]) {
Notice() << "Unsupported theory encountered, switching to sequential mode.";
return CommandExecutor::doCommandSingleton(cmd);
@@ -292,20 +292,11 @@ bool CommandExecutorPortfolio::doCommandSingleton(Command* cmd)
runPortfolio(d_numThreads, smFn, fns,
d_options[options::waitToJoin]);
- d_seq = NULL;
delete d_seq;
d_seq = new CommandSequence();
d_lastWinner = portfolioReturn.first;
-
- CheckSatCommand* cs = dynamic_cast<CheckSatCommand*>(cmd);
- if(cs != NULL) {
- d_result = cs->getResult();
- }
- QueryCommand* q = dynamic_cast<QueryCommand*>(cmd);
- if(q != NULL) {
- d_result = q->getResult();
- }
+ d_result = d_smts[d_lastWinner]->getStatusOfLastCommand();
if(d_ostringstreams.size() != 0) {
assert(d_numThreads == d_options[options::threads]);
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback