3
0
Fork 0
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:
Nikolaj Bjorner 2013-10-19 12:22:56 -07:00
parent 53f78f7d19
commit 3996f58a8e
6 changed files with 86 additions and 44 deletions

View file

@ -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();
}
}
}