parameters: (self)
docstring: Simplify clang arguments before running C-Reduce to reduce the time the
      interestingness test takes to run.
docstring_summary: Simplify clang arguments before running C-Reduce to reduce the time the
      interestingness test takes to run.
docstring_tokens: Simplify clang arguments before running C - Reduce to reduce the time the interestingness test takes to run .
function: def simplify_clang_args(self):
      """Simplify clang arguments before running C-Reduce to reduce the time the
      interestingness test takes to run.
      """
      print("\nSimplifying the clang command...")
  
      # Remove some clang arguments to speed up the interestingness test
      new_args = self.clang_args
      new_args = self.try_remove_args(new_args,
                                      msg="Removed debug info options",
                                      opts_startswith=["-gcodeview",
                                                       "-debug-info-kind=",
                                                       "-debugger-tuning="])
  
      new_args = self.try_remove_args(new_args,
                                      msg="Removed --show-includes",
                                      opts_startswith=["--show-includes"])
      # Not suppressing warnings (-w) sometimes prevents the crash from occurring
      # after preprocessing
      new_args = self.try_remove_args(new_args,
                                      msg="Replaced -W options with -w",
                                      extra_arg='-w',
                                      opts_startswith=["-W"])
      new_args = self.try_remove_args(new_args,
                                      msg="Replaced optimization level with -O0",
                                      extra_arg="-O0",
                                      opts_startswith=["-O"])
  
      # Try to remove compilation steps
      new_args = self.try_remove_args(new_args, msg="Added -emit-llvm",
                                      extra_arg="-emit-llvm")
      new_args = self.try_remove_args(new_args, msg="Added -fsyntax-only",
                                      extra_arg="-fsyntax-only")
  
      # Try to make implicit int an error for more sensible test output
      new_args = self.try_remove_args(new_args, msg="Added -Werror=implicit-int",
                                      opts_equal=["-w"],
                                      extra_arg="-Werror=implicit-int")
  
      self.clang_args = new_args
      verbose_print("Simplified command:", quote_cmd(self.get_crash_cmd()))
function_tokens: def simplify_clang_args ( self ) : print ( "\nSimplifying the clang command..." ) # Remove some clang arguments to speed up the interestingness test new_args = self . clang_args new_args = self . try_remove_args ( new_args , msg = "Removed debug info options" , opts_startswith = [ "-gcodeview" , "-debug-info-kind=" , "-debugger-tuning=" ] ) new_args = self . try_remove_args ( new_args , msg = "Removed --show-includes" , opts_startswith = [ "--show-includes" ] ) # Not suppressing warnings (-w) sometimes prevents the crash from occurring # after preprocessing new_args = self . try_remove_args ( new_args , msg = "Replaced -W options with -w" , extra_arg = '-w' , opts_startswith = [ "-W" ] ) new_args = self . try_remove_args ( new_args , msg = "Replaced optimization level with -O0" , extra_arg = "-O0" , opts_startswith = [ "-O" ] ) # Try to remove compilation steps new_args = self . try_remove_args ( new_args , msg = "Added -emit-llvm" , extra_arg = "-emit-llvm" ) new_args = self . try_remove_args ( new_args , msg = "Added -fsyntax-only" , extra_arg = "-fsyntax-only" ) # Try to make implicit int an error for more sensible test output new_args = self . try_remove_args ( new_args , msg = "Added -Werror=implicit-int" , opts_equal = [ "-w" ] , extra_arg = "-Werror=implicit-int" ) self . clang_args = new_args verbose_print ( "Simplified command:" , quote_cmd ( self . get_crash_cmd ( ) ) )