@@ -109,13 +109,6 @@ __CPROVER_contracts_car_t
109109__CPROVER_contracts_car_create (void * ptr , __CPROVER_size_t size )
110110{
111111__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"
119112 __CPROVER_assert (
120113 ((ptr == 0 ) | __CPROVER_rw_ok (ptr , size )),
121114 "ptr NULL or writable up to size" );
@@ -129,7 +122,6 @@ __CPROVER_HIDE:;
129122 "no offset bits overflow on CAR upper bound computation" );
130123 return (__CPROVER_contracts_car_t ){
131124 .is_writable = ptr != 0 , .size = size , .lb = ptr , .ub = (char * )ptr + size };
132- #pragma CPROVER check pop
133125}
134126
135127/// \brief Initialises a __CPROVER_contracts_car_set_ptr_t object
@@ -163,14 +155,6 @@ void __CPROVER_contracts_car_set_insert(
163155 __CPROVER_size_t size )
164156{
165157__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"
174158#ifdef DFCC_DEBUG
175159 __CPROVER_assert ((set != 0 ) & (idx < set -> max_elems ), "no OOB access" );
176160#endif
@@ -188,7 +172,6 @@ __CPROVER_HIDE:;
188172 __CPROVER_contracts_car_t * elem = set -> elems + idx ;
189173 * elem = (__CPROVER_contracts_car_t ){
190174 .is_writable = ptr != 0 , .size = size , .lb = ptr , .ub = (char * )ptr + size };
191- #pragma CPROVER check pop
192175}
193176
194177/// \brief Invalidates all cars in the \p set that point into the same object
@@ -1062,18 +1045,10 @@ __CPROVER_HIDE:;
10621045 void * ptr = * current ;
10631046
10641047 // 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"
10721048 // skip checks on r_ok, dynamic_object and pointer_offset
10731049 __CPROVER_bool preconditions =
10741050 (ptr == 0 ) | (__CPROVER_r_ok (ptr , 0 ) & __CPROVER_DYNAMIC_OBJECT (ptr ) &
10751051 (__CPROVER_POINTER_OFFSET (ptr ) == 0 ));
1076- #pragma CPROVER check pop
10771052 // If there is aliasing between the pointers in the freeable set,
10781053 // and we attempt to free again one of the already freed pointers,
10791054 // the r_ok condition above will fail, preventing us to deallocate
@@ -1204,13 +1179,6 @@ __CPROVER_HIDE:;
12041179 __CPROVER_assert (
12051180 write_set -> linked_is_fresh , "set->linked_is_fresh is not NULL" );
12061181#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"
12141182 if (write_set -> assume_requires_ctx )
12151183 {
12161184#ifdef DFCC_DEBUG
@@ -1311,7 +1279,6 @@ __CPROVER_HIDE:;
13111279 __CPROVER_assume (0 );
13121280 return 0 ; // to silence libcheck
13131281 }
1314- #pragma CPROVER check pop
13151282}
13161283
13171284/// \brief Returns the start address of the conditional address range found at
0 commit comments