mirror of
https://github.com/Z3Prover/z3
synced 2025-04-29 03:45:51 +00:00
parent
cbf089e10d
commit
9ca5b3f304
14 changed files with 20 additions and 21 deletions
|
@ -44,14 +44,12 @@ uint64_t reslimit::count() const {
|
|||
|
||||
bool reslimit::inc() {
|
||||
++m_count;
|
||||
bool r = (m_cancel == 0 && (m_limit == 0 || m_count <= m_limit)) || m_suspend;
|
||||
return r;
|
||||
return not_canceled();
|
||||
}
|
||||
|
||||
bool reslimit::inc(unsigned offset) {
|
||||
m_count += offset;
|
||||
bool r = (m_cancel == 0 && (m_limit == 0 || m_count <= m_limit)) || m_suspend;
|
||||
return r;
|
||||
return not_canceled();
|
||||
}
|
||||
|
||||
void reslimit::push(unsigned delta_limit) {
|
||||
|
|
|
@ -50,7 +50,8 @@ public:
|
|||
uint64_t count() const;
|
||||
|
||||
bool suspended() const { return m_suspend; }
|
||||
bool get_cancel_flag() const { return m_cancel > 0 && !m_suspend; }
|
||||
inline bool not_canceled() const { return (m_cancel == 0 && (m_limit == 0 || m_count <= m_limit)) || m_suspend; }
|
||||
inline bool is_canceled() const { return !not_canceled(); }
|
||||
char const* get_cancel_msg() const;
|
||||
void cancel();
|
||||
void reset_cancel();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue