File tree 1 file changed +5
-6
lines changed
1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -285,7 +285,6 @@ void smt2_convt::define_object_size(
285
285
const object_size_exprt &expr)
286
286
{
287
287
const exprt &ptr = expr.pointer ();
288
- std::size_t size_width = boolbv_width (expr.type ());
289
288
std::size_t pointer_width = boolbv_width (ptr.type ());
290
289
std::size_t number = 0 ;
291
290
std::size_t h=pointer_width-1 ;
@@ -295,23 +294,23 @@ void smt2_convt::define_object_size(
295
294
{
296
295
const typet &type = o.type ();
297
296
auto size_expr = size_of_expr (type, ns);
298
- const auto object_size =
299
- numeric_cast<mp_integer>(size_expr.value_or (nil_exprt ()));
300
297
301
298
if (
302
299
(o.id () != ID_symbol && o.id () != ID_string_constant) ||
303
- !size_expr.has_value () || !object_size. has_value () )
300
+ !size_expr.has_value ())
304
301
{
305
302
++number;
306
303
continue ;
307
304
}
308
305
306
+ find_symbols (*size_expr);
309
307
out << " (assert (=> (= "
310
308
<< " ((_ extract " << h << " " << l << " ) " ;
311
309
convert_expr (ptr);
312
310
out << " ) (_ bv" << number << " " << config.bv_encoding .object_bits << " ))"
313
- << " (= " << id << " (_ bv" << *object_size << " " << size_width
314
- << " ))))\n " ;
311
+ << " (= " << id << " " ;
312
+ convert_expr (*size_expr);
313
+ out << " )))\n " ;
315
314
316
315
++number;
317
316
}
You can’t perform that action at this time.
0 commit comments