fortran-src-0.3.0: Parser and anlyses for Fortran standards 66, 77, 90 and 95.

Safe HaskellNone
LanguageHaskell2010

Language.Fortran.Analysis.BBlocks

Description

Analyse a program file and create basic blocks.

Synopsis

Documentation

analyseBBlocks :: Data a => ProgramFile (Analysis a) -> ProgramFile (Analysis a) Source #

Insert basic block graphs into each program unit's analysis

genBBlockMap :: Data a => ProgramFile (Analysis a) -> BBlockMap (Analysis a) Source #

Create a mapping of (non-module) program unit names to their associated bblock graph.

showBBGr :: (Out a, Show a) => BBGr a -> String Source #

Show a basic block graph in a somewhat decent way.

showAnalysedBBGr :: (Out a, Show a) => BBGr (Analysis a) -> String Source #

Show a basic block graph without the clutter

showBBlocks :: (Data a, Out a, Show a) => ProgramFile (Analysis a) -> String Source #

Pick out and show the basic block graphs in the program file analysis.

bbgrToDOT :: BBGr a -> String Source #

Output a graph in the GraphViz DOT format

type BBlockMap a = Map ProgramUnitName (BBGr a) Source #

A mapping of program unit names to bblock graphs.

data SuperBBGr a Source #

Constructors

SuperBBGr 

showSuperBBGr :: (Out a, Show a) => SuperBBGr (Analysis a) -> String Source #

Show a basic block supergraph

superBBGrToDOT :: SuperBBGr a -> String Source #

Output a supergraph in the GraphViz DOT format

showBlock :: Block a -> String Source #

Some helper functions to output some pseudo-code for readability.