Ignore:
Timestamp:
Dec 23, 2017, 9:16:39 PM (15 months ago)
Author:
cameron
Message:

Additional Alphabet analysis and transformation

File:
1 edited

Legend:

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

    r5787 r5801  
    8686
    8787MarkerType RE_Compiler::compileCC(CC * cc, MarkerType marker, PabloBuilder & pb) {
    88     PabloAST * const nextPos = markerVar(AdvanceMarker(marker, MarkerPosition::FinalPostPositionUnit, pb));
     88    PabloAST * nextPos = markerVar(marker);
     89    if (isByteLength(cc)) {
     90        if (marker.pos == MarkerPosition::FinalMatchUnit) nextPos = pb.createAdvance(nextPos, 1);
     91    }
     92    else {
     93        nextPos = markerVar(AdvanceMarker(marker, MarkerPosition::FinalPostPositionUnit, pb));
     94    }
    8995    return makeMarker(MarkerPosition::FinalMatchUnit, pb.createAnd(nextPos, mCCCompiler.compileCC(cc, pb)));
    9096}
Note: See TracChangeset for help on using the changeset viewer.