File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed
src/goto-instrument/contracts Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -56,6 +56,8 @@ exprt assigns_clauset::targett::generate_containment_check(
56
56
// If assigns target was a dereference, comparing objects is enough
57
57
if (id == ID_dereference)
58
58
{
59
+ // __CPROVER_w_ok(target, sizeof(target)) &&
60
+ // __CPROVER_same_object(lhs, target)
59
61
return conjunction (condition);
60
62
}
61
63
@@ -81,6 +83,11 @@ exprt assigns_clauset::targett::generate_containment_check(
81
83
// (sizeof(target) + __CPROVER_offset(target))
82
84
condition.push_back (binary_relation_exprt (lhs_region, ID_le, own_region));
83
85
86
+ // __CPROVER_w_ok(target, sizeof(target)) &&
87
+ // __CPROVER_same_object(lhs, target) &&
88
+ // __CPROVER_offset(lhs) >= __CPROVER_offset(target) &&
89
+ // (sizeof(lhs) + __CPROVER_offset(lhs)) <=
90
+ // (sizeof(target) + __CPROVER_offset(target))
84
91
return conjunction (condition);
85
92
}
86
93
You can’t perform that action at this time.
0 commit comments