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());
57 getContext().nCtx(), getNativeObject()));
67 getContext().checkContextMatch(constraints);
70 Native.fixedpointAssert(getContext().nCtx(), getNativeObject(),
83 getContext().checkContextMatch(f);
84 Native.fixedpointRegisterRelation(getContext().nCtx(), getNativeObject(),
96 getContext().checkContextMatch(rule);
97 Native.fixedpointAddRule(getContext().nCtx(), getNativeObject(),
98 rule.getNativeObject(),
AST.getNativeObject(name));
108 getContext().checkContextMatch(pred);
109 Native.fixedpointAddFact(getContext().nCtx(), getNativeObject(),
110 pred.getNativeObject(), (
int) args.length, args);
125 getContext().checkContextMatch(
query);
126 Z3_lbool r = Z3_lbool.fromInt(Native.fixedpointQuery(getContext().nCtx(),
127 getNativeObject(), query.getNativeObject()));
150 getContext().checkContextMatch(relations);
151 Z3_lbool r = Z3_lbool.fromInt(Native.fixedpointQueryRelations(getContext()
152 .nCtx(), getNativeObject(), AST.arrayLength(relations),
AST
153 .arrayToNative(relations)));
171 Native.fixedpointPush(getContext().nCtx(), getNativeObject());
183 Native.fixedpointPop(getContext().nCtx(), getNativeObject());
194 getContext().checkContextMatch(rule);
195 Native.fixedpointUpdateRule(getContext().nCtx(), getNativeObject(),
196 rule.getNativeObject(),
AST.getNativeObject(name));
207 long ans = Native.fixedpointGetAnswer(getContext().nCtx(), getNativeObject());
208 return (ans == 0) ? null : Expr.create(getContext(), ans);
216 return Native.fixedpointGetReasonUnknown(getContext().nCtx(),
225 return Native.fixedpointGetNumLevels(getContext().nCtx(), getNativeObject(),
226 predicate.getNativeObject());
236 long res = Native.fixedpointGetCoverDelta(getContext().nCtx(),
237 getNativeObject(), level, predicate.getNativeObject());
238 return (res == 0) ? null : Expr.create(getContext(), res);
248 Native.fixedpointAddCover(getContext().nCtx(), getNativeObject(), level,
249 predicate.getNativeObject(), property.getNativeObject());
259 return Native.fixedpointToString(getContext().nCtx(), getNativeObject(),
263 return "Z3Exception: " + e.getMessage();
274 Native.fixedpointSetPredicateRepresentation(getContext().nCtx(),
275 getNativeObject(), f.getNativeObject(),
AST.arrayLength(kinds),
276 Symbol.arrayToNative(kinds));
286 return Native.fixedpointToString(getContext().nCtx(), getNativeObject(),
287 AST.arrayLength(queries),
AST.arrayToNative(queries));
298 return v.ToBoolExprArray();
309 return v.ToBoolExprArray();
320 getContext().nCtx(), getNativeObject()));
331 return av.ToBoolExprArray();
342 return av.ToBoolExprArray();
351 Fixedpoint(Context ctx)
353 super(ctx, Native.mkFixedpoint(ctx.nCtx()));
358 getContext().getFixedpointDRQ().incAndClear(getContext(), o);
364 getContext().getFixedpointDRQ().
add(o);
BoolExpr[] ParseString(String s)
void setPredicateRepresentation(FuncDecl f, Symbol[] kinds)
void updateRule(BoolExpr rule, Symbol name)
BoolExpr[] getAssertions()
void add(BoolExpr...constraints)
Status query(BoolExpr query)
static long fixedpointFromString(long a0, long a1, String a2)
Status query(FuncDecl[] relations)
void addCover(int level, FuncDecl predicate, Expr property)
static long fixedpointGetParamDescrs(long a0, long a1)
void setParameters(Params value)
static long fixedpointGetRules(long a0, long a1)
void addFact(FuncDecl pred, int...args)
Z3_lbool
Lifted Boolean type: false, undefined, true.
Expr getCoverDelta(int level, FuncDecl predicate)
static long fixedpointFromFile(long a0, long a1, String a2)
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()
static long fixedpointGetStatistics(long a0, long a1)
static long fixedpointGetAssertions(long a0, long a1)
Statistics getStatistics()