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

Method Assert

src/api/java/Optimize.java:61–68  ·  view source on GitHub ↗

Assert a constraint (or multiple) into the optimize solver.

(Expr<BoolSort>... constraints)

Source from the content-addressed store, hash-verified

59 * Assert a constraint (or multiple) into the optimize solver.
60 **/
61 public void Assert(Expr<BoolSort>... constraints)
62 {
63 getContext().checkContextMatch(constraints);
64 for (Expr<BoolSort> a : constraints)
65 {
66 Native.optimizeAssert(getContext().nCtx(), getNativeObject(), a.getNativeObject());
67 }
68 }
69
70 /**
71 * Alias for Assert.

Callers 1

AddMethod · 0.95

Calls 4

checkContextMatchMethod · 0.80
getContextMethod · 0.80
nCtxMethod · 0.80
getNativeObjectMethod · 0.80

Tested by

no test coverage detected