File tree 2 files changed +12
-10
lines changed
2 files changed +12
-10
lines changed Original file line number Diff line number Diff line change @@ -183,10 +183,10 @@ bool taint_do_security_scan(
183
183
184
184
if (config.is_html_dump_of_program_slice_enabled ())
185
185
{
186
+ const boost::filesystem::path results_dir =
187
+ config.get_slicer_root_directory ();
186
188
const std::string svg_path =
187
- (boost::filesystem::path (config.get_slicer_root_directory ()) /
188
- " tokens_propagation_graph.svg" )
189
- .native ();
189
+ (results_dir / " tokens_propagation_graph.svg" ).native ();
190
190
191
191
logger.status ()
192
192
<< " Saving tokens propagation graph (see '"
@@ -195,6 +195,15 @@ bool taint_do_security_scan(
195
195
taint_dump_as_svg (
196
196
*tokens_propagation_graph_ptr,
197
197
svg_path);
198
+
199
+ logger.status () << " Saving call graph." << messaget::eom;
200
+ dump_callgraph_in_svg (
201
+ program.get_call_graph (),
202
+ (results_dir / " call_graph.svg" ).native ());
203
+ logger.status () << " Saving inverted call graph." << messaget::eom;
204
+ dump_callgraph_in_svg (
205
+ program.get_inverted_call_graph (),
206
+ (results_dir / " inverted_call_graph.svg" ).native ());
198
207
}
199
208
200
209
if (config.is_html_dump_of_summaries_enabled ())
Original file line number Diff line number Diff line change @@ -130,11 +130,4 @@ void taint_slicert::compute_slice(
130
130
(results_dir / " instrumented_goto_programs.json" ).native ());
131
131
ostr << jtasks;
132
132
}
133
-
134
- dump_callgraph_in_svg (
135
- program->get_call_graph (),
136
- (results_dir / " call_graph.svg" ).native ());
137
- dump_callgraph_in_svg (
138
- program->get_inverted_call_graph (),
139
- (results_dir / " inverted_call_graph.svg" ).native ());
140
133
}
You can’t perform that action at this time.
0 commit comments