Skip to content

Commit af314f5

Browse files
committed
Fix iterator equality check bug in custom_bitvector_analysis.cpp
1 parent e0605b7 commit af314f5

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

src/analyses/custom_bitvector_analysis.cpp

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,7 @@ void custom_bitvector_domaint::transform(
270270
locationt to,
271271
ai_baset &ai,
272272
const namespacet &ns,
273-
ai_domain_baset::edge_typet /*edge_type*/)
273+
ai_domain_baset::edge_typet edge_type)
274274
{
275275
// upcast of ai
276276
custom_bitvector_analysist &cba=
@@ -396,11 +396,8 @@ void custom_bitvector_domaint::transform(
396396
}
397397
else
398398
{
399-
goto_programt::const_targett next=from;
400-
++next;
401-
402399
// only if there is an actual call, i.e., we have a body
403-
if(next!=to)
400+
if(edge_type != ai_domain_baset::edge_typet::FUNCTION_LOCAL)
404401
{
405402
const code_typet &code_type=
406403
to_code_type(ns.lookup(identifier).type);

0 commit comments

Comments
 (0)