tokstyle
Safe HaskellSafe-Inferred
LanguageHaskell2010

Tokstyle.C.Analysis.Known

Description

What the analysis knows about functions whose bodies it doesn't see.

Synopsis

Documentation

data Reach Source #

How far a function can reach into the memory one of its pointer parameters points to: another parameter times a coefficient, if any, plus a constant.

Constructors

Reach 

Instances

Instances details
Show Reach Source # 
Instance details

Defined in Tokstyle.C.Analysis.Known

Methods

showsPrec :: Int -> Reach -> ShowS #

show :: Reach -> String #

showList :: [Reach] -> ShowS #

Eq Reach Source # 
Instance details

Defined in Tokstyle.C.Analysis.Known

Methods

(==) :: Reach -> Reach -> Bool #

(/=) :: Reach -> Reach -> Bool #

libraryReaches :: Map String [Reach] Source #

How far the library functions the program calls reach into the memory their pointer arguments point to.

allocators :: Map String (Int, [Int]) Source #

The functions that allocate memory: how many arguments they take, and which of them multiply to the size in bytes.

harmless :: [String] Source #

External functions that don't change the objects their pointers point to in ways the analysis needs to see.