Path: blob/master/src/sage/sat/solvers/cryptominisat/solverconf_helper.h
8823 views
/**1* @file solverconf_helper.h2*3* This file implements a map from option names to C++ class4* members. This map allows to maintain only one list of options in5* the whole Cython interface which means that maintainance is easier6* if CryptoMiniSat's interface should change.7*/89/*****************************************************************************10* Copyright (C) 2012 Martin Albrecht <[email protected]>11* Distributed under the terms of the GNU General Public License (GPL)12* The full text of the GPL is available at:13* http://www.gnu.org/licenses/14****************************************************************************/1516#include <cmsat/SolverConf.h>1718enum sc_type {19t_int = 1<<0,20t_float = 1<<1,21t_double = 1<<2,22t_Var = 1<<3,23t_bool = 1<<4,24t_uint32_t = 1<<5,25t_uint64_t = 1<<6,26};2728typedef struct {29sc_type type;30const char *name;31void *target;32const char *doc;33} sc_entry;3435size_t setup_map(sc_entry *entries, CMSat::SolverConf &solver_conf, const size_t n);363738