File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed
clang/include/clang/Analysis/FlowSensitive Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -87,6 +87,9 @@ class Solver {
87
87
// /
88
88
// / All elements in `Vals` must not be null.
89
89
virtual Result solve (llvm::ArrayRef<const Formula *> Vals) = 0;
90
+
91
+ // Did the solver reach its resource limit?
92
+ virtual bool reachedLimit () const = 0;
90
93
};
91
94
92
95
llvm::raw_ostream &operator <<(llvm::raw_ostream &, const Solver::Result &);
Original file line number Diff line number Diff line change @@ -48,8 +48,7 @@ class WatchedLiteralsSolver : public Solver {
48
48
49
49
Result solve (llvm::ArrayRef<const Formula *> Vals) override ;
50
50
51
- // The solver reached its maximum number of iterations.
52
- bool reachedLimit () const { return MaxIterations == 0 ; }
51
+ bool reachedLimit () const override { return MaxIterations == 0 ; }
53
52
};
54
53
55
54
} // namespace dataflow
You can’t perform that action at this time.
0 commit comments