Package statechum.analysis.learning

Examples of statechum.analysis.learning.Smt


  /** Cannot parse - type error. */
  @Test
  public void testYices_error2()
  {
    checkForCorrectException(new whatToRun() { public @Override void run() throws NumberFormatException {
      Smt smt = new Smt();smt.loadData("(define x::bool)\n(assert (> x 1))");
    }}, IllegalArgumentException.class,"argument is not a numeral");
  }
View Full Code Here


  public Smt getSolver()
  {
    if (smtSolver != null)
      return smtSolver;
    Smt.loadLibrary();Smt.closeStdOut();
    smtSolver = new Smt();
    if (usingLowLevelFunctions) smtSolver.loadData(knownTraces);
    return smtSolver;
  }
View Full Code Here

  /** Checks if a path condition corresponding to an abstract state is satisfiable.
   * @return false if a path leading to the supplied state is not satisfiable.
   */
  protected boolean checkSatisfiability(String variableDeclarations,String condition)
  {
    Smt solver = getSolver();
    solver.pushContext();
    String whatToCheck = SmtLabelRepresentation.getAssertionFromVarAndAxiom(variableDeclarations,condition);
    //System.err.println("CHECK: "+whatToCheck);
    solver.loadData(whatToCheck);
    boolean outcome = solver.check();
    solver.popContext();return outcome;   
  }
View Full Code Here

TOP

Related Classes of statechum.analysis.learning.Smt

Copyright © 2018 www.massapicom. 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.