Examples of SMTLabel


Examples of statechum.analysis.learning.smt.SmtLabelRepresentation.SMTLabel

    lbls.parseLabel(INITMEM+" "+SmtLabelRepresentation.OP_DATA.PRE.name()+" varDecl2");
    lbls.parseLabel(INITMEM+" "+SmtLabelRepresentation.OP_DATA.POST.name()+" memory0");
    lbls.parseLabel(INITMEM+" "+SmtLabelRepresentation.OP_DATA.POST.name()+" memory1");
    lbls.parseLabel(INITMEM+" "+SmtLabelRepresentation.OP_DATA.POST.name()+" memory2");
    Assert.assertEquals(1,lbls.labelMapConstructionOfOperations.size());
    SMTLabel l = lbls.labelMapConstructionOfOperations.entrySet().iterator().next().getValue();
    Assert.assertEquals(AbstractLearnerGraph.generateNewLabel(INITMEM, config,converter),lbls.labelMapConstructionOfOperations.entrySet().iterator().next().getKey());
    Assert.assertEquals(AbstractLearnerGraph.generateNewLabel(INITMEM, config,converter),l.getName());
    Assert.assertEquals("memory0\nmemory1\nmemory2",l.post.text);
    Assert.assertEquals("varDecl\nvarDecl2",l.pre.text);
  }
View Full Code Here

Examples of statechum.analysis.learning.smt.SmtLabelRepresentation.SMTLabel

    lbls.parseLabel("B"+" "+SmtLabelRepresentation.OP_DATA.PRE.name()+" value of precondition of B ");
    Assert.assertEquals(3,lbls.labelMapConstructionOfOperations.size());

    {
      Label initmem = AbstractLearnerGraph.generateNewLabel(INITMEM, config,converter);
      SMTLabel l = lbls.labelMapConstructionOfOperations.get(initmem);
      Assert.assertEquals(initmem,l.getName());
      Assert.assertNull(l.post.text);
      Assert.assertEquals("varDecl",l.pre.text);
    }

    {
      Label labelA = AbstractLearnerGraph.generateNewLabel("A", config,converter);
      SMTLabel l = lbls.labelMapConstructionOfOperations.get(labelA);
      Assert.assertEquals(labelA,l.getName());
      Assert.assertNull(l.pre.text);
      Assert.assertEquals("postA and more\ndetails of postcondition of A",l.post.text);
    }

    {
      Label labelB = AbstractLearnerGraph.generateNewLabel("B", config,converter);
      SMTLabel l = lbls.labelMapConstructionOfOperations.get(labelB);
      Assert.assertEquals(labelB,l.getName());
      Assert.assertNull(l.post.text);
      Assert.assertEquals("value of precondition of B",l.pre.text);
    }
  }
View Full Code Here

Examples of statechum.analysis.learning.smt.SmtLabelRepresentation.SMTLabel

    lbls.parseLabel(INITMEM+" "+SmtLabelRepresentation.OP_DATA.PRE.name()+" varDecl2");
    lbls.parseLabel(INITMEM+" "+SmtLabelRepresentation.OP_DATA.POST.name()+" memory0");
    lbls.parseLabel(INITMEM+" "+SmtLabelRepresentation.OP_DATA.POST.name()+" memory1");
    lbls.parseLabel(INITMEM+" "+SmtLabelRepresentation.OP_DATA.POST.name()+" memory2");
    Assert.assertEquals(1,lbls.labelMapConstructionOfOperations.size());
    SMTLabel l = lbls.labelMapConstructionOfOperations.entrySet().iterator().next().getValue();
    Assert.assertEquals(AbstractLearnerGraph.generateNewLabel(INITMEM, config),lbls.labelMapConstructionOfOperations.entrySet().iterator().next().getKey());
    Assert.assertEquals(AbstractLearnerGraph.generateNewLabel(INITMEM, config),l.getName());
    Assert.assertEquals("memory0\nmemory1\nmemory2",l.post.text);
    Assert.assertEquals("varDecl\nvarDecl2",l.pre.text);
  }
View Full Code Here

