CurryInfo: contract-prover-4.0.0 / ContractProver.addPostConditionTo

definition: Info
 
addPostConditionTo :: QName -> TAFuncDecl -> TAFuncDecl
addPostConditionTo pfname fdecl = let fn = funcName fdecl in
  if toPostCondQName fn == pfname
    then updFuncBody (const (addPostConditionCheck fn (funcRule fdecl))) fdecl
    else fdecl
demand: Info
 argument 1
deterministic: Info
 deterministic operation
documentation: Info
 
If the function declaration is the declaration of the given function name,
decorate it with a postcondition check.
failfree: Info
 <FAILING>
indeterministic: Info
 referentially transparent operation
infix: Info
 no fixity defined
iotype: Info
 {(_,_) |-> _}
name: Info
 addPostConditionTo
precedence: Info
 no precedence defined
result-values: Info
 _
signature: Info
 (String, String) -> FlatCurry.Annotated.Types.AFuncDecl FlatCurry.Types.TypeExpr
-> FlatCurry.Annotated.Types.AFuncDecl FlatCurry.Types.TypeExpr
solution-complete: Info
 operation might suspend on free variables
terminating: Info
 possibly non-terminating
totally-defined: Info
 possibly non-reducible on same data term