Module Analysis.Residuation

Residuation analysis: checks whether a function does not residuate and yields a ground value if some arguments are ground

Author
Michael Hanus
Version
November 2024
Exported Datatypes:
Exported Functions:

Exported Datatypes


data ResiduationInfo

Data type to represent residuation information. If an operation has info MayResiduate, it may residuate or yields a non-ground value even if all arguments are ground. If an operation has info NoResiduateIf xs, it does not residuate and yields a ground value if all arguments in the index list are ground, where arguments are numbered from 1.

Constructors:

  • MayResiduate :: ResiduationInfo
  • NoResiduateIf :: [Int] -> ResiduationInfo
  • NoResInfo :: ResiduationInfo

Known instances:


Exported Functions


showResInfo :: AOutFormat -> ResiduationInfo -> String  Deterministic 


residuationAnalysis :: Analysis ResiduationInfo  Deterministic 

Non-residuation analysis.