File tree Expand file tree Collapse file tree 1 file changed +3
-17
lines changed Expand file tree Collapse file tree 1 file changed +3
-17
lines changed Original file line number Diff line number Diff line change 28
28
#include < util/symbol.h>
29
29
#include < util/xml.h>
30
30
31
- #ifdef DEBUG
31
+ // #ifdef DEBUG
32
32
# include < iostream>
33
- #endif
33
+ // #endif
34
34
35
35
#include " add_failed_symbols.h"
36
36
@@ -356,21 +356,6 @@ bool value_sett::eval_pointer_offset(
356
356
return false ;
357
357
else
358
358
{
359
- // This branch should not be reached as any constant offset will have
360
- // been used before already. The following code will trigger
361
- // `eval_pointer_offset`, yet we wouldn't end up in this branch:
362
- // struct S { int a; char b; };
363
- //
364
- // int main()
365
- // {
366
- // struct S s;
367
- // int offset;
368
- // __CPROVER_assume(offset >= 0 && offset <= 1 && offset % 2 == 0);
369
- // int *p = (char*)&s + offset;
370
- // int x = *p;
371
- // __CPROVER_assert(s.a == x, "");
372
- // }
373
- UNREACHABLE;
374
359
const exprt &object=object_numbering[it->first ];
375
360
auto ptr_offset = compute_pointer_offset (object, ns);
376
361
@@ -1151,6 +1136,7 @@ void value_sett::get_value_set_rec(
1151
1136
byte_extract_expr.op ().type ().id () == ID_struct_tag)
1152
1137
{
1153
1138
exprt offset = byte_extract_expr.offset ();
1139
+ std::cerr << " EXPR: " << format (expr) << std::endl;
1154
1140
if (eval_pointer_offset (offset, ns))
1155
1141
simplify (offset, ns);
1156
1142
You can’t perform that action at this time.
0 commit comments