mirror of
https://github.com/Z3Prover/z3
synced 2025-04-24 01:25:31 +00:00
Merge branch 'opt' of https://git01.codeplex.com/z3 into opt
This commit is contained in:
commit
5e36d3a6a2
7 changed files with 91 additions and 52 deletions
|
@ -313,11 +313,16 @@ static unsigned parse_opt(std::istream& in, bool is_wcnf) {
|
|||
opb opb(opt, _in);
|
||||
opb.parse();
|
||||
}
|
||||
lbool r = opt.optimize();
|
||||
switch (r) {
|
||||
case l_true: std::cout << "sat\n"; break;
|
||||
case l_false: std::cout << "unsat\n"; break;
|
||||
case l_undef: std::cout << "unknown\n"; break;
|
||||
try {
|
||||
lbool r = opt.optimize();
|
||||
switch (r) {
|
||||
case l_true: std::cout << "sat\n"; break;
|
||||
case l_false: std::cout << "unsat\n"; break;
|
||||
case l_undef: std::cout << "unknown\n"; break;
|
||||
}
|
||||
}
|
||||
catch (z3_exception & ex) {
|
||||
std::cerr << ex.msg() << "\n";
|
||||
}
|
||||
#pragma omp critical (g_display_stats)
|
||||
{
|
||||
|
@ -329,6 +334,7 @@ static unsigned parse_opt(std::istream& in, bool is_wcnf) {
|
|||
}
|
||||
|
||||
unsigned parse_opt(char const* file_name, bool is_wcnf) {
|
||||
g_first_interrupt = true;
|
||||
g_start_time = static_cast<double>(clock());
|
||||
register_on_timeout_proc(on_timeout);
|
||||
signal(SIGINT, on_ctrl_c);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue