mirror of
https://github.com/Z3Prover/z3
synced 2025-04-12 04:03:39 +00:00
working on interpolation API
This commit is contained in:
parent
bc6b20d557
commit
d66211c007
|
@ -54,8 +54,8 @@ extern "C" {
|
||||||
Z3_ast proof,
|
Z3_ast proof,
|
||||||
int num,
|
int num,
|
||||||
Z3_ast *cnsts,
|
Z3_ast *cnsts,
|
||||||
int *parents,
|
unsigned *parents,
|
||||||
Z3_interpolation_options options,
|
Z3_params options,
|
||||||
Z3_ast *interps,
|
Z3_ast *interps,
|
||||||
int num_theory,
|
int num_theory,
|
||||||
Z3_ast *theory
|
Z3_ast *theory
|
||||||
|
@ -92,7 +92,7 @@ extern "C" {
|
||||||
pre_parents_vec,
|
pre_parents_vec,
|
||||||
interpolants,
|
interpolants,
|
||||||
theory_vec,
|
theory_vec,
|
||||||
(interpolation_options) options);
|
0); // ignore params for now FIXME
|
||||||
|
|
||||||
// copy result back
|
// copy result back
|
||||||
for(unsigned i = 0; i < interpolants.size(); i++)
|
for(unsigned i = 0; i < interpolants.size(); i++)
|
||||||
|
@ -104,8 +104,8 @@ extern "C" {
|
||||||
Z3_lbool Z3_interpolate(Z3_context ctx,
|
Z3_lbool Z3_interpolate(Z3_context ctx,
|
||||||
int num,
|
int num,
|
||||||
Z3_ast *cnsts,
|
Z3_ast *cnsts,
|
||||||
int *parents,
|
unsigned *parents,
|
||||||
Z3_interpolation_options options,
|
Z3_params options,
|
||||||
Z3_ast *interps,
|
Z3_ast *interps,
|
||||||
Z3_model *model,
|
Z3_model *model,
|
||||||
Z3_literals *labels,
|
Z3_literals *labels,
|
||||||
|
|
|
@ -7750,24 +7750,23 @@ END_MLAPI_EXCLUDE
|
||||||
are considered to have global scope (i.e., may appear in any
|
are considered to have global scope (i.e., may appear in any
|
||||||
interpolant formula).
|
interpolant formula).
|
||||||
|
|
||||||
def_API('Z3_interpolate', LBOOL, (_in(CONTEXT),), (_in(INT),), (_in_ptr(AST),),
|
def_API('Z3_interpolate', INT, (_in(CONTEXT), _in(INT), _in_array(1,AST), _in_array(1,UINT), _in(PARAMS), _out_array(1,AST), _out(MODEL), _out(LITERALS), _in(BOOL), _in(INT), _in_array(9,AST),))
|
||||||
(_in_ptr(INT),), (_in(PARAMS),), (_in_ptr(AST),),
|
|
||||||
(_out(MODEL),), (_out(LITERALS),), (_in(BOOL),), (_in(INT),), (_in_ptr(AST,0),))
|
|
||||||
|
|
||||||
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
Z3_lbool Z3_API Z3_interpolate(Z3_context ctx,
|
Z3_lbool Z3_API Z3_interpolate(__in Z3_context ctx,
|
||||||
int num,
|
__in int num,
|
||||||
Z3_ast *cnsts,
|
__in_ecount(num) Z3_ast *cnsts,
|
||||||
int *parents,
|
__in_ecount(num) unsigned *parents,
|
||||||
Z3_interpolation_options options,
|
__in Z3_params options,
|
||||||
Z3_ast *interps,
|
__out_ecount(num-1) Z3_ast *interps,
|
||||||
Z3_model *model = 0,
|
__out Z3_model *model = 0,
|
||||||
Z3_literals *labels = 0,
|
__out Z3_literals *labels = 0,
|
||||||
bool incremental = false,
|
__in bool incremental = false,
|
||||||
int num_theory = 0,
|
__in int num_theory = 0,
|
||||||
Z3_ast *theory = 0);
|
__in_ecount(num_theory) Z3_ast *theory = 0);
|
||||||
|
|
||||||
/** Return a string summarizing cumulative time used for
|
/** Return a string summarizing cumulative time used for
|
||||||
interpolation. This string is purely for entertainment purposes
|
interpolation. This string is purely for entertainment purposes
|
||||||
|
|
Loading…
Reference in a new issue