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

Method query

src/api/java/Fixedpoint.java:123–136  ·  view source on GitHub ↗

Query the fixedpoint solver. A query is a conjunction of constraints. The constraints may include the recursively defined relations. The query is satisfiable if there is an instance of the query variables and a derivation for it. The query is unsatisfiable if there are no derivations satisfying the

(Expr<BoolSort> query)

Source from the content-addressed store, hash-verified

121 * @throws Z3Exception
122 **/
123 public Status query(Expr<BoolSort> query) {
124 getContext().checkContextMatch(query);
125 Z3_lbool r = Z3_lbool.fromInt(Native.fixedpointQuery(getContext().nCtx(),
126 getNativeObject(), query.getNativeObject()));
127 switch (r)
128 {
129 case Z3_L_TRUE:
130 return Status.SATISFIABLE;
131 case Z3_L_FALSE:
132 return Status.UNSATISFIABLE;
133 default:
134 return Status.UNKNOWN;
135 }
136 }
137
138 /**
139 * Query the fixedpoint solver. A query is an array of relations. The query

Callers

nothing calls this directly

Calls 7

checkContextMatchMethod · 0.80
getContextMethod · 0.80
fromIntMethod · 0.80
nCtxMethod · 0.80
getNativeObjectMethod · 0.80
arrayLengthMethod · 0.80
arrayToNativeMethod · 0.80

Tested by

no test coverage detected