Skip to content

Commit 52d1e04

Browse files
committed
Do not use default arguments for json(...)
1 parent 8254a3f commit 52d1e04

File tree

4 files changed

+7
-5
lines changed

4 files changed

+7
-5
lines changed

src/cbmc/bmc_cover.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -394,7 +394,8 @@ bool bmc_covert::operator()()
394394
json_objectt json_input;
395395
json_input["id"]=json_stringt(id2string(step.io_id));
396396
if(step.io_args.size()==1)
397-
json_input["value"]=json(step.io_args.front(), bmc.ns);
397+
json_input["value"]=
398+
json(step.io_args.front(), bmc.ns, ID_unknown);
398399
json_test.push_back(json_input);
399400
}
400401
}

src/goto-programs/json_goto_trace.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ void convert(
192192
DATA_INVARIANT(
193193
step.full_lhs_value.is_not_nil(),
194194
"full_lhs_value in assignment must not be nil");
195-
full_lhs_value=json(step.full_lhs_value, ns);
195+
full_lhs_value=json(step.full_lhs_value, ns, ID_unknown);
196196
}
197197

198198
json_assignment["value"]=full_lhs_value;

src/symex/symex_cover.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,8 @@ void symex_parse_optionst::report_cover(
164164
json_objectt json_input;
165165
json_input["id"]=json_stringt(id2string(step.io_id));
166166
if(step.io_args.size()==1)
167-
json_input["value"]=json(step.io_args.front(), ns);
167+
json_input["value"]=
168+
json(step.io_args.front(), ns, ID_unknown);
168169
json_test.push_back(json_input);
169170
}
170171
}

src/util/json_expr.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,12 @@ class namespacet;
2323
json_objectt json(
2424
const exprt &,
2525
const namespacet &,
26-
const irep_idt &mode=ID_unknown);
26+
const irep_idt &mode);
2727

2828
json_objectt json(
2929
const typet &,
3030
const namespacet &,
31-
const irep_idt &mode=ID_unknown);
31+
const irep_idt &mode);
3232

3333
json_objectt json(const source_locationt &);
3434

0 commit comments

Comments
 (0)