solver_get_model method

Z3_model solver_get_model(
  1. Z3_context c,
  2. Z3_solver s
)

\brief Retrieve the model for the last #Z3_solver_check or #Z3_solver_check_assumptions

The error handler is invoked if a model is not available because the commands above were not invoked for the given solver, or if the result was \c Z3_L_FALSE.

def_API('Z3_solver_get_model', MODEL, (_in(CONTEXT), _in(SOLVER)))

Implementation

Z3_model solver_get_model(
  Z3_context c,
  Z3_solver s,
) {
  return _solver_get_model(
    c,
    s,
  );
}