ABC: A System for Sequential Synthesis and Verification
 
Loading...
Searching...
No Matches
CaDiCaL::Config Struct Reference

#include <config.hpp>

Static Public Member Functions

static bool has (const char *)
 
static bool set (Options &, const char *)
 
static void usage ()
 
static const char ** begin ()
 
static const char ** end ()
 

Detailed Description

Definition at line 12 of file config.hpp.

Member Function Documentation

◆ begin()

const char ** CaDiCaL::Config::begin ( )
static

Definition at line 102 of file cadical_config.cpp.

102{ return configs; }

◆ end()

const char ** CaDiCaL::Config::end ( )
static

Definition at line 103 of file cadical_config.cpp.

103{ return &configs[num_configs]; }

◆ has()

bool CaDiCaL::Config::has ( const char * name)
static

Definition at line 57 of file cadical_config.cpp.

57 {
58#define CONFIG(N, D) \
59 if (!strcmp (name, #N)) \
60 return true;
62#undef CONFIG
63 return false;
64}
#define CONFIGS
Here is the caller graph for this function:

◆ set()

bool CaDiCaL::Config::set ( Options & opts,
const char * name )
static

Definition at line 66 of file cadical_config.cpp.

66 {
67 if (!strcmp (name, "default")) {
68 opts.reset_default_values ();
69 return true;
70 }
71 if (!strcmp (name, "plain")) {
72 opts.disable_preprocessing ();
73 return true;
74 }
75#define CONFIG(N, D) \
76 do { \
77 if (strcmp (name, #N)) \
78 break; \
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); \
84 } \
85 return true; \
86 } while (0);
88#undef CONFIG
89 return false;
90}
char * name
Definition main.h:24
int strcmp()
Here is the call graph for this function:
Here is the caller graph for this function:

◆ usage()

void CaDiCaL::Config::usage ( )
static

Definition at line 94 of file cadical_config.cpp.

94 {
95#define CONFIG(N, D) printf (" %-14s " D "\n", "--" #N);
97#undef CONFIG
98}
Here is the caller graph for this function:

The documentation for this struct was generated from the following files: