Package statechum.analysis.learning.rpnicore.LabelRepresentation

Examples of statechum.analysis.learning.rpnicore.LabelRepresentation.Label


    lbls.parseLabel(INITMEM+" "+LabelRepresentation.XM_DATA.PRE.name()+" varDecl2");
    lbls.parseLabel(INITMEM+" "+LabelRepresentation.XM_DATA.POST.name()+" memory0");
    lbls.parseLabel(INITMEM+" "+LabelRepresentation.XM_DATA.POST.name()+" memory1");
    lbls.parseLabel(INITMEM+" "+LabelRepresentation.XM_DATA.POST.name()+" memory2");
    Assert.assertEquals(1,lbls.labelMap.size());
    Label l = lbls.labelMap.entrySet().iterator().next().getValue();
    Assert.assertEquals(INITMEM,lbls.labelMap.entrySet().iterator().next().getKey());
    Assert.assertEquals(INITMEM,l.getName());
    Assert.assertEquals("memory0\nmemory1\nmemory2",l.post);
    Assert.assertEquals("varDecl\nvarDecl2",l.pre);
  }
View Full Code Here


    lbls.parseLabel("A"+" "+LabelRepresentation.XM_DATA.POST.name()+"     details of postcondition     of A     ");
    lbls.parseLabel("B"+" "+LabelRepresentation.XM_DATA.PRE.name()+" value of precondition of B ");
    Assert.assertEquals(3,lbls.labelMap.size());

    {
      Label l = lbls.labelMap.get(INITMEM);
      Assert.assertEquals(INITMEM,l.getName());
      Assert.assertNull(l.post);
      Assert.assertEquals("varDecl",l.pre);
    }

    {
      Label l = lbls.labelMap.get("A");
      Assert.assertEquals("A",l.getName());
      Assert.assertNull(l.pre);
      Assert.assertEquals("postA and more\ndetails of postcondition of A",l.post);
    }

    {
      Label l = lbls.labelMap.get("B");
      Assert.assertEquals("B",l.getName());
      Assert.assertNull(l.post);
      Assert.assertEquals("value of precondition of B",l.pre);
    }
  }
View Full Code Here

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

    lbls.parseLabel("A"+" "+LabelRepresentation.OP_DATA.POST.name()+"     details of postcondition     of A     ");
    lbls.parseLabel("B"+" "+LabelRepresentation.OP_DATA.PRE.name()+" value of precondition of B ");
    Assert.assertEquals(3,lbls.labelMapConstructionOfOperations.size());

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

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

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

TOP

Related Classes of statechum.analysis.learning.rpnicore.LabelRepresentation.Label

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.