Examples of statechum.analysis.learning.smt.SmtLabelRepresentation.SMTLabel

    lbls.parseLabel("B"+" "+SmtLabelRepresentation.OP_DATA.PRE.name()+" value of precondition of B ");
    Assert.assertEquals(3,lbls.labelMapConstructionOfOperations.size());

    {
      Label initmem = AbstractLearnerGraph.generateNewLabel(INITMEM, config);
      SMTLabel l = lbls.labelMapConstructionOfOperations.get(initmem);
      Assert.assertEquals(initmem,l.getName());
      Assert.assertNull(l.post.text);
      Assert.assertEquals("varDecl",l.pre.text);
    }

    {
      Label labelA = AbstractLearnerGraph.generateNewLabel("A", config);
      SMTLabel l = lbls.labelMapConstructionOfOperations.get(labelA);
      Assert.assertEquals(labelA,l.getName());
      Assert.assertNull(l.pre.text);
      Assert.assertEquals("postA and more\ndetails of postcondition of A",l.post.text);
    }

    {
      Label labelB = AbstractLearnerGraph.generateNewLabel("B", config);
      SMTLabel l = lbls.labelMapConstructionOfOperations.get(labelB);
      Assert.assertEquals(labelB,l.getName());
      Assert.assertNull(l.post.text);
      Assert.assertEquals("value of precondition of B",l.pre.text);
    }
  }
View Full Code Here

Examples of statechum.analysis.learning.smt.SmtLabelRepresentation.SMTLabel

    lbls.parseLabel(INITMEM+" "+SmtLabelRepresentation.OP_DATA.PRE.name()+" varDecl2");
    lbls.parseLabel(INITMEM+" "+SmtLabelRepresentation.OP_DATA.POST.name()+" memory0");
    lbls.parseLabel(INITMEM+" "+SmtLabelRepresentation.OP_DATA.POST.name()+" memory1");
    lbls.parseLabel(INITMEM+" "+SmtLabelRepresentation.OP_DATA.POST.name()+" memory2");
    Assert.assertEquals(1,lbls.labelMapConstructionOfOperations.size());
    SMTLabel l = lbls.labelMapConstructionOfOperations.entrySet().iterator().next().getValue();
    Assert.assertEquals(AbstractLearnerGraph.generateNewLabel(INITMEM, config),lbls.labelMapConstructionOfOperations.entrySet().iterator().next().getKey());
    Assert.assertEquals(AbstractLearnerGraph.generateNewLabel(INITMEM, config),l.getName());
    Assert.assertEquals("memory0\nmemory1\nmemory2",l.post.text);
    Assert.assertEquals("varDecl\nvarDecl2",l.pre.text);
  }
View Full Code Here

Examples of statechum.analysis.learning.smt.SmtLabelRepresentation.SMTLabel

    lbls.parseLabel("B"+" "+SmtLabelRepresentation.OP_DATA.PRE.name()+" value of precondition of B ");
    Assert.assertEquals(3,lbls.labelMapConstructionOfOperations.size());

    {
      Label initmem = AbstractLearnerGraph.generateNewLabel(INITMEM, config);
      SMTLabel l = lbls.labelMapConstructionOfOperations.get(initmem);
      Assert.assertEquals(initmem,l.getName());
      Assert.assertNull(l.post.text);
      Assert.assertEquals("varDecl",l.pre.text);
    }

    {
      Label labelA = AbstractLearnerGraph.generateNewLabel("A", config);
      SMTLabel l = lbls.labelMapConstructionOfOperations.get(labelA);
      Assert.assertEquals(labelA,l.getName());
      Assert.assertNull(l.pre.text);
      Assert.assertEquals("postA and more\ndetails of postcondition of A",l.post.text);
    }

    {
      Label labelB = AbstractLearnerGraph.generateNewLabel("B", config);
      SMTLabel l = lbls.labelMapConstructionOfOperations.get(labelB);
      Assert.assertEquals(labelB,l.getName());
      Assert.assertNull(l.post.text);
      Assert.assertEquals("value of precondition of B",l.pre.text);
    }
  }
View Full Code Here

Examples of statechum.analysis.learning.smt.SmtLabelRepresentation.SMTLabel

    lbls.parseLabel(INITMEM+" "+SmtLabelRepresentation.OP_DATA.PRE.name()+" varDecl2");
    lbls.parseLabel(INITMEM+" "+SmtLabelRepresentation.OP_DATA.POST.name()+" memory0");
    lbls.parseLabel(INITMEM+" "+SmtLabelRepresentation.OP_DATA.POST.name()+" memory1");
    lbls.parseLabel(INITMEM+" "+SmtLabelRepresentation.OP_DATA.POST.name()+" memory2");
    Assert.assertEquals(1,lbls.labelMapConstructionOfOperations.size());
    SMTLabel l = lbls.labelMapConstructionOfOperations.entrySet().iterator().next().getValue();
    Assert.assertEquals(AbstractLearnerGraph.generateNewLabel(INITMEM, config,converter),lbls.labelMapConstructionOfOperations.entrySet().iterator().next().getKey());
    Assert.assertEquals(AbstractLearnerGraph.generateNewLabel(INITMEM, config,converter),l.getName());
    Assert.assertEquals("memory0\nmemory1\nmemory2",l.post.text);
    Assert.assertEquals("varDecl\nvarDecl2",l.pre.text);
  }
