File tree 4 files changed +9
-8
lines changed
4 files changed +9
-8
lines changed Original file line number Diff line number Diff line change @@ -386,7 +386,7 @@ bool taint_analysist::operator()(
386
386
if (use_json)
387
387
{
388
388
json_objectt json;
389
- json[" bug_class " ]=
389
+ json[" bugClass " ]=
390
390
json_stringt (id2string (i_it->source_location .get_property_class ()));
391
391
json[" file" ]=
392
392
json_stringt (id2string (i_it->source_location .get_file ()));
Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ Date: April 2016
11
11
#include < sstream>
12
12
13
13
#include < util/json.h>
14
+ #include < util/json_expr.h>
14
15
#include < util/file_util.h>
15
16
16
17
#include < analyses/cfg_dominators.h>
@@ -133,12 +134,12 @@ static void add_to_json(
133
134
assert (end_function->is_end_function ());
134
135
135
136
entry[" function" ]=json_stringt (id2string (end_function->function ));
136
- entry[" file name " ]=
137
+ entry[" fileName " ]=
137
138
json_stringt (concat_dir_file (
138
139
id2string (end_function->source_location .get_working_directory ()),
139
140
id2string (end_function->source_location .get_file ())));
140
141
141
- json_arrayt &dead_ins=entry[" unreachable instructions " ].make_array ();
142
+ json_arrayt &dead_ins=entry[" unreachableInstructions " ].make_array ();
142
143
143
144
for (dead_mapt::const_iterator it=dead_map.begin ();
144
145
it!=dead_map.end ();
@@ -160,7 +161,7 @@ static void add_to_json(
160
161
// print info for file actually with full path
161
162
json_objectt &i_entry=dead_ins.push_back ().make_object ();
162
163
const source_locationt &l=it->second ->source_location ;
163
- i_entry[" source location " ]=json_stringt (l. as_string_with_cwd () );
164
+ i_entry[" sourceLocation " ]=json (l );
164
165
i_entry[" statement" ]=json_stringt (s);
165
166
}
166
167
}
Original file line number Diff line number Diff line change @@ -493,9 +493,9 @@ jsont goto_unwindt::unwind_logt::output_log_json() const
493
493
goto_programt::const_targett target=it->first ;
494
494
unsigned location_number=it->second ;
495
495
496
- object[" original_location_number " ]=json_numbert (std::to_string (
496
+ object[" originalLocationNumber " ]=json_numbert (std::to_string (
497
497
location_number));
498
- object[" new_location_number " ]=json_numbert (std::to_string (
498
+ object[" newLocationNumber " ]=json_numbert (std::to_string (
499
499
target->location_number ));
500
500
}
501
501
Original file line number Diff line number Diff line change @@ -1312,13 +1312,13 @@ jsont goto_inlinet::goto_inline_logt::output_inline_log_json() const
1312
1312
object[" call" ]=json_numbert (std::to_string (info.call_location_number ));
1313
1313
object[" function" ]=json_stringt (info.function .c_str ());
1314
1314
1315
- json_arrayt &json_orig=object[" original_segment " ].make_array ();
1315
+ json_arrayt &json_orig=object[" originalSegment " ].make_array ();
1316
1316
json_orig.push_back ()=json_numbert (std::to_string (
1317
1317
info.begin_location_number ));
1318
1318
json_orig.push_back ()=json_numbert (std::to_string (
1319
1319
info.end_location_number ));
1320
1320
1321
- json_arrayt &json_new=object[" inlined_segment " ].make_array ();
1321
+ json_arrayt &json_new=object[" inlinedSegment " ].make_array ();
1322
1322
json_new.push_back ()=json_numbert (std::to_string (start->location_number ));
1323
1323
json_new.push_back ()=json_numbert (std::to_string (end->location_number ));
1324
1324
}
You can’t perform that action at this time.
0 commit comments