mirror of
https://github.com/Z3Prover/z3
synced 2025-05-13 18:54:43 +00:00
use Z3_char_ptr
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
f4b803de95
commit
7e174f50c1
10 changed files with 29 additions and 28 deletions
|
@ -804,7 +804,7 @@ extern "C" {
|
|||
RESET_ERROR_CODE();
|
||||
ast_manager& m = mk_c(c)->m();
|
||||
expr* a = to_expr(_a);
|
||||
expr* const* args = to_exprs(_args);
|
||||
expr* const* args = to_exprs(num_args, _args);
|
||||
switch(a->get_kind()) {
|
||||
case AST_APP: {
|
||||
app* e = to_app(a);
|
||||
|
@ -843,8 +843,8 @@ extern "C" {
|
|||
RESET_ERROR_CODE();
|
||||
ast_manager & m = mk_c(c)->m();
|
||||
expr * a = to_expr(_a);
|
||||
expr * const * from = to_exprs(_from);
|
||||
expr * const * to = to_exprs(_to);
|
||||
expr * const * from = to_exprs(num_exprs, _from);
|
||||
expr * const * to = to_exprs(num_exprs, _to);
|
||||
expr * r = nullptr;
|
||||
for (unsigned i = 0; i < num_exprs; i++) {
|
||||
if (m.get_sort(from[i]) != m.get_sort(to[i])) {
|
||||
|
@ -875,7 +875,7 @@ extern "C" {
|
|||
RESET_ERROR_CODE();
|
||||
ast_manager & m = mk_c(c)->m();
|
||||
expr * a = to_expr(_a);
|
||||
expr * const * to = to_exprs(_to);
|
||||
expr * const * to = to_exprs(num_exprs, _to);
|
||||
var_subst subst(m, false);
|
||||
expr_ref new_a = subst(a, num_exprs, to);
|
||||
mk_c(c)->save_ast_trail(new_a);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue