56 int heur, level, *weights, i;
60 int debug_save =
debug;
65 #if defined(sun) || defined(bsd4_2)
83 weights =
ALLOC(
int, F->count);
88 for (i = cube.first_part[cube.output];
89 i <= cube.last_part[cube.output]; i++) {
136 FILE *fp_pi_table, *fp_primes;
142 fp_pi_table = fp_primes = stdout;
146 if ((fp_primes = fopen(file,
"w")) == NULL) {
147 (void) fprintf(stderr,
"espresso: Unable to open %s\n", file);
151 if ((fp_pi_table = fopen(file,
"w")) == NULL) {
152 (void) fprintf(stderr,
"espresso: Unable to open %s\n", file);
153 fp_pi_table = stdout;
164 (void) fprintf(fp_primes,
"# Essential primes are\n");
166 (void) fprintf(fp_primes,
"%s\n",
pc1(p));
168 (void) fprintf(fp_primes,
"# Totally redundant primes are\n");
170 (void) fprintf(fp_primes,
"%s\n",
pc1(p));
172 (void) fprintf(fp_primes,
"# Partially redundant primes are\n");
174 (void) fprintf(fp_primes,
"%s\n",
pc1(p));
176 if (fp_primes != stdout) {
177 (void) fclose(fp_primes);
181 if (fp_pi_table != stdout) {
182 (void) fclose(fp_pi_table);
pcover primes_consensus()
void PLA_labels(pPLA PLA)
static pcover do_minimize()
static ABC_NAMESPACE_IMPL_START void dump_irredundant()
sm_matrix * irred_derive_table()
#define foreach_set(R, last, p)
#define sm_foreach_row_element(prow, p)
pcube * cube2list(pcover A, pcover B)
#define ABC_NAMESPACE_IMPL_END
pcover minimize_exact(pcover F, pcover D, pcover R, int exact_cover)
#define is_in_set(set, e)
void sm_free(sm_matrix *A)
sm_row * sm_minimum_cover(sm_matrix *A, int *weight, int heuristic, int debug_level)
#define ABC_NAMESPACE_IMPL_START
#define GETSET(family, index)
typedefABC_NAMESPACE_HEADER_START struct sm_element_struct sm_element
#define EXEC(fct, name, S)
void sm_row_free(sm_row *prow)
void sm_write(FILE *fp, sm_matrix *A)
pcover minimize_exact_literals(pcover F, pcover D, pcover R, int exact_cover)
void fpr_header(FILE *fp, pPLA PLA, int output_type)