Skip to content
  1. Dec 13, 2008
    • Ted Kremenek's avatar
      A series of cleanups/fixes motivated by <rdar://problem/6442306>: · f065b15f
      Ted Kremenek authored
      GRExprEngine (VisitCast):
      - When using StoreManager::CastRegion, always use the state and value it returns to generate the next node.  Failure to do so means that region values returned that don't require the state to be modified will get ignored.
      
      MemRegion:
      - Tighten the interface for ElementRegion.  Now ElementRegion can only be created with a super region that is a 'TypedRegion' instead of any MemRegion.  Code in BasicStoreManager/RegionStoreManager already assumed this, but it would result in a dynamic assertion check (and crash) rather than just having the compiler forbid the construction of such regions.
      - Added ElementRegion::getArrayRegion() to return the 'typed version' of an ElementRegion's super region.
      - Removed bogus assertion in ElementRegion::getType() that assumed that the super region was an AnonTypedRegion.  All that matters is that it is a TypedRegion, which is now true all the time by design.
      
      BasicStore:
      - Modified getLValueElement() to check if the 'array' region is a TypedRegion before creating an ElementRegion.  This conforms to the updated interface for ElementRegion.
      
      RegionStore:
      - In ArrayToPointer() gracefully handle things we don't reason about, and only create an ElementRegion if the array region is indeed a TypedRegion.
      
      llvm-svn: 60990
      f065b15f
  2. Dec 11, 2008
  3. Dec 10, 2008
  4. Dec 09, 2008
  5. Dec 08, 2008
  6. Dec 06, 2008
  7. Dec 05, 2008
  8. Dec 04, 2008
  9. Dec 03, 2008
    • Ted Kremenek's avatar
      BasicConstraintManager: · fff9f4aa
      Ted Kremenek authored
      - Fix nonsensical logic in AssumeSymGE. When comparing 'sym >= constant' and the
        constant is the maximum integer value, add the constraint that 'sym ==
        constant' when the path is deemed feasible.  All other cases are feasible.
      - Improve AssumeSymGT. When comparing 'sym > constant' and constant is the
        maximum integer value we know the path is infeasible.
      - Add test case for this enhancement to AssumeSymGT.
      
      llvm-svn: 60490
      fff9f4aa
    • Ted Kremenek's avatar
      BasicConstraintManager: · f935cfe2
      Ted Kremenek authored
      - Fix nonsensical logic in AssumeSymLE. When comparing 'sym <= constant' and the
        constant is the minimum integer value, add the constraint that 'sym ==
        constant' when the path is deemed feasible.  All other cases are feasible.
      - Improve AssumeSymLT to address <rdar://problem/6407949>.  When comparing
        'sym < constant' and constant is the minimum integer value we know the
        path is infeasible.
      - Add test case for <rdar://problem/6407949>.
      
      llvm-svn: 60489
      f935cfe2
  10. Dec 02, 2008
  11. Nov 30, 2008
  12. Nov 29, 2008
  13. Nov 28, 2008
  14. Nov 27, 2008
  15. Nov 25, 2008
  16. Nov 24, 2008
Loading