final String expectedCompDeclarations = LabelRepresentation.encloseInBeginEndIfNotEmpty(
"(define "+LabelRepresentation.generateFreshVariable("fn", VARIABLEUSE.IO, 0, 0)+"::int)"+LabelRepresentation.ENDL+
"(define "+LabelRepresentation.generateFreshVariable("fn", VARIABLEUSE.IO, 0, 1)+"::int)"+LabelRepresentation.ENDL+
"(define "+LabelRepresentation.generateFreshVariable("fn", VARIABLEUSE.IO, 0, 2)+"::int)"+LabelRepresentation.ENDL,LabelRepresentation.blockVARDECLS);
CompositionOfFunctions comp = compIterator.next();
Assert.assertEquals("(= 0 "+LabelRepresentation.generateFreshVariable("fn", VARIABLEUSE.IO, 0, 0)+") (< output"+_N+" 8)",comp.text);
Assert.assertEquals(expectedCompDeclarations,comp.varDeclarations);
Assert.assertEquals(1,comp.variablesUsedForArgs.size());
Assert.assertArrayEquals(new String[]{LabelRepresentation.generateFreshVariable("fn", VARIABLEUSE.IO, 0, JUConstants.intUNKNOWN)}, comp.variablesUsedForArgs.get(lbls.functionMap.get("fn")).toArray());