|
definition: |
predefinedNonFailConds :: [(QName,NonFailCond)] predefinedNonFailConds = map (\divop -> (divop, (divargs fcInt, divcond int0))) intDivOps ++ map (\divop -> (divop, (divargs fcFloat, divcond float0))) floatDivOps ++ map (\sqop -> (pre sqop, sqrtcond)) sqrtops where divargs te = map (\i -> (i,te)) [1,2] divcond lit0 = fcNot (Comb FuncCall (pre "==") [Var 2, Lit lit0]) int0 = Intc 0 float0 = Floatc 0 sqrtcond = ([(1,fcFloat)], Comb FuncCall (pre ">=") [Var 1, Lit float0]) sqrtops = [ "_impl#sqrt#Prelude.Floating#Prelude.Float#", "sqrt" ] |
|
demand: |
no demanded arguments |
|
deterministic: |
deterministic operation |
|
failfree: |
() |
|
indeterministic: |
referentially transparent operation |
|
infix: |
no fixity defined |
|
iotype: |
{() |-> _}
|
|
name: |
predefinedNonFailConds |
|
precedence: |
no precedence defined |
|
result-values: |
_ |
|
signature: |
[((String, String), ([(Prelude.Int, FlatCurry.Types.TypeExpr)], FlatCurry.Types.Expr))] |
|
solution-complete: |
operation might suspend on free variables |
|
terminating: |
possibly non-terminating |
|
totally-defined: |
possibly non-reducible on same data term |