mirror of
https://github.com/Z3Prover/z3
synced 2025-10-09 17:31:57 +00:00
delay internalize (#4714)
* adding array solver Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com> * use default in model construction Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com> * debug delay internalization Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com> * bv Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com> * arrays Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com> * get rid of implied values and bounds Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com> * redo egraph * remove out Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com> * remove files Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
25724401cf
commit
367e5fdd52
60 changed files with 1343 additions and 924 deletions
|
@ -559,39 +559,6 @@ extern "C" {
|
|||
Z3_CATCH_RETURN(nullptr);
|
||||
}
|
||||
|
||||
Z3_ast Z3_API Z3_solver_get_implied_value(Z3_context c, Z3_solver s, Z3_ast e) {
|
||||
Z3_TRY;
|
||||
LOG_Z3_solver_get_implied_value(c, s, e);
|
||||
RESET_ERROR_CODE();
|
||||
init_solver(c, s);
|
||||
expr_ref v = to_solver_ref(s)->get_implied_value(to_expr(e));
|
||||
mk_c(c)->save_ast_trail(v);
|
||||
RETURN_Z3(of_ast(v));
|
||||
Z3_CATCH_RETURN(nullptr);
|
||||
}
|
||||
|
||||
Z3_ast Z3_API Z3_solver_get_implied_lower(Z3_context c, Z3_solver s, Z3_ast e) {
|
||||
Z3_TRY;
|
||||
LOG_Z3_solver_get_implied_lower(c, s, e);
|
||||
RESET_ERROR_CODE();
|
||||
init_solver(c, s);
|
||||
expr_ref v = to_solver_ref(s)->get_implied_lower_bound(to_expr(e));
|
||||
mk_c(c)->save_ast_trail(v);
|
||||
RETURN_Z3(of_ast(v));
|
||||
Z3_CATCH_RETURN(nullptr);
|
||||
}
|
||||
|
||||
Z3_ast Z3_API Z3_solver_get_implied_upper(Z3_context c, Z3_solver s, Z3_ast e) {
|
||||
Z3_TRY;
|
||||
LOG_Z3_solver_get_implied_upper(c, s, e);
|
||||
RESET_ERROR_CODE();
|
||||
init_solver(c, s);
|
||||
expr_ref v = to_solver_ref(s)->get_implied_upper_bound(to_expr(e));
|
||||
mk_c(c)->save_ast_trail(v);
|
||||
RETURN_Z3(of_ast(v));
|
||||
Z3_CATCH_RETURN(nullptr);
|
||||
}
|
||||
|
||||
static Z3_lbool _solver_check(Z3_context c, Z3_solver s, unsigned num_assumptions, Z3_ast const assumptions[]) {
|
||||
for (unsigned i = 0; i < num_assumptions; i++) {
|
||||
if (!is_expr(to_ast(assumptions[i]))) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue