Examples of loadData()


Examples of statechum.analysis.learning.Smt.loadData()

    Smt smtA = new Smt();
   
    smtA.loadData("(define x::int)\n(assert (> x 1))");
    Assert.assertTrue(smtA.check());
    smtA.pushContext();
    smtA.loadData("(assert (< x 0))");
   
    Smt smtB = new Smt();
    smtB.loadData("(define x::int)\n(define y::int)\n(assert (< y 0))");
    Assert.assertTrue(smtB.check());
    Assert.assertFalse(smtA.check());
View Full Code Here

Examples of statechum.analysis.learning.Smt.loadData()

    Assert.assertTrue(smtA.check());
    smtA.pushContext();
    smtA.loadData("(assert (< x 0))");
   
    Smt smtB = new Smt();
    smtB.loadData("(define x::int)\n(define y::int)\n(assert (< y 0))");
    Assert.assertTrue(smtB.check());
    Assert.assertFalse(smtA.check());
    Assert.assertTrue(smtB.check());
    smtA.popContext();
    smtB.loadData("(assert (> y 4))");
View Full Code Here

Examples of statechum.analysis.learning.Smt.loadData()

    smtB.loadData("(define x::int)\n(define y::int)\n(assert (< y 0))");
    Assert.assertTrue(smtB.check());
    Assert.assertFalse(smtA.check());
    Assert.assertTrue(smtB.check());
    smtA.popContext();
    smtB.loadData("(assert (> y 4))");
    Assert.assertTrue(smtA.check());
    Assert.assertFalse(smtB.check());
    smtA.finalize();
    Smt.reopenStdOut();
  }
View Full Code Here

Examples of statechum.analysis.learning.Smt.loadData()

  @Test
  public void testYices_error1()
  {
   
    checkForCorrectException(new whatToRun() { public @Override void run() throws NumberFormatException {
      Smt smt = new Smt();smt.loadData("(define x::int)\n(assert (A> x 1))");
    }}, IllegalArgumentException.class,"Undefined name \"A>\"");
  }
 
  /** Checks that if type checking is not enabled, the error goes undetected. */
  @Test
 
View Full Code Here

Examples of statechum.analysis.learning.Smt.loadData()

  /** Checks that if type checking is not enabled, the error goes undetected. */
  @Test
  public void testYices_error2_not_reported()
  {
    Smt.configureYices(-1, false);
    Smt smt = new Smt();smt.loadData("(define x::bool)\n(assert (> x 1))");
  }
 
  /** Cannot parse - type error. */
  @Test
  public void testYices_error2()
View Full Code Here

Examples of statechum.analysis.learning.Smt.loadData()

  /** 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");
  }
 
  /** Check if a field can be correctly extracted. */
  @Test(expected=IllegalArgumentException.class)
 
View Full Code Here

Examples of statechum.analysis.learning.Smt.loadData()

  {
    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;   
  }
 
  /** Extracts an ID of a supplied vertex. */
 
View Full Code Here

Examples of xgenerator.ui.swing.model.DatasourceComboBoxModel.loadData()

      public void popupMenuWillBecomeInvisible(PopupMenuEvent e) {
      }

      public void popupMenuWillBecomeVisible(PopupMenuEvent e) {
        DatasourceComboBoxModel datasourceComboBoxModel = (DatasourceComboBoxModel) dataSourceComboBox.getModel();
        datasourceComboBoxModel.loadData();
      }
    });
   
    /*
    this.datasourceComboBox.addItemListener(new ItemListener() {
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.