MCPcopy Create free account
hub / github.com/Z3Prover/z3 / translate

Method translate

src/api/java/AST.java:90–97  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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.

Callers 5

Z3_solver_add_simplifierFunction · 0.45
Z3_solver_translateFunction · 0.45
Z3_goal_translateFunction · 0.45
Z3_model_translateFunction · 0.45
Z3_optimize_translateFunction · 0.45

Calls 4

createMethod · 0.95
getContextMethod · 0.80
nCtxMethod · 0.80
getNativeObjectMethod · 0.80

Tested by

no test coverage detected