@@ -124,35 +124,35 @@ let find_path (type node) (module Arg:ViolationArg with type Node.t = node) (mod
124124 | Some path ->
125125 print_path path;
126126 begin match Feasibility. check_path path with
127- | Feasibility. Feasible ->
128- Logs. debug " feasible" ;
129-
130- let module PathArg =
131- struct
132- module Node = Arg. Node
133- module Edge = Arg. Edge
134-
135- let main_entry = BatTuple.Tuple3. first (List. hd path)
136-
137- let next =
138- let module NHT = BatHashtbl. Make (Node ) in
139- let next = NHT. create (List. length path) in
140- List. iter (fun (n1 , e , n2 ) ->
141- NHT. modify_def [] n1 (fun nexts -> (e, n2) :: nexts) next
142- ) path;
143-
144- (fun n -> NHT. find_default next n [] )
145- end
146- in
147- Feasible (module PathArg )
148- | Feasibility. Infeasible subpath ->
149- Logs. debug " infeasible" ;
150- print_path subpath;
151-
152- Infeasible subpath
153- | Feasibility. Unknown ->
154- Logs. debug " unknown" ;
155- Unknown
127+ | Feasibility. Feasible ->
128+ Logs. debug " feasible" ;
129+
130+ let module PathArg =
131+ struct
132+ module Node = Arg. Node
133+ module Edge = Arg. Edge
134+
135+ let main_entry = BatTuple.Tuple3. first (List. hd path)
136+
137+ let next =
138+ let module NHT = BatHashtbl. Make (Node ) in
139+ let next = NHT. create (List. length path) in
140+ List. iter (fun (n1 , e , n2 ) ->
141+ NHT. modify_def [] n1 (fun nexts -> (e, n2) :: nexts) next
142+ ) path;
143+
144+ (fun n -> NHT. find_default next n [] )
145+ end
146+ in
147+ Feasible (module PathArg )
148+ | Feasibility. Infeasible subpath ->
149+ Logs. debug " infeasible" ;
150+ print_path subpath;
151+
152+ Infeasible subpath
153+ | Feasibility. Unknown ->
154+ Logs. debug " unknown" ;
155+ Unknown
156156 end
157157 | None ->
158158 Unknown
0 commit comments