Ignore:
Timestamp:
Mar 18, 2018, 11:50:40 AM (13 months ago)
Author:
cameron
Message:

Optimization for regexps ending $

File:
1 edited

Legend:

Unmodified
Added
Removed
  • icGREP/icgrep-devel/icgrep/kernels/grep_kernel.cpp

    r5908 r5914  
    1818#include <pablo/pe_var.h>           // for Var
    1919#include <pablo/pe_zeroes.h>        // for Zeroes
     20#include <pablo/pe_infile.h>
    2021#include <pablo/boolean.h>
    2122#include <pablo/pe_count.h>
     
    433434    const auto toCount = pb->createExtract(getInputStreamVar("toCount"), pb->getInteger(0));
    434435    pablo::Var * countResult = getOutputScalarVar("countResult");
    435     pb->createAssign(countResult, pb->createCount(toCount));
     436   
     437    pb->createAssign(countResult, pb->createCount(pb->createInFile(toCount)));
    436438}
    437439
Note: See TracChangeset for help on using the changeset viewer.