CBMC
ansi_c_convert_typet Class Reference

#include <ansi_c_convert_type.h>

+ Inheritance diagram for ansi_c_convert_typet:
+ Collaboration diagram for ansi_c_convert_typet:

Public Member Functions

virtual void read (const typet &type)
 
virtual void write (typet &type)
 
 ansi_c_convert_typet (message_handlert &_message_handler)
 
virtual void clear ()
 
- Public Member Functions inherited from messaget
virtual void set_message_handler (message_handlert &_message_handler)
 
message_handlertget_message_handler ()
 
 messaget ()
 
 messaget (const messaget &other)
 
messagetoperator= (const messaget &other)
 
 messaget (message_handlert &_message_handler)
 
virtual ~messaget ()
 
mstreamtget_mstream (unsigned message_level) const
 
mstreamterror () const
 
mstreamtwarning () const
 
mstreamtresult () const
 
mstreamtstatus () const
 
mstreamtstatistics () const
 
mstreamtprogress () const
 
mstreamtdebug () const
 
void conditional_output (mstreamt &mstream, const std::function< void(mstreamt &)> &output_generator) const
 Generate output to message_stream using output_generator if the configured verbosity is at least as high as that of message_stream. More...
 

Public Attributes

unsigned unsigned_cnt
 
unsigned signed_cnt
 
unsigned char_cnt
 
unsigned int_cnt
 
unsigned short_cnt
 
unsigned long_cnt
 
unsigned double_cnt
 
unsigned float_cnt
 
unsigned c_bool_cnt
 
unsigned proper_bool_cnt
 
unsigned complex_cnt
 
unsigned int8_cnt
 
unsigned int16_cnt
 
unsigned int32_cnt
 
unsigned int64_cnt
 
unsigned ptr32_cnt
 
unsigned ptr64_cnt
 
unsigned gcc_float16_cnt
 
unsigned gcc_float32_cnt
 
unsigned gcc_float32x_cnt
 
unsigned gcc_float64_cnt
 
unsigned gcc_float64x_cnt
 
unsigned gcc_float128_cnt
 
unsigned gcc_float128x_cnt
 
unsigned gcc_int128_cnt
 
unsigned bv_cnt
 
unsigned floatbv_cnt
 
unsigned fixedbv_cnt
 
typet gcc_attribute_mode
 
bool packed
 
bool aligned
 
exprt vector_size
 
exprt alignment
 
exprt bv_width
 
exprt fraction_width
 
exprt msc_based
 
bool constructor
 
bool destructor
 
exprt::operandst assigns
 
exprt::operandst ensures
 
exprt::operandst requires
 
exprt::operandst ensures_contract
 
exprt::operandst requires_contract
 
c_storage_spect c_storage_spec
 
c_qualifierst c_qualifiers
 
source_locationt source_location
 
std::list< typetother
 

Protected Member Functions

virtual void read_rec (const typet &type)
 
virtual void build_type_with_subtype (typet &type) const
 Build a vector or complex type with type as subtype. More...
 
virtual void set_attributes (typet &type) const
 Add qualifiers and GCC attributes onto type. More...
 

Additional Inherited Members

- Public Types inherited from messaget
enum  message_levelt {
  M_ERROR =1, M_WARNING =2, M_RESULT =4, M_STATUS =6,
  M_STATISTICS =8, M_PROGRESS =9, M_DEBUG =10
}
 
- Static Public Member Functions inherited from messaget
static unsigned eval_verbosity (const std::string &user_input, const message_levelt default_verbosity, message_handlert &dest)
 Parse a (user-)provided string as a verbosity level and set it as the verbosity of dest. More...
 
static commandt command (unsigned c)
 Create an ECMA-48 SGR (Select Graphic Rendition) command. More...
 
- Static Public Attributes inherited from messaget
static eomt eom
 
static const commandt reset
 return to default formatting, as defined by the terminal More...
 
static const commandt red
 render text with red foreground color More...
 
static const commandt green
 render text with green foreground color More...
 
static const commandt yellow
 render text with yellow foreground color More...
 
static const commandt blue
 render text with blue foreground color More...
 
static const commandt magenta
 render text with magenta foreground color More...
 
static const commandt cyan
 render text with cyan foreground color More...
 
static const commandt bright_red
 render text with bright red foreground color More...
 
static const commandt bright_green
 render text with bright green foreground color More...
 
static const commandt bright_yellow
 render text with bright yellow foreground color More...
 
