File tree Expand file tree Collapse file tree 2 files changed +9
-3
lines changed Expand file tree Collapse file tree 2 files changed +9
-3
lines changed Original file line number Diff line number Diff line change 1
- CORE broken-smt-backend
1
+ CORE
2
2
main.c
3
3
--arch none --little-endian
4
4
(Starting CEGAR Loop|^Generated 1 VCC\(s\), 1 remaining after simplification$)
Original file line number Diff line number Diff line change @@ -3318,8 +3318,14 @@ void smt2_convt::convert_constant(const constant_exprt &expr)
3318
3318
<< " )" ;
3319
3319
}
3320
3320
else
3321
- UNEXPECTEDCASE (
3322
- " unknown pointer constant: " + id2string (expr.get_value ()));
3321
+ {
3322
+ // just treat the pointer as a bit vector
3323
+ const std::size_t width = boolbv_width (expr_type);
3324
+
3325
+ const mp_integer value = bvrep2integer (expr.get_value (), width, false );
3326
+
3327
+ out << " (_ bv" << value << " " << width << " )" ;
3328
+ }
3323
3329
}
3324
3330
else if (expr_type.id ()==ID_bool)
3325
3331
{
You can’t perform that action at this time.
0 commit comments