-
Notifications
You must be signed in to change notification settings - Fork 273
/
Copy pathexpr_initializer.h
41 lines (29 loc) · 982 Bytes
/
expr_initializer.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
/*******************************************************************\
Module: Expression Initialization
Author: Daniel Kroening, [email protected]
\*******************************************************************/
/// \file
/// Expression Initialization
#ifndef CPROVER_UTIL_EXPR_INITIALIZER_H
#define CPROVER_UTIL_EXPR_INITIALIZER_H
#include <optional>
class exprt;
class namespacet;
class source_locationt;
class typet;
std::optional<exprt>
zero_initializer(const typet &, const source_locationt &, const namespacet &);
std::optional<exprt> nondet_initializer(
const typet &type,
const source_locationt &source_location,
const namespacet &ns);
std::optional<exprt> expr_initializer(
const typet &type,
const source_locationt &source_location,
const namespacet &ns,
const exprt &init_byte_expr);
exprt duplicate_per_byte(
const exprt &init_byte_expr,
const typet &output_type,
const namespacet &ns);
#endif // CPROVER_UTIL_EXPR_INITIALIZER_H