svoid gazelle_changeInTypesForRulesWithMultipleInputs(RuleEngine2 e) { for (RuleEngine2.Rule r : e.rules) { int i = 0; while (i < l(r.insWithType) && eq(r.insWithType.get(i).type, 'standard)) ++i; if (i > 1) { reverseInPlace(subList(r.insWithType, 0, i)); for (int j = 1; j < i; j++) r.insWithType.get(j).type = "history-" + (j+1); } } }