Expression exp = sol.a2k(s);
TupleSet upper = sol.query(true,exp,false), lower=sol.query(false,exp,false);
final int n = sc.sig2scope(s);
if (s.isOne!=null && (lower.size()!=1 || upper.size()!=1)) {
rep.bound("Sig "+s+" in "+upper+" with size==1\n");
sol.addFormula(exp.one(), s.isOne);
continue;
}
if (s.isSome!=null && lower.size()<1) sol.addFormula(exp.some(), s.isSome);
if (s.isLone!=null && upper.size()>1) sol.addFormula(exp.lone(), s.isLone);
if (n<0) continue; // This means no scope was specified