ESBMC
Efficient SMT-based Context-Bounded Model Checker
Loading...
Searching...
No Matches
python_math.cpp File Reference
Include dependency graph for python_math.cpp:

Functions

static exprt power_of_two (const exprt &exponent)
 2.0 ** n for an integer n, as the IEEE double those bits spell: exact, like pow(), but bit-vector arithmetic the solver need not treat as floating point (#8877).
static bool rejected_by_divmod (const typet &t, const typet &list_type)
 The built-in types divmod rejects.

Function Documentation

◆ power_of_two()

exprt power_of_two ( const exprt & exponent)
static

2.0 ** n for an integer n, as the IEEE double those bits spell: exact, like pow(), but bit-vector arithmetic the solver need not treat as floating point (#8877).

◆ rejected_by_divmod()

bool rejected_by_divmod ( const typet & t,
const typet & list_type )
static

The built-in types divmod rejects.

A class instance may define divmod, and an unannotated any_type is unknown here, so neither is rejected.