Skip to content

Commit 46f2ce4

Browse files
authored
Merge pull request #4222 from peterschrammel/add-missing-json-trace-output
Add missing JSON trace output to the C test input generator
2 parents d469c6e + 20c9030 commit 46f2ce4

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/cbmc/c_test_input_generator.cpp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,13 @@ json_objectt test_inputst::to_json(
7676
goal_refs.push_back(json_stringt(goal_id));
7777
}
7878
json_result["coveredGoals"] = std::move(goal_refs);
79+
80+
if(print_trace)
81+
{
82+
json_arrayt json_trace;
83+
convert(ns, goto_trace, json_trace);
84+
json_result["trace"] = std::move(json_trace);
85+
}
7986
return json_result;
8087
}
8188

0 commit comments

Comments
 (0)