@@ -109,13 +109,6 @@ __CPROVER_contracts_car_t
109
109
__CPROVER_contracts_car_create (void * ptr , __CPROVER_size_t size )
110
110
{
111
111
__CPROVER_HIDE :;
112
- #pragma CPROVER check push
113
- #pragma CPROVER check disable "pointer"
114
- #pragma CPROVER check disable "pointer-primitive"
115
- #pragma CPROVER check disable "unsigned-overflow"
116
- #pragma CPROVER check disable "signed-overflow"
117
- #pragma CPROVER check disable "undefined-shift"
118
- #pragma CPROVER check disable "conversion"
119
112
__CPROVER_assert (
120
113
((ptr == 0 ) | __CPROVER_rw_ok (ptr , size )),
121
114
"ptr NULL or writable up to size" );
@@ -129,7 +122,6 @@ __CPROVER_HIDE:;
129
122
"no offset bits overflow on CAR upper bound computation" );
130
123
return (__CPROVER_contracts_car_t ){
131
124
.is_writable = ptr != 0 , .size = size , .lb = ptr , .ub = (char * )ptr + size };
132
- #pragma CPROVER check pop
133
125
}
134
126
135
127
/// \brief Initialises a __CPROVER_contracts_car_set_ptr_t object
@@ -163,14 +155,6 @@ void __CPROVER_contracts_car_set_insert(
163
155
__CPROVER_size_t size )
164
156
{
165
157
__CPROVER_HIDE :;
166
- #pragma CPROVER check push
167
- #pragma CPROVER check disable "pointer"
168
- #pragma CPROVER check disable "pointer-overflow"
169
- #pragma CPROVER check disable "pointer-primitive"
170
- #pragma CPROVER check disable "unsigned-overflow"
171
- #pragma CPROVER check disable "signed-overflow"
172
- #pragma CPROVER check disable "undefined-shift"
173
- #pragma CPROVER check disable "conversion"
174
158
#ifdef DFCC_DEBUG
175
159
__CPROVER_assert ((set != 0 ) & (idx < set -> max_elems ), "no OOB access" );
176
160
#endif
@@ -188,7 +172,6 @@ __CPROVER_HIDE:;
188
172
__CPROVER_contracts_car_t * elem = set -> elems + idx ;
189
173
* elem = (__CPROVER_contracts_car_t ){
190
174
.is_writable = ptr != 0 , .size = size , .lb = ptr , .ub = (char * )ptr + size };
191
- #pragma CPROVER check pop
192
175
}
193
176
194
177
/// \brief Invalidates all cars in the \p set that point into the same object
@@ -1062,18 +1045,10 @@ __CPROVER_HIDE:;
1062
1045
void * ptr = * current ;
1063
1046
1064
1047
// call free only iff the pointer is valid preconditions are met
1065
- #pragma CPROVER check push
1066
- #pragma CPROVER check disable "pointer"
1067
- #pragma CPROVER check disable "pointer-primitive"
1068
- #pragma CPROVER check disable "unsigned-overflow"
1069
- #pragma CPROVER check disable "signed-overflow"
1070
- #pragma CPROVER check disable "undefined-shift"
1071
- #pragma CPROVER check disable "conversion"
1072
1048
// skip checks on r_ok, dynamic_object and pointer_offset
1073
1049
__CPROVER_bool preconditions =
1074
1050
(ptr == 0 ) | (__CPROVER_r_ok (ptr , 0 ) & __CPROVER_DYNAMIC_OBJECT (ptr ) &
1075
1051
(__CPROVER_POINTER_OFFSET (ptr ) == 0 ));
1076
- #pragma CPROVER check pop
1077
1052
// If there is aliasing between the pointers in the freeable set,
1078
1053
// and we attempt to free again one of the already freed pointers,
1079
1054
// the r_ok condition above will fail, preventing us to deallocate
@@ -1204,13 +1179,6 @@ __CPROVER_HIDE:;
1204
1179
__CPROVER_assert (
1205
1180
write_set -> linked_is_fresh , "set->linked_is_fresh is not NULL" );
1206
1181
#endif
1207
- #pragma CPROVER check push
1208
- #pragma CPROVER check disable "pointer"
1209
- #pragma CPROVER check disable "pointer-primitive"
1210
- #pragma CPROVER check disable "pointer-overflow"
1211
- #pragma CPROVER check disable "signed-overflow"
1212
- #pragma CPROVER check disable "unsigned-overflow"
1213
- #pragma CPROVER check disable "conversion"
1214
1182
if (write_set -> assume_requires_ctx )
1215
1183
{
1216
1184
#ifdef DFCC_DEBUG
@@ -1311,7 +1279,6 @@ __CPROVER_HIDE:;
1311
1279
__CPROVER_assume (0 );
1312
1280
return 0 ; // to silence libcheck
1313
1281
}
1314
- #pragma CPROVER check pop
1315
1282
}
1316
1283
1317
1284
/// \brief Returns the start address of the conditional address range found at
0 commit comments