CBMC
Toggle main menu visibility
Main Page
Related Pages
Namespaces
Namespace List
Namespace Members
All
a
c
d
e
f
g
j
l
m
r
t
w
Functions
a
c
d
f
g
r
t
w
Typedefs
Enumerations
Classes
Class List
Class Hierarchy
Class Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
Enumerations
a
b
c
d
e
f
g
i
k
l
m
o
p
r
s
t
u
v
w
Enumerator
a
b
c
d
e
f
h
i
k
l
m
n
o
p
q
r
s
t
u
v
Related Symbols
b
c
d
e
g
i
j
m
n
o
s
t
u
v
Files
File List
File Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
x
y
z
Variables
_
a
b
c
d
e
f
g
i
l
m
n
o
p
r
s
t
u
w
y
Typedefs
_
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
r
s
t
u
v
w
Enumerations
_
a
b
c
d
f
g
i
l
m
p
r
s
t
u
v
w
Enumerator
_
a
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
Macros
_
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
v
w
x
y
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Modules
Pages
Loading...
Searching...
No Matches
cprover_builtin_headers.h
Go to the documentation of this file.
1
// clang-format off
2
void
__CPROVER_assume
(
__CPROVER_bool
assumption);
3
void
__VERIFIER_assume
(
__CPROVER_bool
assumption);
4
void
__CPROVER_assert
(
__CPROVER_bool
assertion,
const
char
*description);
5
void
__CPROVER_precondition
(
__CPROVER_bool
precondition
,
const
char
*description);
6
void
__CPROVER_postcondition
(
__CPROVER_bool
assertion,
const
char
*description);
7
void
__CPROVER_havoc_object
(
void
*);
8
void
__CPROVER_havoc_slice
(
void
*,
__CPROVER_size_t
);
9
__CPROVER_bool
__CPROVER_same_object
(
const
void
*,
const
void
*);
10
__CPROVER_bool
__CPROVER_is_invalid_pointer
(
const
void
*);
11
_Bool
__CPROVER_is_zero_string
(
const
void
*);
12
__CPROVER_size_t
__CPROVER_zero_string_length
(
const
void
*);
13
__CPROVER_size_t
__CPROVER_buffer_size
(
const
void
*);
14
15
// experimental features for CHC encodings -- do not use
16
__CPROVER_bool
__CPROVER_is_list
(
const
void
*);
// a singly-linked null-terminated dynamically-allocated list
17
__CPROVER_bool
__CPROVER_is_dll
(
const
void
*);
18
__CPROVER_bool
__CPROVER_is_cyclic_dll
(
const
void
*);
19
__CPROVER_bool
__CPROVER_is_sentinel_dll
(
const
void
*, ...);
20
__CPROVER_bool
__CPROVER_is_cstring
(
const
char
*);
21
__CPROVER_size_t
__CPROVER_cstrlen
(
const
char
*);
22
__CPROVER_bool
__CPROVER_separate
(
const
void
*,
const
void
*, ...);
23
24
// bitvector analysis
25
__CPROVER_bool
__CPROVER_get_flag
(
const
void
*,
const
char
*);
26
void
__CPROVER_set_must
(
const
void
*,
const
char
*);
27
void
__CPROVER_clear_must
(
const
void
*,
const
char
*);
28
void
__CPROVER_set_may
(
const
void
*,
const
char
*);
29
void
__CPROVER_clear_may
(
const
void
*,
const
char
*);
30
void
__CPROVER_cleanup
(
const
void
*,
const
void
*);
31
__CPROVER_bool
__CPROVER_get_must
(
const
void
*,
const
char
*);
32
__CPROVER_bool
__CPROVER_get_may
(
const
void
*,
const
char
*);
33
34
void
__CPROVER_printf
(
const
char
*
format
, ...);
35
void
__CPROVER_input
(
const
char
*
id
, ...);
36
void
__CPROVER_output
(
const
char
*
id
, ...);
37
void
__CPROVER_cover
(
__CPROVER_bool
condition);
38
39
// concurrency-related
40
void
__CPROVER_atomic_begin
(
void
);
41
void
__CPROVER_atomic_end
(
void
);
42
void
__CPROVER_fence
(
const
char
*kind, ...);
43
44
// contract-related functions
45
__CPROVER_bool
__CPROVER_is_freeable
(
const
void
*
mem
);
46
__CPROVER_bool
__CPROVER_was_freed
(
const
void
*
mem
);
47
__CPROVER_bool
__CPROVER_pointer_equals
(
void
*p,
void
*
q
);
48
__CPROVER_bool
__CPROVER_is_fresh
(
const
void
*
mem
,
__CPROVER_size_t
size);
49
__CPROVER_bool
__CPROVER_obeys_contract
(
void
(*)(
void
),
void
(*)(
void
));
50
// same as pointer_in_range with experimental support in contracts
51
__CPROVER_bool
__CPROVER_pointer_in_range_dfcc
(
void
*lb,
void
*ptr,
void
*ub);
52
void
__CPROVER_old
(
const
void
*);
53
void
__CPROVER_loop_entry
(
const
void
*);
54
55
// pointers
56
__CPROVER_bool
__CPROVER_LIVE_OBJECT
(
const
void
*);
57
__CPROVER_bool
__CPROVER_WRITEABLE_OBJECT
(
const
void
*);
58
__CPROVER_size_t
__CPROVER_POINTER_OBJECT
(
const
void
*);
59
__CPROVER_size_t
__CPROVER_POINTER_OFFSET
(
const
void
*);
60
__CPROVER_size_t
__CPROVER_OBJECT_SIZE
(
const
void
*);
61
__CPROVER_bool
__CPROVER_DYNAMIC_OBJECT
(
const
void
*);
62
__CPROVER_bool
__CPROVER_pointer_in_range
(
const
void
*,
const
void
*,
const
void
*);
63
void
__CPROVER_allocated_memory
(
__CPROVER_size_t
address,
__CPROVER_size_t
extent
);
64
65
// float stuff
66
int
__CPROVER_fpclassify
(
int
,
int
,
int
,
int
,
int
, ...);
67
__CPROVER_bool
__CPROVER_isnanf
(
float
f);
68
__CPROVER_bool
__CPROVER_isnand
(
double
f);
69
__CPROVER_bool
__CPROVER_isnanld
(
long
double
f);
70
__CPROVER_bool
__CPROVER_isfinitef
(
float
f);
71
__CPROVER_bool
__CPROVER_isfinited
(
double
f);
72
__CPROVER_bool
__CPROVER_isfiniteld
(
long
double
f);
73
__CPROVER_bool
__CPROVER_isinff
(
float
f);
74
__CPROVER_bool
__CPROVER_isinfd
(
double
f);
75
__CPROVER_bool
__CPROVER_isinfld
(
long
double
f);
76
__CPROVER_bool
__CPROVER_isnormalf
(
float
f);
77
__CPROVER_bool
__CPROVER_isnormald
(
double
f);
78
__CPROVER_bool
__CPROVER_isnormalld
(
long
double
f);
79
__CPROVER_bool
__CPROVER_signf
(
float
f);
80
__CPROVER_bool
__CPROVER_signd
(
double
f);
81
__CPROVER_bool
__CPROVER_signld
(
long
double
f);
82
double
__CPROVER_inf
(
void
);
83
float
__CPROVER_inff
(
void
);
84
long
double
__CPROVER_infl
(
void
);
85
int
__CPROVER_isgreaterf
(
float
f,
float
g
);
86
int
__CPROVER_isgreaterd
(
double
f,
double
g
);
87
int
__CPROVER_isgreaterequalf
(
float
f,
float
g
);
88
int
__CPROVER_isgreaterequald
(
double
f,
double
g
);
89
int
__CPROVER_islessf
(
float
f,
float
g
);
90
int
__CPROVER_islessd
(
double
f,
double
g
);
91
int
__CPROVER_islessequalf
(
float
f,
float
g
);
92
int
__CPROVER_islessequald
(
double
f,
double
g
);
93
int
__CPROVER_islessgreaterf
(
float
f,
float
g
);
94
int
__CPROVER_islessgreaterd
(
double
f,
double
g
);
95
int
__CPROVER_isunorderedf
(
float
f,
float
g
);
96
int
__CPROVER_isunorderedd
(
double
f,
double
g
);
97
float
__CPROVER_round_to_integralf
(
float
,
int
);
98
double
__CPROVER_round_to_integrald
(
double
,
int
);
99
long
double
__CPROVER_round_to_integralld
(
long
double
,
int
);
100
101
// absolute value
102
int
__CPROVER_abs
(
int
x
);
103
long
int
__CPROVER_labs
(
long
int
x
);
104
long
long
int
__CPROVER_llabs
(
long
long
int
x
);
105
double
__CPROVER_fabs
(
double
x
);
106
long
double
__CPROVER_fabsl
(
long
double
x
);
107
float
__CPROVER_fabsf
(
float
x
);
108
109
// modulo and remainder
110
double
__CPROVER_fmod
(
double
,
double
);
111
float
__CPROVER_fmodf
(
float
,
float
);
112
long
double
__CPROVER_fmodl
(
long
double
,
long
double
);
113
double
__CPROVER_remainder
(
double
,
double
);
114
float
__CPROVER_remainderf
(
float
,
float
);
115
long
double
__CPROVER_remainderl
(
long
double
,
long
double
);
116
117
// arrays
118
__CPROVER_bool
__CPROVER_array_equal
(
const
void
*
array1
,
const
void
*
array2
);
119
// overwrite all of *dest (possibly using nondet values), even
120
// if *src is smaller
121
void
__CPROVER_array_copy
(
const
void
*dest,
const
void
*src);
122
// replace at most size-of-*src bytes in *dest
123
void
__CPROVER_array_replace
(
const
void
*dest,
const
void
*src);
124
void
__CPROVER_array_set
(
const
void
*dest, ...);
125
126
// k-induction
127
void
__CPROVER_k_induction_hint
(
unsigned
min,
unsigned
max,
unsigned
step,
unsigned
loop_free
);
128
129
// format string-related
130
int
__CPROVER_scanf
(
const
char
*, ...);
131
132
// contracts
133
void
__CPROVER_assignable
(
void
*ptr,
__CPROVER_size_t
size,
134
__CPROVER_bool
is_ptr_to_ptr
);
135
void
__CPROVER_object_whole
(
void
*ptr);
136
void
__CPROVER_object_from
(
void
*ptr);
137
void
__CPROVER_object_upto
(
void
*ptr,
__CPROVER_size_t
size);
138
void
__CPROVER_freeable
(
void
*ptr);
139
// clang-format on
ait
ait supplies three of the four components needed: an abstract interpreter (in this case handling func...
Definition
ai.h:562
__CPROVER_buffer_size
__CPROVER_size_t __CPROVER_buffer_size(const void *)
__CPROVER_round_to_integralld
long double __CPROVER_round_to_integralld(long double, int)
__CPROVER_fabs
double __CPROVER_fabs(double x)
__CPROVER_isnormalld
__CPROVER_bool __CPROVER_isnormalld(long double f)
__CPROVER_printf
void __CPROVER_printf(const char *format,...)
__CPROVER_old
void __CPROVER_old(const void *)
__CPROVER_fmodf
float __CPROVER_fmodf(float, float)
__CPROVER_array_equal
__CPROVER_bool __CPROVER_array_equal(const void *array1, const void *array2)
__CPROVER_isnormald
__CPROVER_bool __CPROVER_isnormald(double f)
__CPROVER_round_to_integralf
float __CPROVER_round_to_integralf(float, int)
__CPROVER_signf
__CPROVER_bool __CPROVER_signf(float f)
__CPROVER_loop_entry
void __CPROVER_loop_entry(const void *)
__CPROVER_pointer_in_range
__CPROVER_bool __CPROVER_pointer_in_range(const void *, const void *, const void *)
__CPROVER_cstrlen
__CPROVER_size_t __CPROVER_cstrlen(const char *)
__CPROVER_freeable
void __CPROVER_freeable(void *ptr)
__CPROVER_isfinitef
__CPROVER_bool __CPROVER_isfinitef(float f)
__CPROVER_separate
__CPROVER_bool __CPROVER_separate(const void *, const void *,...)
__CPROVER_isnanf
__CPROVER_bool __CPROVER_isnanf(float f)
__CPROVER_object_upto
void __CPROVER_object_upto(void *ptr, __CPROVER_size_t size)
__CPROVER_pointer_in_range_dfcc
__CPROVER_bool __CPROVER_pointer_in_range_dfcc(void *lb, void *ptr, void *ub)
__CPROVER_fabsf
float __CPROVER_fabsf(float x)
__CPROVER_isinfld
__CPROVER_bool __CPROVER_isinfld(long double f)
__CPROVER_OBJECT_SIZE
__CPROVER_size_t __CPROVER_OBJECT_SIZE(const void *)
__VERIFIER_assume
void __VERIFIER_assume(__CPROVER_bool assumption)
__CPROVER_islessf
int __CPROVER_islessf(float f, float g)
Definition
math.c:61
__CPROVER_infl
long double __CPROVER_infl(void)
__CPROVER_fabsl
long double __CPROVER_fabsl(long double x)
__CPROVER_isgreaterd
int __CPROVER_isgreaterd(double f, double g)
Definition
math.c:49
__CPROVER_remainderl
long double __CPROVER_remainderl(long double, long double)
__CPROVER_clear_must
void __CPROVER_clear_must(const void *, const char *)
__CPROVER_cover
void __CPROVER_cover(__CPROVER_bool condition)
__CPROVER_scanf
int __CPROVER_scanf(const char *,...)
__CPROVER_object_whole
void __CPROVER_object_whole(void *ptr)
__CPROVER_assert
void __CPROVER_assert(__CPROVER_bool assertion, const char *description)
__CPROVER_is_dll
__CPROVER_bool __CPROVER_is_dll(const void *)
__CPROVER_isgreaterequalf
int __CPROVER_isgreaterequalf(float f, float g)
Definition
math.c:53
__CPROVER_assignable
void __CPROVER_assignable(void *ptr, __CPROVER_size_t size, __CPROVER_bool is_ptr_to_ptr)
__CPROVER_allocated_memory
void __CPROVER_allocated_memory(__CPROVER_size_t address, __CPROVER_size_t extent)
__CPROVER_isfinited
__CPROVER_bool __CPROVER_isfinited(double f)
__CPROVER_array_replace
void __CPROVER_array_replace(const void *dest, const void *src)
__CPROVER_labs
long int __CPROVER_labs(long int x)
__CPROVER_is_list
__CPROVER_bool __CPROVER_is_list(const void *)
__CPROVER_isinff
__CPROVER_bool __CPROVER_isinff(float f)
__CPROVER_is_invalid_pointer
__CPROVER_bool __CPROVER_is_invalid_pointer(const void *)
__CPROVER_havoc_slice
void __CPROVER_havoc_slice(void *, __CPROVER_size_t)
__CPROVER_isunorderedd
int __CPROVER_isunorderedd(double f, double g)
Definition
math.c:92
__CPROVER_array_set
void __CPROVER_array_set(const void *dest,...)
__CPROVER_islessgreaterd
int __CPROVER_islessgreaterd(double f, double g)
Definition
math.c:81
__CPROVER_fence
void __CPROVER_fence(const char *kind,...)
__CPROVER_POINTER_OFFSET
__CPROVER_size_t __CPROVER_POINTER_OFFSET(const void *)
__CPROVER_islessgreaterf
int __CPROVER_islessgreaterf(float f, float g)
Definition
math.c:77
__CPROVER_POINTER_OBJECT
__CPROVER_size_t __CPROVER_POINTER_OBJECT(const void *)
__CPROVER_zero_string_length
__CPROVER_size_t __CPROVER_zero_string_length(const void *)
__CPROVER_isgreaterequald
int __CPROVER_isgreaterequald(double f, double g)
Definition
math.c:57
__CPROVER_islessd
int __CPROVER_islessd(double f, double g)
Definition
math.c:65
__CPROVER_isgreaterf
int __CPROVER_isgreaterf(float f, float g)
Definition
math.c:45
__CPROVER_get_must
__CPROVER_bool __CPROVER_get_must(const void *, const char *)
__CPROVER_WRITEABLE_OBJECT
__CPROVER_bool __CPROVER_WRITEABLE_OBJECT(const void *)
__CPROVER_input
void __CPROVER_input(const char *id,...)
__CPROVER_islessequald
int __CPROVER_islessequald(double f, double g)
Definition
math.c:73
__CPROVER_inff
float __CPROVER_inff(void)
__CPROVER_set_may
void __CPROVER_set_may(const void *, const char *)
__CPROVER_abs
int __CPROVER_abs(int x)
__CPROVER_precondition
void __CPROVER_precondition(__CPROVER_bool precondition, const char *description)
__CPROVER_LIVE_OBJECT
__CPROVER_bool __CPROVER_LIVE_OBJECT(const void *)
__CPROVER_output
void __CPROVER_output(const char *id,...)
__CPROVER_islessequalf
int __CPROVER_islessequalf(float f, float g)
Definition
math.c:69
__CPROVER_get_flag
__CPROVER_bool __CPROVER_get_flag(const void *, const char *)
__CPROVER_llabs
long long int __CPROVER_llabs(long long int x)
__CPROVER_isinfd
__CPROVER_bool __CPROVER_isinfd(double f)
__CPROVER_is_freeable
__CPROVER_bool __CPROVER_is_freeable(const void *mem)
__CPROVER_clear_may
void __CPROVER_clear_may(const void *, const char *)
__CPROVER_get_may
__CPROVER_bool __CPROVER_get_may(const void *, const char *)
__CPROVER_object_from
void __CPROVER_object_from(void *ptr)
__CPROVER_isnanld
__CPROVER_bool __CPROVER_isnanld(long double f)
__CPROVER_isfiniteld
__CPROVER_bool __CPROVER_isfiniteld(long double f)
__CPROVER_is_cyclic_dll
__CPROVER_bool __CPROVER_is_cyclic_dll(const void *)
__CPROVER_same_object
__CPROVER_bool __CPROVER_same_object(const void *, const void *)
__CPROVER_is_zero_string
_Bool __CPROVER_is_zero_string(const void *)
__CPROVER_pointer_equals
__CPROVER_bool __CPROVER_pointer_equals(void *p, void *q)
__CPROVER_atomic_begin
void __CPROVER_atomic_begin(void)
__CPROVER_fmodl
long double __CPROVER_fmodl(long double, long double)
__CPROVER_was_freed
__CPROVER_bool __CPROVER_was_freed(const void *mem)
__CPROVER_remainder
double __CPROVER_remainder(double, double)
__CPROVER_remainderf
float __CPROVER_remainderf(float, float)
__CPROVER_set_must
void __CPROVER_set_must(const void *, const char *)
__CPROVER_is_fresh
__CPROVER_bool __CPROVER_is_fresh(const void *mem, __CPROVER_size_t size)
__CPROVER_is_cstring
__CPROVER_bool __CPROVER_is_cstring(const char *)
__CPROVER_isnormalf
__CPROVER_bool __CPROVER_isnormalf(float f)
__CPROVER_fmod
double __CPROVER_fmod(double, double)
__CPROVER_DYNAMIC_OBJECT
__CPROVER_bool __CPROVER_DYNAMIC_OBJECT(const void *)
__CPROVER_atomic_end
void __CPROVER_atomic_end(void)
__CPROVER_inf
double __CPROVER_inf(void)
__CPROVER_fpclassify
int __CPROVER_fpclassify(int, int, int, int, int,...)
__CPROVER_cleanup
void __CPROVER_cleanup(const void *, const void *)
__CPROVER_assume
void __CPROVER_assume(__CPROVER_bool assumption)
__CPROVER_signld
__CPROVER_bool __CPROVER_signld(long double f)
__CPROVER_array_copy
void __CPROVER_array_copy(const void *dest, const void *src)
__CPROVER_isnand
__CPROVER_bool __CPROVER_isnand(double f)
__CPROVER_k_induction_hint
void __CPROVER_k_induction_hint(unsigned min, unsigned max, unsigned step, unsigned loop_free)
__CPROVER_is_sentinel_dll
__CPROVER_bool __CPROVER_is_sentinel_dll(const void *,...)
__CPROVER_isunorderedf
int __CPROVER_isunorderedf(float f, float g)
Definition
math.c:85
__CPROVER_round_to_integrald
double __CPROVER_round_to_integrald(double, int)
__CPROVER_postcondition
void __CPROVER_postcondition(__CPROVER_bool assertion, const char *description)
__CPROVER_havoc_object
void __CPROVER_havoc_object(void *)
__CPROVER_signd
__CPROVER_bool __CPROVER_signd(double f)
__CPROVER_obeys_contract
__CPROVER_bool __CPROVER_obeys_contract(void(*)(void), void(*)(void))
format
static format_containert< T > format(const T &o)
Definition
format.h:37
precondition
void precondition(const namespacet &ns, value_setst &value_sets, const goto_programt::const_targett target, const symex_target_equationt &equation, const goto_symex_statet &s, exprt &dest, message_handlert &message_handler)
Definition
precondition.cpp:57
src
ansi-c
cprover_builtin_headers.h
Generated by
1.9.8