-
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.
refactor: use bindgen to generate solver bindings
- Loading branch information
Showing
32 changed files
with
385 additions
and
363 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 |
---|---|---|
@@ -0,0 +1,27 @@ | ||
// CaDiCaL C API Extension (Christoph Jabs) | ||
// To be included at the bottom of `ccadical.h` | ||
|
||
#include <stdbool.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); | ||
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); | ||
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); | ||
#endif |
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
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
Oops, something went wrong.