
Module: ppl/ppl Branch: floating_point Commit: c62926896a8b92ba2532a371169eb396cd804dc1 URL: http://www.cs.unipr.it/git/gitweb.cgi?p=ppl/ppl.git;a=commit;h=c62926896a8b9...
Author: Fabio Bossi bossi@cs.unipr.it Date: Fri Sep 25 10:28:33 2009 +0200
Fixed test04: do not perform floating point operations outside of the interval domain unless the result can be exactly represented.
---
tests/Floating_Point_Expression/polyhedron1.cc | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/tests/Floating_Point_Expression/polyhedron1.cc b/tests/Floating_Point_Expression/polyhedron1.cc index 98a111d..b44cbd1 100644 --- a/tests/Floating_Point_Expression/polyhedron1.cc +++ b/tests/Floating_Point_Expression/polyhedron1.cc @@ -122,7 +122,8 @@ test04() { Variable A(0); Variable B(1); FP_Interval_Abstract_Store store(2); - FP_Interval tmp(-1 / 3.0); + FP_Interval tmp(-1); + tmp /= FP_Interval(3); store.set_interval(A, tmp); store.set_interval(B, tmp); C_Polyhedron ph(2, EMPTY);