diff options
| author | Ted Kremenek <kremenek@apple.com> | 2012-01-12 19:25:46 +0000 |
|---|---|---|
| committer | Ted Kremenek <kremenek@apple.com> | 2012-01-12 19:25:46 +0000 |
| commit | 3d3aea9374d745d76f9b448e42dec0d56d5f54ab (patch) | |
| tree | e2d9cad52677e51da5e8bfa5357e6eb2bc243a6b /clang/include | |
| parent | 9eae723c1800d6dec010c0fed7a929596cec21b5 (diff) | |
| download | bcm5719-llvm-3d3aea9374d745d76f9b448e42dec0d56d5f54ab.tar.gz bcm5719-llvm-3d3aea9374d745d76f9b448e42dec0d56d5f54ab.zip | |
[analyzer] fix inlining's handling of mapping actual to formal arguments and limit the call stack depth. The analyzer can now accurately simulate factorial for limited depths.
llvm-svn: 148036
Diffstat (limited to 'clang/include')
| -rw-r--r-- | clang/include/clang/StaticAnalyzer/Core/PathSensitive/ProgramState.h | 3 | ||||
| -rw-r--r-- | clang/include/clang/StaticAnalyzer/Core/PathSensitive/Store.h | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/clang/include/clang/StaticAnalyzer/Core/PathSensitive/ProgramState.h b/clang/include/clang/StaticAnalyzer/Core/PathSensitive/ProgramState.h index af7845af6c1..2987116e4f1 100644 --- a/clang/include/clang/StaticAnalyzer/Core/PathSensitive/ProgramState.h +++ b/clang/include/clang/StaticAnalyzer/Core/PathSensitive/ProgramState.h @@ -227,7 +227,8 @@ public: /// enterStackFrame - Returns the state for entry to the given stack frame, /// preserving the current state. - const ProgramState *enterStackFrame(const StackFrameContext *frame) const; + const ProgramState *enterStackFrame(const LocationContext *callerCtx, + const StackFrameContext *calleeCtx) const; /// Get the lvalue for a variable reference. Loc getLValue(const VarDecl *D, const LocationContext *LC) const; diff --git a/clang/include/clang/StaticAnalyzer/Core/PathSensitive/Store.h b/clang/include/clang/StaticAnalyzer/Core/PathSensitive/Store.h index 20b93461376..52ea37c4314 100644 --- a/clang/include/clang/StaticAnalyzer/Core/PathSensitive/Store.h +++ b/clang/include/clang/StaticAnalyzer/Core/PathSensitive/Store.h @@ -197,7 +197,8 @@ public: /// enterStackFrame - Let the StoreManager to do something when execution /// engine is about to execute into a callee. virtual StoreRef enterStackFrame(const ProgramState *state, - const StackFrameContext *frame); + const LocationContext *callerCtx, + const StackFrameContext *calleeCtx); virtual void print(Store store, raw_ostream &Out, const char* nl, const char *sep) = 0; |

