We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 7905492 + 568ec70 commit db7f860Copy full SHA for db7f860
src/util/replace_symbol.cpp
@@ -119,7 +119,7 @@ bool replace_symbolt::replace(exprt &dest) const
119
120
bool replace_symbolt::have_to_replace(const exprt &dest) const
121
{
122
- if(expr_map.empty())
+ if(empty())
123
return false;
124
125
// first look at type
@@ -132,7 +132,7 @@ bool replace_symbolt::have_to_replace(const exprt &dest) const
132
if(dest.id()==ID_symbol)
133
134
const irep_idt &identifier = to_symbol_expr(dest).get_identifier();
135
- return expr_map.find(identifier) != expr_map.end();
+ return replaces_symbol(identifier);
136
}
137
138
forall_operands(it, dest)
0 commit comments