Skip to content
  1. Aug 18, 2010
    • Tom Care's avatar
      Added psuedo-constant analysis and integrated it into the false positive... · b9933f36
      Tom Care authored
      Added psuedo-constant analysis and integrated it into the false positive reduction stage in IdempotentOperationChecker.
      - Renamed IdempotentOperationChecker::isConstant to isConstantOrPseudoConstant to better reflect the function
      - Changed IdempotentOperationChecker::PreVisitBinaryOperator to only run 'CanVary' once on undefined assumptions
      - Created new PsuedoConstantAnalysis class and added it to AnalysisContext
      - Changed IdempotentOperationChecker to exploit the new analysis
      - Updated tests with psuedo-constants
      - Added check to IdempotentOperationChecker to see if a Decl is const qualified
      
      llvm-svn: 111426
      b9933f36
  2. Aug 16, 2010
  3. Aug 13, 2010
  4. Aug 07, 2010
  5. Aug 03, 2010
    • Tom Care's avatar
      Changed GRExprEngine to pass down a reference to itself when checkers are... · 44081fbc
      Tom Care authored
      Changed GRExprEngine to pass down a reference to itself when checkers are doing postanalysis. This allows the checker to gather information about the state of the engine when it has finished.
      - Exposed the worklist and BlockAborted flag in GRCoreEngine
      - Changed postanalysis checkers to use the new infrastructure
      
      llvm-svn: 110095
      44081fbc
  6. Aug 02, 2010
  7. Jul 30, 2010
  8. Jul 28, 2010
  9. Jul 27, 2010
  10. Jul 17, 2010
  11. 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
  12. Jul 07, 2010
  13. 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