From: yeom Date: Tue, 23 Aug 2011 00:36:26 +0000 (+0000) Subject: bug fix X-Git-Url: http://plrg.eecs.uci.edu/git/?p=IRC.git;a=commitdiff_plain;h=7ce7b388724430b052de7ce549cc724e9e7cdaec;ds=sidebyside bug fix --- diff --git a/Robust/src/Analysis/SSJava/DefinitelyWrittenCheck.java b/Robust/src/Analysis/SSJava/DefinitelyWrittenCheck.java index 331a32b5..2536171d 100644 --- a/Robust/src/Analysis/SSJava/DefinitelyWrittenCheck.java +++ b/Robust/src/Analysis/SSJava/DefinitelyWrittenCheck.java @@ -143,7 +143,6 @@ public class DefinitelyWrittenCheck { ClearingSummary result = mapMethodDescriptorToCompleteClearingSummary.get(sortedDescriptors.peekFirst()); - System.out.println("checkSharedLocationResult=" + result); Set> hpKeySet = result.keySet(); for (Iterator iterator = hpKeySet.iterator(); iterator.hasNext();) { @@ -166,7 +165,6 @@ public class DefinitelyWrittenCheck { // the same time once per the out-most loop computeReadSharedDescriptorSet(); - System.out.println("Reading Shared Location=" + mapSharedLocation2DescriptorSet); methodDescriptorsToVisitStack.clear(); @@ -960,6 +958,8 @@ public class DefinitelyWrittenCheck { // add in which hp is an element of // READ_bound set // of callee: callee has 'read' requirement! + + for (Iterator iterator = calleeUnionBoundReadSet.iterator(); iterator.hasNext();) { NTuple read = (NTuple) iterator.next(); Hashtable gen = curr.get(read); @@ -1320,8 +1320,7 @@ public class DefinitelyWrittenCheck { } } - // need to kill hp(x.f) from WT - writtenSet.remove(readingHeapPath); + //no need to kill hp(x.f) from WT } } @@ -1368,7 +1367,7 @@ public class DefinitelyWrittenCheck { if (fc.getThis() != null) { bindHeapPathCallerArgWithCaleeParam(fc); - + // add heap path, which is an element of READ_bound set and is not // an // element of WT set, to the caller's READ set