abc-master
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
globals.c
Go to the documentation of this file.
1 /*
2  * Revision Control Information
3  *
4  * $Source$
5  * $Author$
6  * $Revision$
7  * $Date$
8  *
9  */
10 #include "espresso.h"
11 
13 
14 
15 /*
16  * Global Variable Declarations
17  */
18 
19 unsigned int debug; /* debug parameter */
20 bool verbose_debug; /* -v: whether to print a lot */
21 char *total_name[TIME_COUNT]; /* basic function names */
22 long total_time[TIME_COUNT]; /* time spent in basic fcts */
23 int total_calls[TIME_COUNT]; /* # calls to each fct */
24 
25 bool echo_comments; /* turned off by -eat option */
26 bool echo_unknown_commands; /* always true ?? */
27 bool force_irredundant; /* -nirr command line option */
29 bool kiss; /* -kiss command line option */
30 bool pos; /* -pos command line option */
31 bool print_solution; /* -x command line option */
32 bool recompute_onset; /* -onset command line option */
33 bool remove_essential; /* -ness command line option */
34 bool single_expand; /* -fast command line option */
35 bool summary; /* -s command line option */
36 bool trace; /* -t command line option */
37 bool unwrap_onset; /* -nunwrap command line option */
38 bool use_random_order; /* -random command line option */
39 bool use_super_gasp; /* -strong command line option */
40 char *filename; /* filename PLA was read from */
41 
43  {"-f", F_type},
44  {"-r", R_type},
45  {"-d", D_type},
46  {"-fd", FD_type},
47  {"-fr", FR_type},
48  {"-dr", DR_type},
49  {"-fdr", FDR_type},
50  {"-fc", F_type | CONSTRAINTS_type},
51  {"-rc", R_type | CONSTRAINTS_type},
52  {"-dc", D_type | CONSTRAINTS_type},
53  {"-fdc", FD_type | CONSTRAINTS_type},
54  {"-frc", FR_type | CONSTRAINTS_type},
55  {"-drc", DR_type | CONSTRAINTS_type},
56  {"-fdrc", FDR_type | CONSTRAINTS_type},
57  {"-pleasure", PLEASURE_type},
58  {"-eqn", EQNTOTT_type},
59  {"-eqntott", EQNTOTT_type},
60  {"-kiss", KISS_type},
61  {"-cons", CONSTRAINTS_type},
62  {"-scons", SYMBOLIC_CONSTRAINTS_type},
63  {0, 0}
64 };
65 
66 
69 
70 int bit_count[256] = {
71  0,1,1,2,1,2,2,3,1,2,2,3,2,3,3,4,1,2,2,3,2,3,3,4,2,3,3,4,3,4,4,5,
72  1,2,2,3,2,3,3,4,2,3,3,4,3,4,4,5,2,3,3,4,3,4,4,5,3,4,4,5,4,5,5,6,
73  1,2,2,3,2,3,3,4,2,3,3,4,3,4,4,5,2,3,3,4,3,4,4,5,3,4,4,5,4,5,5,6,
74  2,3,3,4,3,4,4,5,3,4,4,5,4,5,5,6,3,4,4,5,4,5,5,6,4,5,5,6,5,6,6,7,
75  1,2,2,3,2,3,3,4,2,3,3,4,3,4,4,5,2,3,3,4,3,4,4,5,3,4,4,5,4,5,5,6,
76  2,3,3,4,3,4,4,5,3,4,4,5,4,5,5,6,3,4,4,5,4,5,5,6,4,5,5,6,5,6,6,7,
77  2,3,3,4,3,4,4,5,3,4,4,5,4,5,5,6,3,4,4,5,4,5,5,6,4,5,5,6,5,6,6,7,
78  3,4,4,5,4,5,5,6,4,5,5,6,5,6,6,7,4,5,5,6,5,6,6,7,5,6,6,7,6,7,7,8
79 };
81 
#define FD_type
Definition: espresso.h:345
bool skip_make_sparse
Definition: globals.c:28
long total_time[TIME_COUNT]
Definition: globals.c:22
char * filename
Definition: globals.c:40
bool print_solution
Definition: globals.c:31
bool single_expand
Definition: globals.c:34
bool kiss
Definition: globals.c:29
#define EQNTOTT_type
Definition: espresso.h:341
bool trace
Definition: globals.c:36
bool use_random_order
Definition: globals.c:38
#define FDR_type
Definition: espresso.h:348
#define ABC_NAMESPACE_IMPL_END
Definition: abc_global.h:108
#define CONSTRAINTS_type
Definition: espresso.h:343
struct cube_struct cube temp_cube_save
Definition: globals.c:67
bool verbose_debug
Definition: globals.c:20
struct cdata_struct cdata temp_cdata_save
Definition: globals.c:68
bool recompute_onset
Definition: globals.c:32
#define ABC_NAMESPACE_IMPL_START
Definition: abc_global.h:107
#define FR_type
Definition: espresso.h:346
#define SYMBOLIC_CONSTRAINTS_type
Definition: espresso.h:344
struct pla_types_struct pla_types[]
Definition: globals.c:42
bool summary
Definition: globals.c:35
int total_calls[TIME_COUNT]
Definition: globals.c:23
char * total_name[TIME_COUNT]
Definition: globals.c:21
bool remove_essential
Definition: globals.c:33
bool unwrap_onset
Definition: globals.c:37
bool use_super_gasp
Definition: globals.c:39
bool force_irredundant
Definition: globals.c:27
bool pos
Definition: globals.c:30
#define D_type
Definition: espresso.h:338
#define F_type
Definition: espresso.h:337
#define TIME_COUNT
Definition: espresso.h:371
#define KISS_type
Definition: espresso.h:342
#define R_type
Definition: espresso.h:339
int bit_count[256]
Definition: globals.c:70
bool echo_comments
Definition: globals.c:25
bool echo_unknown_commands
Definition: globals.c:26
ABC_NAMESPACE_IMPL_START unsigned int debug
Definition: globals.c:19
#define PLEASURE_type
Definition: espresso.h:340
#define DR_type
Definition: espresso.h:347