A prototype of TrfL has been implemented in FORESYS. FORESYS is tool for the analysis and the transformation of FORETRAN programs, it was designed by SIMULOG. The aim of the presented transformation is to replace if ... elseif ... elseif constructions with a select case construction (only available in FORTRAN90). The if..elseif construction must satisfies several constraints to be transformed:

Tne next shot shows a part of a FORTRAN program that satisfies this constraints.


This same code after the transformation looks like that:


This screen capture shows some rules of the transformation.


Christophe Roudet
Last modified: Tue Jan 27 17:41:59 MET