MCPcopy Create free account
hub / github.com/Genivia/ugrep / assemble

Method assemble

lib/pattern.cpp:2786–2807  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2784}
2785
2786void Pattern::assemble(DFA::State *start)
2787{
2788 DBGLOG("BEGIN assemble()");
2789 timer_type t;
2790 timer_start(t);
2791 if (opt_.h)
2792 gen_match_hfa(start);
2793 analyze_dfa(start);
2794 ams_ = timer_elapsed(t);
2795 graph_dfa(start);
2796 compact_dfa(start);
2797 encode_dfa(start);
2798 wms_ = timer_elapsed(t);
2799 if (!opt_.f.empty())
2800 {
2801 if (opt_.o)
2802 gencode_dfa(start);
2803 else
2804 export_code();
2805 }
2806 DBGLOG("END assemble()");
2807}
2808
2809void Pattern::compact_dfa(DFA::State *start)
2810{

Callers

nothing calls this directly

Calls 3

timer_startFunction · 0.85
timer_elapsedFunction · 0.85
emptyMethod · 0.45

Tested by

no test coverage detected