mirror of
https://github.com/Z3Prover/z3
synced 2025-08-18 01:02:15 +00:00
fix #3169 - set cancellation timeout and limit during push. Also expose internalization outside of scope that disables cancellation
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
7d976e4f4d
commit
f501380e89
6 changed files with 25 additions and 10 deletions
|
@ -33,8 +33,9 @@ namespace {
|
|||
class g_timeout_eh : public event_handler {
|
||||
public:
|
||||
void operator()(event_handler_caller_t caller_id) override {
|
||||
std::cout << "timeout\n";
|
||||
m_caller_id = caller_id;
|
||||
std::cout << "timeout\n";
|
||||
std::cout.flush();
|
||||
if (g_on_timeout)
|
||||
g_on_timeout();
|
||||
throw z3_error(ERR_TIMEOUT);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue