bug fix
authorbdemsky <bdemsky>
Fri, 25 Mar 2011 19:47:14 +0000 (19:47 +0000)
committerbdemsky <bdemsky>
Fri, 25 Mar 2011 19:47:14 +0000 (19:47 +0000)
Robust/src/Analysis/Disjoint/SMFEState.java

index f9444c92609d565ce1431467f6f2147b6644e6bb..2899d318ac19736baf9ed84380fb6ed247eacc72 100644 (file)
@@ -75,8 +75,10 @@ public class SMFEState {
       states = new HashSet<SMFEState>();
       e2states.put( effect, states );
     }
-    states.add( stateTo );
-    stateTo.refCount++;
+    if (!states.contains(stateTo)) {
+      states.add( stateTo );
+      stateTo.refCount++;
+    }
   }