lbls.parseLabel("A"+" "+SmtLabelRepresentation.OP_DATA.POST.name()+" details of postcondition of A ");
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);
}