287288289290291292293294295296297
} for(Map.Entry<Expr,TupleSet> e:expr2ts.entrySet()) { ExprVar v = (ExprVar)(e.getKey()); TupleSet ts = e.getValue(); Relation r = sol.addRel(v.label, ts, ts); sol.kr2type(r, v.type()); } // Done! sol.solve(null, null, null, false); }
10991100110111021103110411051106110711081109
if (!val.errors.isEmpty()) { err = true; errors = errors.make(val.errors); } for(ExprHasName n: d.names) { ExprVar v = ExprVar.make(n.span(), n.label, val.type()); cx.put(n.label, v); tmpvars.add(v); rep.typecheck((f.isPred?"pred ":"fun ")+fullname+", Param "+n.label+": "+v.type()+"\n"); } tmpdecls.add(new Decl(d.isPrivate, d.disjoint, d.disjoint2, tmpvars.makeConst(), val)); } Expr ret = null; if (!f.isPred) {