CBMC
cprover.h
Go to the documentation of this file.
1 /*******************************************************************\
2 
3 Module: C library check
4 
5 Author: Daniel Kroening, kroening@kroening.com
6 
7 \*******************************************************************/
8 
9 #ifndef CPROVER_ANSI_C_LIBRARY_CPROVER_H
10 #define CPROVER_ANSI_C_LIBRARY_CPROVER_H
11 
15 
16 // NOLINTNEXTLINE(readability/identifiers)
17 typedef __typeof__(sizeof(int)) __CPROVER_size_t;
18 // NOLINTNEXTLINE(readability/identifiers)
19 typedef signed long long __CPROVER_ssize_t;
20 
21 void *__CPROVER_allocate(__CPROVER_size_t size, __CPROVER_bool zero);
22 void __CPROVER_deallocate(void *);
23 extern const void *__CPROVER_deallocated;
24 extern const void *__CPROVER_new_object;
25 extern __CPROVER_bool __CPROVER_malloc_is_new_array;
26 extern const void *__CPROVER_memory_leak;
27 
29 extern __CPROVER_size_t __CPROVER_max_malloc_size;
30 extern __CPROVER_bool __CPROVER_malloc_may_fail;
31 
32 // malloc failure modes
35 
37  _Bool widowed;
38  char data[4];
39  short next_avail;
40  short next_unread;
41 };
42 
43 #include "../cprover_builtin_headers.h"
44 
45 #endif // CPROVER_ANSI_C_LIBRARY_CPROVER_H
__CPROVER_malloc_failure_mode_assert_then_assume
int __CPROVER_malloc_failure_mode_assert_then_assume
__typeof__
typedef __typeof__(sizeof(int)) __CPROVER_size_t
__CPROVER_pipet::next_unread
short next_unread
Definition: cprover.h:40
__CPROVER_deallocated
const void * __CPROVER_deallocated
__CPROVER_pipet::widowed
_Bool widowed
Definition: cprover.h:37
__CPROVER_memory_leak
const void * __CPROVER_memory_leak
__CPROVER_malloc_failure_mode
int __CPROVER_malloc_failure_mode
__CPROVER_new_object
const void * __CPROVER_new_object
__CPROVER_ssize_t
signed long long __CPROVER_ssize_t
Definition: cprover.h:19
__CPROVER_deallocate
void __CPROVER_deallocate(void *)
__CPROVER_pipet::data
char data[4]
Definition: cprover.h:38
__CPROVER_max_malloc_size
__CPROVER_size_t __CPROVER_max_malloc_size
__CPROVER_pipet::next_avail
short next_avail
Definition: cprover.h:39
__CPROVER_allocate
void * __CPROVER_allocate(__CPROVER_size_t size, __CPROVER_bool zero)
__CPROVER_malloc_failure_mode_return_null
int __CPROVER_malloc_failure_mode_return_null
__CPROVER_pipet
Definition: cprover.h:36
__CPROVER_malloc_may_fail
__CPROVER_bool __CPROVER_malloc_may_fail
__CPROVER_malloc_is_new_array
__CPROVER_bool __CPROVER_malloc_is_new_array