node/lib/metasm/metasm/disassemble_api.rb
def function_graph(funcs = @function.keys + @entrypoints.to_a, ret={})
		funcs = funcs.map { |f| normalize(f) }.uniq.find_all { |f| @decoded[f] }
		funcs.each { |f|
			next if ret[f]
			ret[f] = []
			each_function_block(f) { |b|
				@decoded[b].block.each_to_otherfunc(self) { |sf|
					ret[f] |= [sf]
				}
			}
		}
		ret
	end
# returns a graph of function calls
# for each func passed as arg (default: all), update the 'ret' hash
# associating func => [list of direct subfuncs called]
returns a graph of function calls
for each func passed as arg (default: all), update the 'ret' hash
associating func => [list of direct subfuncs called]
returns a graph of function calls for each func passed as arg ( default : all ) update the ' ret ' hash associating func = > [ list of direct subfuncs called ]
def function_graph(funcs = @function.keys + @entrypoints.to_a, ret={})
		funcs = funcs.map { |f| normalize(f) }.uniq.find_all { |f| @decoded[f] }
		funcs.each { |f|
			next if ret[f]
			ret[f] = []
			each_function_block(f) { |b|
				@decoded[b].block.each_to_otherfunc(self) { |sf|
					ret[f] |= [sf]
				}
			}
		}
		ret
	end
def function_graph ( funcs = @function . keys + @entrypoints . to_a , ret = { } ) funcs = funcs . map { | f | normalize ( f ) } . uniq . find_all { | f | @decoded [ f ] } funcs . each { | f | next if ret [ f ] ret [ f ] = [ ] each_function_block ( f ) { | b | @decoded [ b ] . block . each_to_otherfunc ( self ) { | sf | ret [ f ] |= [ sf ] } } } ret end
returns a graph of function calls
for each func passed as arg (default: all), update the 'ret' hash
associating func => [list of direct subfuncs called]
returns a graph of function calls for each func passed as arg ( default : all ) update the ' ret ' hash associating func = > [ list of direct subfuncs called ]
funcs
keys
to_a
ret