summaryrefslogtreecommitdiff
path: root/impl/main.cpp
diff options
context:
space:
mode:
authorCarlo Zancanaro <carlo@pc-4w14-0.cs.usyd.edu.au>2012-06-15 14:13:04 +1000
committerCarlo Zancanaro <carlo@pc-4w14-0.cs.usyd.edu.au>2012-06-15 14:13:04 +1000
commite00d7e6486739221f4d5adea1583743d3e23acfd (patch)
tree804a4762b816545b90034dc7eb8d3a372f4b497a /impl/main.cpp
parent3e3cc16699b2cf4d24629ba24c6d72ff912f0d96 (diff)
Fix up the smart fixpoint iteration - make it actually work!
Diffstat (limited to 'impl/main.cpp')
-rw-r--r--impl/main.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/impl/main.cpp b/impl/main.cpp
index b03a4f2..40cae42 100644
--- a/impl/main.cpp
+++ b/impl/main.cpp
@@ -125,12 +125,12 @@ int main (int argc, char* argv[]) {
do {
if (prev) delete prev;
prev = result;
- strategy.improve(*prev);
- for (unsigned int i = 0, size = system.variableCount(); i < size; ++i) {
+ /*for (unsigned int i = 0, size = system.variableCount(); i < size; ++i) {
Variable<ZBar>& var = system.variable(i);
cout << var.name() << " = " << (*result)[var] << ", ";
}
- cout << endl;
+ cout << endl;*/
+ strategy.improve(*prev);
result = algorithm->maxFixpoint(strategy);
} while(!system.equalAssignments(*prev, *result));
if (prev) delete prev;