mirror of
https://github.com/Z3Prover/z3
synced 2025-04-28 19:35:50 +00:00
tidy & todo notes
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
53f78f7d19
commit
3996f58a8e
6 changed files with 86 additions and 44 deletions
|
@ -14,6 +14,13 @@ Author:
|
|||
|
||||
Notes:
|
||||
|
||||
TODO:
|
||||
|
||||
- there are race conditions for cancelation.
|
||||
- it would also be a good idea to maintain a volatile bool to track
|
||||
cancelation and then bail out of loops inside optimize() and derived
|
||||
functions.
|
||||
|
||||
--*/
|
||||
|
||||
#include "opt_context.h"
|
||||
|
@ -95,4 +102,16 @@ namespace opt {
|
|||
return true;
|
||||
}
|
||||
|
||||
void context::cancel() {
|
||||
if (m_solver) {
|
||||
m_solver->cancel();
|
||||
}
|
||||
}
|
||||
|
||||
void context::reset_cancel() {
|
||||
if (m_solver) {
|
||||
m_solver->reset_cancel();
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue