=?utf-8?q?DonĂ¡t?= Nagy <[email protected]>
Message-ID:
In-Reply-To: <llvm.org/llvm/llvm-project/pull/[email protected]>
================
@@ -323,12 +342,13 @@ class ExprEngine {
/// ProcessBranch - Called by CoreEngine. Used to generate successor
/// nodes by processing the 'effects' of a branch condition.
- void processBranch(const Stmt *Condition,
- NodeBuilderContext& BuilderCtx,
- ExplodedNode *Pred,
- ExplodedNodeSet &Dst,
- const CFGBlock *DstT,
- const CFGBlock *DstF);
+ /// If the branch condition is a loop condition, IterationsFinishedInLoop is
+ /// the number of already finished iterations (0, 1, 2...); otherwise it's
+ /// std::nullopt.
----------------
isuckatcs wrote:
```suggestion
/// the number of already finished iterations (0, 1, 2, ...); otherwise it's
/// std::nullopt.
```
Can't `IterationsFinishedInLoop` be a state trait? We already have state traits
for element index inside arrays when elements are constructed and destructed, I
suspect this would work similarly.
https://github.com/llvm/llvm-project/pull/109804
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits