|
|
@ -107,7 +107,7 @@ public class ECComputerDefault extends ECComputer |
|
|
} |
|
|
} |
|
|
// Initialise L with set of all states to look in (if non-empty) |
|
|
// Initialise L with set of all states to look in (if non-empty) |
|
|
List<BitSet> L = new ArrayList<BitSet>(); |
|
|
List<BitSet> L = new ArrayList<BitSet>(); |
|
|
if (restrict.cardinality() == 0) |
|
|
|
|
|
|
|
|
if (restrict.isEmpty()) |
|
|
return L; |
|
|
return L; |
|
|
L.add(restrict); |
|
|
L.add(restrict); |
|
|
// Find MECs |
|
|
// Find MECs |
|
|
@ -181,7 +181,7 @@ public class ECComputerDefault extends ECComputer |
|
|
act.set(j); |
|
|
act.set(j); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
if (act.cardinality() == 0) { |
|
|
|
|
|
|
|
|
if (act.isEmpty()) { |
|
|
states.clear(i); |
|
|
states.clear(i); |
|
|
changed = true; |
|
|
changed = true; |
|
|
} |
|
|
} |
|
|
@ -217,7 +217,7 @@ public class ECComputerDefault extends ECComputer |
|
|
|
|
|
|
|
|
private boolean isMEC(BitSet b) |
|
|
private boolean isMEC(BitSet b) |
|
|
{ |
|
|
{ |
|
|
if (b.cardinality() == 0) |
|
|
|
|
|
|
|
|
if (b.isEmpty()) |
|
|
return false; |
|
|
return false; |
|
|
|
|
|
|
|
|
int state = b.nextSetBit(0); |
|
|
int state = b.nextSetBit(0); |
|
|
|