feat: add log
This commit is contained in:
parent
c7227f88b6
commit
2ea67d6174
@ -4,7 +4,7 @@ LDIR=lib
|
||||
BUILD=obj
|
||||
ODIR=src/.obj
|
||||
|
||||
CFLAGS=-I$(IDIR) #-ggdb
|
||||
CFLAGS=-I$(IDIR) -O3 #-ggdb
|
||||
# CXX=g++
|
||||
LDFLAGS=
|
||||
|
||||
|
@ -394,7 +394,9 @@ rev_mc(size_t sets_cnt, size_t threshold, size_t rounds, size_t m_size, char *o_
|
||||
|
||||
if (flags & F_VERBOSE) { print_sets(sets); }
|
||||
|
||||
fprintf(stderr, "Start Find Function\n");
|
||||
fn_masks = find_functions(sets, 6, 30, flags);
|
||||
fprintf(stderr, "Start Find RowMask\n");
|
||||
uint64_t row_mask = find_row_mask(sets, fn_masks, mem, threshold, flags);
|
||||
|
||||
free_buffer(&mem);
|
||||
@ -444,10 +446,12 @@ void
|
||||
filter_sets(std::vector<set_t> &sets, size_t set_size)
|
||||
{
|
||||
|
||||
for (auto s = sets.begin(); s < sets.end(); s++) {
|
||||
for (auto s = sets.begin(); s < sets.end();) {
|
||||
if (s->size() < set_size) {
|
||||
sets.erase(s);
|
||||
s -= 1;
|
||||
s = sets.erase(s);
|
||||
// s -= 1;
|
||||
} else {
|
||||
++s;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user