node/lib/metasm/samples/dbg-plugins/heapscan/heapscan.rb
# create a subset of xrchunksto from one point
create a subset of xrchunksto from one point
create a subset of xrchunksto from one point
def graph_from(p, adj = @xrchunksto)
		hash = {}
		todo = [p]
		while p = todo.pop
			next if hash[p]
			if adj[p]
				hash[p] = adj[p]
				todo.concat hash[p]
			end
		end
		hash
	end
def graph_from ( p , adj = @xrchunksto ) hash = { } todo = [ p ] while p = todo . pop next if hash [ p ] if adj [ p ] hash [ p ] = adj [ p ] todo . concat hash [ p ] end end hash end
create a subset of xrchunksto from one point
create a subset of xrchunksto from one point
p
adj