9#ifndef CPROVER_UTIL_C_TYPES_UTIL_H
10#define CPROVER_UTIL_C_TYPES_UTIL_H
99 INVARIANT(
false,
"member_name must be a valid value in the c_enum.");
bool is_signed_or_unsigned_bitvector(const typet &type)
This method tests, if the given typet is a signed or unsigned bitvector.
bool is_c_char_pointer_type(const typet &type)
This function checks, whether type is a pointer and the target type of the pointer has been a char ty...
bool is_c_integral_type(const typet &type)
This function checks, whether the type has been some kind of integer type in the c program.
bool is_c_integral_pointer_type(const typet &type)
This function checks, whether type is a pointer and the target type has been some kind of int type in...
bool is_c_enum_type(const typet &type)
This function checks, whether the type has been an enum type in the c program.
bool id2boolean(const std::string &bool_value)
Convert id to a Boolean value.
bool is_c_bool_type(const typet &type)
This function checks, whether the type has been a bool type in the c program.
constant_exprt from_c_boolean_value(bool bool_value, const typet &type)
This function creates a constant representing either 0 or 1 as value of type type.
constant_exprt convert_member_name_to_enum_value(const irep_idt &member_name, const c_enum_typet &c_enum)
This function creates a constant representing the bitvector encoded integer value of a string in the ...
bool is_c_char_type(const typet &type)
This function checks, whether this has been a char type in the c program.
ait supplies three of the four components needed: an abstract interpreter (in this case handling func...
A constant literal expression.
dstringt has one field, an unsigned integer no which is an index into a static table of strings.
const irep_idt & get(const irep_idt &name) const
const irep_idt & id() const
The type of an expression, extends irept.
const pointer_typet & to_pointer_type(const typet &type)
Cast a typet to a pointer_typet.
#define CHECK_RETURN(CONDITION)
#define UNREACHABLE
This should be used to mark dead code.
#define INVARIANT(CONDITION, REASON)
This macro uses the wrapper function 'invariant_violated_string'.
Defines typet, type_with_subtypet and type_with_subtypest.