mirror of
https://github.com/Z3Prover/z3
synced 2025-05-12 10:14:42 +00:00
moving to resource managed cancellation
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
1aea9722cb
commit
521271e559
11 changed files with 34 additions and 48 deletions
|
@ -73,9 +73,11 @@ public:
|
|||
unsigned cache_sz;
|
||||
unsigned num_steps = 0;
|
||||
unsigned timeout = m_params.get_uint("timeout", UINT_MAX);
|
||||
unsigned rlimit = m_params.get_uint("rlimit", UINT_MAX);
|
||||
bool failed = false;
|
||||
cancel_eh<reslimit> eh(ctx.m().limit());
|
||||
{
|
||||
scoped_rlimit _rlimit(ctx.m().limit(), rlimit);
|
||||
scoped_ctrl_c ctrlc(eh);
|
||||
scoped_timer timer(timeout, &eh);
|
||||
cmd_context::scoped_watch sw(ctx);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue