| 674 | } |
| 675 | |
| 676 | void SimplifyCompileRegexp(benchmark::State& state, const std::string& regexp) { |
| 677 | for (auto _ : state) { |
| 678 | Regexp* re = Regexp::Parse(regexp, Regexp::LikePerl, NULL); |
| 679 | CHECK(re); |
| 680 | Regexp* sre = re->Simplify(); |
| 681 | CHECK(sre); |
| 682 | Prog* prog = sre->CompileToProg(0); |
| 683 | CHECK(prog); |
| 684 | delete prog; |
| 685 | sre->Decref(); |
| 686 | re->Decref(); |
| 687 | } |
| 688 | } |
| 689 | |
| 690 | void CompileRegexp(benchmark::State& state, const std::string& regexp) { |
| 691 | for (auto _ : state) { |
nothing calls this directly
no test coverage detected