Function clingo_sys::clingo_solve_handle_get [] [src]

pub unsafe extern "C" fn clingo_solve_handle_get(
    handle: *mut clingo_solve_handle_t,
    result: *mut clingo_solve_result_bitset_t
) -> bool

Get the next solve result.

Blocks until the result is ready. When yielding partial solve results can be obtained, i.e., when a model is ready, the result will be satisfiable but neither the search exhausted nor the optimality proven.

Parameters:

  • handle - the target
  • result - the solve result

Returns whether the call was successful; might set one of the following error codes:

  • ::clingo_error_bad_alloc
  • ::clingo_error_runtime if solving fails