Skip to content

Commit f6cd25d

Browse files
authored
Merge pull request #22 from MortenSchou/master
Fix reduction-3 bug
2 parents 213a685 + 083c701 commit f6cd25d

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/pdaaal/model/PDA.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,6 @@ namespace pdaaal
144144
{
145145
std::queue<size_t> waiting;
146146
std::vector<bool> in_waiting(_states.size());
147-
in_waiting[_initial_id] = true; // we don't ever prune initial.
148147
for (size_t t = 0; t < _states.size(); ++t) {
149148
in_waiting[t] = true;
150149
waiting.push(t);
@@ -153,7 +152,7 @@ namespace pdaaal
153152
while (!waiting.empty()) {
154153
auto s = waiting.front();
155154
waiting.pop();
156-
if (s == _initial_id) continue;
155+
if (s == 0) continue; // We don't prune terminal.
157156
in_waiting[s] = false;
158157
std::set<uint32_t> usefull_tos;
159158
bool cont = false;

0 commit comments

Comments
 (0)