Skip to content

Commit

Permalink
Object numbering: Remove function call operator
Browse files Browse the repository at this point in the history
  • Loading branch information
reuk committed Nov 20, 2017
1 parent c4b3335 commit e3e5e48
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 8 deletions.
4 changes: 2 additions & 2 deletions src/analyses/custom_bitvector_analysis.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -181,10 +181,10 @@ unsigned custom_bitvector_analysist::get_bit_nr(
else if(string_expr.id()==ID_string_constant)
{
irep_idt value=string_expr.get(ID_value);
return bits(value);
return bits.number(value);
}
else
return bits("(unknown)");
return bits.number("(unknown)");
}

std::set<exprt> custom_bitvector_analysist::aliases(
Expand Down
2 changes: 1 addition & 1 deletion src/solvers/flattening/boolbv_constant.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ bvt boolbvt::convert_constant(const constant_exprt &expr)
else if(expr_type.id()==ID_string)
{
// we use the numbering for strings
std::size_t number=string_numbering(expr.get_value());
std::size_t number = string_numbering.number(expr.get_value());
return bv_utils.build_constant(number, bv.size());
}
else if(expr_type.id()==ID_range)
Expand Down
5 changes: 0 additions & 5 deletions src/util/numbering.h
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,6 @@ class numbering final
return (result.first)->second;
}

number_type operator()(const T &a)
{
return number(a);
}

optionalt<number_type> get_number(const T &a) const
{
const auto it = numbers_.find(a);
Expand Down

0 comments on commit e3e5e48

Please sign in to comment.