loadAnalysisWithImports
:: (Read a, Show a) => IORef (AnalysisStore a) -> Analysis a -> Options -> Prog -> IO ((String,String) -> a)
|
sortFunResults
:: [((String,String),a)] -> [((String,String),a)]
|
showFunResults
:: (a -> String) -> [((String,String),a)] -> [String]
|
getModuleModTime
:: String -> IO ClockTime
Returns the modification time of a module. |
transformChoiceInProg
:: Prog -> Prog
Replace all occurrences of Prelude.?
in a FlatCurry program by
Or
expressions.
|
patternArgs
:: Pattern -> [Int]
|
allConsOfTypes
:: [TypeDecl] -> [[((String,String),Int)]]
Compute all constructors (and their arities) grouped by their types from type declarations. |
readQC
:: String -> (String,String)
|
funcsInExpr
:: Expr -> [(String,String)]
Returns the qualified names of all functions occurring in an expression. |
freshVarPos
:: [Int]
Fresh variables, i.e., variables not occurring in a position of the left-hand side, are represented as a root position. |
isFreshVarPos
:: [Int] -> Bool
Is a variable position the position of a fresh variable, i.e., a variable which does not occur in the left-hand side? |
pre
:: String -> (String,String)
Transform name into Prelude-qualified name. |
getSiblingsOf
:: [[((String,String),Int)]] -> (String,String) -> Maybe [((String,String),Int)]
Gets the siblings of a constructor w.r.t. |
arityOfCons
:: [[((String,String),Int)]] -> (String,String) -> Int
Gets the siblings of a constructor w.r.t. |
isCompleteConstructorList
:: [[((String,String),Int)]] -> [(String,String)] -> Bool
Is a non-empty list of constructors complete, i.e., does it contain all the constructors of a type? The first argument contains all the constructors in a program. |
stdConstructors
:: [[(String,String)]]
Some predefined data constructors grouped by their types. |
isEncSearchOp
:: (String,String) -> Bool
Is this the name of a non-failing encapsulated search operation? |
isSetFunOp
:: (String,String) -> Bool
Is this the name of a set function? |
Constructors:
AnaStore
:: [(String,ProgInfo a)] -> AnalysisStore a
A position in a term is represented as list of integers.
Type synonym: Pos = [Int]
|
|
|
Returns the modification time of a module. |
Replace all occurrences of |
|
Compute all constructors (and their arities) grouped by their types from type declarations. |
|
Returns the qualified names of all functions occurring in an expression. |
Fresh variables, i.e., variables not occurring in a position of the left-hand side, are represented as a root position.
|
Is a variable position the position of a fresh variable, i.e., a variable which does not occur in the left-hand side?
|
Transform name into Prelude-qualified name.
|
Gets the siblings of a constructor w.r.t. all constructors grouped by types. |
Gets the siblings of a constructor w.r.t. all constructors grouped by types. |
Is a non-empty list of constructors complete, i.e., does it contain all the constructors of a type? The first argument contains all the constructors in a program. |
Some predefined data constructors grouped by their types. Used for testing in module CallTypes. |
Is this the name of a non-failing encapsulated search operation? |
Is this the name of a set function? |