diff options
author | 2023-08-08 20:19:03 +0200 | |
---|---|---|
committer | 2023-08-08 20:19:03 +0200 | |
commit | e2268925741bd4c68dcead708b211bf5fd99440c (patch) | |
tree | 194b1a1a0a95be71180f39020489e2368937f403 /subprojects/store/src/main | |
parent | Unused condition simplified. (diff) | |
download | refinery-e2268925741bd4c68dcead708b211bf5fd99440c.tar.gz refinery-e2268925741bd4c68dcead708b211bf5fd99440c.tar.zst refinery-e2268925741bd4c68dcead708b211bf5fd99440c.zip |
Added test for StateEquivalenceChecker Unknown outcome.
Diffstat (limited to 'subprojects/store/src/main')
-rw-r--r-- | subprojects/store/src/main/java/tools/refinery/store/statecoding/stateequivalence/StateEquivalenceCheckerImpl.java | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/subprojects/store/src/main/java/tools/refinery/store/statecoding/stateequivalence/StateEquivalenceCheckerImpl.java b/subprojects/store/src/main/java/tools/refinery/store/statecoding/stateequivalence/StateEquivalenceCheckerImpl.java index 34dba34e..ef0d76a7 100644 --- a/subprojects/store/src/main/java/tools/refinery/store/statecoding/stateequivalence/StateEquivalenceCheckerImpl.java +++ b/subprojects/store/src/main/java/tools/refinery/store/statecoding/stateequivalence/StateEquivalenceCheckerImpl.java | |||
@@ -58,7 +58,11 @@ public class StateEquivalenceCheckerImpl implements StateEquivalenceChecker { | |||
58 | tried++; | 58 | tried++; |
59 | } while (hasNext); | 59 | } while (hasNext); |
60 | 60 | ||
61 | return EquivalenceResult.DIFFERENT; | 61 | if(permutations == EquivalenceResult.UNKNOWN) { |
62 | return EquivalenceResult.UNKNOWN; | ||
63 | } else { | ||
64 | return EquivalenceResult.DIFFERENT; | ||
65 | } | ||
62 | } | 66 | } |
63 | 67 | ||
64 | private LongObjectHashMap<IntHashSet> indexByHash(ObjectCode code, IntSet individuals) { | 68 | private LongObjectHashMap<IntHashSet> indexByHash(ObjectCode code, IntSet individuals) { |