Clingo C API
C API for clingo providing high level functions to control grounding and solving.
|
Functions and data structures to inspect programs.
Classes | |
struct | clingo_weighted_literal |
A Literal with an associated weight. More... | |
struct | clingo_ground_program_observer |
An instance of this struct has to be registered with a solver to observe ground directives as they are passed to the solver. More... | |
Typedefs | |
typedef int | clingo_heuristic_type_t |
Corresponding type to clingo_heuristic_type. | |
typedef int | clingo_external_type_t |
Corresponding type to clingo_external_type. | |
typedef struct clingo_weighted_literal | clingo_weighted_literal_t |
A Literal with an associated weight. | |
typedef struct clingo_ground_program_observer | clingo_ground_program_observer_t |
An instance of this struct has to be registered with a solver to observe ground directives as they are passed to the solver. More... | |
Enumerations | |
enum | clingo_heuristic_type { clingo_heuristic_type_level = 0, clingo_heuristic_type_sign = 1, clingo_heuristic_type_factor = 2, clingo_heuristic_type_init = 3, clingo_heuristic_type_true = 4, clingo_heuristic_type_false = 5 } |
Enumeration of different heuristic modifiers. More... | |
enum | clingo_external_type { clingo_external_type_free = 0, clingo_external_type_true = 1, clingo_external_type_false = 2, clingo_external_type_release = 3 } |
Enumeration of different external statements. More... | |
typedef struct clingo_ground_program_observer clingo_ground_program_observer_t |
An instance of this struct has to be registered with a solver to observe ground directives as they are passed to the solver.
Not all callbacks have to be implemented and can be set to NULL if not needed. If one of the callbacks in the struct fails, grounding is stopped. If a non-recoverable clingo API call fails, a callback must return false. Otherwise clingo_error_unknown should be set and false returned.
enum clingo_external_type |
Enumeration of different heuristic modifiers.