View Full Code Here

Examples of statechum.analysis.learning.smt.SmtLabelRepresentation.SMTLabel

    lbls.parseLabel("B"+" "+SmtLabelRepresentation.OP_DATA.PRE.name()+" value of precondition of B ");
    Assert.assertEquals(3,lbls.labelMapConstructionOfOperations.size());

    {
      Label initmem = AbstractLearnerGraph.generateNewLabel(INITMEM, config,converter);
      SMTLabel l = lbls.labelMapConstructionOfOperations.get(initmem);
      Assert.assertEquals(initmem,l.getName());
      Assert.assertNull(l.post.text);
      Assert.assertEquals("varDecl",l.pre.text);
    }

    {
      Label labelA = AbstractLearnerGraph.generateNewLabel("A", config,converter);
      SMTLabel l = lbls.labelMapConstructionOfOperations.get(labelA);
      Assert.assertEquals(labelA,l.getName());
      Assert.assertNull(l.pre.text);
      Assert.assertEquals("postA and more\ndetails of postcondition of A",l.post.text);
    }

    {
      Label labelB = AbstractLearnerGraph.generateNewLabel("B", config,converter);
      SMTLabel l = lbls.labelMapConstructionOfOperations.get(labelB);
      Assert.assertEquals(labelB,l.getName());
      Assert.assertNull(l.post.text);
      Assert.assertEquals("value of precondition of B",l.pre.text);
    }
  }
View Full Code Here

Examples of statechum.analysis.learning.smt.SmtLabelRepresentation.SMTLabel

    lbls.parseLabel(INITMEM+" "+SmtLabelRepresentation.OP_DATA.PRE.name()+" varDecl2");
    lbls.parseLabel(INITMEM+" "+SmtLabelRepresentation.OP_DATA.POST.name()+" memory0");
    lbls.parseLabel(INITMEM+" "+SmtLabelRepresentation.OP_DATA.POST.name()+" memory1");
    lbls.parseLabel(INITMEM+" "+SmtLabelRepresentation.OP_DATA.POST.name()+" memory2");
    Assert.assertEquals(1,lbls.labelMapConstructionOfOperations.size());
    SMTLabel l = lbls.labelMapConstructionOfOperations.entrySet().iterator().next().getValue();
    Assert.assertEquals(AbstractLearnerGraph.generateNewLabel(INITMEM, config),lbls.labelMapConstructionOfOperations.entrySet().iterator().next().getKey());
    Assert.assertEquals(AbstractLearnerGraph.generateNewLabel(INITMEM, config),l.getName());
    Assert.assertEquals("memory0\nmemory1\nmemory2",l.post.text);
    Assert.assertEquals("varDecl\nvarDecl2",l.pre.text);
  }
View Full Code Here

Examples of statechum.analysis.learning.smt.SmtLabelRepresentation.SMTLabel

    lbls.parseLabel("B"+" "+SmtLabelRepresentation.OP_DATA.PRE.name()+" value of precondition of B ");
    Assert.assertEquals(3,lbls.labelMapConstructionOfOperations.size());

    {
      Label initmem = AbstractLearnerGraph.generateNewLabel(INITMEM, config);
      SMTLabel l = lbls.labelMapConstructionOfOperations.get(initmem);
      Assert.assertEquals(initmem,l.getName());
      Assert.assertNull(l.post.text);
      Assert.assertEquals("varDecl",l.pre.text);
    }

    {
      Label labelA = AbstractLearnerGraph.generateNewLabel("A", config);
      SMTLabel l = lbls.labelMapConstructionOfOperations.get(labelA);
      Assert.assertEquals(labelA,l.getName());
      Assert.assertNull(l.pre.text);
      Assert.assertEquals("postA and more\ndetails of postcondition of A",l.post.text);
    }

    {
      Label labelB = AbstractLearnerGraph.generateNewLabel("B", config);
      SMTLabel l = lbls.labelMapConstructionOfOperations.get(labelB);
      Assert.assertEquals(labelB,l.getName());
      Assert.assertNull(l.post.text);
      Assert.assertEquals("value of precondition of B",l.pre.text);
    }
  }
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.