Package kodkod.engine

Examples of kodkod.engine.Solution.outcome()


        // If unsatisfiable, then retreive the unsat core if desired
        if (inst==null && solver.options().solver()==SATFactory.MiniSatProver) {
           try {
              lCore = new LinkedHashSet<Node>();
              Proof p = sol.proof();
              if (sol.outcome()==UNSATISFIABLE) {
                 // only perform the minimization if it was UNSATISFIABLE, rather than TRIVIALLY_UNSATISFIABLE
                 int i = p.highLevelCore().size();
                 rep.minimizing(cmd, i);
                 if (opt.coreMinimization==0) try { p.minimize(new RCEStrategy(p.log())); } catch(Throwable ex) {}
                 if (opt.coreMinimization==1) try { p.minimize(new HybridStrategy(p.log())); } catch(Throwable ex) {}
View Full Code Here


              solver.options().setSolver(SATFactory.DefaultSAT4J);
              sol = solver.solve(f,b);
          } finally {
              solver.options().setSolver(sat);
          }
          if (sol==null || (sol.outcome()!=SATISFIABLE && sol.outcome()!=TRIVIALLY_SATISFIABLE)) return null;
          if (rep!=null) rep.debug("Comment: "+t[0]+"\n");
          return sol;
       } catch(Throwable ex) {
          return null;
       }
View Full Code Here

              solver.options().setSolver(SATFactory.DefaultSAT4J);
              sol = solver.solve(f,b);
          } finally {
              solver.options().setSolver(sat);
          }
          if (sol==null || (sol.outcome()!=SATISFIABLE && sol.outcome()!=TRIVIALLY_SATISFIABLE)) return null;
          if (rep!=null) rep.debug("Comment: "+t[0]+"\n");
          return sol;
       } catch(Throwable ex) {
          return null;
       }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.