@@ -99,7 +99,7 @@ type state =
9999 (* Set of variables holding return values of each function *)
100100 ; functions_from_returned_value : Var .t list Var.Hashtbl .t
101101 (* Functions associated to each return value *)
102- ; known_cases : ( Var .t , int list ) Hashtbl .t
102+ ; known_cases : int list Var. Hashtbl.t
103103 (* Possible tags for a block after a [switch]. This is used to
104104 get a more precise approximation of the effect of a field
105105 access [Field] *)
@@ -293,7 +293,7 @@ let program_deps st { start; blocks; _ } =
293293 ~f: (fun i ->
294294 match i with
295295 | Let (y , Field (x' , _ , _ )) when Var. equal b x' ->
296- Hashtbl. add st.known_cases y tags
296+ Var. Hashtbl. add st.known_cases y tags
297297 | _ -> () )
298298 block.body)
299299 h
@@ -428,7 +428,7 @@ let propagate st ~update approx x =
428428 match Var.Tbl. get approx y with
429429 | Values { known; others } ->
430430 let tags =
431- try Some (Hashtbl. find st.known_cases x) with Not_found -> None
431+ try Some (Var. Hashtbl. find st.known_cases x) with Not_found -> None
432432 in
433433 Domain. join_set
434434 ~others
@@ -662,7 +662,7 @@ let f ~fast p =
662662 ; variable_possibly_mutable
663663 ; may_escape
664664 ; possibly_mutable
665- ; known_cases = Hashtbl. create 16
665+ ; known_cases = Var. Hashtbl. create 16
666666 ; applied_functions = Hashtbl. create 16
667667 ; fast
668668 ; function_call_sites = Var.Hashtbl. create 128
0 commit comments