private Rule convert(Rule rule) { reset(); gatherVars(rule.body(), vars); gatherVars(rule.requires(), vars); gatherVars(rule.ensures(), vars); K body = transform(rule.body()); return Rule( body, addSideCondition(rule.requires()), rule.ensures(), rule.att()); }
continue; gatherVars(k1.klist().items().get(1), rhsVars); for (KApply k2 : state) { Multiset<KVariable> lhsVars = HashMultiset.create(); continue; gatherVars(k2.klist().items().get(0), lhsVars); for (KVariable var : rhsVars) { if (lhsVars.contains(var)) {
private Context convert(Context context) { reset(); gatherVars(context.body(), vars); gatherVars(context.requires(), vars); K body = transform(context.body()); return new Context( body, addSideCondition(context.requires()), context.att()); }
gatherVars(RewriteToTop.toLeft(body), varConstraints); return new TransformK() { public K apply(KApply k) {
gatherVars(element, vars); if (vars.isEmpty()) { state.add(KApply(KLabel("Set:in"), element, accum));