parameters: (parser)
docstring: Add parser arguments for opt_bug_reducer
docstring_summary: Add parser arguments for opt_bug_reducer
docstring_tokens: Add parser arguments for opt_bug_reducer
function: def add_parser_arguments(parser):
      """Add parser arguments for opt_bug_reducer"""
      parser.set_defaults(func=invoke_pass_bug_reducer)
      parser.add_argument('input_file', help='The input file to optimize')
      parser.add_argument('--module-cache', help='The module cache to use')
      parser.add_argument('--sdk', help='The sdk to pass to sil-opt')
      parser.add_argument('--target', help='The target to pass to sil-opt')
      parser.add_argument('--resource-dir',
                          help='The resource-dir to pass to sil-opt')
      parser.add_argument('--work-dir',
                          help='Working directory to use for temp files',
                          default='bug_reducer')
      parser.add_argument('--module-name',
                          help='The name of the module we are optimizing')
      parser.add_argument('--pass', help='pass to test', dest='pass_list',
                          action='append')
      parser.add_argument('--extra-arg',
                          help='extra argument to pass to sil-opt',
                          dest='extra_args', action='append')
      parser.add_argument('--reduce-sil', help='After finding the relevant '
                          'passes, try to reduce the SIL by eliminating '
                          'functions, blocks, etc',
                          action='store_true')
function_tokens: def add_parser_arguments ( parser ) : parser . set_defaults ( func = invoke_pass_bug_reducer ) parser . add_argument ( 'input_file' , help = 'The input file to optimize' ) parser . add_argument ( '--module-cache' , help = 'The module cache to use' ) parser . add_argument ( '--sdk' , help = 'The sdk to pass to sil-opt' ) parser . add_argument ( '--target' , help = 'The target to pass to sil-opt' ) parser . add_argument ( '--resource-dir' , help = 'The resource-dir to pass to sil-opt' ) parser . add_argument ( '--work-dir' , help = 'Working directory to use for temp files' , default = 'bug_reducer' ) parser . add_argument ( '--module-name' , help = 'The name of the module we are optimizing' ) parser . add_argument ( '--pass' , help = 'pass to test' , dest = 'pass_list' , action = 'append' ) parser . add_argument ( '--extra-arg' , help = 'extra argument to pass to sil-opt' , dest = 'extra_args' , action = 'append' ) parser . add_argument ( '--reduce-sil' , help = 'After finding the relevant ' 'passes, try to reduce the SIL by eliminating ' 'functions, blocks, etc' , action = 'store_true' )