CBMC
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
boolbv_type.cpp
Go to the documentation of this file.
1/*******************************************************************\
2
3Module:
4
5Author: Daniel Kroening, kroening@kroening.com
6
7\*******************************************************************/
8
9#include "boolbv_type.h"
10
11#include <util/type.h>
12
14{
15 if(type.id()==ID_signedbv)
16 return bvtypet::IS_SIGNED;
17 else if(type.id()==ID_unsignedbv)
19 else if(type.id()==ID_c_bool)
20 return bvtypet::IS_C_BOOL;
21 else if(type.id() == ID_c_enum || type.id() == ID_c_enum_tag)
22 return bvtypet::IS_C_ENUM;
23 else if(type.id()==ID_floatbv)
24 return bvtypet::IS_FLOAT;
25 else if(type.id()==ID_fixedbv)
26 return bvtypet::IS_FIXED;
27 else if(type.id()==ID_bv)
28 return bvtypet::IS_BV;
29 else if(type.id()==ID_verilog_signedbv)
31 else if(type.id()==ID_verilog_unsignedbv)
33 else if(type.id()==ID_range)
34 return bvtypet::IS_RANGE;
35 else if(type.id()==ID_c_bit_field)
37
39}
bvtypet get_bvtype(const typet &type)
bvtypet
Definition boolbv_type.h:17
@ IS_VERILOG_UNSIGNED
@ IS_VERILOG_SIGNED
@ IS_C_BIT_FIELD
ait supplies three of the four components needed: an abstract interpreter (in this case handling func...
Definition ai.h:562
const irep_idt & id() const
Definition irep.h:388
The type of an expression, extends irept.
Definition type.h:29
Defines typet, type_with_subtypet and type_with_subtypest.