sbool ai_ruleAccessesInput(S rule) { L tok = javaTokC(rule); S t; for i over tok: if (eqGet(tok, i+1, "(") && isIdentifier(t = tok.get(i))) if (eq(t, "i") || swic(t, "input") || ewic(t, "input")) true; false; }