mirror of
https://github.com/Z3Prover/z3
synced 2025-04-15 13:28:47 +00:00
removing tabs
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
54e8612f4d
commit
5262e1986c
|
@ -807,15 +807,15 @@ end = struct
|
|||
let gno e = match e with Expr(a) -> (z3obj_gno a)
|
||||
|
||||
let expr_of_ptr : context -> Z3native.ptr -> expr = fun ctx no ->
|
||||
let e = z3_native_object_of_ast_ptr ctx no in
|
||||
if ast_kind_of_int (Z3native.get_ast_kind (context_gno ctx) no) == QUANTIFIER_AST then
|
||||
Expr(z3_native_object_of_ast_ptr ctx no)
|
||||
Expr(e)
|
||||
else
|
||||
let s = Z3native.get_sort (context_gno ctx) no in
|
||||
let sk = (sort_kind_of_int (Z3native.get_sort_kind (context_gno ctx) s)) in
|
||||
if (Z3native.is_algebraic_number (context_gno ctx) no) then
|
||||
Expr(z3_native_object_of_ast_ptr ctx no)
|
||||
else
|
||||
if (Z3native.is_numeral_ast (context_gno ctx) no) then
|
||||
Expr(e)
|
||||
else if (Z3native.is_numeral_ast (context_gno ctx) no) then
|
||||
match sk with
|
||||
| REAL_SORT
|
||||
| BOOL_SORT
|
||||
|
@ -827,12 +827,10 @@ end = struct
|
|||
| FLOATING_POINT_SORT
|
||||
| INT_SORT
|
||||
| DATATYPE_SORT
|
||||
| FINITE_DOMAIN_SORT ->
|
||||
Expr(z3_native_object_of_ast_ptr ctx no)
|
||||
| _ ->
|
||||
raise (Z3native.Exception "Unsupported numeral object")
|
||||
| FINITE_DOMAIN_SORT -> Expr(e)
|
||||
| _ -> raise (Z3native.Exception "Unsupported numeral object")
|
||||
else
|
||||
Expr(z3_native_object_of_ast_ptr ctx no)
|
||||
Expr(e)
|
||||
|
||||
let expr_of_ast a =
|
||||
let q = (Z3enums.ast_kind_of_int (Z3native.get_ast_kind (z3obj_gnc a) (z3obj_gno a))) in
|
||||
|
|
Loading…
Reference in a new issue