public ReilProgram<InstructionType> translate(final ITranslationEnvironment environment,final List<? extends IBlockContainer<InstructionType>> functions) throws InternalTranslationException {
  Preconditions.checkNotNull(environment,"Error: Argument environment can't be null");
  final ReilProgram<InstructionType> program=new ReilProgram<InstructionType>();
  for (  final IBlockContainer<InstructionType> function : functions) {
    program.addFunction(function,translate(environment,function));
  }
  return program;
}

public ReilProgram < InstructionType > translate ( final ITranslationEnvironment environment , final List < ? extends IBlockContainer < InstructionType > > functions ) throws InternalTranslationException { Preconditions . checkNotNull ( environment , "Error: Argument environment can't be null" ) ; final ReilProgram < InstructionType > program = new ReilProgram < InstructionType > ( ) ; for ( final IBlockContainer < InstructionType > function : functions ) { program . addFunction ( function , translate ( environment , function ) ) ; } return program ; }
translates a disassembled program to reil code .
