File tree Expand file tree Collapse file tree 4 files changed +4
-4
lines changed Expand file tree Collapse file tree 4 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -105,7 +105,7 @@ void build_goto_trace(
105
105
const irep_idt &comment=
106
106
instruction.source_location .get_comment ();
107
107
108
- if (comment!= irep_idt ())
108
+ if (!comment. empty ())
109
109
trace_step.comment =id2string (comment);
110
110
else
111
111
trace_step.comment =" assertion" ;
Original file line number Diff line number Diff line change @@ -699,7 +699,7 @@ void path_symext::function_call_rec(
699
699
const code_typet::parametert &function_parameter=function_parameters[i];
700
700
irep_idt identifier=function_parameter.get_identifier ();
701
701
702
- if (identifier== irep_idt ())
702
+ if (identifier. empty ())
703
703
throw " function_call " + id2string (function_identifier)
704
704
+ " no identifier for function parameter" ;
705
705
Original file line number Diff line number Diff line change @@ -407,7 +407,7 @@ exprt path_symex_statet::read_symbol_member_index(
407
407
else
408
408
{
409
409
// we do some SSA symbol
410
- if (var_state.ssa_symbol .get_identifier ()== irep_idt ())
410
+ if (var_state.ssa_symbol .get_identifier (). empty ())
411
411
{
412
412
// produce one
413
413
var_state.ssa_symbol =var_info.ssa_symbol ();
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ var_mapt::var_infot &var_mapt::operator()(
22
22
const irep_idt &suffix,
23
23
const typet &type)
24
24
{
25
- assert (symbol!= irep_idt ());
25
+ assert (!symbol. empty ());
26
26
27
27
std::string full_identifier=
28
28
id2string (symbol)+id2string (suffix);
You can’t perform that action at this time.
0 commit comments