Function clingo_sys::clingo_solve_control_add_clause
[−]
[src]
pub unsafe extern "C" fn clingo_solve_control_add_clause(
control: *mut clingo_solve_control_t,
clause: *const clingo_literal_t,
size: usize
) -> bool
Add a clause that applies to the current solving step during model enumeration.
Note: The @ref Propagator module provides a more sophisticated interface to add clauses - even on partial assignments.
Parameters:
control
the targetclause
array of literals representing the clausesize
the size of the literal array
Returns whether the call was successful; might set one of the following error codes: - ::clingo_error_bad_alloc - ::clingo_error_runtime if adding the clause fails