CBMC
|
Mathematical types. More...
Go to the source code of this file.
Classes | |
class | integer_typet |
Unbounded, signed integers (mathematical integers, not bitvectors) More... | |
class | natural_typet |
Natural numbers including zero (mathematical integers, not bitvectors) More... | |
class | rational_typet |
Unbounded, signed rational numbers. More... | |
class | real_typet |
Unbounded, signed real numbers. More... | |
class | mathematical_function_typet |
A type for mathematical functions (do not confuse with functions/methods in code) More... | |
Functions | |
template<> | |
bool | can_cast_type< mathematical_function_typet > (const typet &type) |
Check whether a reference to a typet is a mathematical_function_typet. More... | |
const mathematical_function_typet & | to_mathematical_function_type (const typet &type) |
Cast a typet to a mathematical_function_typet. More... | |
mathematical_function_typet & | to_mathematical_function_type (typet &type) |
Cast a typet to a mathematical_function_typet. More... | |
bool | is_number (const typet &type) |
Returns true if the type is a rational, real, integer, natural, complex, unsignedbv, signedbv, floatbv or fixedbv. More... | |
Mathematical types.
Definition in file mathematical_types.h.
|
inline |
Check whether a reference to a typet is a mathematical_function_typet.
type | Source type. |
type
is a mathematical_function_typet. Definition at line 119 of file mathematical_types.h.
bool is_number | ( | const typet & | type | ) |
Returns true if the type is a rational, real, integer, natural, complex, unsignedbv, signedbv, floatbv or fixedbv.
Definition at line 19 of file mathematical_types.cpp.
|
inline |
Cast a typet to a mathematical_function_typet.
This is an unchecked conversion. type must be known to be mathematical_function_typet. Will fail with a precondition violation if type doesn't match.
type | Source type. |
Definition at line 133 of file mathematical_types.h.
|
inline |
Cast a typet to a mathematical_function_typet.
This is an unchecked conversion. type must be known to be mathematical_function_typet. Will fail with a precondition violation if type doesn't match.
type | Source type. |
Definition at line 140 of file mathematical_types.h.