Skip to content

Commit

Permalink
Merge pull request #13 from DEIS-Tools/reduction-options
Browse files Browse the repository at this point in the history
Reduction options
  • Loading branch information
petergjoel authored Jun 2, 2020
2 parents 798ac84 + ed1e7fb commit bacb2af
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/pdaaal/Reducer.h
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ namespace pdaaal {
Reducer::forwards_prune(pda, initial_id);
Reducer::backwards_prune(pda, terminal_id);
std::queue<size_t> waiting;
auto ds = (aggresivity >= 2);
auto ds = (aggresivity >= 2 && aggresivity <= 3);
std::vector<tos_t> approximation(pda.states().size());
// initialize
for (const auto& [r,labels] : pda.states()[initial_id]._rules) {
Expand All @@ -89,7 +89,7 @@ namespace pdaaal {
ss._tos.insert(lb, r._op_label);
}

if (aggresivity == 3) {
if (aggresivity >= 3) {
Reducer::target_tos_prune(pda, terminal_id);
}
// saturate
Expand Down Expand Up @@ -158,7 +158,7 @@ namespace pdaaal {
}

Reducer::backwards_prune(pda, terminal_id);
if (aggresivity == 3) {
if (aggresivity >= 3) {
// it could potentially work as fixpoint; not sure if it has any effect.
Reducer::target_tos_prune(pda, terminal_id);
}
Expand Down

0 comments on commit bacb2af

Please sign in to comment.