parameters: (self)
docstring: Minimize the clang arguments after running C-Reduce, to get the smallest
      command that reproduces the crash on the reduced file.
docstring_summary: Minimize the clang arguments after running C-Reduce, to get the smallest
      command that reproduces the crash on the reduced file.
docstring_tokens: Minimize the clang arguments after running C - Reduce to get the smallest command that reproduces the crash on the reduced file .
function: def reduce_clang_args(self):
      """Minimize the clang arguments after running C-Reduce, to get the smallest
      command that reproduces the crash on the reduced file.
      """
      print("\nReducing the clang crash command...")
  
      new_args = self.clang_args
  
      # Remove some often occurring args
      new_args = self.try_remove_args(new_args, msg="Removed -D options",
                                      opts_startswith=["-D"])
      new_args = self.try_remove_args(new_args, msg="Removed -D options",
                                      opts_one_arg_startswith=["-D"])
      new_args = self.try_remove_args(new_args, msg="Removed -I options",
                                      opts_startswith=["-I"])
      new_args = self.try_remove_args(new_args, msg="Removed -I options",
                                      opts_one_arg_startswith=["-I"])
      new_args = self.try_remove_args(new_args, msg="Removed -W options",
                                      opts_startswith=["-W"])
  
      # Remove other cases that aren't covered by the heuristic
      new_args = self.try_remove_args(new_args, msg="Removed -mllvm",
                                      opts_one_arg_startswith=["-mllvm"])
  
      i = 0
      while i < len(new_args):
        new_args, i = self.try_remove_arg_by_index(new_args, i)
  
      self.clang_args = new_args
  
      reduced_cmd = quote_cmd(self.get_crash_cmd())
      write_to_script(reduced_cmd, self.crash_script)
      print("Reduced command:", reduced_cmd)
function_tokens: def reduce_clang_args ( self ) : print ( "\nReducing the clang crash command..." ) new_args = self . clang_args # Remove some often occurring args new_args = self . try_remove_args ( new_args , msg = "Removed -D options" , opts_startswith = [ "-D" ] ) new_args = self . try_remove_args ( new_args , msg = "Removed -D options" , opts_one_arg_startswith = [ "-D" ] ) new_args = self . try_remove_args ( new_args , msg = "Removed -I options" , opts_startswith = [ "-I" ] ) new_args = self . try_remove_args ( new_args , msg = "Removed -I options" , opts_one_arg_startswith = [ "-I" ] ) new_args = self . try_remove_args ( new_args , msg = "Removed -W options" , opts_startswith = [ "-W" ] ) # Remove other cases that aren't covered by the heuristic new_args = self . try_remove_args ( new_args , msg = "Removed -mllvm" , opts_one_arg_startswith = [ "-mllvm" ] ) i = 0 while i < len ( new_args ) : new_args , i = self . try_remove_arg_by_index ( new_args , i ) self . clang_args = new_args reduced_cmd = quote_cmd ( self . get_crash_cmd ( ) ) write_to_script ( reduced_cmd , self . crash_script ) print ( "Reduced command:" , reduced_cmd )