From a61d8b829afab13593e254fc69e260b6346939dc Mon Sep 17 00:00:00 2001 From: Carlo Zancanaro Date: Fri, 15 Jun 2012 15:48:16 +1000 Subject: Parameterise fixpoint and strategy improvement (command-line arguments specify which to use) Also: - Fix up Complete to work comparing `inf` to 1 (stupid bug) - Clean up the systems/ folder a bit - Change the printed output to differentiate variables and constants (!v/!c, respectively) - Perform a slight optimisation to the strategy-iteration process --- impl/Complete.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'impl/Complete.hpp') diff --git a/impl/Complete.hpp b/impl/Complete.hpp index 22e060a..11f2f83 100644 --- a/impl/Complete.hpp +++ b/impl/Complete.hpp @@ -81,7 +81,7 @@ struct Complete { return other._infinity && ((_value < 0 && other._value < 0) || (_value > 0 && other._value > 0)); } else { - return _value == other._value; + return !other._infinity && (_value == other._value); } } bool operator!=(const Complete& other) const { -- cgit v1.2.3