@@ -175,14 +175,14 @@ static smt_termt make_bitvector_resize_cast(
175175 const bitvector_typet &from_type,
176176 const bitvector_typet &to_type)
177177{
178- if (const auto to_fixedbv_type = type_try_dynamic_cast<fixedbv_typet>(to_type))
178+ if (type_try_dynamic_cast<fixedbv_typet>(to_type))
179179 {
180180 UNIMPLEMENTED_FEATURE (
181181 " Generation of SMT formula for type cast to fixed-point bitvector "
182182 " type: " +
183183 to_type.pretty ());
184184 }
185- if (const auto to_floatbv_type = type_try_dynamic_cast<floatbv_typet>(to_type))
185+ if (type_try_dynamic_cast<floatbv_typet>(to_type))
186186 {
187187 UNIMPLEMENTED_FEATURE (
188188 " Generation of SMT formula for type cast to floating-point bitvector "
@@ -258,7 +258,7 @@ static smt_termt convert_expr_to_smt(
258258 const auto &from_term = converted.at (cast.op ());
259259 const typet &from_type = cast.op ().type ();
260260 const typet &to_type = cast.type ();
261- if (const auto bool_type = type_try_dynamic_cast<bool_typet>(to_type))
261+ if (type_try_dynamic_cast<bool_typet>(to_type))
262262 return make_not_zero (from_term, cast.op ().type ());
263263 if (const auto c_bool_type = type_try_dynamic_cast<c_bool_typet>(to_type))
264264 return convert_c_bool_cast (from_term, from_type, *c_bool_type);
@@ -893,9 +893,7 @@ static smt_termt convert_expr_to_smt(
893893 " Pointer should be wider than object_bits in order to allow for offset "
894894 " encoding." );
895895 const size_t offset_bits = type->get_width () - object_bits;
896- if (
897- const auto symbol =
898- expr_try_dynamic_cast<symbol_exprt>(address_of.object ()))
896+ if (expr_try_dynamic_cast<symbol_exprt>(address_of.object ()))
899897 {
900898 const smt_bit_vector_constant_termt offset{0 , offset_bits};
901899 return smt_bit_vector_theoryt::concat (object_bit_vector, offset);
0 commit comments