Function clingo_sys::clingo_theory_atoms_element_condition_id [] [src]

pub unsafe extern "C" fn clingo_theory_atoms_element_condition_id(
    atoms: *mut clingo_theory_atoms_t,
    element: clingo_id_t,
    condition: *mut clingo_literal_t
) -> bool

Get the id of the condition of the given theory element.

Note: This id can be mapped to a solver literal using clingo_propagate_init_solver_literal(). This id is not (necessarily) an aspif literal; to get aspif literals use clingo_theory_atoms_element_condition().

Parameters:

  • atoms container where the element is stored
  • element id of the element
  • condition the resulting condition id

Returns whether the call was successful