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
22main.c
33--arch none --little-endian
44(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)
33183318 << " )" ;
33193319 }
33203320 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+ }
33233329 }
33243330 else if (expr_type.id ()==ID_bool)
33253331 {
You can’t perform that action at this time.
0 commit comments