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

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.

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

superBBGrGraph :: SuperBBGr a -> BBGr a Source #

Extract graph from SuperBBGr

superBBGrClusters :: SuperBBGr a -> IntMap ProgramUnitName Source #

Extract cluster map from SuperBBGr