@@ -99,7 +99,7 @@ type state =
99
99
(* Set of variables holding return values of each function *)
100
100
; functions_from_returned_value : Var .t list Var.Hashtbl .t
101
101
(* Functions associated to each return value *)
102
- ; known_cases : ( Var .t , int list ) Hashtbl .t
102
+ ; known_cases : int list Var. Hashtbl.t
103
103
(* Possible tags for a block after a [switch]. This is used to
104
104
get a more precise approximation of the effect of a field
105
105
access [Field] *)
@@ -293,7 +293,7 @@ let program_deps st { start; blocks; _ } =
293
293
~f: (fun i ->
294
294
match i with
295
295
| 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
297
297
| _ -> () )
298
298
block.body)
299
299
h
@@ -428,7 +428,7 @@ let propagate st ~update approx x =
428
428
match Var.Tbl. get approx y with
429
429
| Values { known; others } ->
430
430
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
432
432
in
433
433
Domain. join_set
434
434
~others
@@ -662,7 +662,7 @@ let f ~fast p =
662
662
; variable_possibly_mutable
663
663
; may_escape
664
664
; possibly_mutable
665
- ; known_cases = Hashtbl. create 16
665
+ ; known_cases = Var. Hashtbl. create 16
666
666
; applied_functions = Hashtbl. create 16
667
667
; fast
668
668
; function_call_sites = Var.Hashtbl. create 128
0 commit comments