@@ -94,7 +94,7 @@ object (self)
9494 Enum. iter help filelines
9595
9696 method ail_dump =
97- (* currently we just dump the extern function info *)
97+ (* currently we just dump the extern function info *)
9898 let check_sym_func f =
9999 try
100100 let s = Char. escaped(f.func_name.[0 ])^ Char. escaped(f.func_name.[1 ]) in
@@ -116,35 +116,33 @@ object (self)
116116 method post_process f (arch : string ) =
117117 ignore (Sys. command (" python3 main_discover.py " ^ " " ^ f ^ " " ^ arch));
118118 ignore(Sys. command(" python3 post_process.py " ^ arch));
119- ignore(Sys. command(" python3 post_process_lib.py" ));
120- ()
121- (*
122- self#ehframe_dump;
123- self#excpt_tbl_dump;
124- *)
119+ ignore(Sys. command(" python3 post_process_lib.py" ))
120+ (*
121+ self#ehframe_dump;
122+ self#excpt_tbl_dump;
123+ *)
125124
126125 method pre_process =
127- let _ = Sys. command(" python3 pre_process.py" ) in
128- ()
129-
130-
126+ let _ = Sys. command(" python3 pre_process.py" ) in ()
131127
132128 method instrProcess_2 f (arch : string ) =
133129 let open Disassemble_process in
134130 let open Analysis_process in
135131 let module D = Disam in
136132 let module A = Analysis in
133+ let module S = Symbol_get in
137134 let () = self#pre_process in
138135 let (il, fl, re) = D. disassemble f funcs secs arch in
139136
140- print_endline " 3: analysis" ;
137+ print_endline " 3: analysis" ;
141138
142139 let (fbl, bbl, cfg_t, cg, il', re) = A. analyze_one il fl re in
140+ let il' = S. apply il' in
143141 let open Instrumentation_plugin in
144142 let module IP = Instrumentation_Plugin in
145143 let instrumented_il = IP. instrument il' fbl bbl in
146144
147- print_endline " 4: post processing" ;
145+ print_endline " 4: post processing" ;
148146 A. post_analyze instrumented_il re;
149147
150148 self#post_process f arch
0 commit comments