mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-06-28 15:05:37 +00:00
updated loop detection algorithm
This commit is contained in:
@@ -28,11 +28,13 @@ public class Loop {
|
||||
public GraphPart loopContinue;
|
||||
public GraphPart loopBreak;
|
||||
public GraphPart loopPreContinue;
|
||||
public int precoPhase;
|
||||
public List<GraphPart> breakCandidates = new ArrayList<>();
|
||||
public long id;
|
||||
public boolean used = false;
|
||||
public boolean finished = false;
|
||||
public int leadsToMark;
|
||||
public int reachableMark;
|
||||
public int phase;
|
||||
|
||||
public Loop(long id, GraphPart loopContinue, GraphPart loopBreak) {
|
||||
this.loopContinue = loopContinue;
|
||||
@@ -42,6 +44,6 @@ public class Loop {
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "loop(id:" + id + (loopPreContinue != null ? ",precontinue:" + loopPreContinue : "") + ",continue:" + loopContinue + ", break:" + loopBreak + ")";
|
||||
return "loop(id:" + id + (loopPreContinue != null ? ",precontinue:" + loopPreContinue : "") + ",continue:" + loopContinue + ", break:" + loopBreak + ", phase:"+phase+")";
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user