@@ -150,29 +150,12 @@ bool taint_do_security_scan(
150
150
&statistics,
151
151
&logger);
152
152
153
- if (config.is_html_dump_of_program_enabled ())
154
- {
155
- logger.status ()
156
- << " Saving analysed GOTO program in HTML format (see '"
157
- << fileutl_concatenate_file_paths (
158
- config.get_output_root_directory (),
159
- " goto-program/HTML/index.html" )
160
- << " ')." << messaget::eom;
161
-
162
- dump_goto_program_in_html (
163
- program.get_model (),
164
- program.get_call_graph (),
165
- fileutl_concatenate_file_paths (
166
- config.get_output_root_directory (),
167
- " goto-program/HTML" ));
168
- }
169
-
170
153
if (config.is_html_dump_of_summaries_enabled ())
171
154
{
172
155
statistics.begin_dump_of_taint_html_summaries ();
173
156
174
157
logger.status ()
175
- << " Saving summaries of TAINT analysis in HTML format (see "
158
+ << " Saving summaries of TAINT analysis in HTML format (see ' "
176
159
<< fileutl_concatenate_file_paths (
177
160
config.get_taint_summaries_root_directory (),
178
161
" HTML/index.html" )
@@ -193,17 +176,15 @@ bool taint_do_security_scan(
193
176
fn_id, summary, false , ostr);
194
177
},
195
178
program.get_model (),
196
- program.get_call_graph (),
197
179
fileutl_concatenate_file_paths (
198
180
config.get_taint_summaries_root_directory (),
199
- " HTML" ),
200
- false );
181
+ " HTML" ));
201
182
202
183
statistics.end_dump_of_taint_html_summaries ();
203
184
}
204
185
205
186
logger.status ()
206
- << " Saving summaries of TAINT analysis in JSON format (see "
187
+ << " Saving summaries of TAINT analysis in JSON format (see ' "
207
188
<< fileutl_concatenate_file_paths (
208
189
config.get_taint_summaries_root_directory (),
209
190
" JSON/__index.json" )
@@ -212,7 +193,7 @@ bool taint_do_security_scan(
212
193
taint_summaries.flush ();
213
194
214
195
logger.status ()
215
- << " Saving summaries of LVSA analysis in JSON format (see "
196
+ << " Saving summaries of LVSA analysis in JSON format (see ' "
216
197
<< fileutl_concatenate_file_paths (
217
198
config.get_lvsa_summaries_root_directory (),
218
199
" __index.json" )
@@ -223,7 +204,7 @@ bool taint_do_security_scan(
223
204
if (config.is_html_dump_of_statistics_enabled ())
224
205
{
225
206
logger.status ()
226
- << " Saving statistics of the whole analysis in HTML format (see "
207
+ << " Saving statistics of the whole analysis in HTML format (see ' "
227
208
<< fileutl_concatenate_file_paths (
228
209
config.get_statistics_root_directory (),
229
210
" HTML/index.html" )
@@ -237,7 +218,7 @@ bool taint_do_security_scan(
237
218
}
238
219
239
220
logger.status ()
240
- << " Saving statistics of the whole analysis in JSON format (see "
221
+ << " Saving statistics of the whole analysis in JSON format (see ' "
241
222
<< fileutl_concatenate_file_paths (
242
223
config.get_statistics_root_directory (),
243
224
" JSON/statistics.json" )
@@ -254,6 +235,26 @@ bool taint_do_security_scan(
254
235
taint_dump_statistics_in_JSON (statistics,ostr);
255
236
}
256
237
238
+ if (config.is_html_dump_of_program_enabled ())
239
+ {
240
+ logger.status ()
241
+ << " Saving analysed GOTO program in HTML format (see '"
242
+ << fileutl_concatenate_file_paths (
243
+ config.get_output_root_directory (),
244
+ " goto-program/HTML/index.html" )
245
+ << " ')." << messaget::eom;
246
+
247
+ dump_goto_program_in_html (
248
+ program.get_model (),
249
+ program.get_call_graph (),
250
+ program.get_class_hierarchy (),
251
+ program.get_symbol_table (),
252
+ program.get_inverted_functions_topological_order (),
253
+ fileutl_concatenate_file_paths (
254
+ config.get_output_root_directory (),
255
+ " goto-program/HTML" ));
256
+ }
257
+
257
258
logger.status () << " The security scanner has finished successfully."
258
259
<< messaget::eom;
259
260
return true ;
0 commit comments