|
definition: |
evalFun :: IProg -> String -> [String]
evalFun (IProg _ _ _ ifuns) f =
let (g,ni) = addNode (FuncNode f []) emptyGraph
in evaluate (initState ifuns g ni)
where
evaluate st
| null (tasks st) = []
| otherwise
= let st' = step st
in maybe (evaluate st')
(\nid -> showGraphExp (graph st') nid :
evaluate st' {currResult = Nothing})
(currResult st')
|
|
demand: |
argument 1 |
|
deterministic: |
deterministic operation |
|
documentation: |
Evaluates a 0-ary function w.r.t. an ICurry program and returns the list of all results formatted as strings. Used for testing. |
|
failfree: |
<FAILING> |
|
indeterministic: |
referentially transparent operation |
|
infix: |
no fixity defined |
|
iotype: |
{({IProg},_) |-> _}
|
|
name: |
evalFun |
|
precedence: |
no precedence defined |
|
result-values: |
_ |
|
signature: |
ICurry.Types.IProg -> String -> [String] |
|
solution-complete: |
operation might suspend on free variables |
|
terminating: |
possibly non-terminating |
|
totally-defined: |
possibly non-reducible on same data term |