parameters: (args)
docstring: Given a path to a sib file with canonical sil, attempt to find a perturbed
  list of passes that the perf pipeline
docstring_summary: Given a path to a sib file with canonical sil, attempt to find a perturbed
  list of passes that the perf pipeline
docstring_tokens: Given a path to a sib file with canonical sil attempt to find a perturbed list of passes that the perf pipeline
function: def invoke_pass_bug_reducer(args):
      """Given a path to a sib file with canonical sil, attempt to find a perturbed
  list of passes that the perf pipeline"""
      tools = swift_tools.SwiftTools(args.swift_build_dir)
      config = swift_tools.SILToolInvokerConfig(args)
  
      passes = []
      if args.pass_list is None:
          json_data = json.loads(subprocess.check_output(
              [tools.sil_passpipeline_dumper, '-Performance']))
          passes = sum((p[1:] for p in json_data), [])
          passes = ['-' + x[1] for x in passes]
      else:
          passes = ['-' + x for x in args.pass_list]
  
      extra_args = []
      if args.extra_args is not None:
          extra_args = args.extra_args
      sil_opt_invoker = swift_tools.SILOptInvoker(config, tools,
                                                  args.input_file,
                                                  extra_args)
      pass_bug_reducer(tools, config, passes, sil_opt_invoker, args.reduce_sil)
function_tokens: def invoke_pass_bug_reducer ( args ) : tools = swift_tools . SwiftTools ( args . swift_build_dir ) config = swift_tools . SILToolInvokerConfig ( args ) passes = [ ] if args . pass_list is None : json_data = json . loads ( subprocess . check_output ( [ tools . sil_passpipeline_dumper , '-Performance' ] ) ) passes = sum ( ( p [ 1 : ] for p in json_data ) , [ ] ) passes = [ '-' + x [ 1 ] for x in passes ] else : passes = [ '-' + x for x in args . pass_list ] extra_args = [ ] if args . extra_args is not None : extra_args = args . extra_args sil_opt_invoker = swift_tools . SILOptInvoker ( config , tools , args . input_file , extra_args ) pass_bug_reducer ( tools , config , passes , sil_opt_invoker , args . reduce_sil )