- Mar 30, 2009
-
-
Ted Kremenek authored
loc::SymbolVal/nonloc::SymbolVal probing. llvm-svn: 68049
-
Ted Kremenek authored
also makes this code more correct as it transparently handles SVals that wrapped TypedViewRegions(SymbolicRegions). llvm-svn: 68048
-
Ted Kremenek authored
will be called for every expression in a basic block. llvm-svn: 68041
-
Zhongxing Xu authored
Layer the type information with a TypedViewRegion on top of the SymbolicRegion. llvm-svn: 68028
-
Zhongxing Xu authored
llvm-svn: 68024
-
- Mar 28, 2009
-
-
Ted Kremenek authored
<rdar://problem/6732151>. llvm-svn: 67954
-
Ted Kremenek authored
llvm-svn: 67948
-
Chris Lattner authored
llvm-svn: 67923
-
Ted Kremenek authored
llvm-svn: 67909
-
Ted Kremenek authored
etc., so that the "body" is always considered a top-level statement for edge transitions (even if it is an expression). llvm-svn: 67901
-
Eli Friedman authored
LHS type and the computation result type; this encodes information into the AST which is otherwise non-obvious. Fix Sema to always come up with the right answer for both of these types. Fix IRGen and the analyzer to account for these changes. This fixes PR2601. The approach is inspired by PR2601 comment 2. Note that this changes real *= complex in CodeGen from a silent miscompilation to an explicit error. I'm not really sure that the analyzer changes are correct, or how to test them... someone more familiar with the analyzer should check those changes. llvm-svn: 67889
-
- Mar 27, 2009
-
-
Ted Kremenek authored
successor, using 'getEnclosingStmt()' to have the end location be the top-level Stmt* enclosing the target Expr*. llvm-svn: 67869
-
Ted Kremenek authored
PathDiagnosticLocation. llvm-svn: 67866
-
Zhongxing Xu authored
llvm-svn: 67825
-
Ted Kremenek authored
- Added an internal helper class 'PathDiagnosticBuilder' which now bundles the 'ExecutionContinues' methods. - Added preliminary diagnostics for short-circuit '&&' and '||' llvm-svn: 67822
-
Zhongxing Xu authored
llvm-svn: 67813
-
Ted Kremenek authored
- Have PathDiagnosticControlFlowPiece use a vector of PathDiagnosticLocationPairs to represent transitions. llvm-svn: 67786
-
- Mar 26, 2009
-
-
Ted Kremenek authored
llvm-svn: 67777
-
Ted Kremenek authored
llvm-svn: 67776
-
Ted Kremenek authored
llvm-svn: 67775
-
Ted Kremenek authored
- Switch PathDiagnosticEventPiece and PathDiagnosticMacroPiece to use PathDiagnosticLocation. llvm-svn: 67774
-
Ted Kremenek authored
- Added a new class, 'PathDiagnosticLocation', that is a variant for SourceLocation, SourceRange, or Stmt*. This will be used soon by PathDiagnosticPieces to describe locations for targets of branches, locations of events, etc. - Did some prep. refactoring of PathDiagnosticPieces to prepare them for adopting the new PathDiagnosticLocation llvm-svn: 67767
-
Ted Kremenek authored
llvm-svn: 67752
-
Zhongxing Xu authored
llvm-svn: 67748
-
Zhongxing Xu authored
analysis engine. llvm-svn: 67747
-
Ted Kremenek authored
Zhongxing and I discussed by email. Main changes: - Removed SymIntConstraintVal and SymIntConstraint - Added SymExpr as a parent class to SymbolData, SymSymExpr, SymIntExpr - Added nonloc::SymExprVal to wrap SymExpr - SymbolRef is now just a typedef of 'const SymbolData*' - Bunch of minor code cleanups in how some methods were invoked (no functionality change) This changes are part of a long-term plan to have full symbolic expression trees. This will be useful for lazily evaluating complicated expressions. llvm-svn: 67731
-
- Mar 25, 2009
-
-
Zhongxing Xu authored
representing symbolic expressions like 'x'+3 and 'x'+'y'. The design is subjected to change later when we fix the class hierarchy of symbolic expressions. llvm-svn: 67678
-
- Mar 23, 2009
-
-
Ted Kremenek authored
<rdar://problem/6704930> involving SimpleConstraintManager not reasoning well about symbolic constraint values involving arithmetic operators. llvm-svn: 67534
-
Ted Kremenek authored
values passed-by-reference to unknown functions. llvm-svn: 67519
-
- Mar 20, 2009
-
-
Ted Kremenek authored
- Conjure symbols at '--' and '++' unary operations - Add utility method SVal::GetConjuredSymbolVal() and constify some arguments along the way. llvm-svn: 67395
-
Ted Kremenek authored
completely there with accurately modeling autorelease pools. llvm-svn: 67384
-
- Mar 19, 2009
-
-
Ted Kremenek authored
llvm-svn: 67260
-
- Mar 18, 2009
-
-
rdar://problem/6695527Ted Kremenek authored
SVal::GetRValueSymbolVal do the checking if we can symbolicate a type instead of having BasicStoreManager do it (which wasn't always doing the check consistently). Having this check in SVal::GetRValueSymbolVal keeps the check in one centralized place. llvm-svn: 67245
-
Zhongxing Xu authored
var region roots. llvm-svn: 67152
-
- Mar 17, 2009
-
-
Ted Kremenek authored
we resolve the semantics of this function when GC is enabled. llvm-svn: 67116
-
Ted Kremenek authored
llvm-svn: 67094
-
Douglas Gregor authored
diagnostics. This builds on the patch that Sebastian committed and then revert. Major differences are: - We don't remove or use the current ".def" files. Instead, for now, we just make sure that we're building the ".inc" files. - Fixed CMake makefiles to run TableGen and build the ".inc" files when needed. Tested with both the Xcode and Makefile generators provided by CMake, so it should be solid. - Fixed normal makefiles to handle out-of-source builds that involve the ".inc" files. I'll send a separate patch to the list with Sebastian's changes that eliminate the use of the .def files. llvm-svn: 67058
-
- Mar 13, 2009
-
-
Ted Kremenek authored
to return an owning pointer. llvm-svn: 66934
-
Ted Kremenek authored
conditions. Currently the analyzer does not reason well about promotions/truncations of symbolic values, so at branch conditions when we see: if (condition) and condition is something like a 'short' or 'char', essentially ignore the promotion to 'int' so that we track constraints on the original symbolic value. We only ignore the casts if the underlying type has the same or fewer bits as the converted type. This fixes: <rdar://problem/6619921> llvm-svn: 66899
-
Ted Kremenek authored
llvm-svn: 66894
-