def cfg_fast_edges_check(arch, binary_path, edges):
 path = os.path.join(test_location, arch, binary_path)
 proj = angr.Project(path, load_options={'auto_load_libs': False})
 cfg = proj.analyses.CFGFast()
 for (src, dst) in edges:
  src_node = cfg.get_any_node(src)
  dst_node = cfg.get_any_node(dst)
  nose.tools.assert_in(dst_node, src_node.successors)

def cfg_fast_edges_check ( arch , binary_path , edges ) : path = os . path . join ( test_location , arch , binary_path ) proj = angr . Project ( path , load_options = { 'auto_load_libs' : False } ) cfg = proj . analyses . CFGFast ( ) for ( src , dst ) in edges : src_node = cfg . get_any_node ( src ) dst_node = cfg . get_any_node ( dst ) nose . tools . assert_in ( dst_node , src_node . successors )
generate a fast cfg on the given binary .