Branch Coverage

deps/libgit2/deps/pcre/pcre_dfa_exec.c
Criterion Covered Total %
branch 0 1410 0.0


line true false branch
456 0 0 first_op = this_start_code + 1 + LINK_SIZE +
457 0 0 ((*this_start_code == OP_CBRA || *this_start_code == OP_SCBRA ||
0 0 ((*this_start_code == OP_CBRA || *this_start_code == OP_SCBRA ||
458 0 0 *this_start_code == OP_CBRAPOS || *this_start_code == OP_SCBRAPOS)
470 0 0 if (*first_op == OP_REVERSE)
479 0 0 if (back > max_back) max_back = back;
482 0 0 while (*end_code == OP_ALT);
506 0 0 (int)(current_subject - start_subject) : max_back;
512 0 0 if (current_subject < md->start_used_ptr)
521 0 0 if (back <= gone_back)
524 0 0 ADD_NEW_DATA(-bstate, 0, gone_back - back);
528 0 0 while (*end_code == OP_ALT);
543 0 0 if (rlevel == 1 && (md->moptions & PCRE_DFA_RESTART) != 0)
0 0 if (rlevel == 1 && (md->moptions & PCRE_DFA_RESTART) != 0)
545 0 0 do { end_code += GET(end_code, 1); } while (*end_code == OP_ALT);
547 0 0 if (!workspace[0])
555 0 0 int length = 1 + LINK_SIZE +
556 0 0 ((*this_start_code == OP_CBRA || *this_start_code == OP_SCBRA ||
0 0 ((*this_start_code == OP_CBRA || *this_start_code == OP_SCBRA ||
557 0 0 *this_start_code == OP_CBRAPOS || *this_start_code == OP_SCBRAPOS)
561 0 0 ADD_NEW((int)(end_code - start_code + length), 0);
565 0 0 while (*end_code == OP_ALT);
618 0 0 if (ptr < end_subject)
638 0 0 for (i = 0; i < active_count; i++)
659 0 0 if (state_offset < 0)
661 0 0 if (current_state->data > 0)
664 0 0 ADD_NEW_DATA(state_offset, current_state->count,
666 0 0 if (could_continue) reset_could_continue = TRUE;
679 0 0 for (j = 0; j < i; j++)
681 0 0 if (active_states[j].offset == state_offset &&
0 0 if (active_states[j].offset == state_offset &&
697 0 0 if (clen == 0 && poptable[codevalue] != 0)
0 0 if (clen == 0 && poptable[codevalue] != 0)
711 0 0 if (coptable[codevalue] > 0)
718 0 0 if (codevalue >= OP_TYPESTAR)
775 0 0 if (code != end_code)
777 0 0 ADD_ACTIVE(state_offset + 1 + LINK_SIZE, 0);
778 0 0 if (codevalue != OP_KET)
780 0 0 ADD_ACTIVE(state_offset - GET(code, 1), 0);
785 0 0 if (ptr > current_subject ||
0 0 if (ptr > current_subject ||
786 0 0 ((md->moptions & PCRE_NOTEMPTY) == 0 &&
787 0 0 ((md->moptions & PCRE_NOTEMPTY_ATSTART) == 0 ||
790 0 0 if (match_count < 0) match_count = (offsetcount >= 2)? 1 : 0;
791 0 0 else if (match_count > 0 && ++match_count * 2 > offsetcount)
0 0 else if (match_count > 0 && ++match_count * 2 > offsetcount)
793 0 0 count = ((match_count == 0)? offsetcount : match_count * 2) - 2;
794 0 0 if (count > 0) memmove(offsets + 2, offsets, count * sizeof(int));
795 0 0 if (offsetcount >= 2)
802 0 0 if ((md->moptions & PCRE_DFA_SHORTEST) != 0)
819 0 0 do { code += GET(code, 1); } while (*code == OP_ALT);
820 0 0 ADD_ACTIVE((int)(code - start_code), 0);
828 0 0 ADD_ACTIVE((int)(code - start_code + 1 + LINK_SIZE), 0);
831 0 0 while (*code == OP_ALT);
837 0 0 ADD_ACTIVE((int)(code - start_code + 1 + LINK_SIZE + IMM2_SIZE), 0);
839 0 0 while (*code == OP_ALT)
841 0 0 ADD_ACTIVE((int)(code - start_code + 1 + LINK_SIZE), 0);
849 0 0 ADD_ACTIVE(state_offset + 1, 0);
851 0 0 while (*code == OP_ALT) code += GET(code, 1);
852 0 0 ADD_ACTIVE((int)(code - start_code + 1 + LINK_SIZE), 0);
858 0 0 while (*code == OP_ALT) code += GET(code, 1);
859 0 0 ADD_ACTIVE((int)(code - start_code + 1 + LINK_SIZE), 0);
864 0 0 if (ptr == start_subject && (md->moptions & PCRE_NOTBOL) == 0)
0 0 if (ptr == start_subject && (md->moptions & PCRE_NOTBOL) == 0)
865 0 0 { ADD_ACTIVE(state_offset + 1, 0); }
870 0 0 if ((ptr == start_subject && (md->moptions & PCRE_NOTBOL) == 0) ||
0 0 if ((ptr == start_subject && (md->moptions & PCRE_NOTBOL) == 0) ||
0 0 if ((ptr == start_subject && (md->moptions & PCRE_NOTBOL) == 0) ||
0 0 if ((ptr == start_subject && (md->moptions & PCRE_NOTBOL) == 0) ||
871 0 0 (ptr != end_subject && WAS_NEWLINE(ptr)))
0 0 (ptr != end_subject && WAS_NEWLINE(ptr)))
0 0 (ptr != end_subject && WAS_NEWLINE(ptr)))
0 0 (ptr != end_subject && WAS_NEWLINE(ptr)))
0 0 (ptr != end_subject && WAS_NEWLINE(ptr)))
0 0 (ptr != end_subject && WAS_NEWLINE(ptr)))
0 0 (ptr != end_subject && WAS_NEWLINE(ptr)))
0 0 (ptr != end_subject && WAS_NEWLINE(ptr)))
872 0 0 { ADD_ACTIVE(state_offset + 1, 0); }
877 0 0 if (ptr >= end_subject)
879 0 0 if ((md->moptions & PCRE_PARTIAL_HARD) != 0)
881 0 0 else { ADD_ACTIVE(state_offset + 1, 0); }
887 0 0 if (ptr == start_subject) { ADD_ACTIVE(state_offset + 1, 0); }
0 0 if (ptr == start_subject) { ADD_ACTIVE(state_offset + 1, 0); }
892 0 0 if (ptr == start_subject + start_offset) { ADD_ACTIVE(state_offset + 1, 0); }
0 0 if (ptr == start_subject + start_offset) { ADD_ACTIVE(state_offset + 1, 0); }
904 0 0 if (clen > 0 && !IS_NEWLINE(ptr))
0 0 if (clen > 0 && !IS_NEWLINE(ptr))
0 0 if (clen > 0 && !IS_NEWLINE(ptr))
0 0 if (clen > 0 && !IS_NEWLINE(ptr))
0 0 if (clen > 0 && !IS_NEWLINE(ptr))
0 0 if (clen > 0 && !IS_NEWLINE(ptr))
0 0 if (clen > 0 && !IS_NEWLINE(ptr))
0 0 if (clen > 0 && !IS_NEWLINE(ptr))
0 0 if (clen > 0 && !IS_NEWLINE(ptr))
906 0 0 if (ptr + 1 >= md->end_subject &&
0 0 if (ptr + 1 >= md->end_subject &&
907 0 0 (md->moptions & (PCRE_PARTIAL_HARD)) != 0 &&
908 0 0 NLBLOCK->nltype == NLTYPE_FIXED &&
909 0 0 NLBLOCK->nllen == 2 &&
916 0 0 ADD_NEW(state_offset + 1, 0);
923 0 0 if (clen > 0)
924 0 0 { ADD_NEW(state_offset + 1, 0); }
929 0 0 if (clen == 0 && (md->moptions & PCRE_PARTIAL_HARD) != 0)
0 0 if (clen == 0 && (md->moptions & PCRE_PARTIAL_HARD) != 0)
931 0 0 else if (clen == 0 || (IS_NEWLINE(ptr) && ptr == end_subject - md->nllen))
0 0 else if (clen == 0 || (IS_NEWLINE(ptr) && ptr == end_subject - md->nllen))
0 0 else if (clen == 0 || (IS_NEWLINE(ptr) && ptr == end_subject - md->nllen))
0 0 else if (clen == 0 || (IS_NEWLINE(ptr) && ptr == end_subject - md->nllen))
0 0 else if (clen == 0 || (IS_NEWLINE(ptr) && ptr == end_subject - md->nllen))
0 0 else if (clen == 0 || (IS_NEWLINE(ptr) && ptr == end_subject - md->nllen))
0 0 else if (clen == 0 || (IS_NEWLINE(ptr) && ptr == end_subject - md->nllen))
0 0 else if (clen == 0 || (IS_NEWLINE(ptr) && ptr == end_subject - md->nllen))
0 0 else if (clen == 0 || (IS_NEWLINE(ptr) && ptr == end_subject - md->nllen))
0 0 else if (clen == 0 || (IS_NEWLINE(ptr) && ptr == end_subject - md->nllen))
0 0 else if (clen == 0 || (IS_NEWLINE(ptr) && ptr == end_subject - md->nllen))
932 0 0 { ADD_ACTIVE(state_offset + 1, 0); }
937 0 0 if ((md->moptions & PCRE_NOTEOL) == 0)
939 0 0 if (clen == 0 && (md->moptions & PCRE_PARTIAL_HARD) != 0)
0 0 if (clen == 0 && (md->moptions & PCRE_PARTIAL_HARD) != 0)
941 0 0 else if (clen == 0 ||
0 0 else if (clen == 0 ||
0 0 else if (clen == 0 ||
942 0 0 ((md->poptions & PCRE_DOLLAR_ENDONLY) == 0 && IS_NEWLINE(ptr) &&
0 0 ((md->poptions & PCRE_DOLLAR_ENDONLY) == 0 && IS_NEWLINE(ptr) &&
0 0 ((md->poptions & PCRE_DOLLAR_ENDONLY) == 0 && IS_NEWLINE(ptr) &&
0 0 ((md->poptions & PCRE_DOLLAR_ENDONLY) == 0 && IS_NEWLINE(ptr) &&
0 0 ((md->poptions & PCRE_DOLLAR_ENDONLY) == 0 && IS_NEWLINE(ptr) &&
0 0 ((md->poptions & PCRE_DOLLAR_ENDONLY) == 0 && IS_NEWLINE(ptr) &&
0 0 ((md->poptions & PCRE_DOLLAR_ENDONLY) == 0 && IS_NEWLINE(ptr) &&
0 0 ((md->poptions & PCRE_DOLLAR_ENDONLY) == 0 && IS_NEWLINE(ptr) &&
0 0 ((md->poptions & PCRE_DOLLAR_ENDONLY) == 0 && IS_NEWLINE(ptr) &&
945 0 0 { ADD_ACTIVE(state_offset + 1, 0); }
946 0 0 else if (ptr + 1 >= md->end_subject &&
0 0 else if (ptr + 1 >= md->end_subject &&
947 0 0 (md->moptions & (PCRE_PARTIAL_HARD|PCRE_PARTIAL_SOFT)) != 0 &&
948 0 0 NLBLOCK->nltype == NLTYPE_FIXED &&
949 0 0 NLBLOCK->nllen == 2 &&
952 0 0 if ((md->moptions & PCRE_PARTIAL_HARD) != 0)
955 0 0 ADD_NEW_DATA(-(state_offset + 1), 0, 1);
964 0 0 if ((md->moptions & PCRE_NOTEOL) == 0)
966 0 0 if (clen == 0 && (md->moptions & PCRE_PARTIAL_HARD) != 0)
0 0 if (clen == 0 && (md->moptions & PCRE_PARTIAL_HARD) != 0)
968 0 0 else if (clen == 0 ||
0 0 else if (clen == 0 ||
0 0 else if (clen == 0 ||
969 0 0 ((md->poptions & PCRE_DOLLAR_ENDONLY) == 0 && IS_NEWLINE(ptr)))
0 0 ((md->poptions & PCRE_DOLLAR_ENDONLY) == 0 && IS_NEWLINE(ptr)))
0 0 ((md->poptions & PCRE_DOLLAR_ENDONLY) == 0 && IS_NEWLINE(ptr)))
0 0 ((md->poptions & PCRE_DOLLAR_ENDONLY) == 0 && IS_NEWLINE(ptr)))
0 0 ((md->poptions & PCRE_DOLLAR_ENDONLY) == 0 && IS_NEWLINE(ptr)))
0 0 ((md->poptions & PCRE_DOLLAR_ENDONLY) == 0 && IS_NEWLINE(ptr)))
0 0 ((md->poptions & PCRE_DOLLAR_ENDONLY) == 0 && IS_NEWLINE(ptr)))
0 0 ((md->poptions & PCRE_DOLLAR_ENDONLY) == 0 && IS_NEWLINE(ptr)))
970 0 0 { ADD_ACTIVE(state_offset + 1, 0); }
971 0 0 else if (ptr + 1 >= md->end_subject &&
0 0 else if (ptr + 1 >= md->end_subject &&
972 0 0 (md->moptions & (PCRE_PARTIAL_HARD|PCRE_PARTIAL_SOFT)) != 0 &&
973 0 0 NLBLOCK->nltype == NLTYPE_FIXED &&
974 0 0 NLBLOCK->nllen == 2 &&
977 0 0 if ((md->moptions & PCRE_PARTIAL_HARD) != 0)
980 0 0 ADD_NEW_DATA(-(state_offset + 1), 0, 1);
985 0 0 else if (IS_NEWLINE(ptr))
0 0 else if (IS_NEWLINE(ptr))
0 0 else if (IS_NEWLINE(ptr))
0 0 else if (IS_NEWLINE(ptr))
0 0 else if (IS_NEWLINE(ptr))
0 0 else if (IS_NEWLINE(ptr))
0 0 else if (IS_NEWLINE(ptr))
0 0 else if (IS_NEWLINE(ptr))
986 0 0 { ADD_ACTIVE(state_offset + 1, 0); }
994 0 0 if (clen > 0 && c < 256 &&
0 0 if (clen > 0 && c < 256 &&
0 0 if (clen > 0 && c < 256 &&
996 0 0 { ADD_NEW(state_offset + 1, 0); }
1003 0 0 if (clen > 0 && (c >= 256 ||
0 0 if (clen > 0 && (c >= 256 ||
0 0 if (clen > 0 && (c >= 256 ||
1005 0 0 { ADD_NEW(state_offset + 1, 0); }
1014 0 0 if (ptr > start_subject)
1017 0 0 if (temp < md->start_used_ptr) md->start_used_ptr = temp;
1033 0 0 left_word = d < 256 && (ctypes[d] & ctype_word) != 0;
0 0 left_word = d < 256 && (ctypes[d] & ctype_word) != 0;
1037 0 0 if (clen > 0)
1050 0 0 right_word = c < 256 && (ctypes[c] & ctype_word) != 0;
0 0 right_word = c < 256 && (ctypes[c] & ctype_word) != 0;
1054 0 0 if ((left_word == right_word) == (codevalue == OP_NOT_WORD_BOUNDARY))
1055 0 0 { ADD_ACTIVE(state_offset + 1, 0); }
1167 0 0 if (count > 0) { ADD_ACTIVE(state_offset + 2, 0); }
0 0 if (count > 0) { ADD_ACTIVE(state_offset + 2, 0); }
1168 0 0 if (clen > 0)
1170 0 0 if (d == OP_ANY && ptr + 1 >= md->end_subject &&
0 0 if (d == OP_ANY && ptr + 1 >= md->end_subject &&
0 0 if (d == OP_ANY && ptr + 1 >= md->end_subject &&
1171 0 0 (md->moptions & (PCRE_PARTIAL_HARD)) != 0 &&
1172 0 0 NLBLOCK->nltype == NLTYPE_FIXED &&
1173 0 0 NLBLOCK->nllen == 2 &&
1178 0 0 else if ((c >= 256 && d != OP_DIGIT && d != OP_WHITESPACE && d != OP_WORDCHAR) ||
0 0 else if ((c >= 256 && d != OP_DIGIT && d != OP_WHITESPACE && d != OP_WORDCHAR) ||
0 0 else if ((c >= 256 && d != OP_DIGIT && d != OP_WHITESPACE && d != OP_WORDCHAR) ||
0 0 else if ((c >= 256 && d != OP_DIGIT && d != OP_WHITESPACE && d != OP_WORDCHAR) ||
0 0 else if ((c >= 256 && d != OP_DIGIT && d != OP_WHITESPACE && d != OP_WORDCHAR) ||
0 0 else if ((c >= 256 && d != OP_DIGIT && d != OP_WHITESPACE && d != OP_WORDCHAR) ||
1179 0 0 (c < 256 &&
1180 0 0 (d != OP_ANY || !IS_NEWLINE(ptr)) &&
0 0 (d != OP_ANY || !IS_NEWLINE(ptr)) &&
0 0 (d != OP_ANY || !IS_NEWLINE(ptr)) &&
0 0 (d != OP_ANY || !IS_NEWLINE(ptr)) &&
0 0 (d != OP_ANY || !IS_NEWLINE(ptr)) &&
0 0 (d != OP_ANY || !IS_NEWLINE(ptr)) &&
0 0 (d != OP_ANY || !IS_NEWLINE(ptr)) &&
0 0 (d != OP_ANY || !IS_NEWLINE(ptr)) &&
0 0 (d != OP_ANY || !IS_NEWLINE(ptr)) &&
1183 0 0 if (count > 0 && codevalue == OP_TYPEPOSPLUS)
0 0 if (count > 0 && codevalue == OP_TYPEPOSPLUS)
1189 0 0 ADD_NEW(state_offset, count);
1198 0 0 ADD_ACTIVE(state_offset + 2, 0);
1199 0 0 if (clen > 0)
1201 0 0 if (d == OP_ANY && ptr + 1 >= md->end_subject &&
0 0 if (d == OP_ANY && ptr + 1 >= md->end_subject &&
0 0 if (d == OP_ANY && ptr + 1 >= md->end_subject &&
1202 0 0 (md->moptions & (PCRE_PARTIAL_HARD)) != 0 &&
1203 0 0 NLBLOCK->nltype == NLTYPE_FIXED &&
1204 0 0 NLBLOCK->nllen == 2 &&
1209 0 0 else if ((c >= 256 && d != OP_DIGIT && d != OP_WHITESPACE && d != OP_WORDCHAR) ||
0 0 else if ((c >= 256 && d != OP_DIGIT && d != OP_WHITESPACE && d != OP_WORDCHAR) ||
0 0 else if ((c >= 256 && d != OP_DIGIT && d != OP_WHITESPACE && d != OP_WORDCHAR) ||
0 0 else if ((c >= 256 && d != OP_DIGIT && d != OP_WHITESPACE && d != OP_WORDCHAR) ||
0 0 else if ((c >= 256 && d != OP_DIGIT && d != OP_WHITESPACE && d != OP_WORDCHAR) ||
0 0 else if ((c >= 256 && d != OP_DIGIT && d != OP_WHITESPACE && d != OP_WORDCHAR) ||
1210 0 0 (c < 256 &&
1211 0 0 (d != OP_ANY || !IS_NEWLINE(ptr)) &&
0 0 (d != OP_ANY || !IS_NEWLINE(ptr)) &&
0 0 (d != OP_ANY || !IS_NEWLINE(ptr)) &&
0 0 (d != OP_ANY || !IS_NEWLINE(ptr)) &&
0 0 (d != OP_ANY || !IS_NEWLINE(ptr)) &&
0 0 (d != OP_ANY || !IS_NEWLINE(ptr)) &&
0 0 (d != OP_ANY || !IS_NEWLINE(ptr)) &&
0 0 (d != OP_ANY || !IS_NEWLINE(ptr)) &&
0 0 (d != OP_ANY || !IS_NEWLINE(ptr)) &&
1214 0 0 if (codevalue == OP_TYPEPOSQUERY)
1219 0 0 ADD_NEW(state_offset + 2, 0);
1228 0 0 ADD_ACTIVE(state_offset + 2, 0);
1229 0 0 if (clen > 0)
1231 0 0 if (d == OP_ANY && ptr + 1 >= md->end_subject &&
0 0 if (d == OP_ANY && ptr + 1 >= md->end_subject &&
0 0 if (d == OP_ANY && ptr + 1 >= md->end_subject &&
1232 0 0 (md->moptions & (PCRE_PARTIAL_HARD)) != 0 &&
1233 0 0 NLBLOCK->nltype == NLTYPE_FIXED &&
1234 0 0 NLBLOCK->nllen == 2 &&
1239 0 0 else if ((c >= 256 && d != OP_DIGIT && d != OP_WHITESPACE && d != OP_WORDCHAR) ||
0 0 else if ((c >= 256 && d != OP_DIGIT && d != OP_WHITESPACE && d != OP_WORDCHAR) ||
0 0 else if ((c >= 256 && d != OP_DIGIT && d != OP_WHITESPACE && d != OP_WORDCHAR) ||
0 0 else if ((c >= 256 && d != OP_DIGIT && d != OP_WHITESPACE && d != OP_WORDCHAR) ||
0 0 else if ((c >= 256 && d != OP_DIGIT && d != OP_WHITESPACE && d != OP_WORDCHAR) ||
0 0 else if ((c >= 256 && d != OP_DIGIT && d != OP_WHITESPACE && d != OP_WORDCHAR) ||
1240 0 0 (c < 256 &&
1241 0 0 (d != OP_ANY || !IS_NEWLINE(ptr)) &&
0 0 (d != OP_ANY || !IS_NEWLINE(ptr)) &&
0 0 (d != OP_ANY || !IS_NEWLINE(ptr)) &&
0 0 (d != OP_ANY || !IS_NEWLINE(ptr)) &&
0 0 (d != OP_ANY || !IS_NEWLINE(ptr)) &&
0 0 (d != OP_ANY || !IS_NEWLINE(ptr)) &&
0 0 (d != OP_ANY || !IS_NEWLINE(ptr)) &&
0 0 (d != OP_ANY || !IS_NEWLINE(ptr)) &&
0 0 (d != OP_ANY || !IS_NEWLINE(ptr)) &&
1244 0 0 if (codevalue == OP_TYPEPOSSTAR)
1249 0 0 ADD_NEW(state_offset, 0);
1257 0 0 if (clen > 0)
1259 0 0 if (d == OP_ANY && ptr + 1 >= md->end_subject &&
0 0 if (d == OP_ANY && ptr + 1 >= md->end_subject &&
0 0 if (d == OP_ANY && ptr + 1 >= md->end_subject &&
1260 0 0 (md->moptions & (PCRE_PARTIAL_HARD)) != 0 &&
1261 0 0 NLBLOCK->nltype == NLTYPE_FIXED &&
1262 0 0 NLBLOCK->nllen == 2 &&
1267 0 0 else if ((c >= 256 && d != OP_DIGIT && d != OP_WHITESPACE && d != OP_WORDCHAR) ||
0 0 else if ((c >= 256 && d != OP_DIGIT && d != OP_WHITESPACE && d != OP_WORDCHAR) ||
0 0 else if ((c >= 256 && d != OP_DIGIT && d != OP_WHITESPACE && d != OP_WORDCHAR) ||
0 0 else if ((c >= 256 && d != OP_DIGIT && d != OP_WHITESPACE && d != OP_WORDCHAR) ||
0 0 else if ((c >= 256 && d != OP_DIGIT && d != OP_WHITESPACE && d != OP_WORDCHAR) ||
0 0 else if ((c >= 256 && d != OP_DIGIT && d != OP_WHITESPACE && d != OP_WORDCHAR) ||
1268 0 0 (c < 256 &&
1269 0 0 (d != OP_ANY || !IS_NEWLINE(ptr)) &&
0 0 (d != OP_ANY || !IS_NEWLINE(ptr)) &&
0 0 (d != OP_ANY || !IS_NEWLINE(ptr)) &&
0 0 (d != OP_ANY || !IS_NEWLINE(ptr)) &&
0 0 (d != OP_ANY || !IS_NEWLINE(ptr)) &&
0 0 (d != OP_ANY || !IS_NEWLINE(ptr)) &&
0 0 (d != OP_ANY || !IS_NEWLINE(ptr)) &&
0 0 (d != OP_ANY || !IS_NEWLINE(ptr)) &&
0 0 (d != OP_ANY || !IS_NEWLINE(ptr)) &&
1272 0 0 if (++count >= (int)GET2(code, 1))
1273 0 0 { ADD_NEW(state_offset + 1 + IMM2_SIZE + 1, 0); }
1275 0 0 { ADD_NEW(state_offset, count); }
1284 0 0 ADD_ACTIVE(state_offset + 2 + IMM2_SIZE, 0);
1286 0 0 if (clen > 0)
1288 0 0 if (d == OP_ANY && ptr + 1 >= md->end_subject &&
0 0 if (d == OP_ANY && ptr + 1 >= md->end_subject &&
0 0 if (d == OP_ANY && ptr + 1 >= md->end_subject &&
1289 0 0 (md->moptions & (PCRE_PARTIAL_HARD)) != 0 &&
1290 0 0 NLBLOCK->nltype == NLTYPE_FIXED &&
1291 0 0 NLBLOCK->nllen == 2 &&
1296 0 0 else if ((c >= 256 && d != OP_DIGIT && d != OP_WHITESPACE && d != OP_WORDCHAR) ||
0 0 else if ((c >= 256 && d != OP_DIGIT && d != OP_WHITESPACE && d != OP_WORDCHAR) ||
0 0 else if ((c >= 256 && d != OP_DIGIT && d != OP_WHITESPACE && d != OP_WORDCHAR) ||
0 0 else if ((c >= 256 && d != OP_DIGIT && d != OP_WHITESPACE && d != OP_WORDCHAR) ||
0 0 else if ((c >= 256 && d != OP_DIGIT && d != OP_WHITESPACE && d != OP_WORDCHAR) ||
0 0 else if ((c >= 256 && d != OP_DIGIT && d != OP_WHITESPACE && d != OP_WORDCHAR) ||
1297 0 0 (c < 256 &&
1298 0 0 (d != OP_ANY || !IS_NEWLINE(ptr)) &&
0 0 (d != OP_ANY || !IS_NEWLINE(ptr)) &&
0 0 (d != OP_ANY || !IS_NEWLINE(ptr)) &&
0 0 (d != OP_ANY || !IS_NEWLINE(ptr)) &&
0 0 (d != OP_ANY || !IS_NEWLINE(ptr)) &&
0 0 (d != OP_ANY || !IS_NEWLINE(ptr)) &&
0 0 (d != OP_ANY || !IS_NEWLINE(ptr)) &&
0 0 (d != OP_ANY || !IS_NEWLINE(ptr)) &&
0 0 (d != OP_ANY || !IS_NEWLINE(ptr)) &&
1301 0 0 if (codevalue == OP_TYPEPOSUPTO)
1306 0 0 if (++count >= (int)GET2(code, 1))
1307 0 0 { ADD_NEW(state_offset + 2 + IMM2_SIZE, 0); }
1309 0 0 { ADD_NEW(state_offset, count); }
1459 0 0 if (count > 0) { ADD_ACTIVE(state_offset + 2, 0); }
0 0 if (count > 0) { ADD_ACTIVE(state_offset + 2, 0); }
1460 0 0 if (clen > 0)
1472 0 0 if ((md->moptions & PCRE_BSR_ANYCRLF) != 0) break;
1476 0 0 if (ptr + 1 < end_subject && UCHAR21TEST(ptr + 1) == CHAR_LF) ncount = 1;
0 0 if (ptr + 1 < end_subject && UCHAR21TEST(ptr + 1) == CHAR_LF) ncount = 1;
1481 0 0 if (count > 0 && codevalue == OP_ANYNL_EXTRA + OP_TYPEPOSPLUS)
0 0 if (count > 0 && codevalue == OP_ANYNL_EXTRA + OP_TYPEPOSPLUS)
1487 0 0 ADD_NEW_DATA(-state_offset, count, ncount);
1501 0 0 if (count > 0) { ADD_ACTIVE(state_offset + 2, 0); }
0 0 if (count > 0) { ADD_ACTIVE(state_offset + 2, 0); }
1502 0 0 if (clen > 0)
1505 0 0 switch (c)
1516 0 0 if (OK == (d == OP_VSPACE))
1518 0 0 if (count > 0 && codevalue == OP_VSPACE_EXTRA + OP_TYPEPOSPLUS)
0 0 if (count > 0 && codevalue == OP_VSPACE_EXTRA + OP_TYPEPOSPLUS)
1524 0 0 ADD_NEW_DATA(-state_offset, count, 0);
1534 0 0 if (count > 0) { ADD_ACTIVE(state_offset + 2, 0); }
0 0 if (count > 0) { ADD_ACTIVE(state_offset + 2, 0); }
1535 0 0 if (clen > 0)
1538 0 0 switch (c)
1549 0 0 if (OK == (d == OP_HSPACE))
1551 0 0 if (count > 0 && codevalue == OP_HSPACE_EXTRA + OP_TYPEPOSPLUS)
0 0 if (count > 0 && codevalue == OP_HSPACE_EXTRA + OP_TYPEPOSPLUS)
1557 0 0 ADD_NEW_DATA(-state_offset, count, 0);
1728 0 0 ADD_ACTIVE(state_offset + 2, 0);
1729 0 0 if (clen > 0)
1741 0 0 if ((md->moptions & PCRE_BSR_ANYCRLF) != 0) break;
1745 0 0 if (ptr + 1 < end_subject && UCHAR21TEST(ptr + 1) == CHAR_LF) ncount = 1;
0 0 if (ptr + 1 < end_subject && UCHAR21TEST(ptr + 1) == CHAR_LF) ncount = 1;
1750 0 0 if (codevalue == OP_ANYNL_EXTRA + OP_TYPEPOSSTAR ||
0 0 if (codevalue == OP_ANYNL_EXTRA + OP_TYPEPOSSTAR ||
1756 0 0 ADD_NEW_DATA(-(state_offset + (int)count), 0, ncount);
1778 0 0 ADD_ACTIVE(state_offset + 2, 0);
1779 0 0 if (clen > 0)
1782 0 0 switch (c)
1792 0 0 if (OK == (d == OP_VSPACE))
1794 0 0 if (codevalue == OP_VSPACE_EXTRA + OP_TYPEPOSSTAR ||
0 0 if (codevalue == OP_VSPACE_EXTRA + OP_TYPEPOSSTAR ||
1800 0 0 ADD_NEW_DATA(-(state_offset + (int)count), 0, 0);
1818 0 0 ADD_ACTIVE(state_offset + 2, 0);
1819 0 0 if (clen > 0)
1822 0 0 switch (c)
1833 0 0 if (OK == (d == OP_HSPACE))
1835 0 0 if (codevalue == OP_HSPACE_EXTRA + OP_TYPEPOSSTAR ||
0 0 if (codevalue == OP_HSPACE_EXTRA + OP_TYPEPOSSTAR ||
1841 0 0 ADD_NEW_DATA(-(state_offset + (int)count), 0, 0);
1996 0 0 if (codevalue != OP_ANYNL_EXTRA + OP_TYPEEXACT)
1997 0 0 { ADD_ACTIVE(state_offset + 2 + IMM2_SIZE, 0); }
1999 0 0 if (clen > 0)
2011 0 0 if ((md->moptions & PCRE_BSR_ANYCRLF) != 0) break;
2015 0 0 if (ptr + 1 < end_subject && UCHAR21TEST(ptr + 1) == CHAR_LF) ncount = 1;
0 0 if (ptr + 1 < end_subject && UCHAR21TEST(ptr + 1) == CHAR_LF) ncount = 1;
2020 0 0 if (codevalue == OP_ANYNL_EXTRA + OP_TYPEPOSUPTO)
2025 0 0 if (++count >= (int)GET2(code, 1))
2026 0 0 { ADD_NEW_DATA(-(state_offset + 2 + IMM2_SIZE), 0, ncount); }
2028 0 0 { ADD_NEW_DATA(-state_offset, count, ncount); }
2042 0 0 if (codevalue != OP_VSPACE_EXTRA + OP_TYPEEXACT)
2043 0 0 { ADD_ACTIVE(state_offset + 2 + IMM2_SIZE, 0); }
2045 0 0 if (clen > 0)
2048 0 0 switch (c)
2058 0 0 if (OK == (d == OP_VSPACE))
2060 0 0 if (codevalue == OP_VSPACE_EXTRA + OP_TYPEPOSUPTO)
2065 0 0 if (++count >= (int)GET2(code, 1))
2066 0 0 { ADD_NEW_DATA(-(state_offset + 2 + IMM2_SIZE), 0, 0); }
2068 0 0 { ADD_NEW_DATA(-state_offset, count, 0); }
2078 0 0 if (codevalue != OP_HSPACE_EXTRA + OP_TYPEEXACT)
2079 0 0 { ADD_ACTIVE(state_offset + 2 + IMM2_SIZE, 0); }
2081 0 0 if (clen > 0)
2084 0 0 switch (c)
2095 0 0 if (OK == (d == OP_HSPACE))
2097 0 0 if (codevalue == OP_HSPACE_EXTRA + OP_TYPEPOSUPTO)
2102 0 0 if (++count >= (int)GET2(code, 1))
2103 0 0 { ADD_NEW_DATA(-(state_offset + 2 + IMM2_SIZE), 0, 0); }
2105 0 0 { ADD_NEW_DATA(-state_offset, count, 0); }
2118 0 0 if (clen > 0 && c == d) { ADD_NEW(state_offset + dlen + 1, 0); }
0 0 if (clen > 0 && c == d) { ADD_NEW(state_offset + dlen + 1, 0); }
0 0 if (clen > 0 && c == d) { ADD_NEW(state_offset + dlen + 1, 0); }
2123 0 0 if (clen == 0) break;
2149 0 0 if (TABLE_GET(c, lcc, c) == TABLE_GET(d, lcc, d))
2150 0 0 { ADD_NEW(state_offset + 2, 0); }
2191 0 0 if (clen > 0) switch(c)
2200 0 0 if ((md->moptions & PCRE_BSR_ANYCRLF) != 0) break;
2203 0 0 ADD_NEW(state_offset + 1, 0);
2207 0 0 if (ptr + 1 >= end_subject)
2209 0 0 ADD_NEW(state_offset + 1, 0);
2210 0 0 if ((md->moptions & PCRE_PARTIAL_HARD) != 0)
2213 0 0 else if (UCHAR21TEST(ptr + 1) == CHAR_LF)
2215 0 0 ADD_NEW_DATA(-(state_offset + 1), 0, 1);
2219 0 0 ADD_NEW(state_offset + 1, 0);
2227 0 0 if (clen > 0) switch(c)
0 0 if (clen > 0) switch(c)
2233 0 0 ADD_NEW(state_offset + 1, 0);
2240 0 0 if (clen > 0) switch(c)
0 0 if (clen > 0) switch(c)
2243 0 0 ADD_NEW(state_offset + 1, 0);
2253 0 0 if (clen > 0) switch(c)
0 0 if (clen > 0) switch(c)
2259 0 0 ADD_NEW(state_offset + 1, 0);
2266 0 0 if (clen > 0) switch(c)
0 0 if (clen > 0) switch(c)
2269 0 0 ADD_NEW(state_offset + 1, 0);
2281 0 0 if (clen > 0 && c != d) { ADD_NEW(state_offset + dlen + 1, 0); }
0 0 if (clen > 0 && c != d) { ADD_NEW(state_offset + dlen + 1, 0); }
0 0 if (clen > 0 && c != d) { ADD_NEW(state_offset + dlen + 1, 0); }
2288 0 0 if (clen > 0)
2303 0 0 if (c != d && c != otherd)
0 0 if (c != d && c != otherd)
2304 0 0 { ADD_NEW(state_offset + dlen + 1, 0); }
2326 0 0 if (count > 0) { ADD_ACTIVE(state_offset + dlen + 1, 0); }
0 0 if (count > 0) { ADD_ACTIVE(state_offset + dlen + 1, 0); }
2327 0 0 if (clen > 0)
2330 0 0 if (caseless)
2343 0 0 if ((c == d || c == otherd) == (codevalue < OP_NOTSTAR))
0 0 if ((c == d || c == otherd) == (codevalue < OP_NOTSTAR))
0 0 if ((c == d || c == otherd) == (codevalue < OP_NOTSTAR))
2345 0 0 if (count > 0 &&
0 0 if (count > 0 &&
2346 0 0 (codevalue == OP_POSPLUS || codevalue == OP_NOTPOSPLUS))
2352 0 0 ADD_NEW(state_offset, count);
2373 0 0 ADD_ACTIVE(state_offset + dlen + 1, 0);
2374 0 0 if (clen > 0)
2377 0 0 if (caseless)
2390 0 0 if ((c == d || c == otherd) == (codevalue < OP_NOTSTAR))
0 0 if ((c == d || c == otherd) == (codevalue < OP_NOTSTAR))
0 0 if ((c == d || c == otherd) == (codevalue < OP_NOTSTAR))
2392 0 0 if (codevalue == OP_POSQUERY || codevalue == OP_NOTPOSQUERY)
0 0 if (codevalue == OP_POSQUERY || codevalue == OP_NOTPOSQUERY)
2397 0 0 ADD_NEW(state_offset + dlen + 1, 0);
2418 0 0 ADD_ACTIVE(state_offset + dlen + 1, 0);
2419 0 0 if (clen > 0)
2422 0 0 if (caseless)
2435 0 0 if ((c == d || c == otherd) == (codevalue < OP_NOTSTAR))
0 0 if ((c == d || c == otherd) == (codevalue < OP_NOTSTAR))
0 0 if ((c == d || c == otherd) == (codevalue < OP_NOTSTAR))
2437 0 0 if (codevalue == OP_POSSTAR || codevalue == OP_NOTPOSSTAR)
0 0 if (codevalue == OP_POSSTAR || codevalue == OP_NOTPOSSTAR)
2442 0 0 ADD_NEW(state_offset, 0);
2456 0 0 if (clen > 0)
2459 0 0 if (caseless)
2472 0 0 if ((c == d || c == otherd) == (codevalue < OP_NOTSTAR))
0 0 if ((c == d || c == otherd) == (codevalue < OP_NOTSTAR))
0 0 if ((c == d || c == otherd) == (codevalue < OP_NOTSTAR))
2474 0 0 if (++count >= (int)GET2(code, 1))
2475 0 0 { ADD_NEW(state_offset + dlen + 1 + IMM2_SIZE, 0); }
2477 0 0 { ADD_NEW(state_offset, count); }
2498 0 0 ADD_ACTIVE(state_offset + dlen + 1 + IMM2_SIZE, 0);
2500 0 0 if (clen > 0)
2503 0 0 if (caseless)
2516 0 0 if ((c == d || c == otherd) == (codevalue < OP_NOTSTAR))
0 0 if ((c == d || c == otherd) == (codevalue < OP_NOTSTAR))
0 0 if ((c == d || c == otherd) == (codevalue < OP_NOTSTAR))
2518 0 0 if (codevalue == OP_POSUPTO || codevalue == OP_NOTPOSUPTO)
0 0 if (codevalue == OP_POSUPTO || codevalue == OP_NOTPOSUPTO)
2523 0 0 if (++count >= (int)GET2(code, 1))
2524 0 0 { ADD_NEW(state_offset + dlen + 1 + IMM2_SIZE, 0); }
2526 0 0 { ADD_NEW(state_offset, count); }
2546 0 0 if (codevalue != OP_XCLASS)
2549 0 0 if (clen > 0)
2551 0 0 isinclass = (c > 255)? (codevalue == OP_NCLASS) :
2563 0 0 if (clen > 0) isinclass = PRIV(xclass)(c, code + 1 + LINK_SIZE, utf);
2577 0 0 ADD_ACTIVE(next_state_offset + 1, 0);
2578 0 0 if (isinclass)
2580 0 0 if (*ecode == OP_CRPOSSTAR)
2585 0 0 ADD_NEW(state_offset, 0);
2593 0 0 if (count > 0) { ADD_ACTIVE(next_state_offset + 1, 0); }
0 0 if (count > 0) { ADD_ACTIVE(next_state_offset + 1, 0); }
2594 0 0 if (isinclass)
2596 0 0 if (count > 0 && *ecode == OP_CRPOSPLUS)
0 0 if (count > 0 && *ecode == OP_CRPOSPLUS)
2602 0 0 ADD_NEW(state_offset, count);
2609 0 0 ADD_ACTIVE(next_state_offset + 1, 0);
2610 0 0 if (isinclass)
2612 0 0 if (*ecode == OP_CRPOSQUERY)
2617 0 0 ADD_NEW(next_state_offset + 1, 0);
2625 0 0 if (count >= (int)GET2(ecode, 1))
2626 0 0 { ADD_ACTIVE(next_state_offset + 1 + 2 * IMM2_SIZE, 0); }
2627 0 0 if (isinclass)
2630 0 0 if (*ecode == OP_CRPOSRANGE && count >= (int)GET2(ecode, 1))
0 0 if (*ecode == OP_CRPOSRANGE && count >= (int)GET2(ecode, 1))
2635 0 0 if (++count >= max && max != 0) /* Max 0 => no limit */
0 0 if (++count >= max && max != 0) /* Max 0 => no limit */
2636 0 0 { ADD_NEW(next_state_offset + 1 + 2 * IMM2_SIZE, 0); }
2638 0 0 { ADD_NEW(state_offset, count); }
2643 0 0 if (isinclass) { ADD_NEW(next_state_offset, 0); }
0 0 if (isinclass) { ADD_NEW(next_state_offset, 0); }
2669 0 0 while (*endasscode == OP_ALT) endasscode += GET(endasscode, 1);
2682 0 0 if (rc == PCRE_ERROR_DFA_UITEM) return rc;
2683 0 0 if ((rc >= 0) == (codevalue == OP_ASSERT || codevalue == OP_ASSERTBACK))
0 0 if ((rc >= 0) == (codevalue == OP_ASSERT || codevalue == OP_ASSERTBACK))
0 0 if ((rc >= 0) == (codevalue == OP_ASSERT || codevalue == OP_ASSERTBACK))
2684 0 0 { ADD_ACTIVE((int)(endasscode + LINK_SIZE + 1 - start_code), 0); }
2701 0 0 if (code[LINK_SIZE+1] == OP_CALLOUT)
2704 0 0 if (PUBL(callout) != NULL)
2726 0 0 if ((rrc = (*PUBL(callout))(&cb)) < 0) return rrc; /* Abandon */
2728 0 0 if (rrc > 0) break; /* Fail this thread */
2737 0 0 if (condcode == OP_CREF || condcode == OP_DNCREF ||
0 0 if (condcode == OP_CREF || condcode == OP_DNCREF ||
0 0 if (condcode == OP_CREF || condcode == OP_DNCREF ||
2744 0 0 if (condcode == OP_DEF || condcode == OP_FAIL)
0 0 if (condcode == OP_DEF || condcode == OP_FAIL)
2745 0 0 { ADD_ACTIVE(state_offset + codelink + LINK_SIZE + 1, 0); }
2751 0 0 else if (condcode == OP_RREF)
2754 0 0 if (value != RREF_ANY) return PCRE_ERROR_DFA_UCOND;
2755 0 0 if (md->recursive != NULL)
2756 0 0 { ADD_ACTIVE(state_offset + LINK_SIZE + 2 + IMM2_SIZE, 0); }
2757 0 0 else { ADD_ACTIVE(state_offset + codelink + LINK_SIZE + 1, 0); }
2768 0 0 while (*endasscode == OP_ALT) endasscode += GET(endasscode, 1);
2781 0 0 if (rc == PCRE_ERROR_DFA_UITEM) return rc;
2782 0 0 if ((rc >= 0) ==
2783 0 0 (condcode == OP_ASSERT || condcode == OP_ASSERTBACK))
0 0 (condcode == OP_ASSERT || condcode == OP_ASSERTBACK))
2784 0 0 { ADD_ACTIVE((int)(endasscode + LINK_SIZE + 1 - start_code), 0); }
2786 0 0 { ADD_ACTIVE(state_offset + codelink + LINK_SIZE + 1, 0); }
2798 0 0 int recno = (callpat == md->start_code)? 0 :
2808 0 0 for (ri = md->recursive; ri != NULL; ri = ri->prevrec)
2809 0 0 if (recno == ri->group_num && ptr == ri->subject_position)
0 0 if (recno == ri->group_num && ptr == ri->subject_position)
2838 0 0 if (rc == 0) return PCRE_ERROR_DFA_RECURSE;
2844 0 0 if (rc > 0)
2846 0 0 for (rc = rc*2 - 2; rc >= 0; rc -= 2)
2857 0 0 if (charcount > 0)
2859 0 0 ADD_NEW_DATA(-(state_offset + LINK_SIZE + 1), 0, (charcount - 1));
2863 0 0 ADD_ACTIVE(state_offset + LINK_SIZE + 1, 0);
2867 0 0 else if (rc != PCRE_ERROR_NOMATCH) return rc;
2882 0 0 if (codevalue == OP_BRAPOSZERO)
2910 0 0 if (rc < 0)
2912 0 0 if (rc != PCRE_ERROR_NOMATCH) return rc;
2919 0 0 if (charcount == 0) break;
2927 0 0 if (matched_count > 0 || allow_zero)
0 0 if (matched_count > 0 || allow_zero)
2933 0 0 while (*end_subpattern == OP_ALT);
2942 0 0 if (i + 1 >= active_count && new_count == 0)
0 0 if (i + 1 >= active_count && new_count == 0)
2946 0 0 ADD_NEW(next_state_offset, 0);
2956 0 0 ADD_NEW_DATA(-next_state_offset, 0, (charcount - 1));
2980 0 0 if (rc >= 0)
2987 0 0 while (*end_subpattern == OP_ALT);
2995 0 0 repeat_state_offset = (*end_subpattern == OP_KETRMAX ||
2997 0 0 (int)(end_subpattern - start_code - GET(end_subpattern, 1)) : -1;
3004 0 0 if (charcount == 0)
3006 0 0 ADD_ACTIVE(next_state_offset, 0);
3014 0 0 else if (i + 1 >= active_count && new_count == 0)
0 0 else if (i + 1 >= active_count && new_count == 0)
3018 0 0 ADD_NEW(next_state_offset, 0);
3025 0 0 if (repeat_state_offset >= 0)
3030 0 0 ADD_ACTIVE(repeat_state_offset, 0);
3043 0 0 ADD_NEW_DATA(-next_state_offset, 0, (charcount - 1));
3044 0 0 if (repeat_state_offset >= 0)
3045 0 0 { ADD_NEW_DATA(-repeat_state_offset, 0, (charcount - 1)); }
3048 0 0 else if (rc != PCRE_ERROR_NOMATCH) return rc;
3058 0 0 if (PUBL(callout) != NULL)
3080 0 0 if ((rrc = (*PUBL(callout))(&cb)) < 0) return rrc; /* Abandon */
3082 0 0 if (rrc == 0)
3083 0 0 { ADD_ACTIVE(state_offset + PRIV(OP_lengths)[OP_CALLOUT], 0); }
3109 0 0 if (new_count <= 0)
3111 0 0 if (rlevel == 1 && /* Top level, and */
0 0 if (rlevel == 1 && /* Top level, and */
3112 0 0 could_continue && /* Some could go on, and */
3113 0 0 forced_fail != workspace[1] && /* Not all forced fail & */
3116 0 0 || /* or... */
3117 0 0 ((md->moptions & PCRE_PARTIAL_SOFT) != 0 && /* Soft partial and */
3119 0 0 ) && /* And... */
3121 0 0 partial_newline || /* Either partial NL */
3123 0 0 ptr >= end_subject && /* End of subject and */
3213 0 0 if ((options & ~PUBLIC_DFA_EXEC_OPTIONS) != 0) return PCRE_ERROR_BADOPTION;
3214 0 0 if (re == NULL || subject == NULL || workspace == NULL ||
0 0 if (re == NULL || subject == NULL || workspace == NULL ||
0 0 if (re == NULL || subject == NULL || workspace == NULL ||
0 0 if (re == NULL || subject == NULL || workspace == NULL ||
3215 0 0 (offsets == NULL && offsetcount > 0)) return PCRE_ERROR_NULL;
3216 0 0 if (offsetcount < 0) return PCRE_ERROR_BADCOUNT;
3217 0 0 if (wscount < 20) return PCRE_ERROR_DFA_WSSIZE;
3218 0 0 if (length < 0) return PCRE_ERROR_BADLENGTH;
3219 0 0 if (start_offset < 0 || start_offset > length) return PCRE_ERROR_BADOFFSET;
0 0 if (start_offset < 0 || start_offset > length) return PCRE_ERROR_BADOFFSET;
3226 0 0 if (re->magic_number != MAGIC_NUMBER)
3228 0 0 PCRE_ERROR_BADENDIANNESS:PCRE_ERROR_BADMAGIC;
3229 0 0 if ((re->flags & PCRE_MODE) == 0) return PCRE_ERROR_BADMODE;
3234 0 0 if ((options & PCRE_DFA_RESTART) != 0)
3236 0 0 if ((workspace[0] & (-2)) != 0 || workspace[1] < 1 ||
0 0 if ((workspace[0] & (-2)) != 0 || workspace[1] < 1 ||
0 0 if ((workspace[0] & (-2)) != 0 || workspace[1] < 1 ||
3246 0 0 if (extra_data != NULL)
3249 0 0 if ((flags & PCRE_EXTRA_STUDY_DATA) != 0)
3251 0 0 if ((flags & PCRE_EXTRA_MATCH_LIMIT) != 0) return PCRE_ERROR_DFA_UMLIMIT;
3252 0 0 if ((flags & PCRE_EXTRA_MATCH_LIMIT_RECURSION) != 0)
3254 0 0 if ((flags & PCRE_EXTRA_CALLOUT_DATA) != 0)
3256 0 0 if ((flags & PCRE_EXTRA_TABLES) != 0)
3273 0 0 anchored = (options & (PCRE_ANCHORED|PCRE_DFA_RESTART)) != 0 ||
0 0 anchored = (options & (PCRE_ANCHORED|PCRE_DFA_RESTART)) != 0 ||
3289 0 0 if ((md->moptions & (PCRE_BSR_ANYCRLF|PCRE_BSR_UNICODE)) == 0)
3291 0 0 if ((re->options & (PCRE_BSR_ANYCRLF|PCRE_BSR_UNICODE)) != 0)
3301 0 0 switch ((((options & PCRE_NEWLINE_BITS) == 0)? re->options : (pcre_uint32)options) &
3314 0 0 if (newline == -2)
3318 0 0 else if (newline < 0)
3325 0 0 if (newline > 255)
3375 0 0 if (md->tables == NULL) md->tables = PRIV(default_tables);
3389 0 0 if (!anchored)
3391 0 0 if ((re->flags & PCRE_FIRSTSET) != 0)
3395 0 0 if ((re->flags & PCRE_FCH_CASELESS) != 0)
3406 0 0 if (!startline && study != NULL &&
0 0 if (!startline && study != NULL &&
0 0 if (!startline && study != NULL &&
3415 0 0 if ((re->flags & PCRE_REQCHSET) != 0)
3419 0 0 if ((re->flags & PCRE_RCH_CASELESS) != 0)
3437 0 0 if ((options & PCRE_DFA_RESTART) == 0)
3446 0 0 if (firstline)
3460 0 0 while (t < md->end_subject && !IS_NEWLINE(t)) t++;
0 0 while (t < md->end_subject && !IS_NEWLINE(t)) t++;
0 0 while (t < md->end_subject && !IS_NEWLINE(t)) t++;
0 0 while (t < md->end_subject && !IS_NEWLINE(t)) t++;
0 0 while (t < md->end_subject && !IS_NEWLINE(t)) t++;
0 0 while (t < md->end_subject && !IS_NEWLINE(t)) t++;
0 0 while (t < md->end_subject && !IS_NEWLINE(t)) t++;
0 0 while (t < md->end_subject && !IS_NEWLINE(t)) t++;
0 0 while (t < md->end_subject && !IS_NEWLINE(t)) t++;
0 0 while (t < md->end_subject && !IS_NEWLINE(t)) t++;
3470 0 0 if (((options | re->options) & PCRE_NO_START_OPTIMIZE) == 0)
3474 0 0 if (has_first_char)
3476 0 0 if (first_char != first_char2)
3479 0 0 while (current_subject < end_subject &&
0 0 while (current_subject < end_subject &&
3480 0 0 (csc = UCHAR21TEST(current_subject)) != first_char && csc != first_char2)
3484 0 0 while (current_subject < end_subject &&
0 0 while (current_subject < end_subject &&
3491 0 0 else if (startline)
3493 0 0 if (current_subject > md->start_subject + start_offset)
3508 0 0 while (current_subject < end_subject && !WAS_NEWLINE(current_subject))
0 0 while (current_subject < end_subject && !WAS_NEWLINE(current_subject))
0 0 while (current_subject < end_subject && !WAS_NEWLINE(current_subject))
0 0 while (current_subject < end_subject && !WAS_NEWLINE(current_subject))
0 0 while (current_subject < end_subject && !WAS_NEWLINE(current_subject))
0 0 while (current_subject < end_subject && !WAS_NEWLINE(current_subject))
0 0 while (current_subject < end_subject && !WAS_NEWLINE(current_subject))
0 0 while (current_subject < end_subject && !WAS_NEWLINE(current_subject))
0 0 while (current_subject < end_subject && !WAS_NEWLINE(current_subject))
0 0 while (current_subject < end_subject && !WAS_NEWLINE(current_subject))
3515 0 0 if (UCHAR21TEST(current_subject - 1) == CHAR_CR &&
0 0 if (UCHAR21TEST(current_subject - 1) == CHAR_CR &&
3516 0 0 (md->nltype == NLTYPE_ANY || md->nltype == NLTYPE_ANYCRLF) &&
0 0 (md->nltype == NLTYPE_ANY || md->nltype == NLTYPE_ANYCRLF) &&
3517 0 0 current_subject < end_subject &&
3525 0 0 else if (start_bits != NULL)
3527 0 0 while (current_subject < end_subject)
3533 0 0 if ((start_bits[c/8] & (1 << (c&7))) != 0) break;
3547 0 0 if (((options | re->options) & PCRE_NO_START_OPTIMIZE) == 0 &&
0 0 if (((options | re->options) & PCRE_NO_START_OPTIMIZE) == 0 &&
3556 0 0 if (study != NULL && (study->flags & PCRE_STUDY_MINLEN) != 0 &&
0 0 if (study != NULL && (study->flags & PCRE_STUDY_MINLEN) != 0 &&
0 0 if (study != NULL && (study->flags & PCRE_STUDY_MINLEN) != 0 &&
3573 0 0 if (has_req_char && end_subject - current_subject < REQ_BYTE_MAX)
0 0 if (has_req_char && end_subject - current_subject < REQ_BYTE_MAX)
3575 0 0 register PCRE_PUCHAR p = current_subject + (has_first_char? 1:0);
3580 0 0 if (p > req_char_ptr)
3582 0 0 if (req_char != req_char2)
3584 0 0 while (p < end_subject)
3587 0 0 if (pp == req_char || pp == req_char2) { p--; break; }
0 0 if (pp == req_char || pp == req_char2) { p--; break; }
3592 0 0 while (p < end_subject)
3594 0 0 if (UCHAR21INCTEST(p) == req_char) { p--; break; }
3601 0 0 if (p >= end_subject) break;
3632 0 0 if (rc != PCRE_ERROR_NOMATCH || anchored)
0 0 if (rc != PCRE_ERROR_NOMATCH || anchored)
3634 0 0 if (rc == PCRE_ERROR_PARTIAL && offsetcount >= 2)
0 0 if (rc == PCRE_ERROR_PARTIAL && offsetcount >= 2)
3638 0 0 if (offsetcount > 2)
3647 0 0 if (firstline && IS_NEWLINE(current_subject)) break;
0 0 if (firstline && IS_NEWLINE(current_subject)) break;
0 0 if (firstline && IS_NEWLINE(current_subject)) break;
0 0 if (firstline && IS_NEWLINE(current_subject)) break;
0 0 if (firstline && IS_NEWLINE(current_subject)) break;
0 0 if (firstline && IS_NEWLINE(current_subject)) break;
0 0 if (firstline && IS_NEWLINE(current_subject)) break;
0 0 if (firstline && IS_NEWLINE(current_subject)) break;
0 0 if (firstline && IS_NEWLINE(current_subject)) break;
3656 0 0 if (current_subject > end_subject) break;
3662 0 0 if (UCHAR21TEST(current_subject - 1) == CHAR_CR &&
0 0 if (UCHAR21TEST(current_subject - 1) == CHAR_CR &&
3663 0 0 current_subject < end_subject &&
3664 0 0 UCHAR21TEST(current_subject) == CHAR_NL &&
3665 0 0 (re->flags & PCRE_HASCRORLF) == 0 &&
3666 0 0 (md->nltype == NLTYPE_ANY ||
3667 0 0 md->nltype == NLTYPE_ANYCRLF ||