Ted Kremenek | 9e24049 | 2008-10-04 05:50:14 +0000 | [diff] [blame] | 1 | //== MemRegion.cpp - Abstract memory regions for static analysis --*- C++ -*--// |
| 2 | // |
| 3 | // The LLVM Compiler Infrastructure |
| 4 | // |
| 5 | // This file is distributed under the University of Illinois Open Source |
| 6 | // License. See LICENSE.TXT for details. |
| 7 | // |
| 8 | //===----------------------------------------------------------------------===// |
| 9 | // |
| 10 | // This file defines MemRegion and its subclasses. MemRegion defines a |
| 11 | // partially-typed abstraction of memory useful for path-sensitive dataflow |
| 12 | // analyses. |
| 13 | // |
| 14 | //===----------------------------------------------------------------------===// |
| 15 | |
| 16 | #include "llvm/Support/raw_ostream.h" |
| 17 | #include "clang/Analysis/PathSensitive/MemRegion.h" |
| 18 | |
| 19 | using namespace clang; |
| 20 | |
| 21 | |
| 22 | MemRegion::~MemRegion() {} |
| 23 | |
| 24 | void MemSpaceRegion::Profile(llvm::FoldingSetNodeID& ID) const { |
| 25 | ID.AddInteger((unsigned)getKind()); |
| 26 | } |
| 27 | |
Zhongxing Xu | e9f4e54 | 2008-10-25 14:13:41 +0000 | [diff] [blame] | 28 | void StringRegion::ProfileRegion(llvm::FoldingSetNodeID& ID, |
| 29 | const StringLiteral* Str, |
| 30 | const MemRegion* superRegion) { |
| 31 | ID.AddInteger((unsigned) StringRegionKind); |
| 32 | ID.AddPointer(Str); |
| 33 | ID.AddPointer(superRegion); |
| 34 | } |
| 35 | |
Ted Kremenek | 7090ae1 | 2008-11-02 00:34:33 +0000 | [diff] [blame] | 36 | void AllocaRegion::ProfileRegion(llvm::FoldingSetNodeID& ID, |
| 37 | const Expr* Ex, unsigned cnt) { |
| 38 | ID.AddInteger((unsigned) AllocaRegionKind); |
| 39 | ID.AddPointer(Ex); |
| 40 | ID.AddInteger(cnt); |
| 41 | } |
| 42 | |
| 43 | void AllocaRegion::Profile(llvm::FoldingSetNodeID& ID) const { |
| 44 | ProfileRegion(ID, Ex, Cnt); |
| 45 | } |
| 46 | |
Zhongxing Xu | 817c67d | 2008-11-03 04:12:24 +0000 | [diff] [blame] | 47 | QualType AnonPointeeRegion::getType(ASTContext& C) const { |
| 48 | QualType T = C.getCanonicalType(Pointer->getType()); |
| 49 | PointerType* PTy = cast<PointerType>(T.getTypePtr()); |
| 50 | |
| 51 | QualType PointeeTy = C.getCanonicalType(PTy->getPointeeType()); |
| 52 | return PointeeTy; |
Ted Kremenek | 9e24049 | 2008-10-04 05:50:14 +0000 | [diff] [blame] | 53 | } |
| 54 | |
Zhongxing Xu | 1789275 | 2008-10-08 02:50:44 +0000 | [diff] [blame] | 55 | void AnonPointeeRegion::ProfileRegion(llvm::FoldingSetNodeID& ID, |
Zhongxing Xu | 817c67d | 2008-11-03 04:12:24 +0000 | [diff] [blame] | 56 | const VarDecl* VD, |
Zhongxing Xu | 1789275 | 2008-10-08 02:50:44 +0000 | [diff] [blame] | 57 | const MemRegion* superRegion) { |
| 58 | ID.AddInteger((unsigned) AnonPointeeRegionKind); |
Zhongxing Xu | 1789275 | 2008-10-08 02:50:44 +0000 | [diff] [blame] | 59 | ID.AddPointer(VD); |
| 60 | ID.AddPointer(superRegion); |
| 61 | } |
| 62 | |
Ted Kremenek | 329d6fd | 2008-10-27 20:57:58 +0000 | [diff] [blame] | 63 | void CompoundLiteralRegion::Profile(llvm::FoldingSetNodeID& ID) const { |
| 64 | CompoundLiteralRegion::ProfileRegion(ID, CL, superRegion); |
| 65 | } |
| 66 | |
| 67 | void CompoundLiteralRegion::ProfileRegion(llvm::FoldingSetNodeID& ID, |
| 68 | const CompoundLiteralExpr* CL, |
| 69 | const MemRegion* superRegion) { |
| 70 | ID.AddInteger((unsigned) CompoundLiteralRegionKind); |
| 71 | ID.AddPointer(CL); |
| 72 | ID.AddPointer(superRegion); |
| 73 | } |
| 74 | |
Ted Kremenek | 9e24049 | 2008-10-04 05:50:14 +0000 | [diff] [blame] | 75 | void DeclRegion::ProfileRegion(llvm::FoldingSetNodeID& ID, const Decl* D, |
| 76 | const MemRegion* superRegion, Kind k) { |
| 77 | ID.AddInteger((unsigned) k); |
| 78 | ID.AddPointer(D); |
| 79 | ID.AddPointer(superRegion); |
| 80 | } |
| 81 | |
| 82 | void DeclRegion::Profile(llvm::FoldingSetNodeID& ID) const { |
| 83 | DeclRegion::ProfileRegion(ID, D, superRegion, getKind()); |
| 84 | } |
| 85 | |
Ted Kremenek | 993f1c7 | 2008-10-17 20:28:54 +0000 | [diff] [blame] | 86 | void SymbolicRegion::ProfileRegion(llvm::FoldingSetNodeID& ID, SymbolID sym) { |
| 87 | ID.AddInteger((unsigned) MemRegion::SymbolicRegionKind); |
| 88 | ID.AddInteger(sym.getNumber()); |
| 89 | } |
| 90 | |
| 91 | void SymbolicRegion::Profile(llvm::FoldingSetNodeID& ID) const { |
| 92 | SymbolicRegion::ProfileRegion(ID, sym); |
| 93 | } |
| 94 | |
Zhongxing Xu | 511191c | 2008-10-21 05:27:10 +0000 | [diff] [blame] | 95 | void ElementRegion::ProfileRegion(llvm::FoldingSetNodeID& ID, SVal Idx, |
| 96 | const MemRegion* superRegion) { |
| 97 | ID.AddInteger(MemRegion::ElementRegionKind); |
| 98 | ID.AddPointer(superRegion); |
| 99 | Idx.Profile(ID); |
| 100 | } |
| 101 | |
| 102 | void ElementRegion::Profile(llvm::FoldingSetNodeID& ID) const { |
| 103 | ElementRegion::ProfileRegion(ID, Index, superRegion); |
| 104 | } |
Zhongxing Xu | 27b5706 | 2008-10-27 13:17:02 +0000 | [diff] [blame] | 105 | |
| 106 | QualType ElementRegion::getType(ASTContext& C) const { |
| 107 | QualType T = cast<TypedRegion>(superRegion)->getType(C); |
| 108 | ArrayType* AT = cast<ArrayType>(T.getTypePtr()); |
| 109 | return AT->getElementType(); |
| 110 | } |
| 111 | |
Ted Kremenek | 9e24049 | 2008-10-04 05:50:14 +0000 | [diff] [blame] | 112 | //===----------------------------------------------------------------------===// |
| 113 | // Region pretty-printing. |
| 114 | //===----------------------------------------------------------------------===// |
| 115 | |
| 116 | std::string MemRegion::getString() const { |
| 117 | std::string s; |
| 118 | llvm::raw_string_ostream os(s); |
| 119 | print(os); |
| 120 | return os.str(); |
| 121 | } |
| 122 | |
| 123 | void MemRegion::print(llvm::raw_ostream& os) const { |
| 124 | os << "<Unknown Region>"; |
| 125 | } |
| 126 | |
Ted Kremenek | 7090ae1 | 2008-11-02 00:34:33 +0000 | [diff] [blame] | 127 | void AllocaRegion::print(llvm::raw_ostream& os) const { |
| 128 | os << "alloca{" << (void*) Ex << ',' << Cnt << '}'; |
| 129 | } |
| 130 | |
Ted Kremenek | 9e24049 | 2008-10-04 05:50:14 +0000 | [diff] [blame] | 131 | void VarRegion::print(llvm::raw_ostream& os) const { |
| 132 | os << cast<VarDecl>(D)->getName(); |
| 133 | } |
| 134 | |
Ted Kremenek | 993f1c7 | 2008-10-17 20:28:54 +0000 | [diff] [blame] | 135 | void SymbolicRegion::print(llvm::raw_ostream& os) const { |
| 136 | os << "$" << sym.getNumber(); |
| 137 | } |
| 138 | |
Ted Kremenek | 4bd1eef | 2008-10-17 21:05:44 +0000 | [diff] [blame] | 139 | void FieldRegion::print(llvm::raw_ostream& os) const { |
| 140 | superRegion->print(os); |
| 141 | os << "->" << getDecl()->getName(); |
| 142 | } |
| 143 | |
Zhongxing Xu | b21ff77 | 2008-10-24 06:30:07 +0000 | [diff] [blame] | 144 | void ElementRegion::print(llvm::raw_ostream& os) const { |
| 145 | superRegion->print(os); |
| 146 | os << '['; Index.print(os); os << ']'; |
| 147 | } |
| 148 | |
Ted Kremenek | 329d6fd | 2008-10-27 20:57:58 +0000 | [diff] [blame] | 149 | void CompoundLiteralRegion::print(llvm::raw_ostream& os) const { |
| 150 | // FIXME: More elaborate pretty-printing. |
| 151 | os << "{ " << (void*) CL << " }"; |
| 152 | } |
| 153 | |
Zhongxing Xu | cc128b3 | 2008-11-10 13:05:26 +0000 | [diff] [blame^] | 154 | void StringRegion::print(llvm::raw_ostream& os) const { |
| 155 | os << "\"" << Str->getStrData() << "\""; |
| 156 | } |
| 157 | |
Ted Kremenek | 9e24049 | 2008-10-04 05:50:14 +0000 | [diff] [blame] | 158 | //===----------------------------------------------------------------------===// |
| 159 | // MemRegionManager methods. |
| 160 | //===----------------------------------------------------------------------===// |
| 161 | |
| 162 | MemSpaceRegion* MemRegionManager::LazyAllocate(MemSpaceRegion*& region) { |
| 163 | |
| 164 | if (!region) { |
| 165 | region = (MemSpaceRegion*) A.Allocate<MemSpaceRegion>(); |
| 166 | new (region) MemSpaceRegion(); |
| 167 | } |
| 168 | |
| 169 | return region; |
| 170 | } |
| 171 | |
| 172 | MemSpaceRegion* MemRegionManager::getStackRegion() { |
| 173 | return LazyAllocate(stack); |
| 174 | } |
| 175 | |
| 176 | MemSpaceRegion* MemRegionManager::getGlobalsRegion() { |
| 177 | return LazyAllocate(globals); |
| 178 | } |
| 179 | |
| 180 | MemSpaceRegion* MemRegionManager::getHeapRegion() { |
| 181 | return LazyAllocate(heap); |
| 182 | } |
| 183 | |
Zhongxing Xu | 1789275 | 2008-10-08 02:50:44 +0000 | [diff] [blame] | 184 | MemSpaceRegion* MemRegionManager::getUnknownRegion() { |
| 185 | return LazyAllocate(unknown); |
| 186 | } |
| 187 | |
Zhongxing Xu | e9f4e54 | 2008-10-25 14:13:41 +0000 | [diff] [blame] | 188 | StringRegion* MemRegionManager::getStringRegion(const StringLiteral* Str) { |
| 189 | llvm::FoldingSetNodeID ID; |
| 190 | MemSpaceRegion* GlobalsR = getGlobalsRegion(); |
| 191 | |
| 192 | StringRegion::ProfileRegion(ID, Str, GlobalsR); |
| 193 | |
| 194 | void* InsertPos; |
| 195 | MemRegion* data = Regions.FindNodeOrInsertPos(ID, InsertPos); |
| 196 | StringRegion* R = cast_or_null<StringRegion>(data); |
| 197 | |
| 198 | if (!R) { |
| 199 | R = (StringRegion*) A.Allocate<StringRegion>(); |
| 200 | new (R) StringRegion(Str, GlobalsR); |
| 201 | Regions.InsertNode(R, InsertPos); |
| 202 | } |
| 203 | |
| 204 | return R; |
| 205 | } |
| 206 | |
Ted Kremenek | 9a1f03a | 2008-10-27 21:01:26 +0000 | [diff] [blame] | 207 | VarRegion* MemRegionManager::getVarRegion(const VarDecl* d) { |
| 208 | |
| 209 | const MemRegion* superRegion = d->hasLocalStorage() ? getStackRegion() |
| 210 | : getGlobalsRegion(); |
| 211 | |
Ted Kremenek | 9e24049 | 2008-10-04 05:50:14 +0000 | [diff] [blame] | 212 | llvm::FoldingSetNodeID ID; |
| 213 | DeclRegion::ProfileRegion(ID, d, superRegion, MemRegion::VarRegionKind); |
| 214 | |
| 215 | void* InsertPos; |
| 216 | MemRegion* data = Regions.FindNodeOrInsertPos(ID, InsertPos); |
| 217 | VarRegion* R = cast_or_null<VarRegion>(data); |
| 218 | |
| 219 | if (!R) { |
| 220 | R = (VarRegion*) A.Allocate<VarRegion>(); |
| 221 | new (R) VarRegion(d, superRegion); |
| 222 | Regions.InsertNode(R, InsertPos); |
| 223 | } |
| 224 | |
| 225 | return R; |
| 226 | } |
| 227 | |
Ted Kremenek | 329d6fd | 2008-10-27 20:57:58 +0000 | [diff] [blame] | 228 | CompoundLiteralRegion* |
| 229 | MemRegionManager::getCompoundLiteralRegion(const CompoundLiteralExpr* CL) { |
| 230 | // Is this compound literal allocated on the stack or is part of the |
| 231 | // global constant pool? |
| 232 | const MemRegion* superRegion = CL->isFileScope() ? |
| 233 | getGlobalsRegion() : getStackRegion(); |
| 234 | |
| 235 | // Profile the compound literal. |
| 236 | llvm::FoldingSetNodeID ID; |
| 237 | CompoundLiteralRegion::ProfileRegion(ID, CL, superRegion); |
| 238 | |
| 239 | void* InsertPos; |
| 240 | MemRegion* data = Regions.FindNodeOrInsertPos(ID, InsertPos); |
| 241 | CompoundLiteralRegion* R = cast_or_null<CompoundLiteralRegion>(data); |
| 242 | |
| 243 | if (!R) { |
| 244 | R = (CompoundLiteralRegion*) A.Allocate<CompoundLiteralRegion>(); |
| 245 | new (R) CompoundLiteralRegion(CL, superRegion); |
| 246 | Regions.InsertNode(R, InsertPos); |
| 247 | } |
| 248 | |
| 249 | return R; |
| 250 | } |
| 251 | |
Zhongxing Xu | 511191c | 2008-10-21 05:27:10 +0000 | [diff] [blame] | 252 | ElementRegion* MemRegionManager::getElementRegion(SVal Idx, |
| 253 | const MemRegion* superRegion){ |
| 254 | llvm::FoldingSetNodeID ID; |
| 255 | ElementRegion::ProfileRegion(ID, Idx, superRegion); |
| 256 | |
| 257 | void* InsertPos; |
| 258 | MemRegion* data = Regions.FindNodeOrInsertPos(ID, InsertPos); |
| 259 | ElementRegion* R = cast_or_null<ElementRegion>(data); |
| 260 | |
| 261 | if (!R) { |
| 262 | R = (ElementRegion*) A.Allocate<ElementRegion>(); |
| 263 | new (R) ElementRegion(Idx, superRegion); |
| 264 | Regions.InsertNode(R, InsertPos); |
| 265 | } |
| 266 | |
| 267 | return R; |
| 268 | } |
| 269 | |
Ted Kremenek | 993f1c7 | 2008-10-17 20:28:54 +0000 | [diff] [blame] | 270 | /// getSymbolicRegion - Retrieve or create a "symbolic" memory region. |
| 271 | SymbolicRegion* MemRegionManager::getSymbolicRegion(const SymbolID sym) { |
| 272 | |
| 273 | llvm::FoldingSetNodeID ID; |
| 274 | SymbolicRegion::ProfileRegion(ID, sym); |
| 275 | |
| 276 | void* InsertPos; |
| 277 | MemRegion* data = Regions.FindNodeOrInsertPos(ID, InsertPos); |
| 278 | SymbolicRegion* R = cast_or_null<SymbolicRegion>(data); |
| 279 | |
| 280 | if (!R) { |
| 281 | R = (SymbolicRegion*) A.Allocate<SymbolicRegion>(); |
| 282 | new (R) SymbolicRegion(sym); |
| 283 | Regions.InsertNode(R, InsertPos); |
| 284 | } |
| 285 | |
| 286 | return R; |
| 287 | } |
| 288 | |
Ted Kremenek | 9e24049 | 2008-10-04 05:50:14 +0000 | [diff] [blame] | 289 | FieldRegion* MemRegionManager::getFieldRegion(const FieldDecl* d, |
Ted Kremenek | 993f1c7 | 2008-10-17 20:28:54 +0000 | [diff] [blame] | 290 | const MemRegion* superRegion) { |
Ted Kremenek | 9e24049 | 2008-10-04 05:50:14 +0000 | [diff] [blame] | 291 | llvm::FoldingSetNodeID ID; |
| 292 | DeclRegion::ProfileRegion(ID, d, superRegion, MemRegion::FieldRegionKind); |
| 293 | |
| 294 | void* InsertPos; |
| 295 | MemRegion* data = Regions.FindNodeOrInsertPos(ID, InsertPos); |
| 296 | FieldRegion* R = cast_or_null<FieldRegion>(data); |
| 297 | |
| 298 | if (!R) { |
| 299 | R = (FieldRegion*) A.Allocate<FieldRegion>(); |
| 300 | new (R) FieldRegion(d, superRegion); |
| 301 | Regions.InsertNode(R, InsertPos); |
| 302 | } |
| 303 | |
| 304 | return R; |
| 305 | } |
| 306 | |
Ted Kremenek | 993f1c7 | 2008-10-17 20:28:54 +0000 | [diff] [blame] | 307 | ObjCIvarRegion* |
| 308 | MemRegionManager::getObjCIvarRegion(const ObjCIvarDecl* d, |
| 309 | const MemRegion* superRegion) { |
Ted Kremenek | 9e24049 | 2008-10-04 05:50:14 +0000 | [diff] [blame] | 310 | llvm::FoldingSetNodeID ID; |
| 311 | DeclRegion::ProfileRegion(ID, d, superRegion, MemRegion::ObjCIvarRegionKind); |
| 312 | |
| 313 | void* InsertPos; |
| 314 | MemRegion* data = Regions.FindNodeOrInsertPos(ID, InsertPos); |
| 315 | ObjCIvarRegion* R = cast_or_null<ObjCIvarRegion>(data); |
| 316 | |
| 317 | if (!R) { |
Zhongxing Xu | 722c288 | 2008-10-06 03:03:33 +0000 | [diff] [blame] | 318 | R = (ObjCIvarRegion*) A.Allocate<ObjCIvarRegion>(); |
| 319 | new (R) ObjCIvarRegion(d, superRegion); |
Ted Kremenek | 9e24049 | 2008-10-04 05:50:14 +0000 | [diff] [blame] | 320 | Regions.InsertNode(R, InsertPos); |
| 321 | } |
| 322 | |
| 323 | return R; |
| 324 | } |
| 325 | |
Ted Kremenek | a7f1b9e | 2008-10-24 20:30:08 +0000 | [diff] [blame] | 326 | ObjCObjectRegion* |
| 327 | MemRegionManager::getObjCObjectRegion(const ObjCInterfaceDecl* d, |
| 328 | const MemRegion* superRegion) { |
| 329 | llvm::FoldingSetNodeID ID; |
| 330 | DeclRegion::ProfileRegion(ID, d, superRegion, |
| 331 | MemRegion::ObjCObjectRegionKind); |
| 332 | |
| 333 | void* InsertPos; |
| 334 | MemRegion* data = Regions.FindNodeOrInsertPos(ID, InsertPos); |
| 335 | ObjCObjectRegion* R = cast_or_null<ObjCObjectRegion>(data); |
| 336 | |
| 337 | if (!R) { |
| 338 | R = (ObjCObjectRegion*) A.Allocate<ObjCObjectRegion>(); |
| 339 | new (R) ObjCObjectRegion(d, superRegion); |
| 340 | Regions.InsertNode(R, InsertPos); |
| 341 | } |
| 342 | |
| 343 | return R; |
| 344 | } |
| 345 | |
| 346 | |
Zhongxing Xu | 1789275 | 2008-10-08 02:50:44 +0000 | [diff] [blame] | 347 | AnonPointeeRegion* MemRegionManager::getAnonPointeeRegion(const VarDecl* d) { |
| 348 | llvm::FoldingSetNodeID ID; |
Zhongxing Xu | 1789275 | 2008-10-08 02:50:44 +0000 | [diff] [blame] | 349 | MemRegion* superRegion = getUnknownRegion(); |
| 350 | |
Zhongxing Xu | 817c67d | 2008-11-03 04:12:24 +0000 | [diff] [blame] | 351 | AnonPointeeRegion::ProfileRegion(ID, d, superRegion); |
Zhongxing Xu | 1789275 | 2008-10-08 02:50:44 +0000 | [diff] [blame] | 352 | |
| 353 | void* InsertPos; |
| 354 | MemRegion* data = Regions.FindNodeOrInsertPos(ID, InsertPos); |
| 355 | AnonPointeeRegion* R = cast_or_null<AnonPointeeRegion>(data); |
| 356 | |
| 357 | if (!R) { |
| 358 | R = (AnonPointeeRegion*) A.Allocate<AnonPointeeRegion>(); |
Zhongxing Xu | 817c67d | 2008-11-03 04:12:24 +0000 | [diff] [blame] | 359 | new (R) AnonPointeeRegion(d, superRegion); |
Zhongxing Xu | 1789275 | 2008-10-08 02:50:44 +0000 | [diff] [blame] | 360 | Regions.InsertNode(R, InsertPos); |
| 361 | } |
| 362 | |
| 363 | return R; |
| 364 | } |
| 365 | |
Ted Kremenek | 7090ae1 | 2008-11-02 00:34:33 +0000 | [diff] [blame] | 366 | AllocaRegion* MemRegionManager::getAllocaRegion(const Expr* E, unsigned cnt) { |
| 367 | llvm::FoldingSetNodeID ID; |
| 368 | AllocaRegion::ProfileRegion(ID, E, cnt); |
| 369 | |
| 370 | void* InsertPos; |
| 371 | MemRegion* data = Regions.FindNodeOrInsertPos(ID, InsertPos); |
| 372 | AllocaRegion* R = cast_or_null<AllocaRegion>(data); |
| 373 | |
| 374 | if (!R) { |
| 375 | R = (AllocaRegion*) A.Allocate<AllocaRegion>(); |
| 376 | new (R) AllocaRegion(E, cnt, getStackRegion()); |
| 377 | Regions.InsertNode(R, InsertPos); |
| 378 | } |
| 379 | |
| 380 | return R; |
| 381 | } |
| 382 | |
Ted Kremenek | 9e24049 | 2008-10-04 05:50:14 +0000 | [diff] [blame] | 383 | bool MemRegionManager::hasStackStorage(const MemRegion* R) { |
Ted Kremenek | 993f1c7 | 2008-10-17 20:28:54 +0000 | [diff] [blame] | 384 | |
| 385 | // Only subregions can have stack storage. |
Ted Kremenek | 7090ae1 | 2008-11-02 00:34:33 +0000 | [diff] [blame] | 386 | const SubRegion* SR = dyn_cast<SubRegion>(R); |
| 387 | |
Ted Kremenek | 993f1c7 | 2008-10-17 20:28:54 +0000 | [diff] [blame] | 388 | if (!SR) |
| 389 | return false; |
Ted Kremenek | 7090ae1 | 2008-11-02 00:34:33 +0000 | [diff] [blame] | 390 | |
Ted Kremenek | 9e24049 | 2008-10-04 05:50:14 +0000 | [diff] [blame] | 391 | MemSpaceRegion* S = getStackRegion(); |
| 392 | |
Ted Kremenek | 993f1c7 | 2008-10-17 20:28:54 +0000 | [diff] [blame] | 393 | while (SR) { |
| 394 | R = SR->getSuperRegion(); |
| 395 | if (R == S) |
| 396 | return true; |
| 397 | |
| 398 | SR = dyn_cast<SubRegion>(R); |
Ted Kremenek | 9e24049 | 2008-10-04 05:50:14 +0000 | [diff] [blame] | 399 | } |
| 400 | |
| 401 | return false; |
| 402 | } |