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:
parent
2c472aaa10
commit
16448104eb
7 changed files with 94 additions and 1 deletions
|
@ -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);
|
||||
|
||||
|
||||
/*@}*/
|
||||
/*@}*/
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue