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
#include <
util/std_types.h
>
17
18
signedbv_typet
get_int_type
()
19
{
20
return
signedbv_typet
{
STL_INT_WIDTH
};
21
}
22
signedbv_typet
get_dint_type
()
23
{
24
return
signedbv_typet
{
STL_DINT_WIDTH
};
25
}
26
floatbv_typet
get_real_type
()
27
{
28
return
ieee_float_spect::single_precision
().
to_type
();
29
}
30
bool_typet
get_bool_type
()
31
{
32
return
bool_typet
{};
33
}
bitvector_types.h
Pre-defined bitvector types.
bool_typet
The Boolean type.
Definition
std_types.h:35
floatbv_typet
Fixed-width bit-vector with IEEE floating-point interpretation.
Definition
bitvector_types.h:404
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:285
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:22
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:26
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:30
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:18
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
std_types.h
Pre-defined types.
statement-list
converters
statement_list_types.cpp
Generated by
1.17.0