cloud-sat/workers/basekissat.hpp
2022-09-08 13:54:29 +08:00

27 lines
850 B
C++

#include "basesolver.hpp"
#include "clause.hpp"
#include <boost/thread/thread.hpp>
#include <boost/lockfree/spsc_queue.hpp>
struct kissat;
class basekissat : public basesolver {
public:
void parse_dimacs(char* filename);
void import_original_clause(preprocess *pre);
void diversity(int id);
void terminate();
int solve();
void get_model(vec<int> &model);
int get_reset_data();
void reset();
void export_clauses_to(vec<clause_store *> &clauses);
void import_clauses_from(vec<clause_store *> &clauses);
basekissat(int id, light *light);
~basekissat();
kissat* solver;
int good_clause_lbd = 0;
boost::lockfree::spsc_queue<clause_store*, boost::lockfree::capacity<1024000>> import_clause;
boost::lockfree::spsc_queue<clause_store*, boost::lockfree::capacity<1024000>> export_clause;
};