File tree 3 files changed +4
-3
lines changed 3 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -2214,7 +2214,7 @@ bool simplify_exprt::simplify_node(exprt &expr)
2214
2214
}
2215
2215
else if (expr.id ()==ID_unary_plus)
2216
2216
{
2217
- r = simplify_unary_plus (to_unary_expr (expr));
2217
+ r = simplify_unary_plus (to_unary_plus_expr (expr));
2218
2218
}
2219
2219
else if (expr.id ()==ID_not)
2220
2220
{
Original file line number Diff line number Diff line change @@ -59,6 +59,7 @@ class tvt;
59
59
class typecast_exprt ;
60
60
class unary_exprt ;
61
61
class unary_minus_exprt ;
62
+ class unary_plus_exprt ;
62
63
63
64
#define forall_value_list (it, value_list ) \
64
65
for (simplify_exprt::value_listt::const_iterator it=(value_list).begin(); \
@@ -172,7 +173,7 @@ class simplify_exprt
172
173
NODISCARD resultt<> simplify_good_pointer (const unary_exprt &);
173
174
NODISCARD resultt<> simplify_object (const exprt &);
174
175
NODISCARD resultt<> simplify_unary_minus (const unary_minus_exprt &);
175
- NODISCARD resultt<> simplify_unary_plus (const unary_exprt &);
176
+ NODISCARD resultt<> simplify_unary_plus (const unary_plus_exprt &);
176
177
NODISCARD resultt<> simplify_dereference (const dereference_exprt &);
177
178
NODISCARD resultt<> simplify_address_of (const address_of_exprt &);
178
179
NODISCARD resultt<> simplify_pointer_offset (const unary_exprt &);
Original file line number Diff line number Diff line change @@ -1111,7 +1111,7 @@ simplify_exprt::simplify_extractbits(const extractbits_exprt &expr)
1111
1111
}
1112
1112
1113
1113
simplify_exprt::resultt<>
1114
- simplify_exprt::simplify_unary_plus (const unary_exprt &expr)
1114
+ simplify_exprt::simplify_unary_plus (const unary_plus_exprt &expr)
1115
1115
{
1116
1116
// simply remove, this is always 'nop'
1117
1117
return expr.op ();
You can’t perform that action at this time.
0 commit comments