@Test public void testJoinReturned() { }
public void joinReturned(SymbolicAddressMap returned, int framePtr) { if(returned == null) { throw new AssertionError("joinReturned: returned map is undefined ?"); } if(this.isTop()) return; else if(returned.isTop()) { setTop(); return; } for(Entry<Location, BoundedSet<SymbolicAddress>> entry : returned.mapP.entrySet()) { Location locReturnedFrame = entry.getKey(); Location locCallerFrame; if(locReturnedFrame.isHeapLoc()) { locCallerFrame = locReturnedFrame; } else { locCallerFrame = new Location(locReturnedFrame.stackLoc + framePtr); } BoundedSet<SymbolicAddress> callerSet = mapP.get(locCallerFrame); BoundedSet<SymbolicAddress> returnedSet = returned.mapP.get(locReturnedFrame); put(locCallerFrame, returnedSet.join(callerSet)); } }
SymbolicAddressMap { public void joinReturned(SymbolicAddressMap returned, int framePtr) { if(returned == null) { throw new AssertionError("joinReturned: returned map is undefined ?"); } if(this.isTop()) return; else if(returned.isTop()) { setTop(); return; } for(Entry<Location, BoundedSet<SymbolicAddress>> entry : returned.mapP.entrySet()) { Location locReturnedFrame = entry.getKey(); Location locCallerFrame; if(locReturnedFrame.isHeapLoc()) { locCallerFrame = locReturnedFrame; } else { locCallerFrame = new Location(locReturnedFrame.stackLoc + framePtr); } BoundedSet<SymbolicAddress> callerSet = mapP.get(locCallerFrame); BoundedSet<SymbolicAddress> returnedSet = returned.mapP.get(locReturnedFrame); put(locCallerFrame, returnedSet.join(callerSet)); } } }
SymbolicAddressMap { public void joinReturned(SymbolicAddressMap returned, int framePtr) { if(returned == null) { throw new AssertionError("joinReturned: returned map is undefined ?"); } if(this.isTop()) return; else if(returned.isTop()) { setTop(); return; } for(Entry<Location, BoundedSet<SymbolicAddress>> entry : returned.mapP.entrySet()) { Location locReturnedFrame = entry.getKey(); Location locCallerFrame; if(locReturnedFrame.isHeapLoc()) { locCallerFrame = locReturnedFrame; } else { locCallerFrame = new Location(locReturnedFrame.stackLoc + framePtr); } BoundedSet<SymbolicAddress> callerSet = mapP.get(locCallerFrame); BoundedSet<SymbolicAddress> returnedSet = returned.mapP.get(locReturnedFrame); put(locCallerFrame, returnedSet.join(callerSet)); } } SymbolicAddressMap(BoundedSetFactory<SymbolicAddress> bsFactory); private  SymbolicAddressMap(BoundedSetFactory<SymbolicAddress> bsFactory,
							   HashMap<Location,BoundedSet<SymbolicAddress>> initP,
							   HashMap<String,BoundedSet<SymbolicAddress>> initA); }
SymbolicAddressMap { public void joinReturned(SymbolicAddressMap returned, int framePtr) { if(returned == null) { throw new AssertionError("joinReturned: returned map is undefined ?"); } if(this.isTop()) return; else if(returned.isTop()) { setTop(); return; } for(Entry<Location, BoundedSet<SymbolicAddress>> entry : returned.mapP.entrySet()) { Location locReturnedFrame = entry.getKey(); Location locCallerFrame; if(locReturnedFrame.isHeapLoc()) { locCallerFrame = locReturnedFrame; } else { locCallerFrame = new Location(locReturnedFrame.stackLoc + framePtr); } BoundedSet<SymbolicAddress> callerSet = mapP.get(locCallerFrame); BoundedSet<SymbolicAddress> returnedSet = returned.mapP.get(locReturnedFrame); put(locCallerFrame, returnedSet.join(callerSet)); } } SymbolicAddressMap(BoundedSetFactory<SymbolicAddress> bsFactory); private  SymbolicAddressMap(BoundedSetFactory<SymbolicAddress> bsFactory,
							   HashMap<Location,BoundedSet<SymbolicAddress>> initP,
							   HashMap<String,BoundedSet<SymbolicAddress>> initA); boolean isTop(); static SymbolicAddressMap top(); @Override int hashCode(); @Override boolean equals(Object obj); boolean isSubset(SymbolicAddressMap other); SymbolicAddressMap cloneFilterStack(int bound); SymbolicAddressMap cloneInvoke(int framePtr); void addStackUpto(SymbolicAddressMap in, int bound); void join(SymbolicAddressMap b); void joinReturned(SymbolicAddressMap returned, int framePtr); void copyStack(SymbolicAddressMap in, int dst, int src); BoundedSet<SymbolicAddress> getStack(int index); void putStack(int index, BoundedSet<SymbolicAddress> bs); BoundedSet<SymbolicAddress> getHeap(String staticfield); void putHeap(String staticfield, BoundedSet<SymbolicAddress> pointers); void put(Location l, BoundedSet<SymbolicAddress> bs); void addAlias(String ty, BoundedSet<SymbolicAddress> newAliases); BoundedSet<SymbolicAddress> getAliases(String fieldType); void print(PrintStream out, int indent); @Override String toString(); }
SymbolicAddressMap { public void joinReturned(SymbolicAddressMap returned, int framePtr) { if(returned == null) { throw new AssertionError("joinReturned: returned map is undefined ?"); } if(this.isTop()) return; else if(returned.isTop()) { setTop(); return; } for(Entry<Location, BoundedSet<SymbolicAddress>> entry : returned.mapP.entrySet()) { Location locReturnedFrame = entry.getKey(); Location locCallerFrame; if(locReturnedFrame.isHeapLoc()) { locCallerFrame = locReturnedFrame; } else { locCallerFrame = new Location(locReturnedFrame.stackLoc + framePtr); } BoundedSet<SymbolicAddress> callerSet = mapP.get(locCallerFrame); BoundedSet<SymbolicAddress> returnedSet = returned.mapP.get(locReturnedFrame); put(locCallerFrame, returnedSet.join(callerSet)); } } SymbolicAddressMap(BoundedSetFactory<SymbolicAddress> bsFactory); private  SymbolicAddressMap(BoundedSetFactory<SymbolicAddress> bsFactory,
							   HashMap<Location,BoundedSet<SymbolicAddress>> initP,
							   HashMap<String,BoundedSet<SymbolicAddress>> initA); boolean isTop(); static SymbolicAddressMap top(); @Override int hashCode(); @Override boolean equals(Object obj); boolean isSubset(SymbolicAddressMap other); SymbolicAddressMap cloneFilterStack(int bound); SymbolicAddressMap cloneInvoke(int framePtr); void addStackUpto(SymbolicAddressMap in, int bound); void join(SymbolicAddressMap b); void joinReturned(SymbolicAddressMap returned, int framePtr); void copyStack(SymbolicAddressMap in, int dst, int src); BoundedSet<SymbolicAddress> getStack(int index); void putStack(int index, BoundedSet<SymbolicAddress> bs); BoundedSet<SymbolicAddress> getHeap(String staticfield); void putHeap(String staticfield, BoundedSet<SymbolicAddress> pointers); void put(Location l, BoundedSet<SymbolicAddress> bs); void addAlias(String ty, BoundedSet<SymbolicAddress> newAliases); BoundedSet<SymbolicAddress> getAliases(String fieldType); void print(PrintStream out, int indent); @Override String toString();  }