Skip to content
  1. Jan 21, 2009
  2. Nov 25, 2008
  3. Nov 12, 2008
    • Ted Kremenek's avatar
      GRStateRef: · b94d72a0
      Ted Kremenek authored
      - Rename SetSVal to BindLoc
      - Add BindDecl
      - Add BindExpr
      
      GRState:
      - Environment now binds to Stmt* instead of Expr*.  This is needed for processing ObjCForCollectionStmt (essentially the declaration of the the 'element' variable can have an SVal attached to it).
      - BindDecl no longer accepts Expr* for the initialization value; use SVal* instead.
      
      llvm-svn: 59152
      b94d72a0
  4. Oct 30, 2008
    • Zhongxing Xu's avatar
      Rename: · a15cfd4d
      Zhongxing Xu authored
       - SetSVal(GRState*, Loc, SVal) => BindLoc
       - SetSVal(GRState*, Expr*, SVal) => BindExpr 
      
      llvm-svn: 58421
      a15cfd4d
  5. Oct 28, 2008
  6. Oct 27, 2008
    • Douglas Gregor's avatar
      Refactor the expression class hierarchy for casts. Most importantly: · e200adc5
      Douglas Gregor authored
        - CastExpr is the root of all casts
        - ImplicitCastExpr is (still) used for all explicit casts
        - ExplicitCastExpr is now the root of all *explicit* casts
        - ExplicitCCastExpr (new name needed!?) is a C-style cast in C or C++
        - CXXFunctionalCastExpr inherits from ExplicitCastExpr
        - CXXNamedCastExpr inherits from ExplicitCastExpr and is the root of all
          of the C++ named cast expression types (static_cast, dynamic_cast, etc.)
        - Added classes CXXStaticCastExpr, CXXDynamicCastExpr, 
          CXXReinterpretCastExpr, and CXXConstCastExpr to 
      
      Also, fixed returned-stack-addr.cpp, which broke once when we fixed
      reinterpret_cast to diagnose double->int* conversions and again when
      we eliminated implicit conversions to reference types. The fix is in
      both testcase and SemaChecking.cpp.
      
      Most of this patch is simply support for the renaming. There's very
      little actual change in semantics.
      
      llvm-svn: 58264
      e200adc5
  7. Oct 25, 2008
  8. Oct 17, 2008
  9. Oct 04, 2008
    • Ted Kremenek's avatar
      This is a big patch, but the functionality change is small and the rest of the... · 5ca90a24
      Ted Kremenek authored
      This is a big patch, but the functionality change is small and the rest of the patch consists of deltas due to API changes.
      
      This patch overhauls the "memory region" abstraction that was prototyped (but never really used) as part of the Store.h.  This patch adds MemRegion.h and MemRegion.cpp, which defines the class MemRegion and its subclasses.  This classes serve to define an abstract representation of memory, with regions being layered on other regions to to capture the relationships between fields and variables, variables and the address space they are allocated in, and so on.  
      
      The main motivation of this patch is that key parts of the analyzer assumed that all value bindings were to VarDecls.  In the future this won't be the case, and this patch removes lval::DeclVal and replaces it with lval::MemRegionVal.  Now all pieces of the analyzer must reason about abstract memory blocks instead of just variables.
      
      There should be no functionality change from this patch, but it opens the door for significant improvements to the analyzer such as field-sensitivity and object-sensitivity, both which were on hold until the memory abstraction got generalized.
      
      The memory region abstraction also allows type-information to literally be affixed to a memory region.  This will allow the some now redundant logic to be removed from the retain/release checker.
      
      llvm-svn: 57042
      5ca90a24
  10. Aug 22, 2008
  11. Aug 20, 2008
    • Ted Kremenek's avatar
      Patch by Zhongxing Xu: · e5edbdd4
      Ted Kremenek authored
      This patch moves some code in GRStateManager::RemoveDeadBindings() to EnvironmentManager::RemoveDeadBindings().
      
      llvm-svn: 55064
      e5edbdd4
  12. Aug 19, 2008
  13. Jul 10, 2008
  14. Jul 08, 2008
    • Ted Kremenek's avatar
      Initial work on splitting the ValueState into an Environment, Store, and · 852ed373
      Ted Kremenek authored
      Constraints. These concepts are already present in the current ValueState, but
      the implementation is monolothic. Making ValueState more modular opens up new
      design choices for customizing the analysis engine.
      
      In the context of the analysis engine, the "Environment" is the binding between
      Expr* (expressions) and intermediate symbolic values (RValues).
      
      llvm-svn: 53252
      852ed373
  15. Dec 29, 2007
  16. May 18, 2006
  17. May 17, 2006
  18. Jan 27, 2006
  19. Jan 23, 2006
    • Duraid Madina's avatar
      · 37c8ad14
      Duraid Madina authored
      die, die!! r15, you are not callee-saved
      
      llvm-svn: 25527
      37c8ad14
    • Duraid Madina's avatar
      · cc874029
      Duraid Madina authored
      fix register corruption! (my god.) r15 is a scratch reg, using that as
      a frame pointer is a pretty doofus thing to do. use r5 instead, and
      mark it callee-saved, coz that's what it is!
      
      llvm-svn: 25526
      cc874029
  20. Dec 22, 2005
  21. Sep 30, 2005
  22. Apr 06, 2005
  23. Mar 17, 2005
Loading