-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
resolves #58
- Loading branch information
Showing
20 changed files
with
558 additions
and
96 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,30 @@ | ||
// CaDiCaL C API Extension (Christoph Jabs) | ||
// To be included at the bottom of `ccadical.h` | ||
|
||
#include <stdbool.h> | ||
#include <stddef.h> | ||
|
||
const int OUT_OF_MEM = 50; | ||
|
||
int ccadical_add_mem(CCaDiCaL *wrapper, int lit); | ||
int ccadical_assume_mem(CCaDiCaL *wrapper, int lit); | ||
int ccadical_constrain_mem(CCaDiCaL *wrapper, int lit); | ||
int ccadical_solve_mem(CCaDiCaL *wrapper); | ||
bool ccadical_configure(CCaDiCaL *ptr, const char *name); | ||
int ccadical_configure(CCaDiCaL *ptr, const char *name); | ||
void ccadical_phase(CCaDiCaL *ptr, int lit); | ||
void ccadical_unphase(CCaDiCaL *ptr, int lit); | ||
int ccadical_vars(CCaDiCaL *ptr); | ||
bool ccadical_set_option_ret(CCaDiCaL *wrapper, const char *name, int val); | ||
bool ccadical_limit_ret(CCaDiCaL *wrapper, const char *name, int val); | ||
int ccadical_set_option_ret(CCaDiCaL *wrapper, const char *name, int val); | ||
int ccadical_limit_ret(CCaDiCaL *wrapper, const char *name, int val); | ||
int64_t ccadical_redundant(CCaDiCaL *wrapper); | ||
int ccadical_simplify_rounds(CCaDiCaL *wrapper, int rounds); | ||
int ccadical_reserve(CCaDiCaL *wrapper, int min_max_var); | ||
int64_t ccadical_propagations(CCaDiCaL *wrapper); | ||
int64_t ccadical_decisions(CCaDiCaL *wrapper); | ||
int64_t ccadical_conflicts(CCaDiCaL *wrapper); | ||
#ifdef FLIP | ||
bool ccadical_flip(CCaDiCaL *wrapper, int lit); | ||
bool ccadical_flippable(CCaDiCaL *wrapper, int lit); | ||
int ccadical_flip(CCaDiCaL *wrapper, int lit); | ||
int ccadical_flippable(CCaDiCaL *wrapper, int lit); | ||
#endif | ||
int ccadical_propcheck(CCaDiCaL *wrapper, const int *assumps, | ||
size_t assumps_len, int psaving, | ||
void (*prop_cb)(void *, int), void *cb_data); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.