769769 val lock : RD .t -> LRD .t -> LRD .t -> RD .t
770770 val unlock : W .t -> RD .t -> LRD .t * (Cluster .t list )
771771
772- val filter_clusters : LRD .t -> (Cluster .t -> bool ) -> LRD .t
772+ val filter_clusters : (Cluster .t -> bool ) -> LRD .t -> LRD .t
773773
774774 val name : unit -> string
775775end
@@ -793,7 +793,7 @@ struct
793793 let unlock w oct_side =
794794 oct_side, [() ]
795795
796- let filter_clusters oct f =
796+ let filter_clusters f oct =
797797 if f () then
798798 oct
799799 else
@@ -924,7 +924,7 @@ struct
924924 in
925925 (LRD. add_list_fun clusters oct_side_cluster (LRD. empty () ), clusters)
926926
927- let filter_clusters oct f =
927+ let filter_clusters f oct =
928928 LRD. filter (fun gs _ -> f gs) oct
929929
930930 let name = ClusteringArg. name
@@ -1007,7 +1007,7 @@ struct
10071007 let lad, clusters = DCCluster. unlock w oct_side in
10081008 ((lad, LRD1. bot () ), clusters)
10091009
1010- let filter_clusters (lad ,lad' ) f =
1010+ let filter_clusters f (lad ,lad' ) =
10111011 (LRD1. filter (fun gs _ -> f gs) lad, LRD1. filter (fun gs _ -> f gs) lad')
10121012end
10131013
@@ -1046,7 +1046,7 @@ struct
10461046 let r =
10471047 let get_mutex_inits = merge_all @@ G. mutex @@ getg V. mutex_inits in
10481048 let get_mutex_inits' = Cluster. keep_only_protected_globals ask m get_mutex_inits in
1049- let get_mutex_inits' = Cluster. filter_clusters get_mutex_inits' inits in
1049+ let get_mutex_inits' = Cluster. filter_clusters inits get_mutex_inits' in
10501050 if M. tracing then M. trace " relationpriv" " inits=%a\n inits'=%a" LRD. pretty get_mutex_inits LRD. pretty get_mutex_inits';
10511051 LRD. join get_m get_mutex_inits'
10521052 in
@@ -1069,7 +1069,7 @@ struct
10691069 let r =
10701070 let get_mutex_inits = merge_all @@ G. mutex @@ getg V. mutex_inits in
10711071 let get_mutex_inits' = Cluster. keep_global g get_mutex_inits in
1072- let get_mutex_inits' = Cluster. filter_clusters get_mutex_inits' inits in
1072+ let get_mutex_inits' = Cluster. filter_clusters inits get_mutex_inits' in
10731073 if M. tracing then M. trace " relationpriv" " inits=%a\n inits'=%a" LRD. pretty get_mutex_inits LRD. pretty get_mutex_inits';
10741074 LRD. join get_mutex_global_g get_mutex_inits'
10751075 in
@@ -1080,7 +1080,7 @@ struct
10801080 (* Unprotected invariant is one big relation. *)
10811081 let get_mutex_global_g = get_relevant_writes_nofilter ask @@ G. mutex @@ getg (V. mutex atomic_mutex) in
10821082 let get_mutex_inits = merge_all @@ G. mutex @@ getg V. mutex_inits in
1083- let get_mutex_inits' = Cluster. filter_clusters get_mutex_inits inits in
1083+ let get_mutex_inits' = Cluster. filter_clusters inits get_mutex_inits in
10841084 LRD. join get_mutex_global_g get_mutex_inits'
10851085
10861086 let read_global (ask : Q.ask ) getg (st : relation_components_t ) g x : RD.t =
0 commit comments