diff options
author | Carlo Zancanaro <carlo@pc-4w14-0.cs.usyd.edu.au> | 2012-06-15 15:48:16 +1000 |
---|---|---|
committer | Carlo Zancanaro <carlo@pc-4w14-0.cs.usyd.edu.au> | 2012-06-15 15:48:16 +1000 |
commit | a61d8b829afab13593e254fc69e260b6346939dc (patch) | |
tree | 80718961a7242840db56eec82c792d7ca07eb654 /impl/Complete.hpp | |
parent | e00d7e6486739221f4d5adea1583743d3e23acfd (diff) |
Parameterise fixpoint and strategy improvement
(command-line arguments specify which to use)
Also:
- Fix up Complete<T> 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
Diffstat (limited to 'impl/Complete.hpp')
-rw-r--r-- | impl/Complete.hpp | 2 |
1 files changed, 1 insertions, 1 deletions
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 { |