- Jul 27, 2010
-
-
Ted Kremenek authored
llvm-svn: 109517
-
- Jul 17, 2010
-
-
Ted Kremenek authored
an APFloat with different "float semantics" than the compared float literal. llvm-svn: 108590
-
- Jul 16, 2010
-
-
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
-
- Jul 07, 2010
-
-
Tom Care authored
Change explicit handling of impossible condition to call llvm_unreachable in IdempotentOperationChecker::PreVisitBinaryOperator. llvm-svn: 107748
-
Chandler Carruth authored
making the other switch case unreachable, or sinking the 'continue' into it doesn't silence this. llvm-svn: 107745
-
Chandler Carruth authored
consider them for warnings. llvm-svn: 107741
-
- Jul 06, 2010
-
-
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
-