Skip to content

Commit ef929ea

Browse files
committed
Fix iterator equality check bug in constant_propagator.cpp
1 parent 47933cb commit ef929ea

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/analyses/constant_propagator.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ void constant_propagator_domaint::transform(
4646
locationt to,
4747
ai_baset &ai,
4848
const namespacet &ns,
49-
ai_domain_baset::edge_typet /*edge_type*/)
49+
ai_domain_baset::edge_typet edge_type)
5050
{
5151
#ifdef DEBUG
5252
std::cout << "Transform from/to:\n";
@@ -130,7 +130,7 @@ void constant_propagator_domaint::transform(
130130
const symbol_exprt &symbol_expr=to_symbol_expr(function);
131131
const irep_idt id=symbol_expr.get_identifier();
132132

133-
if(to==next)
133+
if(edge_type == ai_domain_baset::edge_typet::FUNCTION_LOCAL)
134134
{
135135
if(id==CPROVER_PREFIX "set_must" ||
136136
id==CPROVER_PREFIX "get_must" ||

0 commit comments

Comments
 (0)