CBMC
|
Convert mp_integer or expr to any integral type. More...
#include <arith_tools.h>
Public Member Functions | |
std::optional< T > | operator() (const mp_integer &mpi) const |
std::optional< T > | operator() (const exprt &expr) const |
std::optional< T > | operator() (const constant_exprt &expr) const |
Static Private Member Functions | |
template<typename U = T, typename std::enable_if< std::is_signed< U >::value, int >::type = 0> | |
static auto | get_val (const mp_integer &mpi) -> decltype(mpi.to_long()) |
template<typename U = T, typename std::enable_if<!std::is_signed< U >::value, int >::type = 0> | |
static auto | get_val (const mp_integer &mpi) -> decltype(mpi.to_ulong()) |
Convert mp_integer or expr to any integral type.
Definition at line 59 of file arith_tools.h.
|
inlinestaticprivate |
Definition at line 66 of file arith_tools.h.
|
inlinestaticprivate |
Definition at line 74 of file arith_tools.h.
|
inline |
Definition at line 109 of file arith_tools.h.
|
inline |
Definition at line 100 of file arith_tools.h.
|
inline |
Definition at line 81 of file arith_tools.h.