16static void dump_irredundant();
17static pcover do_minimize();
34 return do_minimize(F, D, R, exact_cover, 0);
43 return do_minimize(F, D, R, exact_cover, 1);
49do_minimize(F, D, R, exact_cover, weighted)
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++) {
102 dump_irredundant(E, Rt, Rp, table);
132dump_irredundant(E, Rt, Rp, table)
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);
#define ABC_NAMESPACE_IMPL_START
#define ABC_NAMESPACE_IMPL_END
pcover minimize_exact_literals()
#define is_in_set(set, e)
#define GETSET(family, index)
#define foreach_set(R, last, p)
sm_matrix * irred_derive_table()
#define EXEC(fct, name, S)
pcover primes_consensus()
sm_row * sm_minimum_cover()
typedefABC_NAMESPACE_HEADER_START struct sm_element_struct sm_element
#define sm_foreach_row_element(prow, p)
struct sm_matrix_struct sm_matrix
struct sm_row_struct sm_row