Skip to content

Commit 77fb227

Browse files
committed
Improve comments
1 parent 23b2737 commit 77fb227

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

clang/include/clang/StaticAnalyzer/Core/PathSensitive/ExprEngine.h

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -604,9 +604,8 @@ class ExprEngine {
604604
ExplodedNodeSet &Dst);
605605

606606
/// evalEagerlyAssumeOpBifurcation - Given the nodes in 'Src', eagerly assume
607-
/// symbolic
608-
/// expressions of the form 'x != 0' or '!x' and generate new nodes (stored
609-
/// in Dst) with those assumptions.
607+
/// symbolic expressions of the form 'x != 0' or '!x' and generate new nodes
608+
/// (stored in Dst) with those assumptions.
610609
void evalEagerlyAssumeOpBifurcation(ExplodedNodeSet &Dst,
611610
ExplodedNodeSet &Src, const Expr *Ex);
612611

clang/lib/StaticAnalyzer/Core/ExprEngine.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -224,6 +224,11 @@ bool clang::ento::seenWeakLoopAssumption(ProgramStateRef State) {
224224
return State->get<SeenWeakLoopAssumption>();
225225
}
226226

227+
// This trait points to the last expression (logical operator) where an eager
228+
// assumption introduced a state split (i.e. both cases were feasible). This is
229+
// used by the WeakLoopAssumption heuristic to find situations where the an
230+
// eager assumption introduces a state split within the evaluation of a loop
231+
// condition.
227232
REGISTER_TRAIT_WITH_PROGRAMSTATE(LastEagerlyAssumeAssumptionAt, const Expr *)
228233

229234
//===----------------------------------------------------------------------===//

0 commit comments

Comments
 (0)