static const commandt bright_blue
 render text with bright blue foreground color More...
 
static const commandt bright_magenta
 render text with bright magenta foreground color More...
 
static const commandt bright_cyan
 render text with bright cyan foreground color More...
 
static const commandt bold
 render text with bold font More...
 
static const commandt faint
 render text with faint font More...
 
static const commandt italic
 render italic text More...
 
static const commandt underline
 render underlined text More...
 
- Protected Attributes inherited from messaget
message_handlertmessage_handler
 
mstreamt mstream
 

Detailed Description

Definition at line 23 of file ansi_c_convert_type.h.

Constructor & Destructor Documentation

◆ ansi_c_convert_typet()

ansi_c_convert_typet::ansi_c_convert_typet ( message_handlert _message_handler)
inlineexplicit

Definition at line 66 of file ansi_c_convert_type.h.

Member Function Documentation

◆ build_type_with_subtype()

void ansi_c_convert_typet::build_type_with_subtype ( typet type) const
protectedvirtual

Build a vector or complex type with type as subtype.

Definition at line 651 of file ansi_c_convert_type.cpp.

◆ clear()

virtual void ansi_c_convert_typet::clear ( )
inlinevirtual

Reimplemented in cpp_convert_typet.

Definition at line 72 of file ansi_c_convert_type.h.

◆ read()

void ansi_c_convert_typet::read ( const typet type)
virtual

Definition at line 22 of file ansi_c_convert_type.cpp.

◆ read_rec()

void ansi_c_convert_typet::read_rec ( const typet type)
protectedvirtual

Reimplemented in cpp_convert_typet.

Definition at line 29 of file ansi_c_convert_type.cpp.

◆ set_attributes()

void ansi_c_convert_typet::set_attributes ( typet type) const
protectedvirtual

Add qualifiers and GCC attributes onto type.

Definition at line 671 of file ansi_c_convert_type.cpp.

◆ write()

void ansi_c_convert_typet::write ( typet type)
virtual

Reimplemented in cpp_convert_typet.

Definition at line 292 of file ansi_c_convert_type.cpp.

Member Data Documentation

◆ aligned

bool ansi_c_convert_typet::aligned

Definition at line 44 of file ansi_c_convert_type.h.

◆ alignment

exprt ansi_c_convert_typet::alignment

Definition at line 45 of file ansi_c_convert_type.h.

◆ assigns

exprt::operandst ansi_c_convert_typet::assigns

Definition at line 50 of file ansi_c_convert_type.h.

◆ bv_cnt

unsigned ansi_c_convert_typet::bv_cnt

Definition at line 39 of file ansi_c_convert_type.h.

◆ bv_width

exprt ansi_c_convert_typet::bv_width

Definition at line 45 of file ansi_c_convert_type.h.

◆ c_bool_cnt

unsigned ansi_c_convert_typet::c_bool_cnt

Definition at line 28 of file ansi_c_convert_type.h.

◆ c_qualifiers

c_qualifierst ansi_c_convert_typet::c_qualifiers

Definition at line 57 of file ansi_c_convert_type.h.

◆ c_storage_spec

c_storage_spect ansi_c_convert_typet::c_storage_spec

Definition at line 54 of file ansi_c_convert_type.h.

◆ char_cnt

unsigned ansi_c_convert_typet::char_cnt

Definition at line 26 of file ansi_c_convert_type.h.

◆ complex_cnt

unsigned ansi_c_convert_typet::complex_cnt

Definition at line 29 of file ansi_c_convert_type.h.

◆ constructor

bool ansi_c_convert_typet::constructor

Definition at line 47 of file ansi_c_convert_type.h.

◆ destructor

bool ansi_c_convert_typet::destructor

Definition at line 47 of file ansi_c_convert_type.h.

◆ double_cnt

unsigned ansi_c_convert_typet::double_cnt

Definition at line 28 of file ansi_c_convert_type.h.

◆ ensures

exprt::operandst ansi_c_convert_typet::ensures

Definition at line 50 of file ansi_c_convert_type.h.

◆ ensures_contract

exprt::operandst ansi_c_convert_typet::ensures_contract

Definition at line 50 of file ansi_c_convert_type.h.

◆ fixedbv_cnt

unsigned ansi_c_convert_typet::fixedbv_cnt

Definition at line 40 of file ansi_c_convert_type.h.

◆ float_cnt

unsigned ansi_c_convert_typet::float_cnt

Definition at line 28 of file ansi_c_convert_type.h.

◆ floatbv_cnt

unsigned ansi_c_convert_typet::floatbv_cnt

Definition at line 40 of file ansi_c_convert_type.h.

◆ fraction_width

exprt ansi_c_convert_typet::fraction_width

Definition at line 45 of file ansi_c_convert_type.h.

◆ gcc_attribute_mode

typet ansi_c_convert_typet::gcc_attribute_mode

Definition at line 42 of file ansi_c_convert_type.h.

◆ gcc_float128_cnt

unsigned ansi_c_convert_typet::gcc_float128_cnt

Definition at line 37 of file ansi_c_convert_type.h.

◆ gcc_float128x_cnt

unsigned ansi_c_convert_typet::gcc_float128x_cnt

Definition at line 37 of file ansi_c_convert_type.h.

◆ gcc_float16_cnt

unsigned ansi_c_convert_typet::gcc_float16_cnt

Definition at line 34 of file ansi_c_convert_type.h.

◆ gcc_float32_cnt

unsigned ansi_c_convert_typet::gcc_float32_cnt

Definition at line 35 of file ansi_c_convert_type.h.

◆ gcc_float32x_cnt

unsigned ansi_c_convert_typet::gcc_float32x_cnt

Definition at line 35 of file ansi_c_convert_type.h.

◆ gcc_float64_cnt

unsigned ansi_c_convert_typet::gcc_float64_cnt

Definition at line 36 of file ansi_c_convert_type.h.

◆ gcc_float64x_cnt

unsigned ansi_c_convert_typet::gcc_float64x_cnt

Definition at line 36 of file ansi_c_convert_type.h.

◆ gcc_int128_cnt

unsigned ansi_c_convert_typet::gcc_int128_cnt

Definition at line 38 of file ansi_c_convert_type.h.

◆ int16_cnt

unsigned ansi_c_convert_typet::int16_cnt

Definition at line 32 of file ansi_c_convert_type.h.

◆ int32_cnt

unsigned ansi_c_convert_typet::int32_cnt

Definition at line 32 of file ansi_c_convert_type.h.

◆ int64_cnt

unsigned ansi_c_convert_typet::int64_cnt

Definition at line 32 of file ansi_c_convert_type.h.

◆ int8_cnt

unsigned ansi_c_convert_typet::int8_cnt

Definition at line 32 of file ansi_c_convert_type.h.

◆ int_cnt

unsigned ansi_c_convert_typet::int_cnt

Definition at line 27 of file ansi_c_convert_type.h.

◆ long_cnt

unsigned ansi_c_convert_typet::long_cnt

Definition at line 27 of file ansi_c_convert_type.h.

◆ msc_based

exprt ansi_c_convert_typet::msc_based

Definition at line 46 of file ansi_c_convert_type.h.

◆ other

std::list<typet> ansi_c_convert_typet::other

Definition at line 64 of file ansi_c_convert_type.h.

◆ packed

bool ansi_c_convert_typet::packed

Definition at line 44 of file ansi_c_convert_type.h.

◆ proper_bool_cnt

unsigned ansi_c_convert_typet::proper_bool_cnt

Definition at line 29 of file ansi_c_convert_type.h.

◆ ptr32_cnt

unsigned ansi_c_convert_typet::ptr32_cnt

Definition at line 33 of file ansi_c_convert_type.h.

◆ ptr64_cnt

unsigned ansi_c_convert_typet::ptr64_cnt

Definition at line 33 of file ansi_c_convert_type.h.

◆ requires

exprt::operandst ansi_c_convert_typet::requires

Definition at line 50 of file ansi_c_convert_type.h.

◆ requires_contract

exprt::operandst ansi_c_convert_typet::requires_contract

Definition at line 51 of file ansi_c_convert_type.h.

◆ short_cnt

unsigned ansi_c_convert_typet::short_cnt

Definition at line 27 of file ansi_c_convert_type.h.

◆ signed_cnt

unsigned ansi_c_convert_typet::signed_cnt

Definition at line 26 of file ansi_c_convert_type.h.

◆ source_location

source_locationt ansi_c_convert_typet::source_location

Definition at line 62 of file ansi_c_convert_type.h.

◆ unsigned_cnt

unsigned ansi_c_convert_typet::unsigned_cnt

Definition at line 26 of file ansi_c_convert_type.h.

◆ vector_size

exprt ansi_c_convert_typet::vector_size

Definition at line 45 of file ansi_c_convert_type.h.


The documentation for this class was generated from the following files: