3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-29 11:55:51 +00:00

add new model event handler for incremental optimization

This commit is contained in:
Nikolaj Bjorner 2021-02-05 17:11:04 -08:00
parent 2c472aaa10
commit 16448104eb
7 changed files with 94 additions and 1 deletions

View file

@ -18,6 +18,11 @@ Notes:
--*/
#pragma once
/**
\brief callback functions for models.
*/
typedef void Z3_model_eh(void* ctx);
#ifdef __cplusplus
extern "C" {
#endif // __cplusplus
@ -351,6 +356,18 @@ extern "C" {
*/
Z3_ast_vector Z3_API Z3_optimize_get_objectives(Z3_context c, Z3_optimize o);
/**
\brief register a model event handler for new models.
*/
void Z3_API Z3_optimize_register_model_eh(
Z3_context c,
Z3_optimize o,
Z3_model m,
void* ctx,
Z3_model_eh model_eh);
/*@}*/
/*@}*/