3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-08-11 13:40:52 +00:00

cleanup cancelation logic

Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
Nikolaj Bjorner 2015-12-11 12:35:35 -08:00
parent 4e155887b2
commit 61dbb6168e
37 changed files with 93 additions and 198 deletions

View file

@ -22,16 +22,21 @@ Revision History:
#include "vector.h"
class reslimit {
unsigned m_count;
unsigned m_limit;
unsigned_vector m_limits;
volatile bool m_cancel;
uint64 m_count;
uint64 m_limit;
svector<uint64> m_limits;
public:
reslimit();
bool inc();
bool inc(unsigned offset);
void push(unsigned delta_limit);
void pop();
unsigned count() const;
bool inc();
bool inc(unsigned offset);
uint64 count() const;
void cancel() { m_cancel = true; }
void reset_cancel() { m_cancel = false; }
};
class scoped_rlimit {