File tree Expand file tree Collapse file tree 3 files changed +4
-3
lines changed
Expand file tree Collapse file tree 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)
22142214 }
22152215 else if (expr.id ()==ID_unary_plus)
22162216 {
2217- r = simplify_unary_plus (to_unary_expr (expr));
2217+ r = simplify_unary_plus (to_unary_plus_expr (expr));
22182218 }
22192219 else if (expr.id ()==ID_not)
22202220 {
Original file line number Diff line number Diff line change @@ -59,6 +59,7 @@ class tvt;
5959class typecast_exprt ;
6060class unary_exprt ;
6161class unary_minus_exprt ;
62+ class unary_plus_exprt ;
6263
6364#define forall_value_list (it, value_list ) \
6465 for (simplify_exprt::value_listt::const_iterator it=(value_list).begin(); \
@@ -172,7 +173,7 @@ class simplify_exprt
172173 NODISCARD resultt<> simplify_good_pointer (const unary_exprt &);
173174 NODISCARD resultt<> simplify_object (const exprt &);
174175 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 &);
176177 NODISCARD resultt<> simplify_dereference (const dereference_exprt &);
177178 NODISCARD resultt<> simplify_address_of (const address_of_exprt &);
178179 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)
11111111}
11121112
11131113simplify_exprt::resultt<>
1114- simplify_exprt::simplify_unary_plus (const unary_exprt &expr)
1114+ simplify_exprt::simplify_unary_plus (const unary_plus_exprt &expr)
11151115{
11161116 // simply remove, this is always 'nop'
11171117 return expr.op ();
You can’t perform that action at this time.
0 commit comments