@@ -81,8 +81,6 @@ module H = Hashtbl
8181module LF = CHOnlineCodeSet. LanguageFactory
8282module TR = CHTraceResult
8383
84- let bcd = BCHBCDictionary. bcdictionary
85-
8684let x2p = xpr_formatter#pr_expr
8785let p2s = CHPrettyUtil. pretty_to_string
8886
@@ -651,7 +649,9 @@ object (self)
651649 end
652650
653651 method get_symbolic_num_variable (v : variable_t ): variable_t traceresult =
654- self#get_variable v#getName#getSeqNumber
652+ tprop
653+ (self#get_variable v#getName#getSeqNumber)
654+ (__FILE__ ^ " :" ^ (string_of_int __LINE__))
655655
656656 method private has_chifvar index = H. mem chifvars index
657657
@@ -868,7 +868,7 @@ object (self)
868868 end
869869 else
870870 tmap
871- ~msg: " finfo.mk_global_variable "
871+ ~msg: (__FILE__ ^ " : " ^ (string_of_int __LINE__) ^ " : memref:global " )
872872 (fun offset ->
873873 let gvar =
874874 self#mk_variable
@@ -1551,7 +1551,7 @@ object (self)
15511551 val test_expressions = H. create 3 (* test-expressions *)
15521552 val test_variables = H. create 3 (* test-variables *)
15531553
1554- val cvariable_types = H. create 3 (* types of constant-value variables *)
1554+ (* val cvariable_types = H.create 3 *) (* types of constant-value variables *)
15551555
15561556 (* ------------------------------------------------------------------------- *)
15571557
@@ -1605,48 +1605,6 @@ object (self)
16051605 STR " in function " ;
16061606 faddr#toPretty]))
16071607
1608- method set_btype (v : variable_t ) (ty : btype_t ) =
1609- let vix = v#getName#getSeqNumber in
1610- let bix = bcd#index_typ ty in
1611- let entry: int list =
1612- if H. mem cvariable_types vix then
1613- H. find cvariable_types vix
1614- else
1615- [] in
1616- if List. mem bix entry then
1617- ()
1618- else
1619- H. replace cvariable_types vix (bix :: entry)
1620-
1621- method has_btype (v : variable_t ): bool =
1622- let vix = v#getName#getSeqNumber in
1623- H. mem cvariable_types vix
1624-
1625- method get_btype (v : variable_t ): btype_t =
1626- let vix = v#getName#getSeqNumber in
1627- if H. mem cvariable_types vix then
1628- let btypes = List. map bcd#get_typ (H. find cvariable_types vix) in
1629- btype_join btypes
1630- else
1631- TUnknown []
1632-
1633- method get_btypes (v : variable_t ): btype_t list =
1634- let vix = v#getName#getSeqNumber in
1635- if H. mem cvariable_types vix then
1636- List. map bcd#get_typ (H. find cvariable_types vix)
1637- else
1638- []
1639-
1640- method get_btype_table : (int * int * int list ) list =
1641- let result = ref [] in
1642- let _ =
1643- H. iter (fun vix bixs ->
1644- let btypes = List. map bcd#get_typ bixs in
1645- let jbtype = btype_join btypes in
1646- let entry = (vix, bcd#index_typ jbtype, bixs) in
1647- result := entry :: ! result) cvariable_types in
1648- ! result
1649-
16501608 method sideeffects_changed = sideeffects_changed
16511609
16521610 method call_targets_were_set = call_targets_set
0 commit comments