for (final MachineFunction mf : functions.getTopLevelCALFunctions()) {
// We want to actually work with a modified version of the function body. i.e. one
// which has had let variable definitions lifted into their own functions. liftLetVars()
// builds up a list of lifted functions which can be referenced later.
Expression modifiedExpression = liftLetVars(mf);
SCJavaDefn javaDefn = new SCJavaDefn(mf, modifiedExpression, module, codeGenerationStats, sharedValues);
scJavaDefns.add(javaDefn);
}
// Now that the shared values have been initialized and all the let variable definitions have been