New loop detection algorithm

This commit is contained in:
Jindra Pet��k
2013-06-09 05:59:59 +02:00
parent 66daf6fe8e
commit b8778ba2f1
14 changed files with 896 additions and 642 deletions
@@ -47,7 +47,7 @@ public class SwitchItem extends LoopItem implements Block {
@Override
public String toString(List<Object> localData) {
String ret = "";
ret += "loopswitch" + loop.id + ":\r\n";
ret += "loop" + loop.id + ":\r\n";
ret += hilight("switch(") + switchedObject.toString(localData) + hilight(")") + "\r\n{\r\n";
for (int i = 0; i < caseCommands.size(); i++) {
for (int k = 0; k < valuesMapping.size(); k++) {