throw new IllegalStateException ("Something is very wrong, probably fixable by the GdlCleaner; name: " + name + "; arity: " + arity + "; tupleSize: " + tupleSize);
}
List<GdlTerm> sentenceBody = Lists.newArrayList();
int curIndex = 0;
for (int i = 0; i < arity; i++) {
GdlTerm term = tuple.get(curIndex);
Preconditions.checkArgument(!(term instanceof GdlFunction));
if (functions.containsKey(i)) {
SimpleSentenceForm functionForm = functions.get(i);
sentenceBody.add(functionForm.getFunctionFromTuple(tuple, curIndex));
curIndex += functionForm.getTupleSize();