|
clang 24.0.0git
|
This header contains the declarations of functions which are used to decide which loops should be completely unrolled and mark their corresponding CFGBlocks. More...
#include "clang/Analysis/CFG.h"#include "clang/StaticAnalyzer/Core/PathSensitive/ExplodedGraph.h"#include "clang/StaticAnalyzer/Core/PathSensitive/ProgramState.h"#include "llvm/ADT/DenseMap.h"Go to the source code of this file.
Classes | |
| struct | clang::ento::LoopUnrollingCache |
| Memoizes the part of the loop unrolling decision that depends only on the AST of a loop (as opposed to the path that reached it), so that the AST matchers run once per loop instead of every time a path enters the loop. More... | |
| struct | clang::ento::LoopUnrollingCache::Entry |
Namespaces | |
| namespace | clang |
| Top level wrappers for InstallAPI frontend operations. | |
| namespace | clang::ento |
Functions | |
| bool | clang::ento::isUnrolledState (ProgramStateRef State) |
| Returns if the given State indicates that is inside a completely unrolled loop. | |
| ProgramStateRef | clang::ento::updateLoopStack (const Stmt *LoopStmt, ASTContext &ASTCtx, ExplodedNode *Pred, unsigned maxVisitOnPath, LoopUnrollingCache &Cache) |
| Updates the stack of loops contained by the ProgramState. | |
| ProgramStateRef | clang::ento::processLoopEnd (const Stmt *LoopStmt, ProgramStateRef State) |
| Updates the given ProgramState. | |
This header contains the declarations of functions which are used to decide which loops should be completely unrolled and mark their corresponding CFGBlocks.
It is done by tracking a stack of loops in the ProgramState. This way specific loops can be marked as completely unrolled. For considering a loop to be completely unrolled it has to fulfill the following requirements:
Definition in file LoopUnrolling.h.