diff --git a/src/regex_impl.cc b/src/regex_impl.cc index 178a5b9f..0b55c129 100644 --- a/src/regex_impl.cc +++ b/src/regex_impl.cc @@ -820,8 +820,10 @@ private: void dump_regex(const CompiledRegex& program) { + int count = 0; for (auto& inst : program.instructions) { + printf(" %03d ", count++); switch (inst.op) { case CompiledRegex::Literal: