File tree Expand file tree Collapse file tree 2 files changed +7
-3
lines changed
include/clang/StaticAnalyzer/Core/PathSensitive Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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.
227232REGISTER_TRAIT_WITH_PROGRAMSTATE (LastEagerlyAssumeAssumptionAt, const Expr *)
228233
229234// ===----------------------------------------------------------------------===//
You can’t perform that action at this time.
0 commit comments