Skip to content
  1. Jul 27, 2010
  2. Jul 17, 2010
  3. Jul 16, 2010
    • Tom Care's avatar
      Improved false positive rate for the idempotent operations checker and moved... · 826e6b40
      Tom Care authored
      Improved false positive rate for the idempotent operations checker and moved it into the default path-sensitive analysis options.
      - Added checks for static local variables, self assigned parameters, and truncating/extending self assignments
      - Removed command line option (now default with --analyze)
      - Updated test cases to pass with idempotent operation warnings
      
      llvm-svn: 108550
      826e6b40
  4. Jul 07, 2010
  5. Jul 06, 2010
    • Tom Care's avatar
      Added a path-sensitive idempotent operation checker... · 3ff08a8e
      Tom Care authored
      Added a path-sensitive idempotent operation checker (-analyzer-idempotent-operation). Finds idempotent and/or tautological operations in a path sensitive context, flagging operations that have no effect or a predictable effect.
      
      Example:
      {
      int a = 1;
      int b = 5;
      int c = b / a; // a is 1 on all paths
      }
      
      - New IdempotentOperationChecker class
      - Moved recursive Stmt functions in r107675 to IdempotentOperationChecker
      - Minor refactoring of SVal to allow checking for any integer
      - Added command line option for check
      - Added basic test cases
      
      llvm-svn: 107706
      3ff08a8e
Loading