mirror of
https://github.com/Z3Prover/z3
synced 2025-08-16 07:45:27 +00:00
fix up pareto callback mechanism
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
1ea376e310
commit
03979fd580
8 changed files with 178 additions and 144 deletions
|
@ -266,6 +266,16 @@ public:
|
|||
cmd_context::scoped_watch sw(ctx);
|
||||
try {
|
||||
r = opt.optimize();
|
||||
if (r == l_true && opt.is_pareto()) {
|
||||
while (r == l_true) {
|
||||
display_result(ctx);
|
||||
r = opt.optimize();
|
||||
}
|
||||
if (p.get_bool("print_statistics", false)) {
|
||||
display_statistics(ctx);
|
||||
}
|
||||
return;
|
||||
}
|
||||
}
|
||||
catch (z3_error& ex) {
|
||||
ctx.regular_stream() << "(error: " << ex.msg() << "\")" << std::endl;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue