|
CBMC
|
Pre-defined types. More...
#include "expr.h"#include "expr_cast.h"#include "invariant.h"#include "validate.h"#include <unordered_map>
Include dependency graph for std_types.h:
This graph shows which files directly or indirectly include this file:Go to the source code of this file.
Classes | |
| class | bool_typet |
| The Boolean type. More... | |
| class | empty_typet |
| The empty type. More... | |
| class | struct_union_typet |
| Base type for structs and unions. More... | |
| class | struct_union_typet::componentt |
| class | struct_typet |
| Structure type, corresponds to C style structs. More... | |
| class | struct_typet::baset |
| Base class or struct that a class or struct inherits from. More... | |
| class | class_typet |
| Class type. More... | |
| class | tag_typet |
| A tag-based type, i.e., typet with an identifier. More... | |
| class | struct_or_union_tag_typet |
| A struct or union tag type. More... | |
| class | struct_tag_typet |
| A struct tag type, i.e., struct_typet with an identifier. More... | |
| class | enumeration_typet |
| An enumeration type, i.e., a type with elements (not to be confused with C enums) More... | |
| class | code_typet |
| Base type of functions. More... | |
| class | code_typet::parametert |
| class | array_typet |
| Arrays with given size. More... | |
| class | string_typet |
| String type. More... | |
| class | vector_typet |
| The vector type. More... | |
| class | complex_typet |
| Complex numbers made of pair of given subtype. More... | |
Pre-defined types.
Definition in file std_types.h.
|
inline |
Check whether a reference to a typet is a array_typet.
| type | Source type. |
type is a array_typet. Definition at line 874 of file std_types.h.
|
inline |
Definition at line 43 of file std_types.h.
|
inline |
Check whether a reference to a typet is a class_typet.
| type | Source type. |
type is a class_typet. Definition at line 367 of file std_types.h.
|
inline |
Check whether a reference to a typet is a code_typet.
| type | Source type. |
type is a code_typet. Definition at line 774 of file std_types.h.
|
inline |
Check whether a reference to a typet is a complex_typet.
| type | Source type. |
type is a complex_typet. Definition at line 1035 of file std_types.h.
|
inline |
Check whether a reference to a typet is a enumeration_typet.
| type | Source type. |
type is a enumeration_typet. Definition at line 554 of file std_types.h.
|
inline |
Check whether a reference to a typet is a string_typet.
| type | Source type. |
type is a string_typet. Definition at line 917 of file std_types.h.
|
inline |
Check whether a reference to a typet is a struct_or_union_tag_typet.
| type | Source type. |
type is a struct_or_union_tag_typet. Definition at line 463 of file std_types.h.
|
inline |
Check whether a reference to a typet is a struct_tag_typet.
| type | Source type. |
type is a struct_tag_typet. Definition at line 504 of file std_types.h.
|
inline |
Check whether a reference to a typet is a struct_typet.
| type | Source type. |
type is a struct_typet. Definition at line 294 of file std_types.h.
|
inline |
Check whether a reference to a typet is a struct_union_typet.
| type | Source type. |
type is a struct_union_typet. Definition at line 200 of file std_types.h.
|
inline |
Check whether a reference to a typet is a tag_typet.
| type | Source type. |
type is a tag_typet. Definition at line 419 of file std_types.h.
|
inline |
Check whether a reference to a typet is a vector_typet.
| type | Source type. |
type is a vector_typet. Definition at line 993 of file std_types.h.
This method tests, if the given typet is a constant.
Definition at line 28 of file std_types.h.
| bool is_constant_or_has_constant_components | ( | const typet & | type, |
| const namespacet & | ns | ||
| ) |
Identify whether a given type is constant itself or contains constant components.
Examples include:
| type | The type we want to query constness of. |
| ns | The namespace, needed for resolution of symbols. |
Definition at line 177 of file std_types.cpp.
|
inline |
Cast a typet to an array_typet.
This is an unchecked conversion. type must be known to be array_typet. Will fail with a precondition violation if type doesn't match.
| type | Source type. |
Definition at line 887 of file std_types.h.
|
inline |
Cast a typet to an array_typet.
This is an unchecked conversion. type must be known to be array_typet. Will fail with a precondition violation if type doesn't match.
| type | Source type. |
Definition at line 895 of file std_types.h.
|
inline |
Cast a typet to a class_typet.
This is an unchecked conversion. type must be known to be class_typet. Will fail with a precondition violation if type doesn't match.
| type | Source type. |
Definition at line 380 of file std_types.h.
|
inline |
Cast a typet to a class_typet.
This is an unchecked conversion. type must be known to be class_typet. Will fail with a precondition violation if type doesn't match.
| type | Source type. |
Definition at line 387 of file std_types.h.
|
inline |
Cast a typet to a code_typet.
This is an unchecked conversion. type must be known to be code_typet. Will fail with a precondition violation if type doesn't match.
| type | Source type. |
Definition at line 787 of file std_types.h.
|
inline |
Cast a typet to a code_typet.
This is an unchecked conversion. type must be known to be code_typet. Will fail with a precondition violation if type doesn't match.
| type | Source type. |
Definition at line 795 of file std_types.h.
|
inline |
Cast a typet to a complex_typet.
This is an unchecked conversion. type must be known to be complex_typet. Will fail with a precondition violation if type doesn't match.
| type | Source type. |
Definition at line 1048 of file std_types.h.
|
inline |
Cast a typet to a complex_typet.
This is an unchecked conversion. type must be known to be complex_typet. Will fail with a precondition violation if type doesn't match.
| type | Source type. |
Definition at line 1056 of file std_types.h.
|
inline |
Cast a typet to a enumeration_typet.
This is an unchecked conversion. type must be known to be enumeration_typet. Will fail with a precondition violation if type doesn't match.
| type | Source type. |
Definition at line 567 of file std_types.h.
|
inline |
Cast a typet to a enumeration_typet.
This is an unchecked conversion. type must be known to be enumeration_typet. Will fail with a precondition violation if type doesn't match.
| type | Source type. |
Definition at line 574 of file std_types.h.
|
inline |
Cast a typet to a string_typet.
This is an unchecked conversion. type must be known to be string_typet. Will fail with a precondition violation if type doesn't match.
| type | Source type. |
Definition at line 930 of file std_types.h.
|
inline |
Cast a typet to a string_typet.
This is an unchecked conversion. type must be known to be string_typet. Will fail with a precondition violation if type doesn't match.
| type | Source type. |
Definition at line 937 of file std_types.h.
|
inline |
Cast a typet to a struct_or_union_tag_typet.
This is an unchecked conversion. type must be known to be struct_or_union_tag_typet. Will fail with a precondition violation if type doesn't match.
| type | Source type. |
Definition at line 477 of file std_types.h.
|
inline |
Cast a typet to a struct_or_union_tag_typet.
This is an unchecked conversion. type must be known to be struct_or_union_tag_typet. Will fail with a precondition violation if type doesn't match.
| type | Source type. |
Definition at line 484 of file std_types.h.
|
inline |
Cast a typet to a struct_tag_typet.
This is an unchecked conversion. type must be known to be struct_tag_typet. Will fail with a precondition violation if type doesn't match.
| type | Source type. |
Definition at line 517 of file std_types.h.
|
inline |
Cast a typet to a struct_tag_typet.
This is an unchecked conversion. type must be known to be struct_tag_typet. Will fail with a precondition violation if type doesn't match.
| type | Source type. |
Definition at line 524 of file std_types.h.
|
inline |
Cast a typet to a struct_typet.
This is an unchecked conversion. type must be known to be struct_typet. Will fail with a precondition violation if type doesn't match.
| type | Source type. |
Definition at line 307 of file std_types.h.
|
inline |
Cast a typet to a struct_typet.
This is an unchecked conversion. type must be known to be struct_typet. Will fail with a precondition violation if type doesn't match.
| type | Source type. |
Definition at line 314 of file std_types.h.
|
inline |
Cast a typet to a struct_union_typet.
This is an unchecked conversion. type must be known to be struct_union_typet. Will fail with a precondition violation if type doesn't match.
| type | Source type |
Definition at line 213 of file std_types.h.
|
inline |
Cast a typet to a struct_union_typet.
This is an unchecked conversion. type must be known to be struct_union_typet. Will fail with a precondition violation if type doesn't match.
| type | Source type |
Definition at line 220 of file std_types.h.
Cast a typet to a tag_typet.
This is an unchecked conversion. type must be known to be tag_typet. Will fail with a precondition violation if type doesn't match.
| type | Source type. |
Definition at line 433 of file std_types.h.
Cast a typet to a tag_typet.
This is an unchecked conversion. type must be known to be tag_typet. Will fail with a precondition violation if type doesn't match.
| type | Source type. |
Definition at line 440 of file std_types.h.
|
inline |
Cast a typet to a vector_typet.
This is an unchecked conversion. type must be known to be vector_typet. Will fail with a precondition violation if type doesn't match.
| type | Source type. |
Definition at line 1006 of file std_types.h.
|
inline |
Cast a typet to a vector_typet.
This is an unchecked conversion. type must be known to be vector_typet. Will fail with a precondition violation if type doesn't match.
| type | Source type. |
Definition at line 1014 of file std_types.h.