commit de66aa24036fc3e84c90ac19bd56bef38e903358 from: Sven M. Hallberg date: Thu Jan 27 17:03:56 2022 UTC explicitly clear final state in epsilon_step FOREACHSTATE does not cover the final state. commit - bffb6bd7c66818e8c0bea1a6bd45809c5f199850 commit + de66aa24036fc3e84c90ac19bd56bef38e903358 blob - 5b09ffcdcc10c9d483ab929c2b1cdb6d5b83f718 blob + 8e6144e2fb5739dda4c25c3ec02fea82e713db47 --- nfa.c +++ nfa.c @@ -562,8 +562,9 @@ epsilon_step(struct prep *pr, struct set *act, struct } else assert(s.edge_eps == 0); - setremove(work, k); /* done with this one */ + setremove(work, k); /* done with this one */ } + setremove(work, a.size); /* this fully clears work */ return workleft; }