mirror of
https://github.com/Z3Prover/z3
synced 2025-04-12 20:18:18 +00:00
ML API bugfix
Signed-off-by: Christoph M. Wintersteiger <cwinter@microsoft.com>
This commit is contained in:
parent
54b7f8eec3
commit
ee22d40542
|
@ -793,7 +793,7 @@ end = struct
|
||||||
mk_list f n
|
mk_list f n
|
||||||
|
|
||||||
let update ( x : expr ) ( args : expr list ) =
|
let update ( x : expr ) ( args : expr list ) =
|
||||||
if (List.length args <> (get_num_args x)) then
|
if ((AST.is_app (ast_of_expr x)) && (List.length args <> (get_num_args x))) then
|
||||||
raise (Z3native.Exception "Number of arguments does not match")
|
raise (Z3native.Exception "Number of arguments does not match")
|
||||||
else
|
else
|
||||||
expr_of_ptr (Expr.gc x) (Z3native.update_term (gnc x) (gno x) (List.length args) (expr_lton args))
|
expr_of_ptr (Expr.gc x) (Z3native.update_term (gnc x) (gno x) (List.length args) (expr_lton args))
|
||||||
|
|
Loading…
Reference in a new issue