Ignore:
Timestamp:
Nov 12, 2018, 11:13:25 AM (8 months ago)
Author:
cameron
Message:

Fixes for byte-bit grep mode

File:
1 edited

Legend:

Unmodified
Added
Removed
  • icGREP/icgrep-devel/icgrep/re/re_analysis.cpp

    r6170 r6198  
    564564    if (const Seq * seq = dyn_cast<Seq>(r)) {
    565565        if (seq->size() < 4) return false;
    566         if (!isa<CC>(*seq->begin())) return false;
    567         if (!isa<CC>(*seq->begin()+1)) return false;
    568         if (!isa<CC>(*seq->begin()+2)) return false;
     566        if (!isa<CC>(seq->front())) return false;
     567        if (!isa<CC>((*seq)[1])) return false;
     568        if (!isa<CC>((*seq)[2])) return false;
    569569        prefixRE = makeSeq(seq->begin(), seq->begin()+3);
    570570        if (byteTestsWithinLimit(prefixRE, byteCClimit)) {
    571571            suffixRE = makeSeq(seq->begin()+3, seq->end());
    572             errs() << "prefixRE: " << Printer_RE::PrintRE(prefixRE) << "\n";
    573             errs() << "suffixRE: " << Printer_RE::PrintRE(suffixRE) << "\n";
    574572            return true;
    575573        }
Note: See TracChangeset for help on using the changeset viewer.