Go to the source code of this file.
Definition at line 17 of file cvrmisc.c.
29 cost->cubes = F->count;
30 cost->total = cost->in = cost->out = cost->mv = cost->primes = 0;
33 for(var = 0; var < cube.num_binary_vars; var++)
34 cost->in += cdata.var_zeros[var];
37 for(var = cube.num_binary_vars; var < cube.num_vars - 1; var++)
39 cost->mv += F->count * cube.part_size[
var] - cdata.var_zeros[
var];
41 cost->mv += cdata.var_zeros[
var];
44 if (cube.num_binary_vars != cube.num_vars) {
45 var = cube.num_vars - 1;
46 cost->out = F->count * cube.part_size[
var] - cdata.var_zeros[
var];
54 cost->total = cost->in + cost->out + cost->mv;
#define foreach_set(R, last, p)
void massive_count(IN pcube *T)
pcube * cube1list(pcover A)
static const int primes[nprimes]
Definition at line 140 of file cvrmisc.c.
143 (void) fprintf(stderr,
"espresso: %s\n", s);
Definition at line 59 of file cvrmisc.c.
64 if (cube.num_binary_vars == cube.num_vars - 1)
65 (void)
sprintf(s,
"c=%d(%d) in=%d out=%d tot=%d",
66 cost->cubes, cost->cubes - cost->primes, cost->in,
67 cost->out, cost->total);
69 (
void)
sprintf(s,
"c=%d(%d) in=%d mv=%d out=%d",
70 cost->cubes, cost->cubes - cost->primes, cost->in,
Definition at line 76 of file cvrmisc.c.
ABC_NAMESPACE_IMPL_START void cover_cost(IN pcover F, INOUT pcost cost)
char * fmt_cost(IN pcost cost)
void print_trace |
( |
pcover |
T, |
|
|
char * |
name, |
|
|
long |
time |
|
) |
| |
Definition at line 109 of file cvrmisc.c.
114 (void) printf(
"# %s\tTime was %s, cost is %s\n",
116 (void) fflush(stdout);
char * print_cost(IN pcover F)
Definition at line 99 of file cvrmisc.c.
104 (void) fflush(stdout);
char * print_cost(IN pcover F)
Definition at line 121 of file cvrmisc.c.
127 time =
ptime() - time;
132 (void) printf(
"# %s\tTime was %s, cost is %s\n",
134 (void) fflush(stdout);
ABC_NAMESPACE_IMPL_START void cover_cost(IN pcover F, INOUT pcost cost)
long total_time[TIME_COUNT]
char * total_name[TIME_COUNT]
int total_calls[TIME_COUNT]
char * fmt_cost(IN pcost cost)