PPL
1.2
|
A generic Variable Floating Point Expression. More...
#include <ppl.hh>
Public Types | |
typedef Floating_Point_Expression< FP_Interval_Type, FP_Format >::FP_Linear_Form | FP_Linear_Form |
Alias for the Linear_Form<FP_Interval_Type> from Floating_Point_Expression. | |
typedef Floating_Point_Expression< FP_Interval_Type, FP_Format >::FP_Interval_Abstract_Store | FP_Interval_Abstract_Store |
Alias for the Box<FP_Interval_Type> from Floating_Point_Expression. | |
typedef Floating_Point_Expression< FP_Interval_Type, FP_Format >::FP_Linear_Form_Abstract_Store | FP_Linear_Form_Abstract_Store |
Alias for the std::map<dimension_type, FP_Linear_Form> from Floating_Point_Expression. | |
typedef Floating_Point_Expression< FP_Interval_Type, FP_Format >::boundary_type | boundary_type |
Alias for the FP_Interval_Type::boundary_type from Floating_Point_Expression. | |
typedef Floating_Point_Expression< FP_Interval_Type, FP_Format >::info_type | info_type |
Alias for the FP_Interval_Type::info_type from Floating_Point_Expression. | |
![]() | |
typedef Linear_Form< FP_Interval_Type > | FP_Linear_Form |
Alias for a linear form with template argument FP_Interval_Type . | |
typedef Box< FP_Interval_Type > | FP_Interval_Abstract_Store |
Alias for a map that associates a variable index to an interval. More... | |
typedef std::map< dimension_type, FP_Linear_Form > | FP_Linear_Form_Abstract_Store |
Alias for a map that associates a variable index to a linear form. More... | |
typedef FP_Interval_Type::boundary_type | boundary_type |
The floating point format used by the analyzer. | |
typedef FP_Interval_Type::info_type | info_type |
The interval policy used by FP_Interval_Type . | |
Public Member Functions | |
bool | linearize (const FP_Interval_Abstract_Store &int_store, const FP_Linear_Form_Abstract_Store &lf_store, FP_Linear_Form &result) const |
Linearizes the expression in a given abstract store. More... | |
void | linear_form_assign (const FP_Linear_Form &lf, FP_Linear_Form_Abstract_Store &lf_store) const |
Assigns a linear form to the variable with the same index of *this in a given linear form abstract store. More... | |
void | m_swap (Variable_Floating_Point_Expression &y) |
Swaps *this with y . | |
Constructors and Destructor | |
Variable_Floating_Point_Expression (const dimension_type v_index) | |
Constructor with a parameter: builds the variable floating point expression corresponding to the variable having v_index as its index. | |
~Variable_Floating_Point_Expression () | |
Destructor. | |
![]() | |
virtual | ~Floating_Point_Expression () |
Destructor. | |
Related Functions | |
(Note that these are not member functions.) | |
template<typename FP_Interval_Type , typename FP_Format > | |
void | swap (Variable_Floating_Point_Expression< FP_Interval_Type, FP_Format > &x, Variable_Floating_Point_Expression< FP_Interval_Type, FP_Format > &y) |
Swaps x with y . More... | |
template<typename FP_Interval_Type , typename FP_Format > | |
void | swap (Variable_Floating_Point_Expression< FP_Interval_Type, FP_Format > &x, Variable_Floating_Point_Expression< FP_Interval_Type, FP_Format > &y) |
Additional Inherited Members | |
![]() | |
static bool | overflows (const FP_Linear_Form &lf) |
Verifies if a given linear form overflows. More... | |
static void | relative_error (const FP_Linear_Form &lf, FP_Linear_Form &result) |
Computes the relative error of a given linear form. More... | |
static void | intervalize (const FP_Linear_Form &lf, const FP_Interval_Abstract_Store &store, FP_Interval_Type &result) |
Makes result become an interval that overapproximates all the possible values of lf in the interval abstract store store . More... | |
![]() | |
static FP_Interval_Type | absolute_error = compute_absolute_error() |
Absolute error. More... | |
A generic Variable Floating Point Expression.
FP_Interval_Type
represents the type of the intervals used in the abstract domain.FP_Format
represents the floating point format used in the concrete domain.Given a variable expression and a composite abstract store
, we construct the interval linear form
as
if it is defined; otherwise we construct it as
.
|
inlinevirtual |
Linearizes the expression in a given abstract store.
Makes result
become the linearization of *this
in the given composite abstract store.
int_store | The interval abstract store. |
lf_store | The linear form abstract store. |
result | The modified linear form. |
true
if the linearization succeeded, false
otherwise.Note that the variable in the expression MUST have an associated value in int_store
. If this precondition is not met, calling the method causes an undefined behavior.
See the class description for a detailed explanation of how result
is computed.
Implements Parma_Polyhedra_Library::Floating_Point_Expression< FP_Interval_Type, FP_Format >.
|
inline |
Assigns a linear form to the variable with the same index of *this
in a given linear form abstract store.
lf | The linear form assigned to the variable. |
lf_store | The linear form abstract store. |
Note that once lf
is assigned to a variable, all the other entries of lf_store
which contain that variable are discarded.
|
related |
Swaps x
with y
.
|
related |