88
99// external dependencies
1010extern __CPROVER_size_t __CPROVER_max_malloc_size ;
11- extern void * __CPROVER_alloca_object ;
11+ extern const void * __CPROVER_alloca_object ;
1212extern const void * __CPROVER_deallocated ;
1313extern const void * __CPROVER_new_object ;
1414extern __CPROVER_bool __CPROVER_malloc_is_new_array ;
1515int __builtin_clzll (unsigned long long );
16- char __VERIFIER_nondet_char ();
1716__CPROVER_bool __VERIFIER_nondet_CPROVER_bool ();
1817
1918/// \brief A conditionally writable range of bytes.
@@ -245,8 +244,8 @@ __CPROVER_HIDE:;
245244 // symex state from the number of object_bits/offset_bits
246245 // the number of object bits is determined by counting the number of leading
247246 // zeroes of the built-in constant __CPROVER_max_malloc_size;
248- __CPROVER_size_t object_bits = __builtin_clzll (__CPROVER_max_malloc_size );
249- __CPROVER_size_t nof_objects = 1UL << object_bits ;
247+ int object_bits = __builtin_clzll (__CPROVER_max_malloc_size );
248+ __CPROVER_size_t nof_objects = 1ULL << object_bits ;
250249 * set = (__CPROVER_contracts_obj_set_t ){
251250 .max_elems = nof_objects ,
252251 .watermark = 0 ,
@@ -1143,7 +1142,6 @@ void *__CPROVER_contracts_malloc(
11431142 __CPROVER_size_t ,
11441143 __CPROVER_contracts_write_set_ptr_t );
11451144
1146- __CPROVER_bool __VERIFIER_nondet_bool ();
11471145/// \brief Implementation of the `is_fresh` front-end predicate.
11481146///
11491147/// The behaviour depends on the boolean flags carried by \p set
@@ -1170,7 +1168,7 @@ __CPROVER_bool __CPROVER_contracts_is_fresh(
11701168 __CPROVER_contracts_write_set_ptr_t write_set )
11711169{
11721170 if (!write_set )
1173- return __VERIFIER_nondet_bool ();
1171+ return __VERIFIER_nondet_CPROVER_bool ();
11741172__CPROVER_HIDE :;
11751173#ifdef DFCC_DEBUG
11761174 __CPROVER_assert (
0 commit comments