|
definition: |
addVarDecls :: Graph -> IEnv -> [IVarDecl] -> (Graph,IEnv) addVarDecls g env [] = (g,env) addVarDecls g env (IVarDecl v : vdecls) = addVarDecls g ((v,0) : env) vdecls addVarDecls g env (IFreeDecl v : vdecls) = let (g1,fn) = addNode FreeNode g in addVarDecls g1 ((v,fn) : env) vdecls |
|
demand: |
argument 3 |
|
deterministic: |
deterministic operation |
|
documentation: |
Adds variable declarations to the graph and environment. |
|
failfree: |
(_, _, _) |
|
indeterministic: |
referentially transparent operation |
|
infix: |
no fixity defined |
|
iotype: |
{(_,_,{[]}) |-> {(,)} || (_,_,{:}) |-> {(,)}}
|
|
name: |
addVarDecls |
|
precedence: |
no precedence defined |
|
result-values: |
{(,)}
|
|
signature: |
ICurry.Graph.Graph -> [(Prelude.Int, Prelude.Int)] -> [ICurry.Types.IVarDecl] -> (ICurry.Graph.Graph, [(Prelude.Int, Prelude.Int)]) |
|
solution-complete: |
operation might suspend on free variables |
|
terminating: |
yes |
|
totally-defined: |
reducible on all ground data terms |