Checks whether the assertions in the solver are consistent or not. Remarks: @see #getModel @see #getUnsatCore @see #getProof
(Expr<BoolSort>... assumptions)
| 233 | * @see #getProof |
| 234 | **/ |
| 235 | @SafeVarargs |
| 236 | public final Status check(Expr<BoolSort>... assumptions) |
| 237 | { |
| 238 | Z3_lbool r; |
| 239 | if (assumptions == null) { |
| 240 | r = Z3_lbool.fromInt(Native.solverCheck(getContext().nCtx(), |
| 241 | getNativeObject())); |
| 242 | } else { |
| 243 | r = Z3_lbool.fromInt(Native.solverCheckAssumptions(getContext() |
| 244 | .nCtx(), getNativeObject(), assumptions.length, AST |
| 245 | .arrayToNative(assumptions))); |
| 246 | } |
| 247 | return lboolToStatus(r); |
| 248 | } |
| 249 | |
| 250 | /** |
| 251 | * Checks whether the assertions in the solver are consistent or not. |
nothing calls this directly
no test coverage detected