Function clingo_sys::clingo_assignment_is_true [] [src]

pub unsafe extern "C" fn clingo_assignment_is_true(
    assignment: *mut clingo_assignment_t,
    literal: clingo_literal_t,
    is_true: *mut bool
) -> bool

Check if a literal is true.

Parameters:

  • assignment the target assignment
  • literal the literal
  • is_true whether the literal is true

Returns whether the call was successful @see clingo_assignment_truth_value()