|
CBMC
|
A type for closed integer intervals [from, to].
More...
#include <mathematical_types.h>
Inheritance diagram for integer_range_typet:
Collaboration diagram for integer_range_typet:Additional Inherited Members | |
Public Types inherited from irept | |
| using | baset = tree_implementationt |
Public Types inherited from sharing_treet< irept, forward_list_as_mapt< irep_idt, irept > > | |
| using | dt = tree_nodet< irept, forward_list_as_mapt< irep_idt, irept >, true > |
| using | subt = typename dt::subt |
| using | named_subt = typename dt::named_subt |
| using | tree_implementationt = sharing_treet |
| Used to refer to this class from derived classes. | |
Static Public Member Functions inherited from typet | |
| static void | check (const typet &, const validation_modet=validation_modet::INVARIANT) |
| Check that the type is well-formed (shallow checks only, i.e., subtypes are not checked) | |
| static void | validate (const typet &type, const namespacet &, const validation_modet vm=validation_modet::INVARIANT) |
| Check that the type is well-formed, assuming that its subtypes have already been checked for well-formedness. | |
| static void | validate_full (const typet &type, const namespacet &ns, const validation_modet vm=validation_modet::INVARIANT) |
| Check that the type is well-formed (full check, including checks of subtypes) | |
Static Public Member Functions inherited from irept | |
| static bool | is_comment (const irep_idt &name) |
| static std::size_t | number_of_non_comments (const named_subt &) |
| count the number of named_sub elements that are not comments | |
Protected Member Functions inherited from sharing_treet< irept, forward_list_as_mapt< irep_idt, irept > > | |
| void | detach () |
Static Protected Member Functions inherited from sharing_treet< irept, forward_list_as_mapt< irep_idt, irept > > | |
| static void | remove_ref (dt *old_data) |
| static void | nonrecursive_destructor (dt *old_data) |
| Does the same as remove_ref, but using an explicit stack instead of recursion. | |
Protected Attributes inherited from sharing_treet< irept, forward_list_as_mapt< irep_idt, irept > > | |
| dt * | data |
Static Protected Attributes inherited from sharing_treet< irept, forward_list_as_mapt< irep_idt, irept > > | |
| static dt | empty_d |
A type for closed integer intervals [from, to].
Both endpoints are inclusive. The interval may be empty (if from > to).
Definition at line 149 of file mathematical_types.h.
|
inline |
Definition at line 152 of file mathematical_types.h.
| bool integer_range_typet::empty | ( | ) | const |
Definition at line 110 of file mathematical_types.cpp.
| mp_integer integer_range_typet::from | ( | ) | const |
Definition at line 94 of file mathematical_types.cpp.
| void integer_range_typet::from | ( | const mp_integer & | from | ) |
Definition at line 84 of file mathematical_types.cpp.
| bool integer_range_typet::includes | ( | const mp_integer & | singleton | ) | const |
Definition at line 67 of file mathematical_types.cpp.
| constant_exprt integer_range_typet::one_expr | ( | ) | const |
includes(1) must hold. Definition at line 72 of file mathematical_types.cpp.
| mp_integer integer_range_typet::size | ( | ) | const |
| mp_integer integer_range_typet::to | ( | ) | const |
Definition at line 99 of file mathematical_types.cpp.
| void integer_range_typet::to | ( | const mp_integer & | to | ) |
Definition at line 89 of file mathematical_types.cpp.
| constant_exprt integer_range_typet::zero_expr | ( | ) | const |
includes(0) must hold. Definition at line 78 of file mathematical_types.cpp.