mirror of
https://github.com/Z3Prover/z3
synced 2026-05-15 22:55:33 +00:00
fix timeout event handler
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
09b75d2122
commit
d9a48ae91d
1 changed files with 8 additions and 0 deletions
|
|
@ -17,11 +17,18 @@
|
|||
#include "solver/solver.h"
|
||||
#include "util/error_codes.h"
|
||||
#include "util/rational.h"
|
||||
#include "util/timeout.h"
|
||||
#include "util/z3_exception.h"
|
||||
|
||||
bool g_display_statistics = false;
|
||||
bool g_display_model = false;
|
||||
|
||||
static void on_timeout() {
|
||||
std::cout << "% SZS status Timeout\n";
|
||||
std::cout.flush();
|
||||
_Exit(0);
|
||||
}
|
||||
|
||||
namespace {
|
||||
|
||||
enum class token_kind {
|
||||
|
|
@ -1497,6 +1504,7 @@ expr_ref tptp_parser::parse_formula() {
|
|||
}
|
||||
|
||||
static unsigned read_tptp_stream(std::istream& in, char const* current_file) {
|
||||
register_on_timeout_proc(on_timeout);
|
||||
try {
|
||||
cmd_context ctx;
|
||||
ctx.set_solver_factory(mk_smt_strategic_solver_factory());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue