use of abs.backend.prolog.ReachabilityInformation in project abstools by abstools.
the class PartialFunctionTest method noPrologCodeGenerated.
@Test
public void noPrologCodeGenerated() throws NotImplementedYetException, UnsupportedEncodingException {
Model model = expand(parse("apply(inc)(0);", applyFunction(), incFunction()));
PartialFunctionDecl func = getPartialFunction(model, "apply");
assertNotNull(func);
ByteArrayOutputStream os = new ByteArrayOutputStream();
func.generateProlog(new PrintStream(os), new ReachabilityInformation(new ArrayList<>()));
assertEquals("", os.toString("utf-8"));
}
Aggregations