Skip to content

Commit a72c997

Browse files
committed
Bug fix for Reduction
The wyrw.core.Reduction was not properly minimising automata during rewriting. This was exposed when working on the rewrite-based type system for the VMCAI paper. The fix is simply to include a minimisation step.
1 parent 27e7242 commit a72c997

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/wyrw/core/Reduction.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ public int step(int from, int activation) {
4343
int to;
4444
if (target != Automaton.K_VOID && from != target) {
4545
// Rule application produced an updated automaton
46+
automaton.minimise();
4647
automaton.compact(0);
4748
to = addState(automaton);
4849
if(to >= states.size()) {

0 commit comments

Comments
 (0)