Skip to content

Commit 578b4a3

Browse files
committed
remove tag output
1 parent 84f1fe5 commit 578b4a3

File tree

1 file changed

+0
-64
lines changed

1 file changed

+0
-64
lines changed

include/pfp_lcp_doc_two_pass.hpp

Lines changed: 0 additions & 64 deletions
Original file line numberDiff line numberDiff line change
@@ -127,17 +127,6 @@ class pfp_lcp_doc_two_pass {
127127
dirty_lcp_cache[i] = max_lcp_init;
128128
// DEBUG: END ---------------------------------------------
129129

130-
131-
// TAG: START ---------------------------------------------
132-
size_t num_tag_runs = 1;
133-
size_t curr_tag_doc = 0;
134-
size_t num_checks = 0;
135-
std::vector<size_t> sa_samples_for_tag;
136-
size_t prev_sa_sample = 0;
137-
size_t shared_boundary = 1;
138-
std::set<size_t> set_of_tag_samples;
139-
// TAG: END -----------------------------------------------
140-
141130
// create a struct to store data for temp file
142131
temp_data_entry_t curr_data_entry;
143132

@@ -216,40 +205,6 @@ class pfp_lcp_doc_two_pass {
216205
bool is_start = (pos == 0 || curr_bwt_ch != prev_bwt_ch) ? 1 : 0;
217206
bool is_end = (pos == ref_build->total_length-1); // only special case, common case is below
218207

219-
// DEBUG -----------------------------
220-
if (pos > 0) {
221-
num_checks++;
222-
bool tag_run_boundary = false;
223-
bool bwt_run_boundary = false;
224-
225-
// check for start of tag array run
226-
if (doc_i != curr_tag_doc) {
227-
num_tag_runs++;
228-
curr_tag_doc = doc_i;
229-
tag_run_boundary = true;
230-
}
231-
232-
// check for start of bwt run
233-
if (is_start) {
234-
bwt_run_boundary = true;
235-
}
236-
237-
// check if they both occur with each other
238-
if (bwt_run_boundary && tag_run_boundary) {shared_boundary++;}
239-
240-
// check if either occurs and store the two sa values
241-
if (bwt_run_boundary || tag_run_boundary) {
242-
sa_samples_for_tag.push_back(sa_i);
243-
sa_samples_for_tag.push_back(prev_sa_sample);
244-
}
245-
} else if (pos == 0) {
246-
curr_tag_doc = doc_i;
247-
sa_samples_for_tag.push_back(sa_i);
248-
}
249-
prev_sa_sample = sa_i;
250-
// DEBUG -----------------------------
251-
252-
253208
// handle scenario where the previous suffix was a end of a run
254209
if (pos > 0 && prev_bwt_ch != curr_bwt_ch)
255210
curr_data_entry.is_end = true;
@@ -313,25 +268,6 @@ class pfp_lcp_doc_two_pass {
313268
}
314269
DONE_LOG((std::chrono::system_clock::now() - start));
315270

316-
// DEBUG -----------------------------
317-
std::cout << "\n\nDEBUG --------------------------------- \n\n";
318-
sa_samples_for_tag.push_back(prev_sa_sample);
319-
320-
// print number fo tag runs and number of shared boundaries
321-
std::cout << "num_tag_runs (t) = " << num_tag_runs << std::endl;
322-
std::cout << "num_checks = " << num_checks << "\n\n";
323-
324-
std::cout << "shared_boundary = " << shared_boundary << "\n\n";
325-
326-
// build set and print size
327-
for (auto x: sa_samples_for_tag) {set_of_tag_samples.insert(x);}
328-
329-
std::cout << "size of sa array = " << sa_samples_for_tag.size() << std::endl;
330-
std::cout << "size of sa array set = " << set_of_tag_samples.size() << "\n\n";
331-
332-
std::cout << "\n\nDEBUG --------------------------------- \n\n";
333-
// DEBUG -----------------------------
334-
335271
// make sure to write the last suffix to temp data
336272
write_data_to_temp_file(curr_data_entry);
337273
if (curr_data_entry.is_start || curr_data_entry.is_end)

0 commit comments

Comments
 (0)