- Jul 02, 2009
-
-
Ted Kremenek authored
llvm-svn: 74709
-
Ted Kremenek authored
actual lifetime to their logical lifetime. llvm-svn: 74665
-
Ted Kremenek authored
pass misc-ps.m. Currently RegionStore/BasicStore don't do any special reasoning about clang-style vectors, so we should return UnknownVal (in all cases) when accessing their values via an array. llvm-svn: 74660
-
- Jul 01, 2009
-
-
Zhongxing Xu authored
llvm-svn: 74581
-
Ted Kremenek authored
TypedRegion. While we plan on removing this code at some point, it serves as a good reference implementation for use with BasicStore until we are sure the new CastRegion logic (in RegionStore.cpp) is correct. llvm-svn: 74559
-
- Jun 30, 2009
-
-
Ted Kremenek authored
llvm-svn: 74552
-
Zhongxing Xu authored
Mark the super region of the binding of block level expr in the Environment as live. llvm-svn: 74525
-
Zhongxing Xu authored
unknown for it. Mark the super region of a live region as live, if the live region is pointed to by a live pointer variable. These fixes xfail_regionstore_wine_crash.c. llvm-svn: 74524
-
Zhongxing Xu authored
DeclStmt would be dead before the DeclStmt. For example: int x = 0; int y = x; 'x' would be dead before 'int y = x'. llvm-svn: 74522
-
Zhongxing Xu authored
llvm-svn: 74521
-
Zhongxing Xu authored
llvm-svn: 74517
-
Zhongxing Xu authored
create TypedViewRegion for it. llvm-svn: 74516
-
Argyrios Kyrtzidis authored
Remove ASTContext parameter from DeclContext's methods. This change cascaded down to other Decl's methods and changes to call sites started "escalating". Timings using pre-tokenized "cocoa.h" showed only a ~1% increase in time run between and after this commit. llvm-svn: 74506
-
Argyrios Kyrtzidis authored
Timings showed no significant difference before and after the commit. llvm-svn: 74504
-
Argyrios Kyrtzidis authored
The implementations of these methods can Use Decl::getASTContext() to get the ASTContext. This commit touches a lot of files since call sites for these methods are everywhere. I used pre-tokenized "carbon.h" and "cocoa.h" headers to do some timings, and there was no real time difference between before the commit and after it. llvm-svn: 74501
-
Chris Lattner authored
This is simple enough, but then I thought it would be nice to make PrintingPolicy get a LangOptions so that various things can key off "bool" and "C++" independently. This spiraled out of control. There are many fixme's, but I think things are slightly better than they were before. One thing that can be improved: CFG should probably have an ASTContext pointer in it, which would simplify its clients. llvm-svn: 74493
-
- Jun 29, 2009
-
-
Zhongxing Xu authored
llvm-svn: 74419
-
- Jun 28, 2009
-
-
Zhongxing Xu authored
handled by RetrieveArray(). llvm-svn: 74409
-
Zhongxing Xu authored
symbol. llvm-svn: 74408
-
Zhongxing Xu authored
llvm-svn: 74407
-
Zhongxing Xu authored
memregion. llvm-svn: 74406
-
- Jun 27, 2009
-
-
Ted Kremenek authored
llvm-svn: 74361
-
- Jun 26, 2009
-
-
Ted Kremenek authored
llvm-svn: 74245
-
Ted Kremenek authored
llvm-svn: 74244
-
Ted Kremenek authored
llvm-svn: 74238
-
Ted Kremenek authored
llvm-svn: 74231
-
Ted Kremenek authored
GRTransferFuncs had the conflated role of both constructing SVals (symbolic expressions) as well as handling checker-specific logic. Now SValuator has the role of constructing SVals from expressions and GRTransferFuncs just handles checker-specific logic. The motivation is by separating these two concepts we will be able to much more easily create richer constraint-generating logic without coupling it to the main checker transfer function logic. We now have one implementation of SValuator: SimpleSValuator. SimpleSValuator is essentially the SVal-related logic that was in GRSimpleVals (which is removed in this patch). This includes the logic for EvalBinOp, EvalCast, etc. Because SValuator has a narrower role than the old GRTransferFuncs, the interfaces are much simpler, and so is the implementation of SimpleSValuator compared to GRSimpleVals. I also did a line-by-line review of SVal-related logic in GRSimpleVals and cleaned it up while moving it over to SimpleSValuator. As a consequence of removing GRSimpleVals, there is no longer a '-checker-simple' option. The '-checker-cfref' did everything that option did but also ran the retain/release checker. Of course a user may not always wish to run the retain/release checker, nor do we wish core analysis logic buried in the checker-specific logic. The next step is to refactor the logic in CFRefCount.cpp to separate out these pieces into the core analysis engine. llvm-svn: 74229
-
- Jun 25, 2009
-
-
Ted Kremenek authored
llvm-svn: 74182
-
Zhongxing Xu authored
llvm-svn: 74168
-
Zhongxing Xu authored
llvm-svn: 74166
-
Zhongxing Xu authored
Revert to setting default value approach for handling struct initialization. llvm-svn: 74160
-
Ted Kremenek authored
llvm-svn: 74136
-
Ted Kremenek authored
llvm-svn: 74128
-
- Jun 24, 2009
-
-
Owen Anderson authored
llvm-svn: 74085
-
Zhongxing Xu authored
llvm-svn: 74047
-
Zhongxing Xu authored
llvm-svn: 74043
-
- Jun 23, 2009
-
-
Ted Kremenek authored
llvm-svn: 74006
-
Ted Kremenek authored
llvm-svn: 73996
-
Ted Kremenek authored
llvm-svn: 73995
-
Ted Kremenek authored
- Change implementation of MemRegion::hasStackStorage()/hasHeapStorage() to use 'getMemorySpace()'. This avoids a double traversal up the region hierarchy and is simpler. - Add MemRegion::hasHeapOrStackStorage() as a slightly more efficient alternative to 'hasStackStorage() || hasHeapStorage()'. llvm-svn: 73977
-