File tree 1 file changed +10
-7
lines changed
1 file changed +10
-7
lines changed Original file line number Diff line number Diff line change @@ -95,16 +95,19 @@ json_objectt show_goto_functions_jsont::get_goto_functions(
95
95
instruction_entry[" instruction" ]=
96
96
json_stringt (instruction_builder.str ());
97
97
98
- json_arrayt operand_array;
99
- for (const exprt &operand : instruction.code .operands ())
98
+ if (instruction.code .operands ().size ()>0 )
100
99
{
101
- json_objectt operand_object;
102
- no_comments_irep_converter.convert_from_irep (operand, operand_object);
103
- operand_array.push_back (operand_object);
100
+ json_arrayt operand_array;
101
+ for (const exprt &operand : instruction.code .operands ())
102
+ {
103
+ json_objectt operand_object;
104
+ no_comments_irep_converter.convert_from_irep (
105
+ operand, operand_object);
106
+ operand_array.push_back (operand_object);
107
+ }
108
+ instruction_entry[" operands" ]=operand_array;
104
109
}
105
110
106
- instruction_entry[" operands" ]=operand_array;
107
-
108
111
if (!instruction.guard .is_true ())
109
112
{
110
113
json_objectt guard_object;
You can’t perform that action at this time.
0 commit comments