Changeset 5490


Ignore:
Timestamp:
Jun 1, 2017, 3:26:34 PM (23 months ago)
Author:
xuedongx
Message:

bug fix for multiplexed_CC

File:
1 edited

Legend:

Unmodified
Added
Removed
  • icGREP/icgrep-devel/icgrep/cc/multiplex_CCs.cpp

    r5369 r5490  
    6464    unsigned current_exclusive_set_idx = 0;
    6565    unsigned multiplexed_bit_count = 0;
    66     boost::dynamic_bitset<> current_set;
     66    boost::dynamic_bitset<> current_set(CCs.size());
    6767   
    6868    unsigned range_lo = 0;
     69    unsigned cur_index = 1;
    6970    for (auto & bkpt_entry : breakpoints) {
    7071        if (current_exclusive_set_idx > 0) {  // We have a range entry to close for a pending exclusive set.
     
    8283        if (idx_iter == CC_set_to_exclusive_set_map.end()) {
    8384            // New exclusive class; assign the next sequential integer.
    84             current_exclusive_set_idx = exclusiveSetIDs.size();
     85            //current_exclusive_set_idx = exclusiveSetIDs.size();
     86            current_exclusive_set_idx = cur_index;
     87            cur_index++;
    8588            CC_set_to_exclusive_set_map.emplace(current_set, current_exclusive_set_idx);
    8689           
Note: See TracChangeset for help on using the changeset viewer.