Skip to content

Commit ad05db6

Browse files
author
thk123
committed
Renaming functions to more consistent name
1 parent ae7b2e3 commit ad05db6

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

src/goto-programs/remove_const_function_pointers.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ exprt remove_const_function_pointerst::replace_const_symbols(
9797
{
9898
if(expression.id()==ID_symbol)
9999
{
100-
if(is_expression_const(expression))
100+
if(is_const_expression(expression))
101101
{
102102
const symbolt &symbol=
103103
symbol_table.lookup(expression.get(ID_identifier));
@@ -540,7 +540,7 @@ bool remove_const_function_pointerst::try_resolve_expression(
540540
else
541541
{
542542
resolved_expressions.push_back(simplified_expr);
543-
is_resolved_expression_const=is_expression_const(simplified_expr);
543+
is_resolved_expression_const=is_const_expression(simplified_expr);
544544
resolved=true;
545545
}
546546

@@ -653,7 +653,7 @@ bool remove_const_function_pointerst::try_resolve_index_of(
653653
{
654654
all_possible_const=
655655
all_possible_const &&
656-
is_type_const(potential_array_expr.type().subtype());
656+
is_const_type(potential_array_expr.type().subtype());
657657

658658
if(potential_array_expr.id()==ID_array)
659659
{
@@ -953,10 +953,10 @@ Function: remove_const_function_pointerst::is_expression_const
953953
954954
\*******************************************************************/
955955

956-
bool remove_const_function_pointerst::is_expression_const(
956+
bool remove_const_function_pointerst::is_const_expression(
957957
const exprt &expression) const
958958
{
959-
return is_type_const(expression.type());
959+
return is_const_type(expression.type());
960960
}
961961

962962
/*******************************************************************\
@@ -973,7 +973,7 @@ Function: remove_const_function_pointerst::is_type_const
973973
974974
\*******************************************************************/
975975

976-
bool remove_const_function_pointerst::is_type_const(const typet &type) const
976+
bool remove_const_function_pointerst::is_const_type(const typet &type) const
977977
{
978978
c_qualifierst qualifers(type);
979979
if(type.id()==ID_array)

src/goto-programs/remove_const_function_pointers.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,8 +79,8 @@ class remove_const_function_pointerst:public messaget
7979
expressionst &out_expressions,
8080
bool &out_is_const);
8181

82-
bool is_expression_const(const exprt &expression) const;
83-
bool is_type_const(const typet &type) const;
82+
bool is_const_expression(const exprt &expression) const;
83+
bool is_const_type(const typet &type) const;
8484

8585
bool try_resolve_index_value(
8686
const exprt &index_value_expr, mp_integer &out_array_index);

0 commit comments

Comments
 (0)