[PPL-devel] [GIT] ppl/ppl(master): Use original PR method if a single pointset is provided.
Enea Zaffanella
zaffanella at cs.unipr.it
Thu Mar 25 13:01:39 CET 2010
Module: ppl/ppl
Branch: master
Commit: fb01a69486339554291adcdba80fbf749c0437ea
URL: http://www.cs.unipr.it/git/gitweb.cgi?p=ppl/ppl.git;a=commit;h=fb01a69486339554291adcdba80fbf749c0437ea
Author: Enea Zaffanella <zaffanella at cs.unipr.it>
Date: Thu Mar 25 12:58:42 2010 +0100
Use original PR method if a single pointset is provided.
Prefer the enhanced method if two pointsets (before/after) are provided.
---
src/termination.templates.hh | 26 --------------------------
1 files changed, 0 insertions(+), 26 deletions(-)
diff --git a/src/termination.templates.hh b/src/termination.templates.hh
index 3713cde..bf754d3 100644
--- a/src/termination.templates.hh
+++ b/src/termination.templates.hh
@@ -30,8 +30,6 @@ site: http://www.cs.unipr.it/ppl/ . */
#define PRINT_DEBUG_INFO 0
-#define USE_ORIGINAL_PR_METHOD 1
-
#if PRINT_DEBUG_INFO
#include <iostream>
#endif
@@ -402,18 +400,10 @@ termination_test_PR(const PSET& pset_after) {
throw std::invalid_argument(s.str());
}
-#if USE_ORIGINAL_PR_METHOD
using namespace Implementation::Termination;
Constraint_System cs;
assign_all_inequalities_approximation(pset_after, cs);
return termination_test_PR_original(cs);
-#else
- // FIXME: this may be inefficient.
- PSET pset_before(pset_after);
- Variables_Set primed_variables(Variable(0), Variable(space_dim/2 - 1));
- pset_before.remove_space_dimensions(primed_variables);
- return termination_test_PR_2(pset_before, pset_after);
-#endif
}
template <typename PSET>
@@ -452,18 +442,10 @@ one_affine_ranking_function_PR(const PSET& pset_after, Generator& mu) {
throw std::invalid_argument(s.str());
}
-#if USE_ORIGINAL_PR_METHOD
using namespace Implementation::Termination;
Constraint_System cs;
assign_all_inequalities_approximation(pset_after, cs);
return one_affine_ranking_function_PR_original(cs, mu);
-#else
- // FIXME: this may be inefficient.
- PSET pset_before(pset_after);
- Variables_Set primed_variables(Variable(0), Variable(space_dim/2 - 1));
- pset_before.remove_space_dimensions(primed_variables);
- return one_affine_ranking_function_PR_2(pset_before, pset_after, mu);
-#endif
}
template <typename PSET>
@@ -503,18 +485,10 @@ all_affine_ranking_functions_PR(const PSET& pset_after,
throw std::invalid_argument(s.str());
}
-#if USE_ORIGINAL_PR_METHOD
using namespace Implementation::Termination;
Constraint_System cs;
assign_all_inequalities_approximation(pset_after, cs);
all_affine_ranking_functions_PR_original(cs, mu_space);
-#else
- // FIXME: this may be inefficient.
- PSET pset_before(pset_after);
- Variables_Set primed_variables(Variable(0), Variable(space_dim/2 - 1));
- pset_before.remove_space_dimensions(primed_variables);
- all_affine_ranking_functions_PR_2(pset_before, pset_after, mu_space);
-#endif
}
} // namespace Parma_Polyhedra_Library
More information about the PPL-devel
mailing list