Translates (copies) the AST to the Context ctx. @param ctx A context @return A copy of the AST which is associated with ctx @throws Z3Exception on error
(Context ctx)
| 88 | * @throws Z3Exception on error |
| 89 | **/ |
| 90 | public AST translate(Context ctx) |
| 91 | { |
| 92 | if (getContext() == ctx) { |
| 93 | return this; |
| 94 | } else { |
| 95 | return create(ctx, Native.translate(getContext().nCtx(), getNativeObject(), ctx.nCtx())); |
| 96 | } |
| 97 | } |
| 98 | |
| 99 | /** |
| 100 | * The kind of the AST. |
no test coverage detected