20static NameVal default_config[1];
30 {
"subsumeeffort", 60},
33static NameVal unsat_config[] = {
42 CONFIG (default, "set default advanced internal options") \
43 CONFIG (plain, "disable all internal preprocessing options") \
44 CONFIG (sat, "set internal options to target satisfiable instances") \
45 CONFIG (unsat, "set internal options to target unsatisfiable instances")
47static const char *configs[] = {
48#define CONFIG(N, D) #N,
53static size_t num_configs =
sizeof configs /
sizeof *configs;
59 if (!strcmp (name, #N)) \
68 opts.reset_default_values ();
72 opts.disable_preprocessing ();
77 if (strcmp (name, #N)) \
79 const NameVal *BEGIN = N##_config; \
80 const NameVal *END = BEGIN + sizeof N##_config / sizeof (NameVal); \
81 for (const NameVal *P = BEGIN; P != END; P++) { \
82 CADICAL_assert (Options::has (P->name)); \
83 opts.set (P->name, P->val); \
95#define CONFIG(N, D) printf (" %-14s " D "\n", "--" #N);
#define ABC_NAMESPACE_IMPL_START
#define ABC_NAMESPACE_IMPL_END
static const char ** end()
static bool has(const char *)
static bool set(Options &, const char *)
static const char ** begin()