optimize_get_model method

Z3_model optimize_get_model(
  1. Z3_context c,
  2. Z3_optimize o
)

\brief Retrieve the model for the last #Z3_optimize_check

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

def_API('Z3_optimize_get_model', MODEL, (_in(CONTEXT), _in(OPTIMIZE)))

Implementation

Z3_model optimize_get_model(
  Z3_context c,
  Z3_optimize o,
) {
  return _optimize_get_model(
    c,
    o,
  );
}