summaryrefslogtreecommitdiff
path: root/interpret/interpret.ml
diff options
context:
space:
mode:
Diffstat (limited to 'interpret/interpret.ml')
-rw-r--r--interpret/interpret.ml14
1 files changed, 7 insertions, 7 deletions
diff --git a/interpret/interpret.ml b/interpret/interpret.ml
index f28bce0..6f7c90e 100644
--- a/interpret/interpret.ml
+++ b/interpret/interpret.ml
@@ -211,7 +211,7 @@ end = struct
| AST_instance((f, _), args, nid) ->
let (n, _) = find_node_decl env.st.p f in
List.map
- (fun (_, (id, _), _) -> get_var env (node^"/"^nid) id)
+ (fun (_, id, _) -> get_var env (node^"/"^nid) id)
n.ret
(*
@@ -226,7 +226,7 @@ end = struct
Hashtbl.replace env.vars (node^"/"^prefix^"init") (VBool true);
let do_exp e =
List.iter
- (fun (id, eqs, _) -> reset_scope env (node^"/"^id, "", eqs))
+ (fun (_, id, eqs, _) -> reset_scope env (node^"/"^id, "", eqs))
(extract_instances env.st.p e)
in
let do_eq (e, _) = match e with
@@ -259,9 +259,9 @@ end = struct
Hashtbl.replace env.vars (node^"/"^prefix^"act") (VBool true);
let do_expr e =
List.iter
- (fun (id, eqs, args) ->
+ (fun (_, id, eqs, args) ->
activate_scope env (node^"/"^id, "", eqs);
- let do_arg ((_,(name,_),_), expr) =
+ let do_arg ((_,name,_), expr) =
let apath = node^"/"^id^"/"^name in
let calc () =
match eval_expr env (node, prefix) expr with
@@ -329,7 +329,7 @@ end = struct
let rec do_weak_transitions env (node, prefix, eqs) =
let do_expr e =
List.iter
- (fun (id, eqs, args) ->
+ (fun (_, id, eqs, args) ->
do_weak_transitions env (node^"/"^id, "", eqs))
(extract_instances env.st.p e)
in
@@ -404,7 +404,7 @@ end = struct
save (extract_pre e) in
(* Save recursively in sub instances of nodes *)
let save = List.fold_left
- (fun save (n, eqs, _) ->
+ (fun save (_, n, eqs, _) ->
aux (node^"/"^n, "", eqs) save)
save (extract_instances env.st.p e)
in save
@@ -447,7 +447,7 @@ end = struct
p = p;
root_scope = get_root_scope p root;
save = VarMap.empty;
- outputs = (List.map (fun (_,(n,_),_) -> n) n.ret);
+ outputs = (List.map (fun (_,n,_) -> n) n.ret);
} in
let env = { st = st; vars = Hashtbl.create 42 } in