https://github.com/TakehideSoh/SAF
Tip revision: d26cc9f94a4f79c046ee0cdd3a127a44f7b443b6 authored by TakehideSoh on 23 June 2023, 07:02:26 UTC
Merge pull request #2 from TakehideSoh/dev
Merge pull request #2 from TakehideSoh/dev
Tip revision: d26cc9f
ipasir.h
#ifndef _ipasir_h_INCLUDED
#define _ipasir_h_INCLUDED
/*------------------------------------------------------------------------*/
#ifdef __cplusplus
extern "C" {
#endif
/*------------------------------------------------------------------------*/
// Here are the declarations for the actual IPASIR functions, which is the
// generic incremental reentrant SAT solver API used for instance in the SAT
// competition. The other 'C' API in 'ccadical.h' is (more) type safe and
// has additional functions only supported by the CaDiCaL library. Please
// also refer to our SAT Race 2015 article in the Journal of AI from 2016.
const char * ipasir_signature (void);
void * ipasir_init (void);
void ipasir_release (void * solver);
void ipasir_add (void * solver, int lit);
void ipasir_add_lits (void * solver, int * lits, int length);
void ipasir_assume (void * solver, int lit);
int ipasir_solve (void * solver);
int ipasir_val (void * solver, int lit);
int ipasir_failed (void * solver, int lit);
void ipasir_set_terminate (void * solver,
void * state, int (*terminate)(void * state));
void ipasir_set_learn (void * solver,
void * state, int max_length,
void (*learn)(void * state, int * clause));
/*------------------------------------------------------------------------*/
#ifdef __cplusplus
}
#endif
/*------------------------------------------------------------------------*/
#endif
