18 package com.microsoft.z3;
33 return Native.fixedpointGetHelp(getContext().nCtx(), getNativeObject());
44 getContext().checkContextMatch(value);
45 Native.fixedpointSetParams(getContext().nCtx(), getNativeObject(),
46 value.getNativeObject());
56 return new ParamDescrs(getContext(), Native.fixedpointGetParamDescrs(
57 getContext().nCtx(), getNativeObject()));
67 getContext().checkContextMatch(constraints);
70 Native.fixedpointAssert(getContext().nCtx(), getNativeObject(),
83 getContext().checkContextMatch(f);
84 Native.fixedpointRegisterRelation(getContext().nCtx(), getNativeObject(),
95 getContext().checkContextMatch(rule);
96 Native.fixedpointAddRule(getContext().nCtx(), getNativeObject(),
97 rule.getNativeObject(),
AST.getNativeObject(name));
106 getContext().checkContextMatch(pred);
107 Native.fixedpointAddFact(getContext().nCtx(), getNativeObject(),
108 pred.getNativeObject(), args.length, args);
121 getContext().checkContextMatch(
query);
123 getNativeObject(),
query.getNativeObject()));
144 getContext().checkContextMatch(relations);
146 .nCtx(), getNativeObject(),
AST.arrayLength(relations),
AST 147 .arrayToNative(relations)));
164 Native.fixedpointPush(getContext().nCtx(), getNativeObject());
175 Native.fixedpointPop(getContext().nCtx(), getNativeObject());
185 getContext().checkContextMatch(rule);
186 Native.fixedpointUpdateRule(getContext().nCtx(), getNativeObject(),
187 rule.getNativeObject(),
AST.getNativeObject(name));
198 long ans = Native.fixedpointGetAnswer(getContext().nCtx(), getNativeObject());
199 return (ans == 0) ? null :
Expr.create(getContext(), ans);
207 return Native.fixedpointGetReasonUnknown(getContext().nCtx(),
216 return Native.fixedpointGetNumLevels(getContext().nCtx(), getNativeObject(),
217 predicate.getNativeObject());
227 long res = Native.fixedpointGetCoverDelta(getContext().nCtx(),
228 getNativeObject(), level, predicate.getNativeObject());
229 return (res == 0) ? null :
Expr.create(getContext(), res);
239 Native.fixedpointAddCover(getContext().nCtx(), getNativeObject(), level,
240 predicate.getNativeObject(),
property.getNativeObject());
249 return Native.fixedpointToString(getContext().nCtx(), getNativeObject(),
260 Native.fixedpointSetPredicateRepresentation(getContext().nCtx(),
261 getNativeObject(), f.getNativeObject(),
AST.arrayLength(kinds),
262 Symbol.arrayToNative(kinds));
272 return Native.fixedpointToString(getContext().nCtx(), getNativeObject(),
273 AST.arrayLength(queries),
AST.arrayToNative(queries));
283 ASTVector v =
new ASTVector(getContext(), Native.fixedpointGetRules(getContext().nCtx(), getNativeObject()));
294 ASTVector v =
new ASTVector(getContext(), Native.fixedpointGetAssertions(getContext().nCtx(), getNativeObject()));
305 return new Statistics(getContext(), Native.fixedpointGetStatistics(
306 getContext().nCtx(), getNativeObject()));
316 ASTVector av =
new ASTVector(getContext(), Native.fixedpointFromFile(getContext().nCtx(), getNativeObject(), file));
327 ASTVector av =
new ASTVector(getContext(), Native.fixedpointFromString(getContext().nCtx(), getNativeObject(), s));
337 Fixedpoint(Context ctx)
339 super(ctx, Native.mkFixedpoint(ctx.nCtx()));
344 Native.fixedpointIncRef(getContext().nCtx(), getNativeObject());
348 void addToReferenceQueue() {
353 void checkNativeObject(
long obj) { }
BoolExpr [] ParseString(String s)
void setPredicateRepresentation(FuncDecl f, Symbol[] kinds)
void addFact(FuncDecl pred, int ... args)
void updateRule(BoolExpr rule, Symbol name)
BoolExpr [] getAssertions()
IDecRefQueue< Fixedpoint > getFixedpointDRQ()
Status query(BoolExpr query)
void add(BoolExpr ... constraints)
Status query(FuncDecl[] relations)
void addCover(int level, FuncDecl predicate, Expr property)
BoolExpr [] ToBoolExprArray()
void setParameters(Params value)
void storeReference(Context ctx, T obj)
Z3_lbool
Lifted Boolean type: false, undefined, true.
Expr getCoverDelta(int level, FuncDecl predicate)
String toString(BoolExpr[] queries)
BoolExpr [] ParseFile(String file)
ParamDescrs getParameterDescriptions()
void registerRelation(FuncDecl f)
int getNumLevels(FuncDecl predicate)
void addRule(BoolExpr rule, Symbol name)
String getReasonUnknown()
def String(name, ctx=None)
Statistics getStatistics()