18 package com.microsoft.z3;
32 return Native.solverGetHelp(getContext().nCtx(), getNativeObject());
42 getContext().checkContextMatch(value);
43 Native.solverSetParams(getContext().nCtx(), getNativeObject(),
44 value.getNativeObject());
55 getContext().nCtx(), getNativeObject()));
66 .solverGetNumScopes(getContext().nCtx(), getNativeObject());
75 Native.solverPush(getContext().nCtx(), getNativeObject());
94 public void pop(
int n)
96 Native.solverPop(getContext().nCtx(), getNativeObject(), n);
106 Native.solverReset(getContext().nCtx(), getNativeObject());
116 getContext().checkContextMatch(constraints);
119 Native.solverAssert(getContext().nCtx(), getNativeObject(),
120 a.getNativeObject());
140 getContext().checkContextMatch(constraints);
141 getContext().checkContextMatch(ps);
142 if (constraints.length != ps.length)
145 for (
int i = 0; i < constraints.length; i++)
147 constraints[i].getNativeObject(), ps[i].getNativeObject());
165 getContext().checkContextMatch(constraint);
166 getContext().checkContextMatch(p);
168 Native.solverAssertAndTrack(getContext().nCtx(), getNativeObject(),
169 constraint.getNativeObject(), p.getNativeObject());
180 return assrts.size();
191 return assrts.ToBoolExprArray();
204 if (assumptions == null)
205 r = Z3_lbool.fromInt(Native.solverCheck(getContext().nCtx(),
208 r = Z3_lbool.fromInt(Native.solverCheckAssumptions(getContext()
209 .nCtx(), getNativeObject(), (int) assumptions.length,
AST
210 .arrayToNative(assumptions)));
245 long x = Native.solverGetModel(getContext().nCtx(), getNativeObject());
249 return new Model(getContext(), x);
263 long x = Native.solverGetProof(getContext().nCtx(), getNativeObject());
267 return Expr.create(getContext(), x);
283 return core.ToBoolExprArray();
292 return Native.solverGetReasonUnknown(getContext().nCtx(),
304 getContext().nCtx(), getNativeObject()));
315 .solverToString(getContext().nCtx(), getNativeObject());
318 return "Z3Exception: " + e.getMessage();
329 getContext().getSolverDRQ().incAndClear(getContext(), o);
335 getContext().getSolverDRQ().
add(o);
ParamDescrs getParameterDescriptions()
void assertAndTrack(BoolExpr[] constraints, BoolExpr[] ps)
static long solverGetParamDescrs(long a0, long a1)
static long solverGetStatistics(long a0, long a1)
void setParameters(Params value)
Status check(Expr...assumptions)
void assertAndTrack(BoolExpr constraint, BoolExpr p)
void add(BoolExpr...constraints)
String getReasonUnknown()
Z3_lbool
Lifted Boolean type: false, undefined, true.
static void solverAssertAndTrack(long a0, long a1, long a2, long a3)
BoolExpr[] getUnsatCore()
Statistics getStatistics()
static long solverGetAssertions(long a0, long a1)
static long solverGetUnsatCore(long a0, long a1)
BoolExpr[] getAssertions()