cprover
Toggle main menu visibility
Loading...
Searching...
No Matches
statement_list_types.cpp
Go to the documentation of this file.
1
/*******************************************************************\
2
3
Module: Statement List Type Helper
4
5
Author: Matthias Weiss, matthias.weiss@diffblue.com
6
7
\*******************************************************************/
8
11
12
#include "
statement_list_types.h
"
13
14
#include <
util/bitvector_types.h
>
15
#include <
util/ieee_float.h
>
16
17
signedbv_typet
get_int_type
()
18
{
19
return
signedbv_typet
{
STL_INT_WIDTH
};
20
}
21
signedbv_typet
get_dint_type
()
22
{
23
return
signedbv_typet
{
STL_DINT_WIDTH
};
24
}
25
floatbv_typet
get_real_type
()
26
{
27
return
ieee_float_spect::single_precision
().
to_type
();
28
}
29
bool_typet
get_bool_type
()
30
{
31
return
bool_typet
{};
32
}
bitvector_types.h
Pre-defined bitvector types.
bool_typet
The Boolean type.
Definition
std_types.h:36
floatbv_typet
Fixed-width bit-vector with IEEE floating-point interpretation.
Definition
bitvector_types.h:341
ieee_float_spect::single_precision
static ieee_float_spect single_precision()
Definition
ieee_float.h:70
ieee_float_spect::to_type
class floatbv_typet to_type() const
Definition
ieee_float.cpp:25
signedbv_typet
Fixed-width bit-vector with two's complement interpretation.
Definition
bitvector_types.h:222
ieee_float.h
get_dint_type
signedbv_typet get_dint_type()
Creates a new type that resembles the 'DInt' type of the Siemens PLC languages.
Definition
statement_list_types.cpp:21
get_real_type
floatbv_typet get_real_type()
Creates a new type that resembles the 'Real' type of the Siemens PLC languages.
Definition
statement_list_types.cpp:25
get_bool_type
bool_typet get_bool_type()
Creates a new type that resembles the 'Bool' type of the Siemens PLC languages.
Definition
statement_list_types.cpp:29
get_int_type
signedbv_typet get_int_type()
Creates a new type that resembles the 'Int' type of the Siemens PLC languages.
Definition
statement_list_types.cpp:17
statement_list_types.h
Statement List Type Helper.
STL_INT_WIDTH
#define STL_INT_WIDTH
Definition
statement_list_types.h:15
STL_DINT_WIDTH
#define STL_DINT_WIDTH
Definition
statement_list_types.h:16
statement-list
converters
statement_list_types.cpp
Generated by
1.17.0