Fix for causality when using linear types
This commit is contained in:
parent
6fefd551b1
commit
c2ab607195
|
@ -231,7 +231,7 @@ let build ac =
|
||||||
| Aand _ | Atuple _ -> make_graph ac
|
| Aand _ | Atuple _ -> make_graph ac
|
||||||
| _ -> [], []
|
| _ -> [], []
|
||||||
in
|
in
|
||||||
let g = make ac in
|
let g = node_for_ac ac in
|
||||||
List.iter (add_dependence g) l;
|
List.iter (add_dependence g) l;
|
||||||
(* let top_l, bot_l = List.split (List.map make_graph_tuple l) in
|
(* let top_l, bot_l = List.split (List.map make_graph_tuple l) in
|
||||||
let top_l = List.flatten top_l in
|
let top_l = List.flatten top_l in
|
||||||
|
|
|
@ -28,10 +28,12 @@ let cand c1 c2 =
|
||||||
let rec candlist l =
|
let rec candlist l =
|
||||||
match l with
|
match l with
|
||||||
| [] -> Cempty
|
| [] -> Cempty
|
||||||
|
| [c] -> c
|
||||||
| c1 :: l -> cand c1 (candlist l)
|
| c1 :: l -> cand c1 (candlist l)
|
||||||
|
|
||||||
let ctuplelist l =
|
let ctuplelist l = match l with
|
||||||
Ctuple l
|
| [c] -> c
|
||||||
|
| _ -> Ctuple l
|
||||||
|
|
||||||
let cor c1 c2 =
|
let cor c1 c2 =
|
||||||
match c1, c2 with
|
match c1, c2 with
|
||||||
|
|
Loading…
Reference in a new issue