LLVMFuzzerTestOneInput:
   37|      5|extern "C" int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) {
   38|      5|	if(size<3){
  ------------------
  |  Branch (38:5): [True: 0, False: 5]
  ------------------
   39|      0|		return 0;
   40|      0|	}
   41|       |	
   42|      5|	char *loadpath = NULL;
   43|      5|	const char *value;
   44|      5|	const char *label;
   45|      5|	char *new_str = (char *)malloc(size+1);
   46|      5|	if (new_str == NULL){
  ------------------
  |  Branch (46:6): [True: 0, False: 5]
  ------------------
   47|      0|		return 0;
   48|      0|	}
   49|      5|	memcpy(new_str, data, size);
   50|      5|	new_str[size] = '\0';
   51|       |	
   52|      5|	struct augeas *aug = aug_init(new_str, loadpath, AUG_NO_STDINC|AUG_NO_LOAD);
   53|      5|	aug_defvar(aug, new_str, &new_str[1]);
   54|      5|	aug_get(aug, new_str, &value);
   55|      5|	aug_label(aug, new_str, &label);
   56|       |	
   57|      5|	aug_rename(aug, new_str, &new_str[1]);
   58|      5|	aug_text_store(aug, &new_str[1], new_str, &new_str[2]);	
   59|      5|	aug_print(aug, stdout, new_str);
   60|      5|	aug_setm(aug, new_str, NULL, &new_str[1]);	
   61|       |	
   62|      5|	free(new_str);
   63|      5|	aug_close(aug);
   64|      5|	return 0;
   65|      5|}

rpl_nl_langinfo:
  290|    103|{
  291|    103|  switch (item)
  292|    103|    {
  293|       |# if GNULIB_defined_CODESET
  294|       |    case CODESET:
  295|       |      return ctype_codeset ();
  296|       |# endif
  297|       |# if GNULIB_defined_ALTMON
  298|       |    case ALTMON_1:
  299|       |    case ALTMON_2:
  300|       |    case ALTMON_3:
  301|       |    case ALTMON_4:
  302|       |    case ALTMON_5:
  303|       |    case ALTMON_6:
  304|       |    case ALTMON_7:
  305|       |    case ALTMON_8:
  306|       |    case ALTMON_9:
  307|       |    case ALTMON_10:
  308|       |    case ALTMON_11:
  309|       |    case ALTMON_12:
  310|       |      /* We don't ship the appropriate localizations with gnulib.  Therefore,
  311|       |         treat ALTMON_i like MON_i.  */
  312|       |      item = item - ALTMON_1 + MON_1;
  313|       |      break;
  314|       |# endif
  315|       |# if GNULIB_defined_ABALTMON
  316|       |    case ABALTMON_1:
  317|       |    case ABALTMON_2:
  318|       |    case ABALTMON_3:
  319|       |    case ABALTMON_4:
  320|       |    case ABALTMON_5:
  321|       |    case ABALTMON_6:
  322|       |    case ABALTMON_7:
  323|       |    case ABALTMON_8:
  324|       |    case ABALTMON_9:
  325|       |    case ABALTMON_10:
  326|       |    case ABALTMON_11:
  327|       |    case ABALTMON_12:
  328|       |      /* We don't ship the appropriate localizations with gnulib.  Therefore,
  329|       |         treat ABALTMON_i like ABMON_i.  */
  330|       |      item = item - ABALTMON_1 + ABMON_1;
  331|       |      break;
  332|       |# endif
  333|       |# if GNULIB_defined_ERA
  334|       |    case ERA:
  335|       |      /* The format is not standardized.  In glibc it is a sequence of strings
  336|       |         of the form "direction:offset:start_date:end_date:era_name:era_format"
  337|       |         with an empty string at the end.  */
  338|       |      return (char *) "";
  339|       |    case ERA_D_FMT:
  340|       |      /* The %Ex conversion in strftime behaves like %x if the locale does not
  341|       |         have an alternative time format.  */
  342|       |      item = D_FMT;
  343|       |      break;
  344|       |    case ERA_D_T_FMT:
  345|       |      /* The %Ec conversion in strftime behaves like %c if the locale does not
  346|       |         have an alternative time format.  */
  347|       |      item = D_T_FMT;
  348|       |      break;
  349|       |    case ERA_T_FMT:
  350|       |      /* The %EX conversion in strftime behaves like %X if the locale does not
  351|       |         have an alternative time format.  */
  352|       |      item = T_FMT;
  353|       |      break;
  354|       |    case ALT_DIGITS:
  355|       |      /* The format is not standardized.  In glibc it is a sequence of 10
  356|       |         strings, appended in memory.  */
  357|       |      return (char *) "\0\0\0\0\0\0\0\0\0\0";
  358|       |# endif
  359|    103|    default:
  ------------------
  |  Branch (359:5): [True: 103, False: 0]
  ------------------
  360|    103|      break;
  361|    103|    }
  362|    103|  return nl_langinfo_with_lock (item);
  ------------------
  |  |  284|    103|#  define nl_langinfo_with_lock nl_langinfo
  ------------------
  363|    103|}

rpl_re_compile_pattern:
  212|    103|{
  213|    103|  reg_errcode_t ret;
  214|       |
  215|       |  /* And GNU code determines whether or not to get register information
  216|       |     by passing null for the REGS argument to re_match, etc., not by
  217|       |     setting no_sub, unless RE_NO_SUB is set.  */
  218|    103|  bufp->no_sub = !!(re_syntax_options & RE_NO_SUB);
  ------------------
  |  | 2553|    103|#define re_syntax_options rpl_re_syntax_options
  ------------------
                bufp->no_sub = !!(re_syntax_options & RE_NO_SUB);
  ------------------
  |  |  203|    103|# define RE_NO_SUB (RE_CONTEXT_INVALID_DUP << 1)
  |  |  ------------------
  |  |  |  |  199|    103|# define RE_CONTEXT_INVALID_DUP (RE_CARET_ANCHORS_HERE << 1)
  |  |  |  |  ------------------
  |  |  |  |  |  |  195|    103|# define RE_CARET_ANCHORS_HERE (RE_ICASE << 1)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  190|    103|# define RE_ICASE (RE_INVALID_INTERVAL_ORD << 1)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  186|    103|# define RE_INVALID_INTERVAL_ORD (RE_DEBUG << 1)
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  181|    103|# define RE_DEBUG (RE_NO_GNU_OPS << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  173|    103|# define RE_NO_GNU_OPS (RE_NO_POSIX_BACKTRACKING << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  169|    103|# define RE_NO_POSIX_BACKTRACKING (RE_UNMATCHED_RIGHT_PAREN_ORD << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  165|    103|# define RE_UNMATCHED_RIGHT_PAREN_ORD (RE_NO_EMPTY_RANGES << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  161|    103|# define RE_NO_EMPTY_RANGES (RE_NO_BK_VBAR << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  155|    103|# define RE_NO_BK_VBAR (RE_NO_BK_REFS << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  151|    103|# define RE_NO_BK_REFS (RE_NO_BK_PARENS << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  147|    103|# define RE_NO_BK_PARENS (RE_NO_BK_BRACES << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  143|    103|# define RE_NO_BK_BRACES (RE_NEWLINE_ALT << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  138|    103|# define RE_NEWLINE_ALT (RE_LIMITED_OPS << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  134|    103|# define RE_LIMITED_OPS (RE_INTERVALS << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  130|    103|# define RE_INTERVALS (RE_HAT_LISTS_NOT_NEWLINE << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  125|    103|# define RE_HAT_LISTS_NOT_NEWLINE (RE_DOT_NOT_NULL << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  121|    103|# define RE_DOT_NOT_NULL (RE_DOT_NEWLINE << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  117|    103|# define RE_DOT_NEWLINE (RE_CONTEXT_INVALID_OPS << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  113|    103|# define RE_CONTEXT_INVALID_OPS (RE_CONTEXT_INDEP_OPS << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  109|    103|# define RE_CONTEXT_INDEP_OPS (RE_CONTEXT_INDEP_ANCHORS << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  101|    103|# define RE_CONTEXT_INDEP_ANCHORS (RE_CHAR_CLASSES << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |   87|    103|# define RE_CHAR_CLASSES (RE_BK_PLUS_QM << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |   81|    103|# define RE_BK_PLUS_QM (RE_BACKSLASH_ESCAPE_IN_LISTS << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |   76|    103|# define RE_BACKSLASH_ESCAPE_IN_LISTS 1ul
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  219|       |
  220|       |  /* Match anchors at newline.  */
  221|    103|  bufp->newline_anchor = 1;
  222|       |
  223|    103|  ret = re_compile_internal (bufp, pattern, length, re_syntax_options);
  ------------------
  |  | 2553|    103|#define re_syntax_options rpl_re_syntax_options
  ------------------
  224|       |
  225|    103|  if (!ret)
  ------------------
  |  Branch (225:7): [True: 93, False: 10]
  ------------------
  226|     93|    return NULL;
  227|     10|  return gettext (__re_error_msgid + __re_error_msgid_idx[(int) ret]);
  ------------------
  |  |  153|     10|#  define gettext(Msgid) ((const char *) (Msgid))
  ------------------
  228|    103|}
rpl_regfree:
  627|    103|{
  628|    103|  re_dfa_t *dfa = preg->buffer;
  629|    103|  if (__glibc_likely (dfa != NULL))
  ------------------
  |  Branch (629:7): [True: 93, False: 10]
  ------------------
  630|     93|    {
  631|     93|      lock_fini (dfa->lock);
  ------------------
  |  |   59|     93|# define lock_fini(lock) glthread_lock_destroy (&(lock))
  |  |  ------------------
  |  |  |  |  220|     93|    (pthread_in_use () ? pthread_mutex_destroy (LOCK) : 0)
  |  |  |  |  ------------------
  |  |  |  |  |  |  170|     93|#   define pthread_in_use() 1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (170:29): [True: 93, Folded]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  632|     93|      free_dfa_content (dfa);
  633|     93|    }
  634|    103|  preg->buffer = NULL;
  635|    103|  preg->allocated = 0;
  636|       |
  637|    103|  re_free (preg->fastmap);
  ------------------
  |  |  472|    103|#define re_free(p) free (p)
  ------------------
  638|    103|  preg->fastmap = NULL;
  639|       |
  640|    103|  re_free (preg->translate);
  ------------------
  |  |  472|    103|#define re_free(p) free (p)
  ------------------
  641|       |  preg->translate = NULL;
  642|    103|}
regex.c:free_dfa_content:
  579|    103|{
  580|    103|  Idx i, j;
  581|       |
  582|    103|  if (dfa->nodes)
  ------------------
  |  Branch (582:7): [True: 103, False: 0]
  ------------------
  583|    509|    for (i = 0; i < dfa->nodes_len; ++i)
  ------------------
  |  Branch (583:17): [True: 406, False: 103]
  ------------------
  584|    406|      free_token (dfa->nodes + i);
  585|    103|  re_free (dfa->nexts);
  ------------------
  |  |  472|    103|#define re_free(p) free (p)
  ------------------
  586|    509|  for (i = 0; i < dfa->nodes_len; ++i)
  ------------------
  |  Branch (586:15): [True: 406, False: 103]
  ------------------
  587|    406|    {
  588|    406|      if (dfa->eclosures != NULL)
  ------------------
  |  Branch (588:11): [True: 406, False: 0]
  ------------------
  589|    406|	re_node_set_free (dfa->eclosures + i);
  ------------------
  |  |  695|    406|#define re_node_set_free(set) re_free ((set)->elems)
  |  |  ------------------
  |  |  |  |  472|    406|#define re_free(p) free (p)
  |  |  ------------------
  ------------------
  590|    406|      if (dfa->inveclosures != NULL)
  ------------------
  |  Branch (590:11): [True: 152, False: 254]
  ------------------
  591|    406|	re_node_set_free (dfa->inveclosures + i);
  ------------------
  |  |  695|    152|#define re_node_set_free(set) re_free ((set)->elems)
  |  |  ------------------
  |  |  |  |  472|    152|#define re_free(p) free (p)
  |  |  ------------------
  ------------------
  592|    406|      if (dfa->edests != NULL)
  ------------------
  |  Branch (592:11): [True: 406, False: 0]
  ------------------
  593|    406|	re_node_set_free (dfa->edests + i);
  ------------------
  |  |  695|    406|#define re_node_set_free(set) re_free ((set)->elems)
  |  |  ------------------
  |  |  |  |  472|    406|#define re_free(p) free (p)
  |  |  ------------------
  ------------------
  594|    406|    }
  595|    103|  re_free (dfa->edests);
  ------------------
  |  |  472|    103|#define re_free(p) free (p)
  ------------------
  596|    103|  re_free (dfa->eclosures);
  ------------------
  |  |  472|    103|#define re_free(p) free (p)
  ------------------
  597|    103|  re_free (dfa->inveclosures);
  ------------------
  |  |  472|    103|#define re_free(p) free (p)
  ------------------
  598|    103|  re_free (dfa->nodes);
  ------------------
  |  |  472|    103|#define re_free(p) free (p)
  ------------------
  599|       |
  600|    103|  if (dfa->state_table)
  ------------------
  |  Branch (600:7): [True: 103, False: 0]
  ------------------
  601|  2.36M|    for (i = 0; i <= dfa->state_hash_mask; ++i)
  ------------------
  |  Branch (601:17): [True: 2.36M, False: 103]
  ------------------
  602|  2.36M|      {
  603|  2.36M|	struct re_state_table_entry *entry = dfa->state_table + i;
  604|  2.36M|	for (j = 0; j < entry->num; ++j)
  ------------------
  |  Branch (604:14): [True: 198, False: 2.36M]
  ------------------
  605|    198|	  {
  606|    198|	    re_dfastate_t *state = entry->array[j];
  607|    198|	    free_state (state);
  608|    198|	  }
  609|  2.36M|	re_free (entry->array);
  ------------------
  |  |  472|  2.36M|#define re_free(p) free (p)
  ------------------
  610|  2.36M|      }
  611|    103|  re_free (dfa->state_table);
  ------------------
  |  |  472|    103|#define re_free(p) free (p)
  ------------------
  612|    103|  if (dfa->sb_char != utf8_sb_map)
  ------------------
  |  Branch (612:7): [True: 103, False: 0]
  ------------------
  613|    103|    re_free (dfa->sb_char);
  ------------------
  |  |  472|    103|#define re_free(p) free (p)
  ------------------
  614|    103|  re_free (dfa->subexp_map);
  ------------------
  |  |  472|    103|#define re_free(p) free (p)
  ------------------
  615|       |#ifdef DEBUG
  616|       |  re_free (dfa->re_str);
  617|       |#endif
  618|       |
  619|    103|  re_free (dfa);
  ------------------
  |  |  472|    103|#define re_free(p) free (p)
  ------------------
  620|    103|}
regex.c:free_token:
 3753|  1.94M|{
 3754|  1.94M|  if (node->type == COMPLEX_BRACKET && node->duplicated == 0)
  ------------------
  |  Branch (3754:7): [True: 0, False: 1.94M]
  |  Branch (3754:40): [True: 0, False: 0]
  ------------------
 3755|      0|    free_charset (node->opr.mbcset);
 3756|  1.94M|  else if (node->type == SIMPLE_BRACKET && node->duplicated == 0)
  ------------------
  |  Branch (3756:12): [True: 99, False: 1.94M]
  |  Branch (3756:44): [True: 99, False: 0]
  ------------------
 3757|     99|    re_free (node->opr.sbcset);
  ------------------
  |  |  472|     99|#define re_free(p) free (p)
  ------------------
 3758|  1.94M|}
regex.c:free_charset:
 3678|     99|{
 3679|     99|  re_free (cset->mbchars);
  ------------------
  |  |  472|     99|#define re_free(p) free (p)
  ------------------
 3680|       |#ifdef _LIBC
 3681|       |  re_free (cset->coll_syms);
 3682|       |  re_free (cset->equiv_classes);
 3683|       |#endif
 3684|     99|  re_free (cset->range_starts);
  ------------------
  |  |  472|     99|#define re_free(p) free (p)
  ------------------
 3685|     99|  re_free (cset->range_ends);
  ------------------
  |  |  472|     99|#define re_free(p) free (p)
  ------------------
 3686|     99|  re_free (cset->char_classes);
  ------------------
  |  |  472|     99|#define re_free(p) free (p)
  ------------------
 3687|     99|  re_free (cset);
  ------------------
  |  |  472|     99|#define re_free(p) free (p)
  ------------------
 3688|     99|}
regex.c:re_compile_internal:
  721|    103|{
  722|    103|  reg_errcode_t err = REG_NOERROR;
  ------------------
  |  |  376|    103|#define REG_NOERROR	_REG_NOERROR
  ------------------
  723|    103|  re_dfa_t *dfa;
  724|    103|  re_string_t regexp;
  725|       |
  726|       |  /* Initialize the pattern buffer.  */
  727|    103|  preg->fastmap_accurate = 0;
  728|    103|  preg->syntax = syntax;
  729|    103|  preg->not_bol = preg->not_eol = 0;
  730|    103|  preg->used = 0;
  731|    103|  preg->re_nsub = 0;
  732|    103|  preg->can_be_null = 0;
  733|    103|  preg->regs_allocated = REGS_UNALLOCATED;
  ------------------
  |  |  453|    103|# define REGS_UNALLOCATED 0
  ------------------
  734|       |
  735|       |  /* Initialize the dfa.  */
  736|    103|  dfa = preg->buffer;
  737|    103|  if (__glibc_unlikely (preg->allocated < sizeof (re_dfa_t)))
  ------------------
  |  Branch (737:7): [True: 103, False: 0]
  ------------------
  738|    103|    {
  739|       |      /* If zero allocated, but buffer is non-null, try to realloc
  740|       |	 enough space.  This loses if buffer's address is bogus, but
  741|       |	 that is the user's responsibility.  If ->buffer is NULL this
  742|       |	 is a simple allocation.  */
  743|    103|      dfa = re_realloc (preg->buffer, re_dfa_t, 1);
  ------------------
  |  |  471|    103|#define re_realloc(p,t,n) ((t *) realloc (p, (n) * sizeof (t)))
  ------------------
  744|    103|      if (dfa == NULL)
  ------------------
  |  Branch (744:11): [True: 0, False: 103]
  ------------------
  745|      0|	return REG_ESPACE;
  ------------------
  |  |  388|      0|#define REG_ESPACE	_REG_ESPACE
  ------------------
  746|    103|      preg->allocated = sizeof (re_dfa_t);
  747|    103|      preg->buffer = dfa;
  748|    103|    }
  749|    103|  preg->used = sizeof (re_dfa_t);
  750|       |
  751|    103|  err = init_dfa (dfa, length);
  752|    103|  if (__glibc_unlikely (err == REG_NOERROR && lock_init (dfa->lock) != 0))
  ------------------
  |  Branch (752:7): [True: 103, Folded]
  |  Branch (752:7): [True: 103, False: 0]
  |  Branch (752:7): [True: 0, False: 103]
  |  Branch (752:7): [True: 0, False: 103]
  ------------------
  753|      0|    err = REG_ESPACE;
  ------------------
  |  |  388|      0|#define REG_ESPACE	_REG_ESPACE
  ------------------
  754|    103|  if (__glibc_unlikely (err != REG_NOERROR))
  ------------------
  |  Branch (754:7): [True: 0, False: 103]
  ------------------
  755|      0|    {
  756|      0|      free_dfa_content (dfa);
  757|      0|      preg->buffer = NULL;
  758|      0|      preg->allocated = 0;
  759|      0|      return err;
  760|      0|    }
  761|       |#ifdef DEBUG
  762|       |  /* Note: length+1 will not overflow since it is checked in init_dfa.  */
  763|       |  dfa->re_str = re_malloc (char, length + 1);
  764|       |  strncpy (dfa->re_str, pattern, length + 1);
  765|       |#endif
  766|       |
  767|    103|  err = re_string_construct (&regexp, pattern, length, preg->translate,
  768|    103|			     (syntax & RE_ICASE) != 0, dfa);
  ------------------
  |  |  190|    103|# define RE_ICASE (RE_INVALID_INTERVAL_ORD << 1)
  |  |  ------------------
  |  |  |  |  186|    103|# define RE_INVALID_INTERVAL_ORD (RE_DEBUG << 1)
  |  |  |  |  ------------------
  |  |  |  |  |  |  181|    103|# define RE_DEBUG (RE_NO_GNU_OPS << 1)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  173|    103|# define RE_NO_GNU_OPS (RE_NO_POSIX_BACKTRACKING << 1)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  169|    103|# define RE_NO_POSIX_BACKTRACKING (RE_UNMATCHED_RIGHT_PAREN_ORD << 1)
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  165|    103|# define RE_UNMATCHED_RIGHT_PAREN_ORD (RE_NO_EMPTY_RANGES << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  161|    103|# define RE_NO_EMPTY_RANGES (RE_NO_BK_VBAR << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  155|    103|# define RE_NO_BK_VBAR (RE_NO_BK_REFS << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  151|    103|# define RE_NO_BK_REFS (RE_NO_BK_PARENS << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  147|    103|# define RE_NO_BK_PARENS (RE_NO_BK_BRACES << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  143|    103|# define RE_NO_BK_BRACES (RE_NEWLINE_ALT << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  138|    103|# define RE_NEWLINE_ALT (RE_LIMITED_OPS << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  134|    103|# define RE_LIMITED_OPS (RE_INTERVALS << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  130|    103|# define RE_INTERVALS (RE_HAT_LISTS_NOT_NEWLINE << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  125|    103|# define RE_HAT_LISTS_NOT_NEWLINE (RE_DOT_NOT_NULL << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  121|    103|# define RE_DOT_NOT_NULL (RE_DOT_NEWLINE << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  117|    103|# define RE_DOT_NEWLINE (RE_CONTEXT_INVALID_OPS << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  113|    103|# define RE_CONTEXT_INVALID_OPS (RE_CONTEXT_INDEP_OPS << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  109|    103|# define RE_CONTEXT_INDEP_OPS (RE_CONTEXT_INDEP_ANCHORS << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  101|    103|# define RE_CONTEXT_INDEP_ANCHORS (RE_CHAR_CLASSES << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |   87|    103|# define RE_CHAR_CLASSES (RE_BK_PLUS_QM << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |   81|    103|# define RE_BK_PLUS_QM (RE_BACKSLASH_ESCAPE_IN_LISTS << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |   76|    103|# define RE_BACKSLASH_ESCAPE_IN_LISTS 1ul
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  769|    103|  if (__glibc_unlikely (err != REG_NOERROR))
  ------------------
  |  Branch (769:7): [True: 0, False: 103]
  ------------------
  770|      0|    {
  771|     10|    re_compile_internal_free_return:
  772|     10|      free_workarea_compile (preg);
  773|     10|      re_string_destruct (&regexp);
  774|     10|      lock_fini (dfa->lock);
  ------------------
  |  |   59|     10|# define lock_fini(lock) glthread_lock_destroy (&(lock))
  |  |  ------------------
  |  |  |  |  220|     10|    (pthread_in_use () ? pthread_mutex_destroy (LOCK) : 0)
  |  |  |  |  ------------------
  |  |  |  |  |  |  170|     10|#   define pthread_in_use() 1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (170:29): [True: 10, Folded]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  775|     10|      free_dfa_content (dfa);
  776|     10|      preg->buffer = NULL;
  777|     10|      preg->allocated = 0;
  778|     10|      return err;
  779|      0|    }
  780|       |
  781|       |  /* Parse the regular expression, and build a structure tree.  */
  782|    103|  preg->re_nsub = 0;
  783|    103|  dfa->str_tree = parse (&regexp, preg, syntax, &err);
  784|    103|  if (__glibc_unlikely (dfa->str_tree == NULL))
  ------------------
  |  Branch (784:7): [True: 10, False: 93]
  ------------------
  785|     10|    goto re_compile_internal_free_return;
  786|       |
  787|       |  /* Analyze the tree and create the nfa.  */
  788|     93|  err = analyze (preg);
  789|     93|  if (__glibc_unlikely (err != REG_NOERROR))
  ------------------
  |  Branch (789:7): [True: 0, False: 93]
  ------------------
  790|      0|    goto re_compile_internal_free_return;
  791|       |
  792|       |  /* If possible, do searching in single byte encoding to speed things up.  */
  793|     93|  if (dfa->is_utf8 && !(syntax & RE_ICASE) && preg->translate == NULL)
  ------------------
  |  |  190|      0|# define RE_ICASE (RE_INVALID_INTERVAL_ORD << 1)
  |  |  ------------------
  |  |  |  |  186|      0|# define RE_INVALID_INTERVAL_ORD (RE_DEBUG << 1)
  |  |  |  |  ------------------
  |  |  |  |  |  |  181|      0|# define RE_DEBUG (RE_NO_GNU_OPS << 1)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  173|      0|# define RE_NO_GNU_OPS (RE_NO_POSIX_BACKTRACKING << 1)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  169|      0|# define RE_NO_POSIX_BACKTRACKING (RE_UNMATCHED_RIGHT_PAREN_ORD << 1)
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  165|      0|# define RE_UNMATCHED_RIGHT_PAREN_ORD (RE_NO_EMPTY_RANGES << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  161|      0|# define RE_NO_EMPTY_RANGES (RE_NO_BK_VBAR << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  155|      0|# define RE_NO_BK_VBAR (RE_NO_BK_REFS << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  151|      0|# define RE_NO_BK_REFS (RE_NO_BK_PARENS << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  147|      0|# define RE_NO_BK_PARENS (RE_NO_BK_BRACES << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  143|      0|# define RE_NO_BK_BRACES (RE_NEWLINE_ALT << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  138|      0|# define RE_NEWLINE_ALT (RE_LIMITED_OPS << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  134|      0|# define RE_LIMITED_OPS (RE_INTERVALS << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  130|      0|# define RE_INTERVALS (RE_HAT_LISTS_NOT_NEWLINE << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  125|      0|# define RE_HAT_LISTS_NOT_NEWLINE (RE_DOT_NOT_NULL << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  121|      0|# define RE_DOT_NOT_NULL (RE_DOT_NEWLINE << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  117|      0|# define RE_DOT_NEWLINE (RE_CONTEXT_INVALID_OPS << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  113|      0|# define RE_CONTEXT_INVALID_OPS (RE_CONTEXT_INDEP_OPS << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  109|      0|# define RE_CONTEXT_INDEP_OPS (RE_CONTEXT_INDEP_ANCHORS << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  101|      0|# define RE_CONTEXT_INDEP_ANCHORS (RE_CHAR_CLASSES << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |   87|      0|# define RE_CHAR_CLASSES (RE_BK_PLUS_QM << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |   81|      0|# define RE_BK_PLUS_QM (RE_BACKSLASH_ESCAPE_IN_LISTS << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |   76|      0|# define RE_BACKSLASH_ESCAPE_IN_LISTS 1ul
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  |  Branch (793:7): [True: 0, False: 93]
  |  Branch (793:23): [True: 0, False: 0]
  |  Branch (793:47): [True: 0, False: 0]
  ------------------
  794|      0|    optimize_utf8 (dfa);
  795|       |
  796|       |  /* Then create the initial state of the dfa.  */
  797|     93|  err = create_initial_state (dfa);
  798|       |
  799|       |  /* Release work areas.  */
  800|     93|  free_workarea_compile (preg);
  801|     93|  re_string_destruct (&regexp);
  802|       |
  803|     93|  if (__glibc_unlikely (err != REG_NOERROR))
  ------------------
  |  Branch (803:7): [True: 0, False: 93]
  ------------------
  804|      0|    {
  805|      0|      lock_fini (dfa->lock);
  ------------------
  |  |   59|      0|# define lock_fini(lock) glthread_lock_destroy (&(lock))
  |  |  ------------------
  |  |  |  |  220|      0|    (pthread_in_use () ? pthread_mutex_destroy (LOCK) : 0)
  |  |  |  |  ------------------
  |  |  |  |  |  |  170|      0|#   define pthread_in_use() 1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (170:29): [True: 0, Folded]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  806|      0|      free_dfa_content (dfa);
  807|      0|      preg->buffer = NULL;
  808|      0|      preg->allocated = 0;
  809|      0|    }
  810|       |
  811|     93|  return err;
  812|     93|}
regex.c:init_dfa:
  819|    103|{
  820|    103|  __re_size_t table_size;
  821|    103|#ifndef _LIBC
  822|    103|  const char *codeset_name;
  823|    103|#endif
  824|    103|  size_t max_i18n_object_size = MAX (sizeof (wchar_t), sizeof (wctype_t));
  ------------------
  |  |  460|    103|# define MAX(a,b) ((a) < (b) ? (b) : (a))
  |  |  ------------------
  |  |  |  Branch (460:20): [True: 103, Folded]
  |  |  ------------------
  ------------------
  825|    103|  size_t max_object_size =
  826|    103|    MAX (sizeof (struct re_state_table_entry),
  ------------------
  |  |  460|  1.03k|# define MAX(a,b) ((a) < (b) ? (b) : (a))
  |  |  ------------------
  |  |  |  Branch (460:20): [True: 0, False: 103]
  |  |  |  Branch (460:27): [True: 0, False: 103]
  |  |  |  Branch (460:27): [True: 0, False: 0]
  |  |  |  Branch (460:27): [True: 0, False: 103]
  |  |  |  Branch (460:27): [True: 0, False: 103]
  |  |  |  Branch (460:27): [True: 0, False: 0]
  |  |  |  Branch (460:27): [True: 0, False: 103]
  |  |  |  Branch (460:27): [True: 103, False: 0]
  |  |  |  Branch (460:33): [True: 0, False: 0]
  |  |  |  Branch (460:33): [True: 0, False: 0]
  |  |  |  Branch (460:33): [True: 0, False: 0]
  |  |  |  Branch (460:33): [True: 0, False: 0]
  |  |  |  Branch (460:33): [True: 0, False: 0]
  |  |  |  Branch (460:33): [True: 0, False: 0]
  |  |  |  Branch (460:33): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  827|    103|	 MAX (sizeof (re_token_t),
  828|    103|	      MAX (sizeof (re_node_set),
  829|    103|		   MAX (sizeof (regmatch_t),
  830|    103|			max_i18n_object_size))));
  831|       |
  832|    103|  memset (dfa, '\0', sizeof (re_dfa_t));
  833|       |
  834|       |  /* Force allocation of str_tree_storage the first time.  */
  835|    103|  dfa->str_tree_storage_idx = BIN_TREE_STORAGE_SIZE;
  ------------------
  |  |  491|    103|  ((1024 - sizeof (void *)) / sizeof (bin_tree_t))
  ------------------
  836|       |
  837|       |  /* Avoid overflows.  The extra "/ 2" is for the table_size doubling
  838|       |     calculation below, and for similar doubling calculations
  839|       |     elsewhere.  And it's <= rather than <, because some of the
  840|       |     doubling calculations add 1 afterwards.  */
  841|    103|  if (__glibc_unlikely (MIN (IDX_MAX, SIZE_MAX / max_object_size) / 2
  ------------------
  |  Branch (841:7): [True: 0, False: 103]
  |  Branch (841:7): [True: 0, False: 103]
  ------------------
  842|    103|			<= pat_len))
  843|      0|    return REG_ESPACE;
  ------------------
  |  |  388|      0|#define REG_ESPACE	_REG_ESPACE
  ------------------
  844|       |
  845|    103|  dfa->nodes_alloc = pat_len + 1;
  846|    103|  dfa->nodes = re_malloc (re_token_t, dfa->nodes_alloc);
  ------------------
  |  |  467|    103|# define re_malloc(t,n) ((t *) malloc ((n) * sizeof (t)))
  ------------------
  847|       |
  848|       |  /*  table_size = 2 ^ ceil(log pat_len) */
  849|    542|  for (table_size = 1; ; table_size <<= 1)
  850|    645|    if (table_size > pat_len)
  ------------------
  |  Branch (850:9): [True: 103, False: 542]
  ------------------
  851|    103|      break;
  852|       |
  853|    103|  dfa->state_table = calloc (table_size, sizeof (struct re_state_table_entry));
  854|    103|  dfa->state_hash_mask = table_size - 1;
  855|       |
  856|    103|  dfa->mb_cur_max = MB_CUR_MAX;
  857|       |#ifdef _LIBC
  858|       |  if (dfa->mb_cur_max == 6
  859|       |      && strcmp (_NL_CURRENT (LC_CTYPE, _NL_CTYPE_CODESET_NAME), "UTF-8") == 0)
  860|       |    dfa->is_utf8 = 1;
  861|       |  dfa->map_notascii = (_NL_CURRENT_WORD (LC_CTYPE, _NL_CTYPE_MAP_TO_NONASCII)
  862|       |		       != 0);
  863|       |#else
  864|    103|  codeset_name = nl_langinfo (CODESET);
  865|    103|  if ((codeset_name[0] == 'U' || codeset_name[0] == 'u')
  ------------------
  |  Branch (865:8): [True: 0, False: 103]
  |  Branch (865:34): [True: 0, False: 103]
  ------------------
  866|      0|      && (codeset_name[1] == 'T' || codeset_name[1] == 't')
  ------------------
  |  Branch (866:11): [True: 0, False: 0]
  |  Branch (866:37): [True: 0, False: 0]
  ------------------
  867|      0|      && (codeset_name[2] == 'F' || codeset_name[2] == 'f')
  ------------------
  |  Branch (867:11): [True: 0, False: 0]
  |  Branch (867:37): [True: 0, False: 0]
  ------------------
  868|      0|      && strcmp (codeset_name + 3 + (codeset_name[3] == '-'), "8") == 0)
  ------------------
  |  Branch (868:10): [True: 0, False: 0]
  ------------------
  869|      0|    dfa->is_utf8 = 1;
  870|       |
  871|       |  /* We check exhaustively in the loop below if this charset is a
  872|       |     superset of ASCII.  */
  873|    103|  dfa->map_notascii = 0;
  874|    103|#endif
  875|       |
  876|    103|  if (dfa->mb_cur_max > 1)
  ------------------
  |  Branch (876:7): [True: 0, False: 103]
  ------------------
  877|      0|    {
  878|      0|      if (dfa->is_utf8)
  ------------------
  |  Branch (878:11): [True: 0, False: 0]
  ------------------
  879|      0|	dfa->sb_char = (re_bitset_ptr_t) utf8_sb_map;
  880|      0|      else
  881|      0|	{
  882|      0|	  int i, j, ch;
  883|       |
  884|      0|	  dfa->sb_char = (re_bitset_ptr_t) calloc (1, sizeof (bitset_t));
  885|      0|	  if (__glibc_unlikely (dfa->sb_char == NULL))
  ------------------
  |  Branch (885:8): [True: 0, False: 0]
  ------------------
  886|      0|	    return REG_ESPACE;
  ------------------
  |  |  388|      0|#define REG_ESPACE	_REG_ESPACE
  ------------------
  887|       |
  888|       |	  /* Set the bits corresponding to single byte chars.  */
  889|      0|	  for (i = 0, ch = 0; i < BITSET_WORDS; ++i)
  ------------------
  |  |  219|      0|#define BITSET_WORDS ((SBC_MAX + BITSET_WORD_BITS - 1) / BITSET_WORD_BITS)
  |  |  ------------------
  |  |  |  |  114|      0|#define SBC_MAX (UCHAR_MAX + 1)
  |  |  ------------------
  |  |               #define BITSET_WORDS ((SBC_MAX + BITSET_WORD_BITS - 1) / BITSET_WORD_BITS)
  |  |  ------------------
  |  |  |  |  216|      0|#define BITSET_WORD_BITS ULONG_WIDTH
  |  |  ------------------
  |  |               #define BITSET_WORDS ((SBC_MAX + BITSET_WORD_BITS - 1) / BITSET_WORD_BITS)
  |  |  ------------------
  |  |  |  |  216|      0|#define BITSET_WORD_BITS ULONG_WIDTH
  |  |  ------------------
  ------------------
  |  Branch (889:24): [True: 0, False: 0]
  ------------------
  890|      0|	    for (j = 0; j < BITSET_WORD_BITS; ++j, ++ch)
  ------------------
  |  |  216|      0|#define BITSET_WORD_BITS ULONG_WIDTH
  ------------------
  |  Branch (890:18): [True: 0, False: 0]
  ------------------
  891|      0|	      {
  892|      0|		wint_t wch = __btowc (ch);
  ------------------
  |  |  159|      0|#  define __btowc btoc32
  ------------------
  893|      0|		if (wch != WEOF)
  ------------------
  |  Branch (893:7): [True: 0, False: 0]
  ------------------
  894|      0|		  dfa->sb_char[i] |= (bitset_word_t) 1 << j;
  895|      0|#ifndef _LIBC
  896|      0|		if (isascii (ch) && wch != ch)
  ------------------
  |  |   88|      0|# define isascii(c) (((c) & ~0x7f) == 0)
  |  |  ------------------
  |  |  |  Branch (88:21): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  |  Branch (896:23): [True: 0, False: 0]
  ------------------
  897|      0|		  dfa->map_notascii = 1;
  898|      0|#endif
  899|      0|	      }
  900|      0|	}
  901|      0|    }
  902|       |
  903|    103|  if (__glibc_unlikely (dfa->nodes == NULL || dfa->state_table == NULL))
  ------------------
  |  Branch (903:7): [True: 0, False: 103]
  |  Branch (903:7): [True: 0, False: 103]
  |  Branch (903:7): [True: 0, False: 103]
  ------------------
  904|      0|    return REG_ESPACE;
  ------------------
  |  |  388|      0|#define REG_ESPACE	_REG_ESPACE
  ------------------
  905|    103|  return REG_NOERROR;
  ------------------
  |  |  376|    103|#define REG_NOERROR	_REG_NOERROR
  ------------------
  906|    103|}
regex.c:free_workarea_compile:
  962|    103|{
  963|    103|  re_dfa_t *dfa = preg->buffer;
  964|    103|  bin_tree_storage_t *storage, *next;
  965|   129k|  for (storage = dfa->str_tree_storage; storage; storage = next)
  ------------------
  |  Branch (965:41): [True: 129k, False: 103]
  ------------------
  966|   129k|    {
  967|   129k|      next = storage->next;
  968|   129k|      re_free (storage);
  ------------------
  |  |  472|   129k|#define re_free(p) free (p)
  ------------------
  969|   129k|    }
  970|    103|  dfa->str_tree_storage = NULL;
  971|    103|  dfa->str_tree_storage_idx = BIN_TREE_STORAGE_SIZE;
  ------------------
  |  |  491|    103|  ((1024 - sizeof (void *)) / sizeof (bin_tree_t))
  ------------------
  972|    103|  dfa->str_tree = NULL;
  973|    103|  re_free (dfa->org_indices);
  ------------------
  |  |  472|    103|#define re_free(p) free (p)
  ------------------
  974|       |  dfa->org_indices = NULL;
  975|    103|}
regex.c:parse:
 2107|    103|{
 2108|    103|  re_dfa_t *dfa = preg->buffer;
 2109|    103|  bin_tree_t *tree, *eor, *root;
 2110|    103|  re_token_t current_token;
 2111|    103|  dfa->syntax = syntax;
 2112|    103|  fetch_token (&current_token, regexp, syntax | RE_CARET_ANCHORS_HERE);
  ------------------
  |  |  195|    103|# define RE_CARET_ANCHORS_HERE (RE_ICASE << 1)
  |  |  ------------------
  |  |  |  |  190|    103|# define RE_ICASE (RE_INVALID_INTERVAL_ORD << 1)
  |  |  |  |  ------------------
  |  |  |  |  |  |  186|    103|# define RE_INVALID_INTERVAL_ORD (RE_DEBUG << 1)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  181|    103|# define RE_DEBUG (RE_NO_GNU_OPS << 1)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  173|    103|# define RE_NO_GNU_OPS (RE_NO_POSIX_BACKTRACKING << 1)
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  169|    103|# define RE_NO_POSIX_BACKTRACKING (RE_UNMATCHED_RIGHT_PAREN_ORD << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  165|    103|# define RE_UNMATCHED_RIGHT_PAREN_ORD (RE_NO_EMPTY_RANGES << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  161|    103|# define RE_NO_EMPTY_RANGES (RE_NO_BK_VBAR << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  155|    103|# define RE_NO_BK_VBAR (RE_NO_BK_REFS << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  151|    103|# define RE_NO_BK_REFS (RE_NO_BK_PARENS << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  147|    103|# define RE_NO_BK_PARENS (RE_NO_BK_BRACES << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  143|    103|# define RE_NO_BK_BRACES (RE_NEWLINE_ALT << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  138|    103|# define RE_NEWLINE_ALT (RE_LIMITED_OPS << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  134|    103|# define RE_LIMITED_OPS (RE_INTERVALS << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  130|    103|# define RE_INTERVALS (RE_HAT_LISTS_NOT_NEWLINE << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  125|    103|# define RE_HAT_LISTS_NOT_NEWLINE (RE_DOT_NOT_NULL << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  121|    103|# define RE_DOT_NOT_NULL (RE_DOT_NEWLINE << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  117|    103|# define RE_DOT_NEWLINE (RE_CONTEXT_INVALID_OPS << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  113|    103|# define RE_CONTEXT_INVALID_OPS (RE_CONTEXT_INDEP_OPS << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  109|    103|# define RE_CONTEXT_INDEP_OPS (RE_CONTEXT_INDEP_ANCHORS << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  101|    103|# define RE_CONTEXT_INDEP_ANCHORS (RE_CHAR_CLASSES << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |   87|    103|# define RE_CHAR_CLASSES (RE_BK_PLUS_QM << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |   81|    103|# define RE_BK_PLUS_QM (RE_BACKSLASH_ESCAPE_IN_LISTS << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |   76|    103|# define RE_BACKSLASH_ESCAPE_IN_LISTS 1ul
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2113|    103|  tree = parse_reg_exp (regexp, preg, &current_token, syntax, 0, err);
 2114|    103|  if (__glibc_unlikely (*err != REG_NOERROR && tree == NULL))
  ------------------
  |  Branch (2114:7): [True: 10, False: 93]
  |  Branch (2114:7): [True: 10, False: 0]
  |  Branch (2114:7): [True: 10, False: 93]
  ------------------
 2115|     10|    return NULL;
 2116|     93|  eor = create_tree (dfa, NULL, NULL, END_OF_RE);
 2117|     93|  if (tree != NULL)
  ------------------
  |  Branch (2117:7): [True: 93, False: 0]
  ------------------
 2118|     93|    root = create_tree (dfa, tree, eor, CONCAT);
 2119|      0|  else
 2120|      0|    root = eor;
 2121|     93|  if (__glibc_unlikely (eor == NULL || root == NULL))
  ------------------
  |  Branch (2121:7): [True: 0, False: 93]
  |  Branch (2121:7): [True: 0, False: 93]
  |  Branch (2121:7): [True: 0, False: 93]
  ------------------
 2122|      0|    {
 2123|      0|      *err = REG_ESPACE;
  ------------------
  |  |  388|      0|#define REG_ESPACE	_REG_ESPACE
  ------------------
 2124|      0|      return NULL;
 2125|      0|    }
 2126|     93|  return root;
 2127|     93|}
regex.c:fetch_token:
 1759|   973k|{
 1760|   973k|  re_string_skip_bytes (input, peek_token (result, input, syntax));
  ------------------
  |  |  456|   973k|#define re_string_skip_bytes(pstr,idx) ((pstr)->cur_idx += (idx))
  ------------------
 1761|   973k|}
regex.c:peek_token:
 1768|  6.06G|{
 1769|  6.06G|  unsigned char c;
 1770|       |
 1771|  6.06G|  if (re_string_eoi (input))
  ------------------
  |  |  451|  6.06G|#define re_string_eoi(pstr) ((pstr)->stop <= (pstr)->cur_idx)
  |  |  ------------------
  |  |  |  Branch (451:29): [True: 93, False: 6.06G]
  |  |  ------------------
  ------------------
 1772|     93|    {
 1773|     93|      token->type = END_OF_RE;
 1774|     93|      return 0;
 1775|     93|    }
 1776|       |
 1777|  6.06G|  c = re_string_peek_byte (input, 0);
  ------------------
  |  |  443|  6.06G|  ((pstr)->mbs[(pstr)->cur_idx + offset])
  ------------------
 1778|  6.06G|  token->opr.c = c;
 1779|       |
 1780|  6.06G|  token->word_char = 0;
 1781|  6.06G|  token->mb_partial = 0;
 1782|  6.06G|  if (input->mb_cur_max > 1
  ------------------
  |  Branch (1782:7): [True: 0, False: 6.06G]
  ------------------
 1783|      0|      && !re_string_first_byte (input, re_string_cur_idx (input)))
  ------------------
  |  |  447|      0|  ((idx) == (pstr)->valid_len || (pstr)->wcs[idx] != WEOF)
  |  |  ------------------
  |  |  |  Branch (447:4): [True: 0, False: 0]
  |  |  |  Branch (447:34): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 1784|      0|    {
 1785|      0|      token->type = CHARACTER;
 1786|      0|      token->mb_partial = 1;
 1787|      0|      return 1;
 1788|      0|    }
 1789|  6.06G|  if (c == '\\')
  ------------------
  |  Branch (1789:7): [True: 116, False: 6.06G]
  ------------------
 1790|    116|    {
 1791|    116|      unsigned char c2;
 1792|    116|      if (re_string_cur_idx (input) + 1 >= re_string_length (input))
  ------------------
  |  |  452|    116|#define re_string_cur_idx(pstr) ((pstr)->cur_idx)
  ------------------
                    if (re_string_cur_idx (input) + 1 >= re_string_length (input))
  ------------------
  |  |  454|    116|#define re_string_length(pstr) ((pstr)->len)
  ------------------
  |  Branch (1792:11): [True: 0, False: 116]
  ------------------
 1793|      0|	{
 1794|      0|	  token->type = BACK_SLASH;
 1795|      0|	  return 1;
 1796|      0|	}
 1797|       |
 1798|    116|      c2 = re_string_peek_byte_case (input, 1);
 1799|    116|      token->opr.c = c2;
 1800|    116|      token->type = CHARACTER;
 1801|    116|      if (input->mb_cur_max > 1)
  ------------------
  |  Branch (1801:11): [True: 0, False: 116]
  ------------------
 1802|      0|	{
 1803|      0|	  wint_t wc = re_string_wchar_at (input,
 1804|      0|					  re_string_cur_idx (input) + 1);
  ------------------
  |  |  452|      0|#define re_string_cur_idx(pstr) ((pstr)->cur_idx)
  ------------------
 1805|      0|	  token->word_char = IS_WIDE_WORD_CHAR (wc) != 0;
  ------------------
  |  |  513|      0|#define IS_WIDE_WORD_CHAR(ch) (__iswalnum (ch) || (ch) == L'_')
  |  |  ------------------
  |  |  |  |  155|      0|#  define __iswalnum c32isalnum
  |  |  ------------------
  |  |  |  Branch (513:32): [True: 0, False: 0]
  |  |  |  Branch (513:51): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 1806|      0|	}
 1807|    116|      else
 1808|    116|	token->word_char = IS_WORD_CHAR (c2) != 0;
  ------------------
  |  |  511|    116|#define IS_WORD_CHAR(ch) (isalnum (ch) || (ch) == '_')
  |  |  ------------------
  |  |  |  Branch (511:43): [True: 0, False: 90]
  |  |  ------------------
  ------------------
  |  Branch (1808:21): [True: 26, False: 90]
  ------------------
 1809|       |
 1810|    116|      switch (c2)
 1811|    116|	{
 1812|      0|	case '|':
  ------------------
  |  Branch (1812:2): [True: 0, False: 116]
  ------------------
 1813|      0|	  if (!(syntax & RE_LIMITED_OPS) && !(syntax & RE_NO_BK_VBAR))
  ------------------
  |  |  134|      0|# define RE_LIMITED_OPS (RE_INTERVALS << 1)
  |  |  ------------------
  |  |  |  |  130|      0|# define RE_INTERVALS (RE_HAT_LISTS_NOT_NEWLINE << 1)
  |  |  |  |  ------------------
  |  |  |  |  |  |  125|      0|# define RE_HAT_LISTS_NOT_NEWLINE (RE_DOT_NOT_NULL << 1)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|      0|# define RE_DOT_NOT_NULL (RE_DOT_NEWLINE << 1)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  117|      0|# define RE_DOT_NEWLINE (RE_CONTEXT_INVALID_OPS << 1)
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  113|      0|# define RE_CONTEXT_INVALID_OPS (RE_CONTEXT_INDEP_OPS << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  109|      0|# define RE_CONTEXT_INDEP_OPS (RE_CONTEXT_INDEP_ANCHORS << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  101|      0|# define RE_CONTEXT_INDEP_ANCHORS (RE_CHAR_CLASSES << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |   87|      0|# define RE_CHAR_CLASSES (RE_BK_PLUS_QM << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |   81|      0|# define RE_BK_PLUS_QM (RE_BACKSLASH_ESCAPE_IN_LISTS << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |   76|      0|# define RE_BACKSLASH_ESCAPE_IN_LISTS 1ul
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
              	  if (!(syntax & RE_LIMITED_OPS) && !(syntax & RE_NO_BK_VBAR))
  ------------------
  |  |  155|      0|# define RE_NO_BK_VBAR (RE_NO_BK_REFS << 1)
  |  |  ------------------
  |  |  |  |  151|      0|# define RE_NO_BK_REFS (RE_NO_BK_PARENS << 1)
  |  |  |  |  ------------------
  |  |  |  |  |  |  147|      0|# define RE_NO_BK_PARENS (RE_NO_BK_BRACES << 1)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  143|      0|# define RE_NO_BK_BRACES (RE_NEWLINE_ALT << 1)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  138|      0|# define RE_NEWLINE_ALT (RE_LIMITED_OPS << 1)
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  134|      0|# define RE_LIMITED_OPS (RE_INTERVALS << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  130|      0|# define RE_INTERVALS (RE_HAT_LISTS_NOT_NEWLINE << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  125|      0|# define RE_HAT_LISTS_NOT_NEWLINE (RE_DOT_NOT_NULL << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  121|      0|# define RE_DOT_NOT_NULL (RE_DOT_NEWLINE << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  117|      0|# define RE_DOT_NEWLINE (RE_CONTEXT_INVALID_OPS << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  113|      0|# define RE_CONTEXT_INVALID_OPS (RE_CONTEXT_INDEP_OPS << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  109|      0|# define RE_CONTEXT_INDEP_OPS (RE_CONTEXT_INDEP_ANCHORS << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  101|      0|# define RE_CONTEXT_INDEP_ANCHORS (RE_CHAR_CLASSES << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |   87|      0|# define RE_CHAR_CLASSES (RE_BK_PLUS_QM << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |   81|      0|# define RE_BK_PLUS_QM (RE_BACKSLASH_ESCAPE_IN_LISTS << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |   76|      0|# define RE_BACKSLASH_ESCAPE_IN_LISTS 1ul
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  |  Branch (1813:8): [True: 0, False: 0]
  |  Branch (1813:38): [True: 0, False: 0]
  ------------------
 1814|      0|	    token->type = OP_ALT;
 1815|      0|	  break;
 1816|      2|	case '1': case '2': case '3': case '4': case '5':
  ------------------
  |  Branch (1816:2): [True: 0, False: 116]
  |  Branch (1816:12): [True: 0, False: 116]
  |  Branch (1816:22): [True: 0, False: 116]
  |  Branch (1816:32): [True: 0, False: 116]
  |  Branch (1816:42): [True: 2, False: 114]
  ------------------
 1817|      2|	case '6': case '7': case '8': case '9':
  ------------------
  |  Branch (1817:2): [True: 0, False: 116]
  |  Branch (1817:12): [True: 0, False: 116]
  |  Branch (1817:22): [True: 0, False: 116]
  |  Branch (1817:32): [True: 0, False: 116]
  ------------------
 1818|      2|	  if (!(syntax & RE_NO_BK_REFS))
  ------------------
  |  |  151|      2|# define RE_NO_BK_REFS (RE_NO_BK_PARENS << 1)
  |  |  ------------------
  |  |  |  |  147|      2|# define RE_NO_BK_PARENS (RE_NO_BK_BRACES << 1)
  |  |  |  |  ------------------
  |  |  |  |  |  |  143|      2|# define RE_NO_BK_BRACES (RE_NEWLINE_ALT << 1)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  138|      2|# define RE_NEWLINE_ALT (RE_LIMITED_OPS << 1)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  134|      2|# define RE_LIMITED_OPS (RE_INTERVALS << 1)
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  130|      2|# define RE_INTERVALS (RE_HAT_LISTS_NOT_NEWLINE << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  125|      2|# define RE_HAT_LISTS_NOT_NEWLINE (RE_DOT_NOT_NULL << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  121|      2|# define RE_DOT_NOT_NULL (RE_DOT_NEWLINE << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  117|      2|# define RE_DOT_NEWLINE (RE_CONTEXT_INVALID_OPS << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  113|      2|# define RE_CONTEXT_INVALID_OPS (RE_CONTEXT_INDEP_OPS << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  109|      2|# define RE_CONTEXT_INDEP_OPS (RE_CONTEXT_INDEP_ANCHORS << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  101|      2|# define RE_CONTEXT_INDEP_ANCHORS (RE_CHAR_CLASSES << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |   87|      2|# define RE_CHAR_CLASSES (RE_BK_PLUS_QM << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |   81|      2|# define RE_BK_PLUS_QM (RE_BACKSLASH_ESCAPE_IN_LISTS << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |   76|      2|# define RE_BACKSLASH_ESCAPE_IN_LISTS 1ul
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  |  Branch (1818:8): [True: 0, False: 2]
  ------------------
 1819|      0|	    {
 1820|      0|	      token->type = OP_BACK_REF;
 1821|      0|	      token->opr.idx = c2 - '1';
 1822|      0|	    }
 1823|      2|	  break;
 1824|      0|	case '<':
  ------------------
  |  Branch (1824:2): [True: 0, False: 116]
  ------------------
 1825|      0|	  if (!(syntax & RE_NO_GNU_OPS))
  ------------------
  |  |  173|      0|# define RE_NO_GNU_OPS (RE_NO_POSIX_BACKTRACKING << 1)
  |  |  ------------------
  |  |  |  |  169|      0|# define RE_NO_POSIX_BACKTRACKING (RE_UNMATCHED_RIGHT_PAREN_ORD << 1)
  |  |  |  |  ------------------
  |  |  |  |  |  |  165|      0|# define RE_UNMATCHED_RIGHT_PAREN_ORD (RE_NO_EMPTY_RANGES << 1)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  161|      0|# define RE_NO_EMPTY_RANGES (RE_NO_BK_VBAR << 1)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  155|      0|# define RE_NO_BK_VBAR (RE_NO_BK_REFS << 1)
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  151|      0|# define RE_NO_BK_REFS (RE_NO_BK_PARENS << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  147|      0|# define RE_NO_BK_PARENS (RE_NO_BK_BRACES << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  143|      0|# define RE_NO_BK_BRACES (RE_NEWLINE_ALT << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  138|      0|# define RE_NEWLINE_ALT (RE_LIMITED_OPS << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  134|      0|# define RE_LIMITED_OPS (RE_INTERVALS << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  130|      0|# define RE_INTERVALS (RE_HAT_LISTS_NOT_NEWLINE << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  125|      0|# define RE_HAT_LISTS_NOT_NEWLINE (RE_DOT_NOT_NULL << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  121|      0|# define RE_DOT_NOT_NULL (RE_DOT_NEWLINE << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  117|      0|# define RE_DOT_NEWLINE (RE_CONTEXT_INVALID_OPS << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  113|      0|# define RE_CONTEXT_INVALID_OPS (RE_CONTEXT_INDEP_OPS << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  109|      0|# define RE_CONTEXT_INDEP_OPS (RE_CONTEXT_INDEP_ANCHORS << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  101|      0|# define RE_CONTEXT_INDEP_ANCHORS (RE_CHAR_CLASSES << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |   87|      0|# define RE_CHAR_CLASSES (RE_BK_PLUS_QM << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |   81|      0|# define RE_BK_PLUS_QM (RE_BACKSLASH_ESCAPE_IN_LISTS << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |   76|      0|# define RE_BACKSLASH_ESCAPE_IN_LISTS 1ul
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  |  Branch (1825:8): [True: 0, False: 0]
  ------------------
 1826|      0|	    {
 1827|      0|	      token->type = ANCHOR;
 1828|      0|	      token->opr.ctx_type = WORD_FIRST;
 1829|      0|	    }
 1830|      0|	  break;
 1831|      0|	case '>':
  ------------------
  |  Branch (1831:2): [True: 0, False: 116]
  ------------------
 1832|      0|	  if (!(syntax & RE_NO_GNU_OPS))
  ------------------
  |  |  173|      0|# define RE_NO_GNU_OPS (RE_NO_POSIX_BACKTRACKING << 1)
  |  |  ------------------
  |  |  |  |  169|      0|# define RE_NO_POSIX_BACKTRACKING (RE_UNMATCHED_RIGHT_PAREN_ORD << 1)
  |  |  |  |  ------------------
  |  |  |  |  |  |  165|      0|# define RE_UNMATCHED_RIGHT_PAREN_ORD (RE_NO_EMPTY_RANGES << 1)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  161|      0|# define RE_NO_EMPTY_RANGES (RE_NO_BK_VBAR << 1)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  155|      0|# define RE_NO_BK_VBAR (RE_NO_BK_REFS << 1)
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  151|      0|# define RE_NO_BK_REFS (RE_NO_BK_PARENS << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  147|      0|# define RE_NO_BK_PARENS (RE_NO_BK_BRACES << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  143|      0|# define RE_NO_BK_BRACES (RE_NEWLINE_ALT << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  138|      0|# define RE_NEWLINE_ALT (RE_LIMITED_OPS << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  134|      0|# define RE_LIMITED_OPS (RE_INTERVALS << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  130|      0|# define RE_INTERVALS (RE_HAT_LISTS_NOT_NEWLINE << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  125|      0|# define RE_HAT_LISTS_NOT_NEWLINE (RE_DOT_NOT_NULL << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  121|      0|# define RE_DOT_NOT_NULL (RE_DOT_NEWLINE << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  117|      0|# define RE_DOT_NEWLINE (RE_CONTEXT_INVALID_OPS << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  113|      0|# define RE_CONTEXT_INVALID_OPS (RE_CONTEXT_INDEP_OPS << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  109|      0|# define RE_CONTEXT_INDEP_OPS (RE_CONTEXT_INDEP_ANCHORS << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  101|      0|# define RE_CONTEXT_INDEP_ANCHORS (RE_CHAR_CLASSES << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |   87|      0|# define RE_CHAR_CLASSES (RE_BK_PLUS_QM << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |   81|      0|# define RE_BK_PLUS_QM (RE_BACKSLASH_ESCAPE_IN_LISTS << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |   76|      0|# define RE_BACKSLASH_ESCAPE_IN_LISTS 1ul
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  |  Branch (1832:8): [True: 0, False: 0]
  ------------------
 1833|      0|	    {
 1834|      0|	      token->type = ANCHOR;
 1835|      0|	      token->opr.ctx_type = WORD_LAST;
 1836|      0|	    }
 1837|      0|	  break;
 1838|      0|	case 'b':
  ------------------
  |  Branch (1838:2): [True: 0, False: 116]
  ------------------
 1839|      0|	  if (!(syntax & RE_NO_GNU_OPS))
  ------------------
  |  |  173|      0|# define RE_NO_GNU_OPS (RE_NO_POSIX_BACKTRACKING << 1)
  |  |  ------------------
  |  |  |  |  169|      0|# define RE_NO_POSIX_BACKTRACKING (RE_UNMATCHED_RIGHT_PAREN_ORD << 1)
  |  |  |  |  ------------------
  |  |  |  |  |  |  165|      0|# define RE_UNMATCHED_RIGHT_PAREN_ORD (RE_NO_EMPTY_RANGES << 1)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  161|      0|# define RE_NO_EMPTY_RANGES (RE_NO_BK_VBAR << 1)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  155|      0|# define RE_NO_BK_VBAR (RE_NO_BK_REFS << 1)
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  151|      0|# define RE_NO_BK_REFS (RE_NO_BK_PARENS << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  147|      0|# define RE_NO_BK_PARENS (RE_NO_BK_BRACES << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  143|      0|# define RE_NO_BK_BRACES (RE_NEWLINE_ALT << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  138|      0|# define RE_NEWLINE_ALT (RE_LIMITED_OPS << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  134|      0|# define RE_LIMITED_OPS (RE_INTERVALS << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  130|      0|# define RE_INTERVALS (RE_HAT_LISTS_NOT_NEWLINE << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  125|      0|# define RE_HAT_LISTS_NOT_NEWLINE (RE_DOT_NOT_NULL << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  121|      0|# define RE_DOT_NOT_NULL (RE_DOT_NEWLINE << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  117|      0|# define RE_DOT_NEWLINE (RE_CONTEXT_INVALID_OPS << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  113|      0|# define RE_CONTEXT_INVALID_OPS (RE_CONTEXT_INDEP_OPS << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  109|      0|# define RE_CONTEXT_INDEP_OPS (RE_CONTEXT_INDEP_ANCHORS << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  101|      0|# define RE_CONTEXT_INDEP_ANCHORS (RE_CHAR_CLASSES << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |   87|      0|# define RE_CHAR_CLASSES (RE_BK_PLUS_QM << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |   81|      0|# define RE_BK_PLUS_QM (RE_BACKSLASH_ESCAPE_IN_LISTS << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |   76|      0|# define RE_BACKSLASH_ESCAPE_IN_LISTS 1ul
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  |  Branch (1839:8): [True: 0, False: 0]
  ------------------
 1840|      0|	    {
 1841|      0|	      token->type = ANCHOR;
 1842|      0|	      token->opr.ctx_type = WORD_DELIM;
 1843|      0|	    }
 1844|      0|	  break;
 1845|      0|	case 'B':
  ------------------
  |  Branch (1845:2): [True: 0, False: 116]
  ------------------
 1846|      0|	  if (!(syntax & RE_NO_GNU_OPS))
  ------------------
  |  |  173|      0|# define RE_NO_GNU_OPS (RE_NO_POSIX_BACKTRACKING << 1)
  |  |  ------------------
  |  |  |  |  169|      0|# define RE_NO_POSIX_BACKTRACKING (RE_UNMATCHED_RIGHT_PAREN_ORD << 1)
  |  |  |  |  ------------------
  |  |  |  |  |  |  165|      0|# define RE_UNMATCHED_RIGHT_PAREN_ORD (RE_NO_EMPTY_RANGES << 1)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  161|      0|# define RE_NO_EMPTY_RANGES (RE_NO_BK_VBAR << 1)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  155|      0|# define RE_NO_BK_VBAR (RE_NO_BK_REFS << 1)
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  151|      0|# define RE_NO_BK_REFS (RE_NO_BK_PARENS << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  147|      0|# define RE_NO_BK_PARENS (RE_NO_BK_BRACES << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  143|      0|# define RE_NO_BK_BRACES (RE_NEWLINE_ALT << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  138|      0|# define RE_NEWLINE_ALT (RE_LIMITED_OPS << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  134|      0|# define RE_LIMITED_OPS (RE_INTERVALS << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  130|      0|# define RE_INTERVALS (RE_HAT_LISTS_NOT_NEWLINE << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  125|      0|# define RE_HAT_LISTS_NOT_NEWLINE (RE_DOT_NOT_NULL << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  121|      0|# define RE_DOT_NOT_NULL (RE_DOT_NEWLINE << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  117|      0|# define RE_DOT_NEWLINE (RE_CONTEXT_INVALID_OPS << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  113|      0|# define RE_CONTEXT_INVALID_OPS (RE_CONTEXT_INDEP_OPS << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  109|      0|# define RE_CONTEXT_INDEP_OPS (RE_CONTEXT_INDEP_ANCHORS << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  101|      0|# define RE_CONTEXT_INDEP_ANCHORS (RE_CHAR_CLASSES << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |   87|      0|# define RE_CHAR_CLASSES (RE_BK_PLUS_QM << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |   81|      0|# define RE_BK_PLUS_QM (RE_BACKSLASH_ESCAPE_IN_LISTS << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |   76|      0|# define RE_BACKSLASH_ESCAPE_IN_LISTS 1ul
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  |  Branch (1846:8): [True: 0, False: 0]
  ------------------
 1847|      0|	    {
 1848|      0|	      token->type = ANCHOR;
 1849|      0|	      token->opr.ctx_type = NOT_WORD_DELIM;
 1850|      0|	    }
 1851|      0|	  break;
 1852|      0|	case 'w':
  ------------------
  |  Branch (1852:2): [True: 0, False: 116]
  ------------------
 1853|      0|	  if (!(syntax & RE_NO_GNU_OPS))
  ------------------
  |  |  173|      0|# define RE_NO_GNU_OPS (RE_NO_POSIX_BACKTRACKING << 1)
  |  |  ------------------
  |  |  |  |  169|      0|# define RE_NO_POSIX_BACKTRACKING (RE_UNMATCHED_RIGHT_PAREN_ORD << 1)
  |  |  |  |  ------------------
  |  |  |  |  |  |  165|      0|# define RE_UNMATCHED_RIGHT_PAREN_ORD (RE_NO_EMPTY_RANGES << 1)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  161|      0|# define RE_NO_EMPTY_RANGES (RE_NO_BK_VBAR << 1)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  155|      0|# define RE_NO_BK_VBAR (RE_NO_BK_REFS << 1)
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  151|      0|# define RE_NO_BK_REFS (RE_NO_BK_PARENS << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  147|      0|# define RE_NO_BK_PARENS (RE_NO_BK_BRACES << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  143|      0|# define RE_NO_BK_BRACES (RE_NEWLINE_ALT << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  138|      0|# define RE_NEWLINE_ALT (RE_LIMITED_OPS << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  134|      0|# define RE_LIMITED_OPS (RE_INTERVALS << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  130|      0|# define RE_INTERVALS (RE_HAT_LISTS_NOT_NEWLINE << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  125|      0|# define RE_HAT_LISTS_NOT_NEWLINE (RE_DOT_NOT_NULL << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  121|      0|# define RE_DOT_NOT_NULL (RE_DOT_NEWLINE << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  117|      0|# define RE_DOT_NEWLINE (RE_CONTEXT_INVALID_OPS << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  113|      0|# define RE_CONTEXT_INVALID_OPS (RE_CONTEXT_INDEP_OPS << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  109|      0|# define RE_CONTEXT_INDEP_OPS (RE_CONTEXT_INDEP_ANCHORS << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  101|      0|# define RE_CONTEXT_INDEP_ANCHORS (RE_CHAR_CLASSES << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |   87|      0|# define RE_CHAR_CLASSES (RE_BK_PLUS_QM << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |   81|      0|# define RE_BK_PLUS_QM (RE_BACKSLASH_ESCAPE_IN_LISTS << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |   76|      0|# define RE_BACKSLASH_ESCAPE_IN_LISTS 1ul
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  |  Branch (1853:8): [True: 0, False: 0]
  ------------------
 1854|      0|	    token->type = OP_WORD;
 1855|      0|	  break;
 1856|      0|	case 'W':
  ------------------
  |  Branch (1856:2): [True: 0, False: 116]
  ------------------
 1857|      0|	  if (!(syntax & RE_NO_GNU_OPS))
  ------------------
  |  |  173|      0|# define RE_NO_GNU_OPS (RE_NO_POSIX_BACKTRACKING << 1)
  |  |  ------------------
  |  |  |  |  169|      0|# define RE_NO_POSIX_BACKTRACKING (RE_UNMATCHED_RIGHT_PAREN_ORD << 1)
  |  |  |  |  ------------------
  |  |  |  |  |  |  165|      0|# define RE_UNMATCHED_RIGHT_PAREN_ORD (RE_NO_EMPTY_RANGES << 1)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  161|      0|# define RE_NO_EMPTY_RANGES (RE_NO_BK_VBAR << 1)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  155|      0|# define RE_NO_BK_VBAR (RE_NO_BK_REFS << 1)
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  151|      0|# define RE_NO_BK_REFS (RE_NO_BK_PARENS << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  147|      0|# define RE_NO_BK_PARENS (RE_NO_BK_BRACES << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  143|      0|# define RE_NO_BK_BRACES (RE_NEWLINE_ALT << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  138|      0|# define RE_NEWLINE_ALT (RE_LIMITED_OPS << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  134|      0|# define RE_LIMITED_OPS (RE_INTERVALS << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  130|      0|# define RE_INTERVALS (RE_HAT_LISTS_NOT_NEWLINE << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  125|      0|# define RE_HAT_LISTS_NOT_NEWLINE (RE_DOT_NOT_NULL << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  121|      0|# define RE_DOT_NOT_NULL (RE_DOT_NEWLINE << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  117|      0|# define RE_DOT_NEWLINE (RE_CONTEXT_INVALID_OPS << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  113|      0|# define RE_CONTEXT_INVALID_OPS (RE_CONTEXT_INDEP_OPS << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  109|      0|# define RE_CONTEXT_INDEP_OPS (RE_CONTEXT_INDEP_ANCHORS << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  101|      0|# define RE_CONTEXT_INDEP_ANCHORS (RE_CHAR_CLASSES << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |   87|      0|# define RE_CHAR_CLASSES (RE_BK_PLUS_QM << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |   81|      0|# define RE_BK_PLUS_QM (RE_BACKSLASH_ESCAPE_IN_LISTS << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |   76|      0|# define RE_BACKSLASH_ESCAPE_IN_LISTS 1ul
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  |  Branch (1857:8): [True: 0, False: 0]
  ------------------
 1858|      0|	    token->type = OP_NOTWORD;
 1859|      0|	  break;
 1860|      0|	case 's':
  ------------------
  |  Branch (1860:2): [True: 0, False: 116]
  ------------------
 1861|      0|	  if (!(syntax & RE_NO_GNU_OPS))
  ------------------
  |  |  173|      0|# define RE_NO_GNU_OPS (RE_NO_POSIX_BACKTRACKING << 1)
  |  |  ------------------
  |  |  |  |  169|      0|# define RE_NO_POSIX_BACKTRACKING (RE_UNMATCHED_RIGHT_PAREN_ORD << 1)
  |  |  |  |  ------------------
  |  |  |  |  |  |  165|      0|# define RE_UNMATCHED_RIGHT_PAREN_ORD (RE_NO_EMPTY_RANGES << 1)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  161|      0|# define RE_NO_EMPTY_RANGES (RE_NO_BK_VBAR << 1)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  155|      0|# define RE_NO_BK_VBAR (RE_NO_BK_REFS << 1)
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  151|      0|# define RE_NO_BK_REFS (RE_NO_BK_PARENS << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  147|      0|# define RE_NO_BK_PARENS (RE_NO_BK_BRACES << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  143|      0|# define RE_NO_BK_BRACES (RE_NEWLINE_ALT << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  138|      0|# define RE_NEWLINE_ALT (RE_LIMITED_OPS << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  134|      0|# define RE_LIMITED_OPS (RE_INTERVALS << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  130|      0|# define RE_INTERVALS (RE_HAT_LISTS_NOT_NEWLINE << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  125|      0|# define RE_HAT_LISTS_NOT_NEWLINE (RE_DOT_NOT_NULL << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  121|      0|# define RE_DOT_NOT_NULL (RE_DOT_NEWLINE << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  117|      0|# define RE_DOT_NEWLINE (RE_CONTEXT_INVALID_OPS << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  113|      0|# define RE_CONTEXT_INVALID_OPS (RE_CONTEXT_INDEP_OPS << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  109|      0|# define RE_CONTEXT_INDEP_OPS (RE_CONTEXT_INDEP_ANCHORS << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  101|      0|# define RE_CONTEXT_INDEP_ANCHORS (RE_CHAR_CLASSES << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |   87|      0|# define RE_CHAR_CLASSES (RE_BK_PLUS_QM << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |   81|      0|# define RE_BK_PLUS_QM (RE_BACKSLASH_ESCAPE_IN_LISTS << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |   76|      0|# define RE_BACKSLASH_ESCAPE_IN_LISTS 1ul
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  |  Branch (1861:8): [True: 0, False: 0]
  ------------------
 1862|      0|	    token->type = OP_SPACE;
 1863|      0|	  break;
 1864|      0|	case 'S':
  ------------------
  |  Branch (1864:2): [True: 0, False: 116]
  ------------------
 1865|      0|	  if (!(syntax & RE_NO_GNU_OPS))
  ------------------
  |  |  173|      0|# define RE_NO_GNU_OPS (RE_NO_POSIX_BACKTRACKING << 1)
  |  |  ------------------
  |  |  |  |  169|      0|# define RE_NO_POSIX_BACKTRACKING (RE_UNMATCHED_RIGHT_PAREN_ORD << 1)
  |  |  |  |  ------------------
  |  |  |  |  |  |  165|      0|# define RE_UNMATCHED_RIGHT_PAREN_ORD (RE_NO_EMPTY_RANGES << 1)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  161|      0|# define RE_NO_EMPTY_RANGES (RE_NO_BK_VBAR << 1)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  155|      0|# define RE_NO_BK_VBAR (RE_NO_BK_REFS << 1)
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  151|      0|# define RE_NO_BK_REFS (RE_NO_BK_PARENS << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  147|      0|# define RE_NO_BK_PARENS (RE_NO_BK_BRACES << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  143|      0|# define RE_NO_BK_BRACES (RE_NEWLINE_ALT << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  138|      0|# define RE_NEWLINE_ALT (RE_LIMITED_OPS << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  134|      0|# define RE_LIMITED_OPS (RE_INTERVALS << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  130|      0|# define RE_INTERVALS (RE_HAT_LISTS_NOT_NEWLINE << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  125|      0|# define RE_HAT_LISTS_NOT_NEWLINE (RE_DOT_NOT_NULL << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  121|      0|# define RE_DOT_NOT_NULL (RE_DOT_NEWLINE << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  117|      0|# define RE_DOT_NEWLINE (RE_CONTEXT_INVALID_OPS << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  113|      0|# define RE_CONTEXT_INVALID_OPS (RE_CONTEXT_INDEP_OPS << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  109|      0|# define RE_CONTEXT_INDEP_OPS (RE_CONTEXT_INDEP_ANCHORS << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  101|      0|# define RE_CONTEXT_INDEP_ANCHORS (RE_CHAR_CLASSES << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |   87|      0|# define RE_CHAR_CLASSES (RE_BK_PLUS_QM << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |   81|      0|# define RE_BK_PLUS_QM (RE_BACKSLASH_ESCAPE_IN_LISTS << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |   76|      0|# define RE_BACKSLASH_ESCAPE_IN_LISTS 1ul
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  |  Branch (1865:8): [True: 0, False: 0]
  ------------------
 1866|      0|	    token->type = OP_NOTSPACE;
 1867|      0|	  break;
 1868|      0|	case '`':
  ------------------
  |  Branch (1868:2): [True: 0, False: 116]
  ------------------
 1869|      0|	  if (!(syntax & RE_NO_GNU_OPS))
  ------------------
  |  |  173|      0|# define RE_NO_GNU_OPS (RE_NO_POSIX_BACKTRACKING << 1)
  |  |  ------------------
  |  |  |  |  169|      0|# define RE_NO_POSIX_BACKTRACKING (RE_UNMATCHED_RIGHT_PAREN_ORD << 1)
  |  |  |  |  ------------------
  |  |  |  |  |  |  165|      0|# define RE_UNMATCHED_RIGHT_PAREN_ORD (RE_NO_EMPTY_RANGES << 1)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  161|      0|# define RE_NO_EMPTY_RANGES (RE_NO_BK_VBAR << 1)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  155|      0|# define RE_NO_BK_VBAR (RE_NO_BK_REFS << 1)
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  151|      0|# define RE_NO_BK_REFS (RE_NO_BK_PARENS << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  147|      0|# define RE_NO_BK_PARENS (RE_NO_BK_BRACES << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  143|      0|# define RE_NO_BK_BRACES (RE_NEWLINE_ALT << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  138|      0|# define RE_NEWLINE_ALT (RE_LIMITED_OPS << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  134|      0|# define RE_LIMITED_OPS (RE_INTERVALS << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  130|      0|# define RE_INTERVALS (RE_HAT_LISTS_NOT_NEWLINE << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  125|      0|# define RE_HAT_LISTS_NOT_NEWLINE (RE_DOT_NOT_NULL << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  121|      0|# define RE_DOT_NOT_NULL (RE_DOT_NEWLINE << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  117|      0|# define RE_DOT_NEWLINE (RE_CONTEXT_INVALID_OPS << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  113|      0|# define RE_CONTEXT_INVALID_OPS (RE_CONTEXT_INDEP_OPS << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  109|      0|# define RE_CONTEXT_INDEP_OPS (RE_CONTEXT_INDEP_ANCHORS << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  101|      0|# define RE_CONTEXT_INDEP_ANCHORS (RE_CHAR_CLASSES << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |   87|      0|# define RE_CHAR_CLASSES (RE_BK_PLUS_QM << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |   81|      0|# define RE_BK_PLUS_QM (RE_BACKSLASH_ESCAPE_IN_LISTS << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |   76|      0|# define RE_BACKSLASH_ESCAPE_IN_LISTS 1ul
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  |  Branch (1869:8): [True: 0, False: 0]
  ------------------
 1870|      0|	    {
 1871|      0|	      token->type = ANCHOR;
 1872|      0|	      token->opr.ctx_type = BUF_FIRST;
 1873|      0|	    }
 1874|      0|	  break;
 1875|      0|	case '\'':
  ------------------
  |  Branch (1875:2): [True: 0, False: 116]
  ------------------
 1876|      0|	  if (!(syntax & RE_NO_GNU_OPS))
  ------------------
  |  |  173|      0|# define RE_NO_GNU_OPS (RE_NO_POSIX_BACKTRACKING << 1)
  |  |  ------------------
  |  |  |  |  169|      0|# define RE_NO_POSIX_BACKTRACKING (RE_UNMATCHED_RIGHT_PAREN_ORD << 1)
  |  |  |  |  ------------------
  |  |  |  |  |  |  165|      0|# define RE_UNMATCHED_RIGHT_PAREN_ORD (RE_NO_EMPTY_RANGES << 1)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  161|      0|# define RE_NO_EMPTY_RANGES (RE_NO_BK_VBAR << 1)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  155|      0|# define RE_NO_BK_VBAR (RE_NO_BK_REFS << 1)
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  151|      0|# define RE_NO_BK_REFS (RE_NO_BK_PARENS << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  147|      0|# define RE_NO_BK_PARENS (RE_NO_BK_BRACES << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  143|      0|# define RE_NO_BK_BRACES (RE_NEWLINE_ALT << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  138|      0|# define RE_NEWLINE_ALT (RE_LIMITED_OPS << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  134|      0|# define RE_LIMITED_OPS (RE_INTERVALS << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  130|      0|# define RE_INTERVALS (RE_HAT_LISTS_NOT_NEWLINE << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  125|      0|# define RE_HAT_LISTS_NOT_NEWLINE (RE_DOT_NOT_NULL << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  121|      0|# define RE_DOT_NOT_NULL (RE_DOT_NEWLINE << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  117|      0|# define RE_DOT_NEWLINE (RE_CONTEXT_INVALID_OPS << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  113|      0|# define RE_CONTEXT_INVALID_OPS (RE_CONTEXT_INDEP_OPS << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  109|      0|# define RE_CONTEXT_INDEP_OPS (RE_CONTEXT_INDEP_ANCHORS << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  101|      0|# define RE_CONTEXT_INDEP_ANCHORS (RE_CHAR_CLASSES << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |   87|      0|# define RE_CHAR_CLASSES (RE_BK_PLUS_QM << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |   81|      0|# define RE_BK_PLUS_QM (RE_BACKSLASH_ESCAPE_IN_LISTS << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |   76|      0|# define RE_BACKSLASH_ESCAPE_IN_LISTS 1ul
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  |  Branch (1876:8): [True: 0, False: 0]
  ------------------
 1877|      0|	    {
 1878|      0|	      token->type = ANCHOR;
 1879|      0|	      token->opr.ctx_type = BUF_LAST;
 1880|      0|	    }
 1881|      0|	  break;
 1882|      0|	case '(':
  ------------------
  |  Branch (1882:2): [True: 0, False: 116]
  ------------------
 1883|      0|	  if (!(syntax & RE_NO_BK_PARENS))
  ------------------
  |  |  147|      0|# define RE_NO_BK_PARENS (RE_NO_BK_BRACES << 1)
  |  |  ------------------
  |  |  |  |  143|      0|# define RE_NO_BK_BRACES (RE_NEWLINE_ALT << 1)
  |  |  |  |  ------------------
  |  |  |  |  |  |  138|      0|# define RE_NEWLINE_ALT (RE_LIMITED_OPS << 1)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  134|      0|# define RE_LIMITED_OPS (RE_INTERVALS << 1)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  130|      0|# define RE_INTERVALS (RE_HAT_LISTS_NOT_NEWLINE << 1)
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  125|      0|# define RE_HAT_LISTS_NOT_NEWLINE (RE_DOT_NOT_NULL << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  121|      0|# define RE_DOT_NOT_NULL (RE_DOT_NEWLINE << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  117|      0|# define RE_DOT_NEWLINE (RE_CONTEXT_INVALID_OPS << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  113|      0|# define RE_CONTEXT_INVALID_OPS (RE_CONTEXT_INDEP_OPS << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  109|      0|# define RE_CONTEXT_INDEP_OPS (RE_CONTEXT_INDEP_ANCHORS << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  101|      0|# define RE_CONTEXT_INDEP_ANCHORS (RE_CHAR_CLASSES << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |   87|      0|# define RE_CHAR_CLASSES (RE_BK_PLUS_QM << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |   81|      0|# define RE_BK_PLUS_QM (RE_BACKSLASH_ESCAPE_IN_LISTS << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |   76|      0|# define RE_BACKSLASH_ESCAPE_IN_LISTS 1ul
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  |  Branch (1883:8): [True: 0, False: 0]
  ------------------
 1884|      0|	    token->type = OP_OPEN_SUBEXP;
 1885|      0|	  break;
 1886|      0|	case ')':
  ------------------
  |  Branch (1886:2): [True: 0, False: 116]
  ------------------
 1887|      0|	  if (!(syntax & RE_NO_BK_PARENS))
  ------------------
  |  |  147|      0|# define RE_NO_BK_PARENS (RE_NO_BK_BRACES << 1)
  |  |  ------------------
  |  |  |  |  143|      0|# define RE_NO_BK_BRACES (RE_NEWLINE_ALT << 1)
  |  |  |  |  ------------------
  |  |  |  |  |  |  138|      0|# define RE_NEWLINE_ALT (RE_LIMITED_OPS << 1)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  134|      0|# define RE_LIMITED_OPS (RE_INTERVALS << 1)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  130|      0|# define RE_INTERVALS (RE_HAT_LISTS_NOT_NEWLINE << 1)
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  125|      0|# define RE_HAT_LISTS_NOT_NEWLINE (RE_DOT_NOT_NULL << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  121|      0|# define RE_DOT_NOT_NULL (RE_DOT_NEWLINE << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  117|      0|# define RE_DOT_NEWLINE (RE_CONTEXT_INVALID_OPS << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  113|      0|# define RE_CONTEXT_INVALID_OPS (RE_CONTEXT_INDEP_OPS << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  109|      0|# define RE_CONTEXT_INDEP_OPS (RE_CONTEXT_INDEP_ANCHORS << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  101|      0|# define RE_CONTEXT_INDEP_ANCHORS (RE_CHAR_CLASSES << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |   87|      0|# define RE_CHAR_CLASSES (RE_BK_PLUS_QM << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |   81|      0|# define RE_BK_PLUS_QM (RE_BACKSLASH_ESCAPE_IN_LISTS << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |   76|      0|# define RE_BACKSLASH_ESCAPE_IN_LISTS 1ul
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  |  Branch (1887:8): [True: 0, False: 0]
  ------------------
 1888|      0|	    token->type = OP_CLOSE_SUBEXP;
 1889|      0|	  break;
 1890|      0|	case '+':
  ------------------
  |  Branch (1890:2): [True: 0, False: 116]
  ------------------
 1891|      0|	  if (!(syntax & RE_LIMITED_OPS) && (syntax & RE_BK_PLUS_QM))
  ------------------
  |  |  134|      0|# define RE_LIMITED_OPS (RE_INTERVALS << 1)
  |  |  ------------------
  |  |  |  |  130|      0|# define RE_INTERVALS (RE_HAT_LISTS_NOT_NEWLINE << 1)
  |  |  |  |  ------------------
  |  |  |  |  |  |  125|      0|# define RE_HAT_LISTS_NOT_NEWLINE (RE_DOT_NOT_NULL << 1)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|      0|# define RE_DOT_NOT_NULL (RE_DOT_NEWLINE << 1)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  117|      0|# define RE_DOT_NEWLINE (RE_CONTEXT_INVALID_OPS << 1)
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  113|      0|# define RE_CONTEXT_INVALID_OPS (RE_CONTEXT_INDEP_OPS << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  109|      0|# define RE_CONTEXT_INDEP_OPS (RE_CONTEXT_INDEP_ANCHORS << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  101|      0|# define RE_CONTEXT_INDEP_ANCHORS (RE_CHAR_CLASSES << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |   87|      0|# define RE_CHAR_CLASSES (RE_BK_PLUS_QM << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |   81|      0|# define RE_BK_PLUS_QM (RE_BACKSLASH_ESCAPE_IN_LISTS << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |   76|      0|# define RE_BACKSLASH_ESCAPE_IN_LISTS 1ul
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
              	  if (!(syntax & RE_LIMITED_OPS) && (syntax & RE_BK_PLUS_QM))
  ------------------
  |  |   81|      0|# define RE_BK_PLUS_QM (RE_BACKSLASH_ESCAPE_IN_LISTS << 1)
  |  |  ------------------
  |  |  |  |   76|      0|# define RE_BACKSLASH_ESCAPE_IN_LISTS 1ul
  |  |  ------------------
  ------------------
  |  Branch (1891:8): [True: 0, False: 0]
  |  Branch (1891:38): [True: 0, False: 0]
  ------------------
 1892|      0|	    token->type = OP_DUP_PLUS;
 1893|      0|	  break;
 1894|      0|	case '?':
  ------------------
  |  Branch (1894:2): [True: 0, False: 116]
  ------------------
 1895|      0|	  if (!(syntax & RE_LIMITED_OPS) && (syntax & RE_BK_PLUS_QM))
  ------------------
  |  |  134|      0|# define RE_LIMITED_OPS (RE_INTERVALS << 1)
  |  |  ------------------
  |  |  |  |  130|      0|# define RE_INTERVALS (RE_HAT_LISTS_NOT_NEWLINE << 1)
  |  |  |  |  ------------------
  |  |  |  |  |  |  125|      0|# define RE_HAT_LISTS_NOT_NEWLINE (RE_DOT_NOT_NULL << 1)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|      0|# define RE_DOT_NOT_NULL (RE_DOT_NEWLINE << 1)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  117|      0|# define RE_DOT_NEWLINE (RE_CONTEXT_INVALID_OPS << 1)
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  113|      0|# define RE_CONTEXT_INVALID_OPS (RE_CONTEXT_INDEP_OPS << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  109|      0|# define RE_CONTEXT_INDEP_OPS (RE_CONTEXT_INDEP_ANCHORS << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  101|      0|# define RE_CONTEXT_INDEP_ANCHORS (RE_CHAR_CLASSES << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |   87|      0|# define RE_CHAR_CLASSES (RE_BK_PLUS_QM << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |   81|      0|# define RE_BK_PLUS_QM (RE_BACKSLASH_ESCAPE_IN_LISTS << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |   76|      0|# define RE_BACKSLASH_ESCAPE_IN_LISTS 1ul
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
              	  if (!(syntax & RE_LIMITED_OPS) && (syntax & RE_BK_PLUS_QM))
  ------------------
  |  |   81|      0|# define RE_BK_PLUS_QM (RE_BACKSLASH_ESCAPE_IN_LISTS << 1)
  |  |  ------------------
  |  |  |  |   76|      0|# define RE_BACKSLASH_ESCAPE_IN_LISTS 1ul
  |  |  ------------------
  ------------------
  |  Branch (1895:8): [True: 0, False: 0]
  |  Branch (1895:38): [True: 0, False: 0]
  ------------------
 1896|      0|	    token->type = OP_DUP_QUESTION;
 1897|      0|	  break;
 1898|      0|	case '{':
  ------------------
  |  Branch (1898:2): [True: 0, False: 116]
  ------------------
 1899|      0|	  if ((syntax & RE_INTERVALS) && (!(syntax & RE_NO_BK_BRACES)))
  ------------------
  |  |  130|      0|# define RE_INTERVALS (RE_HAT_LISTS_NOT_NEWLINE << 1)
  |  |  ------------------
  |  |  |  |  125|      0|# define RE_HAT_LISTS_NOT_NEWLINE (RE_DOT_NOT_NULL << 1)
  |  |  |  |  ------------------
  |  |  |  |  |  |  121|      0|# define RE_DOT_NOT_NULL (RE_DOT_NEWLINE << 1)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  117|      0|# define RE_DOT_NEWLINE (RE_CONTEXT_INVALID_OPS << 1)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  113|      0|# define RE_CONTEXT_INVALID_OPS (RE_CONTEXT_INDEP_OPS << 1)
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  109|      0|# define RE_CONTEXT_INDEP_OPS (RE_CONTEXT_INDEP_ANCHORS << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  101|      0|# define RE_CONTEXT_INDEP_ANCHORS (RE_CHAR_CLASSES << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |   87|      0|# define RE_CHAR_CLASSES (RE_BK_PLUS_QM << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |   81|      0|# define RE_BK_PLUS_QM (RE_BACKSLASH_ESCAPE_IN_LISTS << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |   76|      0|# define RE_BACKSLASH_ESCAPE_IN_LISTS 1ul
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
              	  if ((syntax & RE_INTERVALS) && (!(syntax & RE_NO_BK_BRACES)))
  ------------------
  |  |  143|      0|# define RE_NO_BK_BRACES (RE_NEWLINE_ALT << 1)
  |  |  ------------------
  |  |  |  |  138|      0|# define RE_NEWLINE_ALT (RE_LIMITED_OPS << 1)
  |  |  |  |  ------------------
  |  |  |  |  |  |  134|      0|# define RE_LIMITED_OPS (RE_INTERVALS << 1)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  130|      0|# define RE_INTERVALS (RE_HAT_LISTS_NOT_NEWLINE << 1)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  125|      0|# define RE_HAT_LISTS_NOT_NEWLINE (RE_DOT_NOT_NULL << 1)
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  121|      0|# define RE_DOT_NOT_NULL (RE_DOT_NEWLINE << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  117|      0|# define RE_DOT_NEWLINE (RE_CONTEXT_INVALID_OPS << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  113|      0|# define RE_CONTEXT_INVALID_OPS (RE_CONTEXT_INDEP_OPS << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  109|      0|# define RE_CONTEXT_INDEP_OPS (RE_CONTEXT_INDEP_ANCHORS << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  101|      0|# define RE_CONTEXT_INDEP_ANCHORS (RE_CHAR_CLASSES << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |   87|      0|# define RE_CHAR_CLASSES (RE_BK_PLUS_QM << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |   81|      0|# define RE_BK_PLUS_QM (RE_BACKSLASH_ESCAPE_IN_LISTS << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |   76|      0|# define RE_BACKSLASH_ESCAPE_IN_LISTS 1ul
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  |  Branch (1899:8): [True: 0, False: 0]
  |  Branch (1899:35): [True: 0, False: 0]
  ------------------
 1900|      0|	    token->type = OP_OPEN_DUP_NUM;
 1901|      0|	  break;
 1902|      4|	case '}':
  ------------------
  |  Branch (1902:2): [True: 4, False: 112]
  ------------------
 1903|      4|	  if ((syntax & RE_INTERVALS) && (!(syntax & RE_NO_BK_BRACES)))
  ------------------
  |  |  130|      4|# define RE_INTERVALS (RE_HAT_LISTS_NOT_NEWLINE << 1)
  |  |  ------------------
  |  |  |  |  125|      4|# define RE_HAT_LISTS_NOT_NEWLINE (RE_DOT_NOT_NULL << 1)
  |  |  |  |  ------------------
  |  |  |  |  |  |  121|      4|# define RE_DOT_NOT_NULL (RE_DOT_NEWLINE << 1)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  117|      4|# define RE_DOT_NEWLINE (RE_CONTEXT_INVALID_OPS << 1)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  113|      4|# define RE_CONTEXT_INVALID_OPS (RE_CONTEXT_INDEP_OPS << 1)
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  109|      4|# define RE_CONTEXT_INDEP_OPS (RE_CONTEXT_INDEP_ANCHORS << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  101|      4|# define RE_CONTEXT_INDEP_ANCHORS (RE_CHAR_CLASSES << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |   87|      4|# define RE_CHAR_CLASSES (RE_BK_PLUS_QM << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |   81|      4|# define RE_BK_PLUS_QM (RE_BACKSLASH_ESCAPE_IN_LISTS << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |   76|      4|# define RE_BACKSLASH_ESCAPE_IN_LISTS 1ul
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
              	  if ((syntax & RE_INTERVALS) && (!(syntax & RE_NO_BK_BRACES)))
  ------------------
  |  |  143|      4|# define RE_NO_BK_BRACES (RE_NEWLINE_ALT << 1)
  |  |  ------------------
  |  |  |  |  138|      4|# define RE_NEWLINE_ALT (RE_LIMITED_OPS << 1)
  |  |  |  |  ------------------
  |  |  |  |  |  |  134|      4|# define RE_LIMITED_OPS (RE_INTERVALS << 1)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  130|      4|# define RE_INTERVALS (RE_HAT_LISTS_NOT_NEWLINE << 1)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  125|      4|# define RE_HAT_LISTS_NOT_NEWLINE (RE_DOT_NOT_NULL << 1)
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  121|      4|# define RE_DOT_NOT_NULL (RE_DOT_NEWLINE << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  117|      4|# define RE_DOT_NEWLINE (RE_CONTEXT_INVALID_OPS << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  113|      4|# define RE_CONTEXT_INVALID_OPS (RE_CONTEXT_INDEP_OPS << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  109|      4|# define RE_CONTEXT_INDEP_OPS (RE_CONTEXT_INDEP_ANCHORS << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  101|      4|# define RE_CONTEXT_INDEP_ANCHORS (RE_CHAR_CLASSES << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |   87|      4|# define RE_CHAR_CLASSES (RE_BK_PLUS_QM << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |   81|      4|# define RE_BK_PLUS_QM (RE_BACKSLASH_ESCAPE_IN_LISTS << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |   76|      4|# define RE_BACKSLASH_ESCAPE_IN_LISTS 1ul
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  |  Branch (1903:8): [True: 4, False: 0]
  |  Branch (1903:35): [True: 0, False: 4]
  ------------------
 1904|      0|	    token->type = OP_CLOSE_DUP_NUM;
 1905|      4|	  break;
 1906|    110|	default:
  ------------------
  |  Branch (1906:2): [True: 110, False: 6]
  ------------------
 1907|    110|	  break;
 1908|    116|	}
 1909|    116|      return 2;
 1910|    116|    }
 1911|       |
 1912|  6.06G|  token->type = CHARACTER;
 1913|  6.06G|  if (input->mb_cur_max > 1)
  ------------------
  |  Branch (1913:7): [True: 0, False: 6.06G]
  ------------------
 1914|      0|    {
 1915|      0|      wint_t wc = re_string_wchar_at (input, re_string_cur_idx (input));
  ------------------
  |  |  452|      0|#define re_string_cur_idx(pstr) ((pstr)->cur_idx)
  ------------------
 1916|      0|      token->word_char = IS_WIDE_WORD_CHAR (wc) != 0;
  ------------------
  |  |  513|      0|#define IS_WIDE_WORD_CHAR(ch) (__iswalnum (ch) || (ch) == L'_')
  |  |  ------------------
  |  |  |  |  155|      0|#  define __iswalnum c32isalnum
  |  |  ------------------
  |  |  |  Branch (513:32): [True: 0, False: 0]
  |  |  |  Branch (513:51): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 1917|      0|    }
 1918|  6.06G|  else
 1919|  6.06G|    token->word_char = IS_WORD_CHAR (token->opr.c);
  ------------------
  |  |  511|  6.06G|#define IS_WORD_CHAR(ch) (isalnum (ch) || (ch) == '_')
  |  |  ------------------
  |  |  |  Branch (511:43): [True: 2, False: 6.06G]
  |  |  ------------------
  ------------------
  |  Branch (1919:24): [True: 504k, False: 6.06G]
  ------------------
 1920|       |
 1921|  6.06G|  switch (c)
 1922|  6.06G|    {
 1923|      6|    case '\n':
  ------------------
  |  Branch (1923:5): [True: 6, False: 6.06G]
  ------------------
 1924|      6|      if (syntax & RE_NEWLINE_ALT)
  ------------------
  |  |  138|      6|# define RE_NEWLINE_ALT (RE_LIMITED_OPS << 1)
  |  |  ------------------
  |  |  |  |  134|      6|# define RE_LIMITED_OPS (RE_INTERVALS << 1)
  |  |  |  |  ------------------
  |  |  |  |  |  |  130|      6|# define RE_INTERVALS (RE_HAT_LISTS_NOT_NEWLINE << 1)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  125|      6|# define RE_HAT_LISTS_NOT_NEWLINE (RE_DOT_NOT_NULL << 1)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  121|      6|# define RE_DOT_NOT_NULL (RE_DOT_NEWLINE << 1)
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  117|      6|# define RE_DOT_NEWLINE (RE_CONTEXT_INVALID_OPS << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  113|      6|# define RE_CONTEXT_INVALID_OPS (RE_CONTEXT_INDEP_OPS << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  109|      6|# define RE_CONTEXT_INDEP_OPS (RE_CONTEXT_INDEP_ANCHORS << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  101|      6|# define RE_CONTEXT_INDEP_ANCHORS (RE_CHAR_CLASSES << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |   87|      6|# define RE_CHAR_CLASSES (RE_BK_PLUS_QM << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |   81|      6|# define RE_BK_PLUS_QM (RE_BACKSLASH_ESCAPE_IN_LISTS << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |   76|      6|# define RE_BACKSLASH_ESCAPE_IN_LISTS 1ul
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  |  Branch (1924:11): [True: 0, False: 6]
  ------------------
 1925|      0|	token->type = OP_ALT;
 1926|      6|      break;
 1927|    354|    case '|':
  ------------------
  |  Branch (1927:5): [True: 354, False: 6.06G]
  ------------------
 1928|    354|      if (!(syntax & RE_LIMITED_OPS) && (syntax & RE_NO_BK_VBAR))
  ------------------
  |  |  134|    354|# define RE_LIMITED_OPS (RE_INTERVALS << 1)
  |  |  ------------------
  |  |  |  |  130|    354|# define RE_INTERVALS (RE_HAT_LISTS_NOT_NEWLINE << 1)
  |  |  |  |  ------------------
  |  |  |  |  |  |  125|    354|# define RE_HAT_LISTS_NOT_NEWLINE (RE_DOT_NOT_NULL << 1)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|    354|# define RE_DOT_NOT_NULL (RE_DOT_NEWLINE << 1)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  117|    354|# define RE_DOT_NEWLINE (RE_CONTEXT_INVALID_OPS << 1)
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  113|    354|# define RE_CONTEXT_INVALID_OPS (RE_CONTEXT_INDEP_OPS << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  109|    354|# define RE_CONTEXT_INDEP_OPS (RE_CONTEXT_INDEP_ANCHORS << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  101|    354|# define RE_CONTEXT_INDEP_ANCHORS (RE_CHAR_CLASSES << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |   87|    354|# define RE_CHAR_CLASSES (RE_BK_PLUS_QM << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |   81|    354|# define RE_BK_PLUS_QM (RE_BACKSLASH_ESCAPE_IN_LISTS << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |   76|    354|# define RE_BACKSLASH_ESCAPE_IN_LISTS 1ul
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
                    if (!(syntax & RE_LIMITED_OPS) && (syntax & RE_NO_BK_VBAR))
  ------------------
  |  |  155|    354|# define RE_NO_BK_VBAR (RE_NO_BK_REFS << 1)
  |  |  ------------------
  |  |  |  |  151|    354|# define RE_NO_BK_REFS (RE_NO_BK_PARENS << 1)
  |  |  |  |  ------------------
  |  |  |  |  |  |  147|    354|# define RE_NO_BK_PARENS (RE_NO_BK_BRACES << 1)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  143|    354|# define RE_NO_BK_BRACES (RE_NEWLINE_ALT << 1)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  138|    354|# define RE_NEWLINE_ALT (RE_LIMITED_OPS << 1)
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  134|    354|# define RE_LIMITED_OPS (RE_INTERVALS << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  130|    354|# define RE_INTERVALS (RE_HAT_LISTS_NOT_NEWLINE << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  125|    354|# define RE_HAT_LISTS_NOT_NEWLINE (RE_DOT_NOT_NULL << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  121|    354|# define RE_DOT_NOT_NULL (RE_DOT_NEWLINE << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  117|    354|# define RE_DOT_NEWLINE (RE_CONTEXT_INVALID_OPS << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  113|    354|# define RE_CONTEXT_INVALID_OPS (RE_CONTEXT_INDEP_OPS << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  109|    354|# define RE_CONTEXT_INDEP_OPS (RE_CONTEXT_INDEP_ANCHORS << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  101|    354|# define RE_CONTEXT_INDEP_ANCHORS (RE_CHAR_CLASSES << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |   87|    354|# define RE_CHAR_CLASSES (RE_BK_PLUS_QM << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |   81|    354|# define RE_BK_PLUS_QM (RE_BACKSLASH_ESCAPE_IN_LISTS << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |   76|    354|# define RE_BACKSLASH_ESCAPE_IN_LISTS 1ul
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  |  Branch (1928:11): [True: 354, False: 0]
  |  Branch (1928:41): [True: 354, False: 0]
  ------------------
 1929|    354|	token->type = OP_ALT;
 1930|    354|      break;
 1931|   248k|    case '*':
  ------------------
  |  Branch (1931:5): [True: 248k, False: 6.06G]
  ------------------
 1932|   248k|      token->type = OP_DUP_ASTERISK;
 1933|   248k|      break;
 1934|     96|    case '+':
  ------------------
  |  Branch (1934:5): [True: 96, False: 6.06G]
  ------------------
 1935|     96|      if (!(syntax & RE_LIMITED_OPS) && !(syntax & RE_BK_PLUS_QM))
  ------------------
  |  |  134|     96|# define RE_LIMITED_OPS (RE_INTERVALS << 1)
  |  |  ------------------
  |  |  |  |  130|     96|# define RE_INTERVALS (RE_HAT_LISTS_NOT_NEWLINE << 1)
  |  |  |  |  ------------------
  |  |  |  |  |  |  125|     96|# define RE_HAT_LISTS_NOT_NEWLINE (RE_DOT_NOT_NULL << 1)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|     96|# define RE_DOT_NOT_NULL (RE_DOT_NEWLINE << 1)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  117|     96|# define RE_DOT_NEWLINE (RE_CONTEXT_INVALID_OPS << 1)
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  113|     96|# define RE_CONTEXT_INVALID_OPS (RE_CONTEXT_INDEP_OPS << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  109|     96|# define RE_CONTEXT_INDEP_OPS (RE_CONTEXT_INDEP_ANCHORS << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  101|     96|# define RE_CONTEXT_INDEP_ANCHORS (RE_CHAR_CLASSES << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |   87|     96|# define RE_CHAR_CLASSES (RE_BK_PLUS_QM << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |   81|     96|# define RE_BK_PLUS_QM (RE_BACKSLASH_ESCAPE_IN_LISTS << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |   76|     96|# define RE_BACKSLASH_ESCAPE_IN_LISTS 1ul
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
                    if (!(syntax & RE_LIMITED_OPS) && !(syntax & RE_BK_PLUS_QM))
  ------------------
  |  |   81|     96|# define RE_BK_PLUS_QM (RE_BACKSLASH_ESCAPE_IN_LISTS << 1)
  |  |  ------------------
  |  |  |  |   76|     96|# define RE_BACKSLASH_ESCAPE_IN_LISTS 1ul
  |  |  ------------------
  ------------------
  |  Branch (1935:11): [True: 96, False: 0]
  |  Branch (1935:41): [True: 96, False: 0]
  ------------------
 1936|     96|	token->type = OP_DUP_PLUS;
 1937|     96|      break;
 1938|     30|    case '?':
  ------------------
  |  Branch (1938:5): [True: 30, False: 6.06G]
  ------------------
 1939|     30|      if (!(syntax & RE_LIMITED_OPS) && !(syntax & RE_BK_PLUS_QM))
  ------------------
  |  |  134|     30|# define RE_LIMITED_OPS (RE_INTERVALS << 1)
  |  |  ------------------
  |  |  |  |  130|     30|# define RE_INTERVALS (RE_HAT_LISTS_NOT_NEWLINE << 1)
  |  |  |  |  ------------------
  |  |  |  |  |  |  125|     30|# define RE_HAT_LISTS_NOT_NEWLINE (RE_DOT_NOT_NULL << 1)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|     30|# define RE_DOT_NOT_NULL (RE_DOT_NEWLINE << 1)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  117|     30|# define RE_DOT_NEWLINE (RE_CONTEXT_INVALID_OPS << 1)
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  113|     30|# define RE_CONTEXT_INVALID_OPS (RE_CONTEXT_INDEP_OPS << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  109|     30|# define RE_CONTEXT_INDEP_OPS (RE_CONTEXT_INDEP_ANCHORS << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  101|     30|# define RE_CONTEXT_INDEP_ANCHORS (RE_CHAR_CLASSES << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |   87|     30|# define RE_CHAR_CLASSES (RE_BK_PLUS_QM << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |   81|     30|# define RE_BK_PLUS_QM (RE_BACKSLASH_ESCAPE_IN_LISTS << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |   76|     30|# define RE_BACKSLASH_ESCAPE_IN_LISTS 1ul
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
                    if (!(syntax & RE_LIMITED_OPS) && !(syntax & RE_BK_PLUS_QM))
  ------------------
  |  |   81|     30|# define RE_BK_PLUS_QM (RE_BACKSLASH_ESCAPE_IN_LISTS << 1)
  |  |  ------------------
  |  |  |  |   76|     30|# define RE_BACKSLASH_ESCAPE_IN_LISTS 1ul
  |  |  ------------------
  ------------------
  |  Branch (1939:11): [True: 30, False: 0]
  |  Branch (1939:41): [True: 30, False: 0]
  ------------------
 1940|     30|	token->type = OP_DUP_QUESTION;
 1941|     30|      break;
 1942|      0|    case '{':
  ------------------
  |  Branch (1942:5): [True: 0, False: 6.06G]
  ------------------
 1943|      0|      if ((syntax & RE_INTERVALS) && (syntax & RE_NO_BK_BRACES))
  ------------------
  |  |  130|      0|# define RE_INTERVALS (RE_HAT_LISTS_NOT_NEWLINE << 1)
  |  |  ------------------
  |  |  |  |  125|      0|# define RE_HAT_LISTS_NOT_NEWLINE (RE_DOT_NOT_NULL << 1)
  |  |  |  |  ------------------
  |  |  |  |  |  |  121|      0|# define RE_DOT_NOT_NULL (RE_DOT_NEWLINE << 1)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  117|      0|# define RE_DOT_NEWLINE (RE_CONTEXT_INVALID_OPS << 1)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  113|      0|# define RE_CONTEXT_INVALID_OPS (RE_CONTEXT_INDEP_OPS << 1)
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  109|      0|# define RE_CONTEXT_INDEP_OPS (RE_CONTEXT_INDEP_ANCHORS << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  101|      0|# define RE_CONTEXT_INDEP_ANCHORS (RE_CHAR_CLASSES << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |   87|      0|# define RE_CHAR_CLASSES (RE_BK_PLUS_QM << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |   81|      0|# define RE_BK_PLUS_QM (RE_BACKSLASH_ESCAPE_IN_LISTS << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |   76|      0|# define RE_BACKSLASH_ESCAPE_IN_LISTS 1ul
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
                    if ((syntax & RE_INTERVALS) && (syntax & RE_NO_BK_BRACES))
  ------------------
  |  |  143|      0|# define RE_NO_BK_BRACES (RE_NEWLINE_ALT << 1)
  |  |  ------------------
  |  |  |  |  138|      0|# define RE_NEWLINE_ALT (RE_LIMITED_OPS << 1)
  |  |  |  |  ------------------
  |  |  |  |  |  |  134|      0|# define RE_LIMITED_OPS (RE_INTERVALS << 1)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  130|      0|# define RE_INTERVALS (RE_HAT_LISTS_NOT_NEWLINE << 1)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  125|      0|# define RE_HAT_LISTS_NOT_NEWLINE (RE_DOT_NOT_NULL << 1)
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  121|      0|# define RE_DOT_NOT_NULL (RE_DOT_NEWLINE << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  117|      0|# define RE_DOT_NEWLINE (RE_CONTEXT_INVALID_OPS << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  113|      0|# define RE_CONTEXT_INVALID_OPS (RE_CONTEXT_INDEP_OPS << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  109|      0|# define RE_CONTEXT_INDEP_OPS (RE_CONTEXT_INDEP_ANCHORS << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  101|      0|# define RE_CONTEXT_INDEP_ANCHORS (RE_CHAR_CLASSES << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |   87|      0|# define RE_CHAR_CLASSES (RE_BK_PLUS_QM << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |   81|      0|# define RE_BK_PLUS_QM (RE_BACKSLASH_ESCAPE_IN_LISTS << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |   76|      0|# define RE_BACKSLASH_ESCAPE_IN_LISTS 1ul
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  |  Branch (1943:11): [True: 0, False: 0]
  |  Branch (1943:38): [True: 0, False: 0]
  ------------------
 1944|      0|	token->type = OP_OPEN_DUP_NUM;
 1945|      0|      break;
 1946|     32|    case '}':
  ------------------
  |  Branch (1946:5): [True: 32, False: 6.06G]
  ------------------
 1947|     32|      if ((syntax & RE_INTERVALS) && (syntax & RE_NO_BK_BRACES))
  ------------------
  |  |  130|     32|# define RE_INTERVALS (RE_HAT_LISTS_NOT_NEWLINE << 1)
  |  |  ------------------
  |  |  |  |  125|     32|# define RE_HAT_LISTS_NOT_NEWLINE (RE_DOT_NOT_NULL << 1)
  |  |  |  |  ------------------
  |  |  |  |  |  |  121|     32|# define RE_DOT_NOT_NULL (RE_DOT_NEWLINE << 1)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  117|     32|# define RE_DOT_NEWLINE (RE_CONTEXT_INVALID_OPS << 1)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  113|     32|# define RE_CONTEXT_INVALID_OPS (RE_CONTEXT_INDEP_OPS << 1)
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  109|     32|# define RE_CONTEXT_INDEP_OPS (RE_CONTEXT_INDEP_ANCHORS << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  101|     32|# define RE_CONTEXT_INDEP_ANCHORS (RE_CHAR_CLASSES << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |   87|     32|# define RE_CHAR_CLASSES (RE_BK_PLUS_QM << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |   81|     32|# define RE_BK_PLUS_QM (RE_BACKSLASH_ESCAPE_IN_LISTS << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |   76|     32|# define RE_BACKSLASH_ESCAPE_IN_LISTS 1ul
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
                    if ((syntax & RE_INTERVALS) && (syntax & RE_NO_BK_BRACES))
  ------------------
  |  |  143|     32|# define RE_NO_BK_BRACES (RE_NEWLINE_ALT << 1)
  |  |  ------------------
  |  |  |  |  138|     32|# define RE_NEWLINE_ALT (RE_LIMITED_OPS << 1)
  |  |  |  |  ------------------
  |  |  |  |  |  |  134|     32|# define RE_LIMITED_OPS (RE_INTERVALS << 1)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  130|     32|# define RE_INTERVALS (RE_HAT_LISTS_NOT_NEWLINE << 1)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  125|     32|# define RE_HAT_LISTS_NOT_NEWLINE (RE_DOT_NOT_NULL << 1)
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  121|     32|# define RE_DOT_NOT_NULL (RE_DOT_NEWLINE << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  117|     32|# define RE_DOT_NEWLINE (RE_CONTEXT_INVALID_OPS << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  113|     32|# define RE_CONTEXT_INVALID_OPS (RE_CONTEXT_INDEP_OPS << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  109|     32|# define RE_CONTEXT_INDEP_OPS (RE_CONTEXT_INDEP_ANCHORS << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  101|     32|# define RE_CONTEXT_INDEP_ANCHORS (RE_CHAR_CLASSES << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |   87|     32|# define RE_CHAR_CLASSES (RE_BK_PLUS_QM << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |   81|     32|# define RE_BK_PLUS_QM (RE_BACKSLASH_ESCAPE_IN_LISTS << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |   76|     32|# define RE_BACKSLASH_ESCAPE_IN_LISTS 1ul
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  |  Branch (1947:11): [True: 32, False: 0]
  |  Branch (1947:38): [True: 32, False: 0]
  ------------------
 1948|     32|	token->type = OP_CLOSE_DUP_NUM;
 1949|     32|      break;
 1950|     46|    case '(':
  ------------------
  |  Branch (1950:5): [True: 46, False: 6.06G]
  ------------------
 1951|     46|      if (syntax & RE_NO_BK_PARENS)
  ------------------
  |  |  147|     46|# define RE_NO_BK_PARENS (RE_NO_BK_BRACES << 1)
  |  |  ------------------
  |  |  |  |  143|     46|# define RE_NO_BK_BRACES (RE_NEWLINE_ALT << 1)
  |  |  |  |  ------------------
  |  |  |  |  |  |  138|     46|# define RE_NEWLINE_ALT (RE_LIMITED_OPS << 1)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  134|     46|# define RE_LIMITED_OPS (RE_INTERVALS << 1)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  130|     46|# define RE_INTERVALS (RE_HAT_LISTS_NOT_NEWLINE << 1)
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  125|     46|# define RE_HAT_LISTS_NOT_NEWLINE (RE_DOT_NOT_NULL << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  121|     46|# define RE_DOT_NOT_NULL (RE_DOT_NEWLINE << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  117|     46|# define RE_DOT_NEWLINE (RE_CONTEXT_INVALID_OPS << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  113|     46|# define RE_CONTEXT_INVALID_OPS (RE_CONTEXT_INDEP_OPS << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  109|     46|# define RE_CONTEXT_INDEP_OPS (RE_CONTEXT_INDEP_ANCHORS << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  101|     46|# define RE_CONTEXT_INDEP_ANCHORS (RE_CHAR_CLASSES << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |   87|     46|# define RE_CHAR_CLASSES (RE_BK_PLUS_QM << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |   81|     46|# define RE_BK_PLUS_QM (RE_BACKSLASH_ESCAPE_IN_LISTS << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |   76|     46|# define RE_BACKSLASH_ESCAPE_IN_LISTS 1ul
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  |  Branch (1951:11): [True: 46, False: 0]
  ------------------
 1952|     46|	token->type = OP_OPEN_SUBEXP;
 1953|     46|      break;
 1954|     28|    case ')':
  ------------------
  |  Branch (1954:5): [True: 28, False: 6.06G]
  ------------------
 1955|     28|      if (syntax & RE_NO_BK_PARENS)
  ------------------
  |  |  147|     28|# define RE_NO_BK_PARENS (RE_NO_BK_BRACES << 1)
  |  |  ------------------
  |  |  |  |  143|     28|# define RE_NO_BK_BRACES (RE_NEWLINE_ALT << 1)
  |  |  |  |  ------------------
  |  |  |  |  |  |  138|     28|# define RE_NEWLINE_ALT (RE_LIMITED_OPS << 1)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  134|     28|# define RE_LIMITED_OPS (RE_INTERVALS << 1)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  130|     28|# define RE_INTERVALS (RE_HAT_LISTS_NOT_NEWLINE << 1)
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  125|     28|# define RE_HAT_LISTS_NOT_NEWLINE (RE_DOT_NOT_NULL << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  121|     28|# define RE_DOT_NOT_NULL (RE_DOT_NEWLINE << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  117|     28|# define RE_DOT_NEWLINE (RE_CONTEXT_INVALID_OPS << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  113|     28|# define RE_CONTEXT_INVALID_OPS (RE_CONTEXT_INDEP_OPS << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  109|     28|# define RE_CONTEXT_INDEP_OPS (RE_CONTEXT_INDEP_ANCHORS << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  101|     28|# define RE_CONTEXT_INDEP_ANCHORS (RE_CHAR_CLASSES << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |   87|     28|# define RE_CHAR_CLASSES (RE_BK_PLUS_QM << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |   81|     28|# define RE_BK_PLUS_QM (RE_BACKSLASH_ESCAPE_IN_LISTS << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |   76|     28|# define RE_BACKSLASH_ESCAPE_IN_LISTS 1ul
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  |  Branch (1955:11): [True: 28, False: 0]
  ------------------
 1956|     28|	token->type = OP_CLOSE_SUBEXP;
 1957|     28|      break;
 1958|     99|    case '[':
  ------------------
  |  Branch (1958:5): [True: 99, False: 6.06G]
  ------------------
 1959|     99|      token->type = OP_OPEN_BRACKET;
 1960|     99|      break;
 1961|  1.01k|    case '.':
  ------------------
  |  Branch (1961:5): [True: 1.01k, False: 6.06G]
  ------------------
 1962|  1.01k|      token->type = OP_PERIOD;
 1963|  1.01k|      break;
 1964|     12|    case '^':
  ------------------
  |  Branch (1964:5): [True: 12, False: 6.06G]
  ------------------
 1965|     12|      if (!(syntax & (RE_CONTEXT_INDEP_ANCHORS | RE_CARET_ANCHORS_HERE))
  ------------------
  |  |  101|     12|# define RE_CONTEXT_INDEP_ANCHORS (RE_CHAR_CLASSES << 1)
  |  |  ------------------
  |  |  |  |   87|     12|# define RE_CHAR_CLASSES (RE_BK_PLUS_QM << 1)
  |  |  |  |  ------------------
  |  |  |  |  |  |   81|     12|# define RE_BK_PLUS_QM (RE_BACKSLASH_ESCAPE_IN_LISTS << 1)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   76|     12|# define RE_BACKSLASH_ESCAPE_IN_LISTS 1ul
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
                    if (!(syntax & (RE_CONTEXT_INDEP_ANCHORS | RE_CARET_ANCHORS_HERE))
  ------------------
  |  |  195|     12|# define RE_CARET_ANCHORS_HERE (RE_ICASE << 1)
  |  |  ------------------
  |  |  |  |  190|     12|# define RE_ICASE (RE_INVALID_INTERVAL_ORD << 1)
  |  |  |  |  ------------------
  |  |  |  |  |  |  186|     12|# define RE_INVALID_INTERVAL_ORD (RE_DEBUG << 1)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  181|     12|# define RE_DEBUG (RE_NO_GNU_OPS << 1)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  173|     12|# define RE_NO_GNU_OPS (RE_NO_POSIX_BACKTRACKING << 1)
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  169|     12|# define RE_NO_POSIX_BACKTRACKING (RE_UNMATCHED_RIGHT_PAREN_ORD << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  165|     12|# define RE_UNMATCHED_RIGHT_PAREN_ORD (RE_NO_EMPTY_RANGES << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  161|     12|# define RE_NO_EMPTY_RANGES (RE_NO_BK_VBAR << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  155|     12|# define RE_NO_BK_VBAR (RE_NO_BK_REFS << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  151|     12|# define RE_NO_BK_REFS (RE_NO_BK_PARENS << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  147|     12|# define RE_NO_BK_PARENS (RE_NO_BK_BRACES << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  143|     12|# define RE_NO_BK_BRACES (RE_NEWLINE_ALT << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  138|     12|# define RE_NEWLINE_ALT (RE_LIMITED_OPS << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  134|     12|# define RE_LIMITED_OPS (RE_INTERVALS << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  130|     12|# define RE_INTERVALS (RE_HAT_LISTS_NOT_NEWLINE << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  125|     12|# define RE_HAT_LISTS_NOT_NEWLINE (RE_DOT_NOT_NULL << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  121|     12|# define RE_DOT_NOT_NULL (RE_DOT_NEWLINE << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  117|     12|# define RE_DOT_NEWLINE (RE_CONTEXT_INVALID_OPS << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  113|     12|# define RE_CONTEXT_INVALID_OPS (RE_CONTEXT_INDEP_OPS << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  109|     12|# define RE_CONTEXT_INDEP_OPS (RE_CONTEXT_INDEP_ANCHORS << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  101|     12|# define RE_CONTEXT_INDEP_ANCHORS (RE_CHAR_CLASSES << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |   87|     12|# define RE_CHAR_CLASSES (RE_BK_PLUS_QM << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |   81|     12|# define RE_BK_PLUS_QM (RE_BACKSLASH_ESCAPE_IN_LISTS << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |   76|     12|# define RE_BACKSLASH_ESCAPE_IN_LISTS 1ul
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  |  Branch (1965:11): [True: 10, False: 2]
  ------------------
 1966|     10|	  && re_string_cur_idx (input) != 0)
  ------------------
  |  |  452|     10|#define re_string_cur_idx(pstr) ((pstr)->cur_idx)
  ------------------
  |  Branch (1966:7): [True: 10, False: 0]
  ------------------
 1967|     10|	{
 1968|     10|	  char prev = re_string_peek_byte (input, -1);
  ------------------
  |  |  443|     10|  ((pstr)->mbs[(pstr)->cur_idx + offset])
  ------------------
 1969|     10|	  if (!(syntax & RE_NEWLINE_ALT) || prev != '\n')
  ------------------
  |  |  138|     10|# define RE_NEWLINE_ALT (RE_LIMITED_OPS << 1)
  |  |  ------------------
  |  |  |  |  134|     10|# define RE_LIMITED_OPS (RE_INTERVALS << 1)
  |  |  |  |  ------------------
  |  |  |  |  |  |  130|     10|# define RE_INTERVALS (RE_HAT_LISTS_NOT_NEWLINE << 1)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  125|     10|# define RE_HAT_LISTS_NOT_NEWLINE (RE_DOT_NOT_NULL << 1)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  121|     10|# define RE_DOT_NOT_NULL (RE_DOT_NEWLINE << 1)
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  117|     10|# define RE_DOT_NEWLINE (RE_CONTEXT_INVALID_OPS << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  113|     10|# define RE_CONTEXT_INVALID_OPS (RE_CONTEXT_INDEP_OPS << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  109|     10|# define RE_CONTEXT_INDEP_OPS (RE_CONTEXT_INDEP_ANCHORS << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  101|     10|# define RE_CONTEXT_INDEP_ANCHORS (RE_CHAR_CLASSES << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |   87|     10|# define RE_CHAR_CLASSES (RE_BK_PLUS_QM << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |   81|     10|# define RE_BK_PLUS_QM (RE_BACKSLASH_ESCAPE_IN_LISTS << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |   76|     10|# define RE_BACKSLASH_ESCAPE_IN_LISTS 1ul
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  |  Branch (1969:8): [True: 10, False: 0]
  |  Branch (1969:38): [True: 0, False: 0]
  ------------------
 1970|     10|	    break;
 1971|     10|	}
 1972|      2|      token->type = ANCHOR;
 1973|      2|      token->opr.ctx_type = LINE_FIRST;
 1974|      2|      break;
 1975|  6.06G|    case '$':
  ------------------
  |  Branch (1975:5): [True: 6.06G, False: 973k]
  ------------------
 1976|  6.06G|      if (!(syntax & RE_CONTEXT_INDEP_ANCHORS)
  ------------------
  |  |  101|  6.06G|# define RE_CONTEXT_INDEP_ANCHORS (RE_CHAR_CLASSES << 1)
  |  |  ------------------
  |  |  |  |   87|  6.06G|# define RE_CHAR_CLASSES (RE_BK_PLUS_QM << 1)
  |  |  |  |  ------------------
  |  |  |  |  |  |   81|  6.06G|# define RE_BK_PLUS_QM (RE_BACKSLASH_ESCAPE_IN_LISTS << 1)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   76|  6.06G|# define RE_BACKSLASH_ESCAPE_IN_LISTS 1ul
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  |  Branch (1976:11): [True: 6.06G, False: 0]
  ------------------
 1977|  6.06G|	  && re_string_cur_idx (input) + 1 != re_string_length (input))
  ------------------
  |  |  452|  6.06G|#define re_string_cur_idx(pstr) ((pstr)->cur_idx)
  ------------------
              	  && re_string_cur_idx (input) + 1 != re_string_length (input))
  ------------------
  |  |  454|  6.06G|#define re_string_length(pstr) ((pstr)->len)
  ------------------
  |  Branch (1977:7): [True: 6.06G, False: 0]
  ------------------
 1978|  6.06G|	{
 1979|  6.06G|	  re_token_t next;
 1980|  6.06G|	  re_string_skip_bytes (input, 1);
  ------------------
  |  |  456|  6.06G|#define re_string_skip_bytes(pstr,idx) ((pstr)->cur_idx += (idx))
  ------------------
 1981|  6.06G|	  peek_token (&next, input, syntax);
 1982|  6.06G|	  re_string_skip_bytes (input, -1);
  ------------------
  |  |  456|  6.06G|#define re_string_skip_bytes(pstr,idx) ((pstr)->cur_idx += (idx))
  ------------------
 1983|  6.06G|	  if (next.type != OP_ALT && next.type != OP_CLOSE_SUBEXP)
  ------------------
  |  Branch (1983:8): [True: 6.06G, False: 4]
  |  Branch (1983:31): [True: 6.06G, False: 0]
  ------------------
 1984|  6.06G|	    break;
 1985|  6.06G|	}
 1986|      4|      token->type = ANCHOR;
 1987|      4|      token->opr.ctx_type = LINE_LAST;
 1988|      4|      break;
 1989|   722k|    default:
  ------------------
  |  Branch (1989:5): [True: 722k, False: 6.06G]
  ------------------
 1990|   722k|      break;
 1991|  6.06G|    }
 1992|  6.06G|  return 1;
 1993|  6.06G|}
regex.c:parse_reg_exp:
 2141|    149|{
 2142|    149|  re_dfa_t *dfa = preg->buffer;
 2143|    149|  bin_tree_t *tree, *branch = NULL;
 2144|    149|  bitset_word_t initial_bkref_map = dfa->completed_bkref_map;
 2145|    149|  tree = parse_branch (regexp, preg, token, syntax, nest, err);
 2146|    149|  if (__glibc_unlikely (*err != REG_NOERROR && tree == NULL))
  ------------------
  |  Branch (2146:7): [True: 10, False: 139]
  |  Branch (2146:7): [True: 10, False: 0]
  |  Branch (2146:7): [True: 10, False: 139]
  ------------------
 2147|     10|    return NULL;
 2148|       |
 2149|    471|  while (token->type == OP_ALT)
  ------------------
  |  Branch (2149:10): [True: 350, False: 121]
  ------------------
 2150|    350|    {
 2151|    350|      fetch_token (token, regexp, syntax | RE_CARET_ANCHORS_HERE);
  ------------------
  |  |  195|    350|# define RE_CARET_ANCHORS_HERE (RE_ICASE << 1)
  |  |  ------------------
  |  |  |  |  190|    350|# define RE_ICASE (RE_INVALID_INTERVAL_ORD << 1)
  |  |  |  |  ------------------
  |  |  |  |  |  |  186|    350|# define RE_INVALID_INTERVAL_ORD (RE_DEBUG << 1)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  181|    350|# define RE_DEBUG (RE_NO_GNU_OPS << 1)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  173|    350|# define RE_NO_GNU_OPS (RE_NO_POSIX_BACKTRACKING << 1)
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  169|    350|# define RE_NO_POSIX_BACKTRACKING (RE_UNMATCHED_RIGHT_PAREN_ORD << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  165|    350|# define RE_UNMATCHED_RIGHT_PAREN_ORD (RE_NO_EMPTY_RANGES << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  161|    350|# define RE_NO_EMPTY_RANGES (RE_NO_BK_VBAR << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  155|    350|# define RE_NO_BK_VBAR (RE_NO_BK_REFS << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  151|    350|# define RE_NO_BK_REFS (RE_NO_BK_PARENS << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  147|    350|# define RE_NO_BK_PARENS (RE_NO_BK_BRACES << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  143|    350|# define RE_NO_BK_BRACES (RE_NEWLINE_ALT << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  138|    350|# define RE_NEWLINE_ALT (RE_LIMITED_OPS << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  134|    350|# define RE_LIMITED_OPS (RE_INTERVALS << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  130|    350|# define RE_INTERVALS (RE_HAT_LISTS_NOT_NEWLINE << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  125|    350|# define RE_HAT_LISTS_NOT_NEWLINE (RE_DOT_NOT_NULL << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  121|    350|# define RE_DOT_NOT_NULL (RE_DOT_NEWLINE << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  117|    350|# define RE_DOT_NEWLINE (RE_CONTEXT_INVALID_OPS << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  113|    350|# define RE_CONTEXT_INVALID_OPS (RE_CONTEXT_INDEP_OPS << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  109|    350|# define RE_CONTEXT_INDEP_OPS (RE_CONTEXT_INDEP_ANCHORS << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  101|    350|# define RE_CONTEXT_INDEP_ANCHORS (RE_CHAR_CLASSES << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |   87|    350|# define RE_CHAR_CLASSES (RE_BK_PLUS_QM << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |   81|    350|# define RE_BK_PLUS_QM (RE_BACKSLASH_ESCAPE_IN_LISTS << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |   76|    350|# define RE_BACKSLASH_ESCAPE_IN_LISTS 1ul
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2152|    350|      if (token->type != OP_ALT && token->type != END_OF_RE
  ------------------
  |  Branch (2152:11): [True: 350, False: 0]
  |  Branch (2152:36): [True: 350, False: 0]
  ------------------
 2153|    350|	  && (nest == 0 || token->type != OP_CLOSE_SUBEXP))
  ------------------
  |  Branch (2153:8): [True: 12, False: 338]
  |  Branch (2153:21): [True: 336, False: 2]
  ------------------
 2154|    348|	{
 2155|    348|	  bitset_word_t accumulated_bkref_map = dfa->completed_bkref_map;
 2156|    348|	  dfa->completed_bkref_map = initial_bkref_map;
 2157|    348|	  branch = parse_branch (regexp, preg, token, syntax, nest, err);
 2158|    348|	  if (__glibc_unlikely (*err != REG_NOERROR && branch == NULL))
  ------------------
  |  Branch (2158:8): [True: 18, False: 330]
  |  Branch (2158:8): [True: 18, False: 0]
  |  Branch (2158:8): [True: 18, False: 330]
  ------------------
 2159|     18|	    {
 2160|     18|	      if (tree != NULL)
  ------------------
  |  Branch (2160:12): [True: 18, False: 0]
  ------------------
 2161|     18|		postorder (tree, free_tree, NULL);
 2162|     18|	      return NULL;
 2163|     18|	    }
 2164|    330|	  dfa->completed_bkref_map |= accumulated_bkref_map;
 2165|    330|	}
 2166|      2|      else
 2167|      2|	branch = NULL;
 2168|    332|      tree = create_tree (dfa, tree, branch, OP_ALT);
 2169|    332|      if (__glibc_unlikely (tree == NULL))
  ------------------
  |  Branch (2169:11): [True: 0, False: 332]
  ------------------
 2170|      0|	{
 2171|      0|	  *err = REG_ESPACE;
  ------------------
  |  |  388|      0|#define REG_ESPACE	_REG_ESPACE
  ------------------
 2172|      0|	  return NULL;
 2173|      0|	}
 2174|    332|    }
 2175|    121|  return tree;
 2176|    139|}
regex.c:parse_branch:
 2190|    497|{
 2191|    497|  bin_tree_t *tree, *expr;
 2192|    497|  re_dfa_t *dfa = preg->buffer;
 2193|    497|  tree = parse_expression (regexp, preg, token, syntax, nest, err);
 2194|    497|  if (__glibc_unlikely (*err != REG_NOERROR && tree == NULL))
  ------------------
  |  Branch (2194:7): [True: 18, False: 479]
  |  Branch (2194:7): [True: 18, False: 0]
  |  Branch (2194:7): [True: 18, False: 479]
  ------------------
 2195|     18|    return NULL;
 2196|       |
 2197|   972k|  while (token->type != OP_ALT && token->type != END_OF_RE
  ------------------
  |  Branch (2197:10): [True: 972k, False: 350]
  |  Branch (2197:35): [True: 972k, False: 93]
  ------------------
 2198|   972k|	 && (nest == 0 || token->type != OP_CLOSE_SUBEXP))
  ------------------
  |  Branch (2198:7): [True: 0, False: 972k]
  |  Branch (2198:20): [True: 972k, False: 26]
  ------------------
 2199|   972k|    {
 2200|   972k|      expr = parse_expression (regexp, preg, token, syntax, nest, err);
 2201|   972k|      if (__glibc_unlikely (*err != REG_NOERROR && expr == NULL))
  ------------------
  |  Branch (2201:11): [True: 10, False: 972k]
  |  Branch (2201:11): [True: 10, False: 0]
  |  Branch (2201:11): [True: 10, False: 972k]
  ------------------
 2202|     10|	{
 2203|     10|	  if (tree != NULL)
  ------------------
  |  Branch (2203:8): [True: 10, False: 0]
  ------------------
 2204|     10|	    postorder (tree, free_tree, NULL);
 2205|     10|	  return NULL;
 2206|     10|	}
 2207|   972k|      if (tree != NULL && expr != NULL)
  ------------------
  |  Branch (2207:11): [True: 972k, False: 0]
  |  Branch (2207:27): [True: 972k, False: 0]
  ------------------
 2208|   972k|	{
 2209|   972k|	  bin_tree_t *newtree = create_tree (dfa, tree, expr, CONCAT);
 2210|   972k|	  if (newtree == NULL)
  ------------------
  |  Branch (2210:8): [True: 0, False: 972k]
  ------------------
 2211|      0|	    {
 2212|      0|	      postorder (expr, free_tree, NULL);
 2213|      0|	      postorder (tree, free_tree, NULL);
 2214|      0|	      *err = REG_ESPACE;
  ------------------
  |  |  388|      0|#define REG_ESPACE	_REG_ESPACE
  ------------------
 2215|      0|	      return NULL;
 2216|      0|	    }
 2217|   972k|	  tree = newtree;
 2218|   972k|	}
 2219|      0|      else if (tree == NULL)
  ------------------
  |  Branch (2219:16): [True: 0, False: 0]
  ------------------
 2220|      0|	tree = expr;
 2221|       |      /* Otherwise expr == NULL, we don't need to create new tree.  */
 2222|   972k|    }
 2223|    469|  return tree;
 2224|    479|}
regex.c:parse_expression:
 2235|   973k|{
 2236|   973k|  re_dfa_t *dfa = preg->buffer;
 2237|   973k|  bin_tree_t *tree;
 2238|   973k|  switch (token->type)
 2239|   973k|    {
 2240|   971k|    case CHARACTER:
  ------------------
  |  Branch (2240:5): [True: 971k, False: 1.20k]
  ------------------
 2241|   971k|      tree = create_token_tree (dfa, NULL, NULL, token);
 2242|   971k|      if (__glibc_unlikely (tree == NULL))
  ------------------
  |  Branch (2242:11): [True: 0, False: 971k]
  ------------------
 2243|      0|	{
 2244|      0|	  *err = REG_ESPACE;
  ------------------
  |  |  388|      0|#define REG_ESPACE	_REG_ESPACE
  ------------------
 2245|      0|	  return NULL;
 2246|      0|	}
 2247|   971k|      if (dfa->mb_cur_max > 1)
  ------------------
  |  Branch (2247:11): [True: 0, False: 971k]
  ------------------
 2248|      0|	{
 2249|      0|	  while (!re_string_eoi (regexp)
  ------------------
  |  |  451|      0|#define re_string_eoi(pstr) ((pstr)->stop <= (pstr)->cur_idx)
  ------------------
  |  Branch (2249:11): [True: 0, False: 0]
  ------------------
 2250|      0|		 && !re_string_first_byte (regexp, re_string_cur_idx (regexp)))
  ------------------
  |  |  447|      0|  ((idx) == (pstr)->valid_len || (pstr)->wcs[idx] != WEOF)
  |  |  ------------------
  |  |  |  Branch (447:4): [True: 0, False: 0]
  |  |  |  Branch (447:34): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 2251|      0|	    {
 2252|      0|	      bin_tree_t *mbc_remain;
 2253|      0|	      fetch_token (token, regexp, syntax);
 2254|      0|	      mbc_remain = create_token_tree (dfa, NULL, NULL, token);
 2255|      0|	      tree = create_tree (dfa, tree, mbc_remain, CONCAT);
 2256|      0|	      if (__glibc_unlikely (mbc_remain == NULL || tree == NULL))
  ------------------
  |  Branch (2256:12): [True: 0, False: 0]
  |  Branch (2256:12): [True: 0, False: 0]
  |  Branch (2256:12): [True: 0, False: 0]
  ------------------
 2257|      0|		{
 2258|      0|		  *err = REG_ESPACE;
  ------------------
  |  |  388|      0|#define REG_ESPACE	_REG_ESPACE
  ------------------
 2259|      0|		  return NULL;
 2260|      0|		}
 2261|      0|	    }
 2262|      0|	}
 2263|   971k|      break;
 2264|       |
 2265|   971k|    case OP_OPEN_SUBEXP:
  ------------------
  |  Branch (2265:5): [True: 46, False: 972k]
  ------------------
 2266|     46|      tree = parse_sub_exp (regexp, preg, token, syntax, nest + 1, err);
 2267|     46|      if (__glibc_unlikely (*err != REG_NOERROR && tree == NULL))
  ------------------
  |  Branch (2267:11): [True: 18, False: 28]
  |  Branch (2267:11): [True: 18, False: 0]
  |  Branch (2267:11): [True: 18, False: 28]
  ------------------
 2268|     18|	return NULL;
 2269|     28|      break;
 2270|       |
 2271|     99|    case OP_OPEN_BRACKET:
  ------------------
  |  Branch (2271:5): [True: 99, False: 972k]
  ------------------
 2272|     99|      tree = parse_bracket_exp (regexp, dfa, token, syntax, err);
 2273|     99|      if (__glibc_unlikely (*err != REG_NOERROR && tree == NULL))
  ------------------
  |  Branch (2273:11): [True: 0, False: 99]
  |  Branch (2273:11): [True: 0, False: 0]
  |  Branch (2273:11): [True: 0, False: 99]
  ------------------
 2274|      0|	return NULL;
 2275|     99|      break;
 2276|       |
 2277|     99|    case OP_BACK_REF:
  ------------------
  |  Branch (2277:5): [True: 0, False: 973k]
  ------------------
 2278|      0|      if (!__glibc_likely (dfa->completed_bkref_map & (1 << token->opr.idx)))
  ------------------
  |  Branch (2278:11): [True: 0, False: 0]
  ------------------
 2279|      0|	{
 2280|      0|	  *err = REG_ESUBREG;
  ------------------
  |  |  382|      0|#define REG_ESUBREG	_REG_ESUBREG
  ------------------
 2281|      0|	  return NULL;
 2282|      0|	}
 2283|      0|      dfa->used_bkref_map |= 1 << token->opr.idx;
 2284|      0|      tree = create_token_tree (dfa, NULL, NULL, token);
 2285|      0|      if (__glibc_unlikely (tree == NULL))
  ------------------
  |  Branch (2285:11): [True: 0, False: 0]
  ------------------
 2286|      0|	{
 2287|      0|	  *err = REG_ESPACE;
  ------------------
  |  |  388|      0|#define REG_ESPACE	_REG_ESPACE
  ------------------
 2288|      0|	  return NULL;
 2289|      0|	}
 2290|      0|      ++dfa->nbackref;
 2291|      0|      dfa->has_mb_node = 1;
 2292|      0|      break;
 2293|       |
 2294|      0|    case OP_OPEN_DUP_NUM:
  ------------------
  |  Branch (2294:5): [True: 0, False: 973k]
  ------------------
 2295|      0|      if (syntax & RE_CONTEXT_INVALID_DUP)
  ------------------
  |  |  199|      0|# define RE_CONTEXT_INVALID_DUP (RE_CARET_ANCHORS_HERE << 1)
  |  |  ------------------
  |  |  |  |  195|      0|# define RE_CARET_ANCHORS_HERE (RE_ICASE << 1)
  |  |  |  |  ------------------
  |  |  |  |  |  |  190|      0|# define RE_ICASE (RE_INVALID_INTERVAL_ORD << 1)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  186|      0|# define RE_INVALID_INTERVAL_ORD (RE_DEBUG << 1)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  181|      0|# define RE_DEBUG (RE_NO_GNU_OPS << 1)
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  173|      0|# define RE_NO_GNU_OPS (RE_NO_POSIX_BACKTRACKING << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  169|      0|# define RE_NO_POSIX_BACKTRACKING (RE_UNMATCHED_RIGHT_PAREN_ORD << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  165|      0|# define RE_UNMATCHED_RIGHT_PAREN_ORD (RE_NO_EMPTY_RANGES << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  161|      0|# define RE_NO_EMPTY_RANGES (RE_NO_BK_VBAR << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  155|      0|# define RE_NO_BK_VBAR (RE_NO_BK_REFS << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  151|      0|# define RE_NO_BK_REFS (RE_NO_BK_PARENS << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  147|      0|# define RE_NO_BK_PARENS (RE_NO_BK_BRACES << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  143|      0|# define RE_NO_BK_BRACES (RE_NEWLINE_ALT << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  138|      0|# define RE_NEWLINE_ALT (RE_LIMITED_OPS << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  134|      0|# define RE_LIMITED_OPS (RE_INTERVALS << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  130|      0|# define RE_INTERVALS (RE_HAT_LISTS_NOT_NEWLINE << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  125|      0|# define RE_HAT_LISTS_NOT_NEWLINE (RE_DOT_NOT_NULL << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  121|      0|# define RE_DOT_NOT_NULL (RE_DOT_NEWLINE << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  117|      0|# define RE_DOT_NEWLINE (RE_CONTEXT_INVALID_OPS << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  113|      0|# define RE_CONTEXT_INVALID_OPS (RE_CONTEXT_INDEP_OPS << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  109|      0|# define RE_CONTEXT_INDEP_OPS (RE_CONTEXT_INDEP_ANCHORS << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  101|      0|# define RE_CONTEXT_INDEP_ANCHORS (RE_CHAR_CLASSES << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |   87|      0|# define RE_CHAR_CLASSES (RE_BK_PLUS_QM << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |   81|      0|# define RE_BK_PLUS_QM (RE_BACKSLASH_ESCAPE_IN_LISTS << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |   76|      0|# define RE_BACKSLASH_ESCAPE_IN_LISTS 1ul
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  |  Branch (2295:11): [True: 0, False: 0]
  ------------------
 2296|      0|	{
 2297|      0|	  *err = REG_BADRPT;
  ------------------
  |  |  389|      0|#define REG_BADRPT	_REG_BADRPT
  ------------------
 2298|      0|	  return NULL;
 2299|      0|	}
 2300|      0|      FALLTHROUGH;
  ------------------
  |  |  210|      0|#define FALLTHROUGH _GL_ATTRIBUTE_FALLTHROUGH
  |  |  ------------------
  |  |  |  | 2041|      0|#   define _GL_ATTRIBUTE_FALLTHROUGH [[__fallthrough__]]
  |  |  ------------------
  ------------------
 2301|      8|    case OP_DUP_ASTERISK:
  ------------------
  |  Branch (2301:5): [True: 8, False: 973k]
  ------------------
 2302|      8|    case OP_DUP_PLUS:
  ------------------
  |  Branch (2302:5): [True: 0, False: 973k]
  ------------------
 2303|      8|    case OP_DUP_QUESTION:
  ------------------
  |  Branch (2303:5): [True: 0, False: 973k]
  ------------------
 2304|      8|      if (syntax & RE_CONTEXT_INVALID_OPS)
  ------------------
  |  |  113|      8|# define RE_CONTEXT_INVALID_OPS (RE_CONTEXT_INDEP_OPS << 1)
  |  |  ------------------
  |  |  |  |  109|      8|# define RE_CONTEXT_INDEP_OPS (RE_CONTEXT_INDEP_ANCHORS << 1)
  |  |  |  |  ------------------
  |  |  |  |  |  |  101|      8|# define RE_CONTEXT_INDEP_ANCHORS (RE_CHAR_CLASSES << 1)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   87|      8|# define RE_CHAR_CLASSES (RE_BK_PLUS_QM << 1)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   81|      8|# define RE_BK_PLUS_QM (RE_BACKSLASH_ESCAPE_IN_LISTS << 1)
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |   76|      8|# define RE_BACKSLASH_ESCAPE_IN_LISTS 1ul
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  |  Branch (2304:11): [True: 8, False: 0]
  ------------------
 2305|      8|	{
 2306|      8|	  *err = REG_BADRPT;
  ------------------
  |  |  389|      8|#define REG_BADRPT	_REG_BADRPT
  ------------------
 2307|      8|	  return NULL;
 2308|      8|	}
 2309|      0|      else if (syntax & RE_CONTEXT_INDEP_OPS)
  ------------------
  |  |  109|      0|# define RE_CONTEXT_INDEP_OPS (RE_CONTEXT_INDEP_ANCHORS << 1)
  |  |  ------------------
  |  |  |  |  101|      0|# define RE_CONTEXT_INDEP_ANCHORS (RE_CHAR_CLASSES << 1)
  |  |  |  |  ------------------
  |  |  |  |  |  |   87|      0|# define RE_CHAR_CLASSES (RE_BK_PLUS_QM << 1)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   81|      0|# define RE_BK_PLUS_QM (RE_BACKSLASH_ESCAPE_IN_LISTS << 1)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   76|      0|# define RE_BACKSLASH_ESCAPE_IN_LISTS 1ul
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  |  Branch (2309:16): [True: 0, False: 0]
  ------------------
 2310|      0|	{
 2311|      0|	  fetch_token (token, regexp, syntax);
 2312|      0|	  return parse_expression (regexp, preg, token, syntax, nest, err);
 2313|      0|	}
 2314|      0|      FALLTHROUGH;
  ------------------
  |  |  210|      0|#define FALLTHROUGH _GL_ATTRIBUTE_FALLTHROUGH
  |  |  ------------------
  |  |  |  | 2041|      0|#   define _GL_ATTRIBUTE_FALLTHROUGH [[__fallthrough__]]
  |  |  ------------------
  ------------------
 2315|      0|    case OP_CLOSE_SUBEXP:
  ------------------
  |  Branch (2315:5): [True: 0, False: 973k]
  ------------------
 2316|      0|      if ((token->type == OP_CLOSE_SUBEXP)
  ------------------
  |  Branch (2316:11): [True: 0, False: 0]
  ------------------
 2317|      0|	  && !(syntax & RE_UNMATCHED_RIGHT_PAREN_ORD))
  ------------------
  |  |  165|      0|# define RE_UNMATCHED_RIGHT_PAREN_ORD (RE_NO_EMPTY_RANGES << 1)
  |  |  ------------------
  |  |  |  |  161|      0|# define RE_NO_EMPTY_RANGES (RE_NO_BK_VBAR << 1)
  |  |  |  |  ------------------
  |  |  |  |  |  |  155|      0|# define RE_NO_BK_VBAR (RE_NO_BK_REFS << 1)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  151|      0|# define RE_NO_BK_REFS (RE_NO_BK_PARENS << 1)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  147|      0|# define RE_NO_BK_PARENS (RE_NO_BK_BRACES << 1)
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  143|      0|# define RE_NO_BK_BRACES (RE_NEWLINE_ALT << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  138|      0|# define RE_NEWLINE_ALT (RE_LIMITED_OPS << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  134|      0|# define RE_LIMITED_OPS (RE_INTERVALS << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  130|      0|# define RE_INTERVALS (RE_HAT_LISTS_NOT_NEWLINE << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  125|      0|# define RE_HAT_LISTS_NOT_NEWLINE (RE_DOT_NOT_NULL << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  121|      0|# define RE_DOT_NOT_NULL (RE_DOT_NEWLINE << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  117|      0|# define RE_DOT_NEWLINE (RE_CONTEXT_INVALID_OPS << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  113|      0|# define RE_CONTEXT_INVALID_OPS (RE_CONTEXT_INDEP_OPS << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  109|      0|# define RE_CONTEXT_INDEP_OPS (RE_CONTEXT_INDEP_ANCHORS << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  101|      0|# define RE_CONTEXT_INDEP_ANCHORS (RE_CHAR_CLASSES << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |   87|      0|# define RE_CHAR_CLASSES (RE_BK_PLUS_QM << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |   81|      0|# define RE_BK_PLUS_QM (RE_BACKSLASH_ESCAPE_IN_LISTS << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |   76|      0|# define RE_BACKSLASH_ESCAPE_IN_LISTS 1ul
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  |  Branch (2317:7): [True: 0, False: 0]
  ------------------
 2318|      0|	{
 2319|      0|	  *err = REG_ERPAREN;
  ------------------
  |  |  392|      0|#define REG_ERPAREN	_REG_ERPAREN
  ------------------
 2320|      0|	  return NULL;
 2321|      0|	}
 2322|      0|      FALLTHROUGH;
  ------------------
  |  |  210|      0|#define FALLTHROUGH _GL_ATTRIBUTE_FALLTHROUGH
  |  |  ------------------
  |  |  |  | 2041|      0|#   define _GL_ATTRIBUTE_FALLTHROUGH [[__fallthrough__]]
  |  |  ------------------
  ------------------
 2323|     32|    case OP_CLOSE_DUP_NUM:
  ------------------
  |  Branch (2323:5): [True: 32, False: 972k]
  ------------------
 2324|       |      /* We treat it as a normal character.  */
 2325|       |
 2326|       |      /* Then we can these characters as normal characters.  */
 2327|     32|      token->type = CHARACTER;
 2328|       |      /* mb_partial and word_char bits should be initialized already
 2329|       |	 by peek_token.  */
 2330|     32|      tree = create_token_tree (dfa, NULL, NULL, token);
 2331|     32|      if (__glibc_unlikely (tree == NULL))
  ------------------
  |  Branch (2331:11): [True: 0, False: 32]
  ------------------
 2332|      0|	{
 2333|      0|	  *err = REG_ESPACE;
  ------------------
  |  |  388|      0|#define REG_ESPACE	_REG_ESPACE
  ------------------
 2334|      0|	  return NULL;
 2335|      0|	}
 2336|     32|      break;
 2337|       |
 2338|     32|    case ANCHOR:
  ------------------
  |  Branch (2338:5): [True: 6, False: 973k]
  ------------------
 2339|      6|      if ((token->opr.ctx_type
  ------------------
  |  Branch (2339:11): [True: 0, False: 6]
  ------------------
 2340|      6|	   & (WORD_DELIM | NOT_WORD_DELIM | WORD_FIRST | WORD_LAST))
 2341|      0|	  && dfa->word_ops_used == 0)
  ------------------
  |  Branch (2341:7): [True: 0, False: 0]
  ------------------
 2342|      0|	init_word_char (dfa);
 2343|      6|      if (token->opr.ctx_type == WORD_DELIM
  ------------------
  |  Branch (2343:11): [True: 0, False: 6]
  ------------------
 2344|      6|	  || token->opr.ctx_type == NOT_WORD_DELIM)
  ------------------
  |  Branch (2344:7): [True: 0, False: 6]
  ------------------
 2345|      0|	{
 2346|      0|	  bin_tree_t *tree_first, *tree_last;
 2347|      0|	  if (token->opr.ctx_type == WORD_DELIM)
  ------------------
  |  Branch (2347:8): [True: 0, False: 0]
  ------------------
 2348|      0|	    {
 2349|      0|	      token->opr.ctx_type = WORD_FIRST;
 2350|      0|	      tree_first = create_token_tree (dfa, NULL, NULL, token);
 2351|      0|	      token->opr.ctx_type = WORD_LAST;
 2352|      0|	    }
 2353|      0|	  else
 2354|      0|	    {
 2355|      0|	      token->opr.ctx_type = INSIDE_WORD;
 2356|      0|	      tree_first = create_token_tree (dfa, NULL, NULL, token);
 2357|      0|	      token->opr.ctx_type = INSIDE_NOTWORD;
 2358|      0|	    }
 2359|      0|	  tree_last = create_token_tree (dfa, NULL, NULL, token);
 2360|      0|	  tree = create_tree (dfa, tree_first, tree_last, OP_ALT);
 2361|      0|	  if (__glibc_unlikely (tree_first == NULL || tree_last == NULL
  ------------------
  |  Branch (2361:8): [True: 0, False: 0]
  |  Branch (2361:8): [True: 0, False: 0]
  |  Branch (2361:8): [True: 0, False: 0]
  |  Branch (2361:8): [True: 0, False: 0]
  ------------------
 2362|      0|				|| tree == NULL))
 2363|      0|	    {
 2364|      0|	      *err = REG_ESPACE;
  ------------------
  |  |  388|      0|#define REG_ESPACE	_REG_ESPACE
  ------------------
 2365|      0|	      return NULL;
 2366|      0|	    }
 2367|      0|	}
 2368|      6|      else
 2369|      6|	{
 2370|      6|	  tree = create_token_tree (dfa, NULL, NULL, token);
 2371|      6|	  if (__glibc_unlikely (tree == NULL))
  ------------------
  |  Branch (2371:8): [True: 0, False: 6]
  ------------------
 2372|      0|	    {
 2373|      0|	      *err = REG_ESPACE;
  ------------------
  |  |  388|      0|#define REG_ESPACE	_REG_ESPACE
  ------------------
 2374|      0|	      return NULL;
 2375|      0|	    }
 2376|      6|	}
 2377|       |      /* We must return here, since ANCHORs can't be followed
 2378|       |	 by repetition operators.
 2379|       |	 eg. RE"^*" is invalid or "<ANCHOR(^)><CHAR(*)>",
 2380|       |	     it must not be "<ANCHOR(^)><REPEAT(*)>".  */
 2381|      6|      fetch_token (token, regexp, syntax);
 2382|      6|      return tree;
 2383|       |
 2384|  1.01k|    case OP_PERIOD:
  ------------------
  |  Branch (2384:5): [True: 1.01k, False: 972k]
  ------------------
 2385|  1.01k|      tree = create_token_tree (dfa, NULL, NULL, token);
 2386|  1.01k|      if (__glibc_unlikely (tree == NULL))
  ------------------
  |  Branch (2386:11): [True: 0, False: 1.01k]
  ------------------
 2387|      0|	{
 2388|      0|	  *err = REG_ESPACE;
  ------------------
  |  |  388|      0|#define REG_ESPACE	_REG_ESPACE
  ------------------
 2389|      0|	  return NULL;
 2390|      0|	}
 2391|  1.01k|      if (dfa->mb_cur_max > 1)
  ------------------
  |  Branch (2391:11): [True: 0, False: 1.01k]
  ------------------
 2392|      0|	dfa->has_mb_node = 1;
 2393|  1.01k|      break;
 2394|       |
 2395|      0|    case OP_WORD:
  ------------------
  |  Branch (2395:5): [True: 0, False: 973k]
  ------------------
 2396|      0|    case OP_NOTWORD:
  ------------------
  |  Branch (2396:5): [True: 0, False: 973k]
  ------------------
 2397|      0|      tree = build_charclass_op (dfa, regexp->trans,
 2398|      0|				 "alnum",
 2399|      0|				 "_",
 2400|      0|				 token->type == OP_NOTWORD, err);
 2401|      0|      if (__glibc_unlikely (*err != REG_NOERROR && tree == NULL))
  ------------------
  |  Branch (2401:11): [True: 0, False: 0]
  |  Branch (2401:11): [True: 0, False: 0]
  |  Branch (2401:11): [True: 0, False: 0]
  ------------------
 2402|      0|	return NULL;
 2403|      0|      break;
 2404|       |
 2405|      0|    case OP_SPACE:
  ------------------
  |  Branch (2405:5): [True: 0, False: 973k]
  ------------------
 2406|      0|    case OP_NOTSPACE:
  ------------------
  |  Branch (2406:5): [True: 0, False: 973k]
  ------------------
 2407|      0|      tree = build_charclass_op (dfa, regexp->trans,
 2408|      0|				 "space",
 2409|      0|				 "",
 2410|      0|				 token->type == OP_NOTSPACE, err);
 2411|      0|      if (__glibc_unlikely (*err != REG_NOERROR && tree == NULL))
  ------------------
  |  Branch (2411:11): [True: 0, False: 0]
  |  Branch (2411:11): [True: 0, False: 0]
  |  Branch (2411:11): [True: 0, False: 0]
  ------------------
 2412|      0|	return NULL;
 2413|      0|      break;
 2414|       |
 2415|      2|    case OP_ALT:
  ------------------
  |  Branch (2415:5): [True: 2, False: 973k]
  ------------------
 2416|      2|    case END_OF_RE:
  ------------------
  |  Branch (2416:5): [True: 0, False: 973k]
  ------------------
 2417|      2|      return NULL;
 2418|       |
 2419|      0|    case BACK_SLASH:
  ------------------
  |  Branch (2419:5): [True: 0, False: 973k]
  ------------------
 2420|      0|      *err = REG_EESCAPE;
  ------------------
  |  |  381|      0|#define REG_EESCAPE	_REG_EESCAPE
  ------------------
 2421|      0|      return NULL;
 2422|       |
 2423|      0|    default:
  ------------------
  |  Branch (2423:5): [True: 0, False: 973k]
  ------------------
 2424|       |      /* Must not happen?  */
 2425|      0|      DEBUG_ASSERT (false);
  ------------------
  |  |   45|      0|# define DEBUG_ASSERT(x) assume (x)
  |  |  ------------------
  |  |  |  |  375|      0|# define assume(R) ((R) ? (void) 0 : __builtin_unreachable ())
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (375:21): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2426|      0|      return NULL;
 2427|   973k|    }
 2428|   972k|  fetch_token (token, regexp, syntax);
 2429|       |
 2430|   973k|  while (token->type == OP_DUP_ASTERISK || token->type == OP_DUP_PLUS
  ------------------
  |  Branch (2430:10): [True: 102, False: 973k]
  |  Branch (2430:44): [True: 96, False: 973k]
  ------------------
 2431|   973k|	 || token->type == OP_DUP_QUESTION || token->type == OP_OPEN_DUP_NUM)
  ------------------
  |  Branch (2431:6): [True: 30, False: 972k]
  |  Branch (2431:40): [True: 0, False: 972k]
  ------------------
 2432|    228|    {
 2433|    228|      bin_tree_t *dup_tree = parse_dup_op (tree, regexp, dfa, token,
 2434|    228|					   syntax, err);
 2435|    228|      if (__glibc_unlikely (*err != REG_NOERROR && dup_tree == NULL))
  ------------------
  |  Branch (2435:11): [True: 0, False: 228]
  |  Branch (2435:11): [True: 0, False: 0]
  |  Branch (2435:11): [True: 0, False: 228]
  ------------------
 2436|      0|	{
 2437|      0|	  if (tree != NULL)
  ------------------
  |  Branch (2437:8): [True: 0, False: 0]
  ------------------
 2438|      0|	    postorder (tree, free_tree, NULL);
 2439|      0|	  return NULL;
 2440|      0|	}
 2441|    228|      tree = dup_tree;
 2442|       |      /* In BRE consecutive duplications are not allowed.  */
 2443|    228|      if ((syntax & RE_CONTEXT_INVALID_DUP)
  ------------------
  |  |  199|    228|# define RE_CONTEXT_INVALID_DUP (RE_CARET_ANCHORS_HERE << 1)
  |  |  ------------------
  |  |  |  |  195|    228|# define RE_CARET_ANCHORS_HERE (RE_ICASE << 1)
  |  |  |  |  ------------------
  |  |  |  |  |  |  190|    228|# define RE_ICASE (RE_INVALID_INTERVAL_ORD << 1)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  186|    228|# define RE_INVALID_INTERVAL_ORD (RE_DEBUG << 1)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  181|    228|# define RE_DEBUG (RE_NO_GNU_OPS << 1)
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  173|    228|# define RE_NO_GNU_OPS (RE_NO_POSIX_BACKTRACKING << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  169|    228|# define RE_NO_POSIX_BACKTRACKING (RE_UNMATCHED_RIGHT_PAREN_ORD << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  165|    228|# define RE_UNMATCHED_RIGHT_PAREN_ORD (RE_NO_EMPTY_RANGES << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  161|    228|# define RE_NO_EMPTY_RANGES (RE_NO_BK_VBAR << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  155|    228|# define RE_NO_BK_VBAR (RE_NO_BK_REFS << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  151|    228|# define RE_NO_BK_REFS (RE_NO_BK_PARENS << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  147|    228|# define RE_NO_BK_PARENS (RE_NO_BK_BRACES << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  143|    228|# define RE_NO_BK_BRACES (RE_NEWLINE_ALT << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  138|    228|# define RE_NEWLINE_ALT (RE_LIMITED_OPS << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  134|    228|# define RE_LIMITED_OPS (RE_INTERVALS << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  130|    228|# define RE_INTERVALS (RE_HAT_LISTS_NOT_NEWLINE << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  125|    228|# define RE_HAT_LISTS_NOT_NEWLINE (RE_DOT_NOT_NULL << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  121|    228|# define RE_DOT_NOT_NULL (RE_DOT_NEWLINE << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  117|    228|# define RE_DOT_NEWLINE (RE_CONTEXT_INVALID_OPS << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  113|    228|# define RE_CONTEXT_INVALID_OPS (RE_CONTEXT_INDEP_OPS << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  109|    228|# define RE_CONTEXT_INDEP_OPS (RE_CONTEXT_INDEP_ANCHORS << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  101|    228|# define RE_CONTEXT_INDEP_ANCHORS (RE_CHAR_CLASSES << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |   87|    228|# define RE_CHAR_CLASSES (RE_BK_PLUS_QM << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |   81|    228|# define RE_BK_PLUS_QM (RE_BACKSLASH_ESCAPE_IN_LISTS << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |   76|    228|# define RE_BACKSLASH_ESCAPE_IN_LISTS 1ul
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  |  Branch (2443:11): [True: 228, False: 0]
  ------------------
 2444|    228|	  && (token->type == OP_DUP_ASTERISK
  ------------------
  |  Branch (2444:8): [True: 2, False: 226]
  ------------------
 2445|    226|	      || token->type == OP_OPEN_DUP_NUM))
  ------------------
  |  Branch (2445:11): [True: 0, False: 226]
  ------------------
 2446|      2|	{
 2447|      2|	  if (tree != NULL)
  ------------------
  |  Branch (2447:8): [True: 2, False: 0]
  ------------------
 2448|      2|	    postorder (tree, free_tree, NULL);
 2449|      2|	  *err = REG_BADRPT;
  ------------------
  |  |  389|      2|#define REG_BADRPT	_REG_BADRPT
  ------------------
 2450|      2|	  return NULL;
 2451|      2|	}
 2452|    228|    }
 2453|       |
 2454|   972k|  return tree;
 2455|   972k|}
regex.c:create_token_tree:
 3705|  1.94M|{
 3706|  1.94M|  bin_tree_t *tree;
 3707|  1.94M|  if (__glibc_unlikely (dfa->str_tree_storage_idx == BIN_TREE_STORAGE_SIZE))
  ------------------
  |  Branch (3707:7): [True: 129k, False: 1.81M]
  ------------------
 3708|   129k|    {
 3709|   129k|      bin_tree_storage_t *storage = re_malloc (bin_tree_storage_t, 1);
  ------------------
  |  |  467|   129k|# define re_malloc(t,n) ((t *) malloc ((n) * sizeof (t)))
  ------------------
 3710|       |
 3711|   129k|      if (storage == NULL)
  ------------------
  |  Branch (3711:11): [True: 0, False: 129k]
  ------------------
 3712|      0|	return NULL;
 3713|   129k|      storage->next = dfa->str_tree_storage;
 3714|   129k|      dfa->str_tree_storage = storage;
 3715|   129k|      dfa->str_tree_storage_idx = 0;
 3716|   129k|    }
 3717|  1.94M|  tree = &dfa->str_tree_storage->data[dfa->str_tree_storage_idx++];
 3718|       |
 3719|  1.94M|  tree->parent = NULL;
 3720|  1.94M|  tree->left = left;
 3721|  1.94M|  tree->right = right;
 3722|  1.94M|  tree->token = *token;
 3723|  1.94M|  tree->token.duplicated = 0;
 3724|  1.94M|  tree->token.opt_subexp = 0;
 3725|  1.94M|  tree->first = NULL;
 3726|  1.94M|  tree->next = NULL;
 3727|  1.94M|  tree->node_idx = -1;
 3728|       |
 3729|  1.94M|  if (left != NULL)
  ------------------
  |  Branch (3729:7): [True: 973k, False: 973k]
  ------------------
 3730|   973k|    left->parent = tree;
 3731|  1.94M|  if (right != NULL)
  ------------------
  |  Branch (3731:7): [True: 973k, False: 973k]
  ------------------
 3732|   973k|    right->parent = tree;
 3733|  1.94M|  return tree;
 3734|  1.94M|}
regex.c:parse_sub_exp:
 2467|     46|{
 2468|     46|  re_dfa_t *dfa = preg->buffer;
 2469|     46|  bin_tree_t *tree;
 2470|     46|  size_t cur_nsub;
 2471|     46|  cur_nsub = preg->re_nsub++;
 2472|       |
 2473|     46|  fetch_token (token, regexp, syntax | RE_CARET_ANCHORS_HERE);
  ------------------
  |  |  195|     46|# define RE_CARET_ANCHORS_HERE (RE_ICASE << 1)
  |  |  ------------------
  |  |  |  |  190|     46|# define RE_ICASE (RE_INVALID_INTERVAL_ORD << 1)
  |  |  |  |  ------------------
  |  |  |  |  |  |  186|     46|# define RE_INVALID_INTERVAL_ORD (RE_DEBUG << 1)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  181|     46|# define RE_DEBUG (RE_NO_GNU_OPS << 1)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  173|     46|# define RE_NO_GNU_OPS (RE_NO_POSIX_BACKTRACKING << 1)
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  169|     46|# define RE_NO_POSIX_BACKTRACKING (RE_UNMATCHED_RIGHT_PAREN_ORD << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  165|     46|# define RE_UNMATCHED_RIGHT_PAREN_ORD (RE_NO_EMPTY_RANGES << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  161|     46|# define RE_NO_EMPTY_RANGES (RE_NO_BK_VBAR << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  155|     46|# define RE_NO_BK_VBAR (RE_NO_BK_REFS << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  151|     46|# define RE_NO_BK_REFS (RE_NO_BK_PARENS << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  147|     46|# define RE_NO_BK_PARENS (RE_NO_BK_BRACES << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  143|     46|# define RE_NO_BK_BRACES (RE_NEWLINE_ALT << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  138|     46|# define RE_NEWLINE_ALT (RE_LIMITED_OPS << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  134|     46|# define RE_LIMITED_OPS (RE_INTERVALS << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  130|     46|# define RE_INTERVALS (RE_HAT_LISTS_NOT_NEWLINE << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  125|     46|# define RE_HAT_LISTS_NOT_NEWLINE (RE_DOT_NOT_NULL << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  121|     46|# define RE_DOT_NOT_NULL (RE_DOT_NEWLINE << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  117|     46|# define RE_DOT_NEWLINE (RE_CONTEXT_INVALID_OPS << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  113|     46|# define RE_CONTEXT_INVALID_OPS (RE_CONTEXT_INDEP_OPS << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  109|     46|# define RE_CONTEXT_INDEP_OPS (RE_CONTEXT_INDEP_ANCHORS << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  101|     46|# define RE_CONTEXT_INDEP_ANCHORS (RE_CHAR_CLASSES << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |   87|     46|# define RE_CHAR_CLASSES (RE_BK_PLUS_QM << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |   81|     46|# define RE_BK_PLUS_QM (RE_BACKSLASH_ESCAPE_IN_LISTS << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |   76|     46|# define RE_BACKSLASH_ESCAPE_IN_LISTS 1ul
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2474|       |
 2475|       |  /* The subexpression may be a null string.  */
 2476|     46|  if (token->type == OP_CLOSE_SUBEXP)
  ------------------
  |  Branch (2476:7): [True: 0, False: 46]
  ------------------
 2477|      0|    tree = NULL;
 2478|     46|  else
 2479|     46|    {
 2480|     46|      tree = parse_reg_exp (regexp, preg, token, syntax, nest, err);
 2481|     46|      if (__glibc_unlikely (*err == REG_NOERROR
  ------------------
  |  Branch (2481:11): [True: 28, False: 18]
  |  Branch (2481:11): [True: 0, False: 28]
  |  Branch (2481:11): [True: 0, False: 46]
  ------------------
 2482|     46|			    && token->type != OP_CLOSE_SUBEXP))
 2483|      0|	{
 2484|      0|	  if (tree != NULL)
  ------------------
  |  Branch (2484:8): [True: 0, False: 0]
  ------------------
 2485|      0|	    postorder (tree, free_tree, NULL);
 2486|      0|	  *err = REG_EPAREN;
  ------------------
  |  |  384|      0|#define REG_EPAREN	_REG_EPAREN
  ------------------
 2487|      0|	}
 2488|     46|      if (__glibc_unlikely (*err != REG_NOERROR))
  ------------------
  |  Branch (2488:11): [True: 18, False: 28]
  ------------------
 2489|     18|	return NULL;
 2490|     46|    }
 2491|       |
 2492|     28|  if (cur_nsub <= '9' - '1')
  ------------------
  |  Branch (2492:7): [True: 28, False: 0]
  ------------------
 2493|     28|    dfa->completed_bkref_map |= 1 << cur_nsub;
 2494|       |
 2495|     28|  tree = create_tree (dfa, tree, NULL, SUBEXP);
 2496|     28|  if (__glibc_unlikely (tree == NULL))
  ------------------
  |  Branch (2496:7): [True: 0, False: 28]
  ------------------
 2497|      0|    {
 2498|      0|      *err = REG_ESPACE;
  ------------------
  |  |  388|      0|#define REG_ESPACE	_REG_ESPACE
  ------------------
 2499|      0|      return NULL;
 2500|      0|    }
 2501|     28|  tree->token.opr.idx = cur_nsub;
 2502|     28|  return tree;
 2503|     28|}
regex.c:parse_bracket_exp:
 3049|     99|{
 3050|     99|  const unsigned char *collseqmb = NULL;
 3051|     99|  const char *collseqwc = NULL;
 3052|     99|  uint_fast32_t nrules = 0;
 3053|     99|  int_fast32_t table_size = 0;
 3054|     99|  const void *symb_table = NULL;
 3055|     99|  const unsigned char *extra = NULL;
 3056|       |
 3057|     99|  re_token_t br_token;
 3058|     99|  re_bitset_ptr_t sbcset;
 3059|     99|  re_charset_t *mbcset;
 3060|     99|  Idx coll_sym_alloc = 0, range_alloc = 0, mbchar_alloc = 0;
 3061|     99|  Idx equiv_class_alloc = 0, char_class_alloc = 0;
 3062|     99|  bool non_match = false;
 3063|     99|  bin_tree_t *work_tree;
 3064|     99|  int token_len;
 3065|     99|  bool first_round = true;
 3066|       |#ifdef _LIBC
 3067|       |  collseqmb = (const unsigned char *)
 3068|       |    _NL_CURRENT (LC_COLLATE, _NL_COLLATE_COLLSEQMB);
 3069|       |  nrules = _NL_CURRENT_WORD (LC_COLLATE, _NL_COLLATE_NRULES);
 3070|       |  if (nrules)
 3071|       |    {
 3072|       |      /*
 3073|       |      if (MB_CUR_MAX > 1)
 3074|       |      */
 3075|       |      collseqwc = _NL_CURRENT (LC_COLLATE, _NL_COLLATE_COLLSEQWC);
 3076|       |      table_size = _NL_CURRENT_WORD (LC_COLLATE, _NL_COLLATE_SYMB_HASH_SIZEMB);
 3077|       |      symb_table = _NL_CURRENT (LC_COLLATE, _NL_COLLATE_SYMB_TABLEMB);
 3078|       |      extra = (const unsigned char *) _NL_CURRENT (LC_COLLATE,
 3079|       |						   _NL_COLLATE_SYMB_EXTRAMB);
 3080|       |    }
 3081|       |#endif
 3082|     99|  sbcset = (re_bitset_ptr_t) calloc (1, sizeof (bitset_t));
 3083|     99|  mbcset = (re_charset_t *) calloc (1, sizeof (re_charset_t));
 3084|     99|  if (__glibc_unlikely (sbcset == NULL || mbcset == NULL))
  ------------------
  |  Branch (3084:7): [True: 0, False: 99]
  |  Branch (3084:7): [True: 0, False: 99]
  |  Branch (3084:7): [True: 0, False: 99]
  ------------------
 3085|      0|    {
 3086|      0|      re_free (sbcset);
  ------------------
  |  |  472|      0|#define re_free(p) free (p)
  ------------------
 3087|      0|      re_free (mbcset);
  ------------------
  |  |  472|      0|#define re_free(p) free (p)
  ------------------
 3088|      0|      *err = REG_ESPACE;
  ------------------
  |  |  388|      0|#define REG_ESPACE	_REG_ESPACE
  ------------------
 3089|      0|      return NULL;
 3090|      0|    }
 3091|       |
 3092|     99|  token_len = peek_token_bracket (token, regexp, syntax);
 3093|     99|  if (__glibc_unlikely (token->type == END_OF_RE))
  ------------------
  |  Branch (3093:7): [True: 0, False: 99]
  ------------------
 3094|      0|    {
 3095|      0|      *err = REG_BADPAT;
  ------------------
  |  |  378|      0|#define REG_BADPAT	_REG_BADPAT
  ------------------
 3096|      0|      goto parse_bracket_exp_free_return;
 3097|      0|    }
 3098|     99|  if (token->type == OP_NON_MATCH_LIST)
  ------------------
  |  Branch (3098:7): [True: 85, False: 14]
  ------------------
 3099|     85|    {
 3100|     85|      mbcset->non_match = 1;
 3101|     85|      non_match = true;
 3102|     85|      if (syntax & RE_HAT_LISTS_NOT_NEWLINE)
  ------------------
  |  |  125|     85|# define RE_HAT_LISTS_NOT_NEWLINE (RE_DOT_NOT_NULL << 1)
  |  |  ------------------
  |  |  |  |  121|     85|# define RE_DOT_NOT_NULL (RE_DOT_NEWLINE << 1)
  |  |  |  |  ------------------
  |  |  |  |  |  |  117|     85|# define RE_DOT_NEWLINE (RE_CONTEXT_INVALID_OPS << 1)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  113|     85|# define RE_CONTEXT_INVALID_OPS (RE_CONTEXT_INDEP_OPS << 1)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  109|     85|# define RE_CONTEXT_INDEP_OPS (RE_CONTEXT_INDEP_ANCHORS << 1)
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  101|     85|# define RE_CONTEXT_INDEP_ANCHORS (RE_CHAR_CLASSES << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |   87|     85|# define RE_CHAR_CLASSES (RE_BK_PLUS_QM << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |   81|     85|# define RE_BK_PLUS_QM (RE_BACKSLASH_ESCAPE_IN_LISTS << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |   76|     85|# define RE_BACKSLASH_ESCAPE_IN_LISTS 1ul
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  |  Branch (3102:11): [True: 0, False: 85]
  ------------------
 3103|      0|	bitset_set (sbcset, '\n');
 3104|     85|      re_string_skip_bytes (regexp, token_len); /* Skip a token.  */
  ------------------
  |  |  456|     85|#define re_string_skip_bytes(pstr,idx) ((pstr)->cur_idx += (idx))
  ------------------
 3105|     85|      token_len = peek_token_bracket (token, regexp, syntax);
 3106|     85|      if (__glibc_unlikely (token->type == END_OF_RE))
  ------------------
  |  Branch (3106:11): [True: 0, False: 85]
  ------------------
 3107|      0|	{
 3108|      0|	  *err = REG_BADPAT;
  ------------------
  |  |  378|      0|#define REG_BADPAT	_REG_BADPAT
  ------------------
 3109|      0|	  goto parse_bracket_exp_free_return;
 3110|      0|	}
 3111|     85|    }
 3112|       |
 3113|       |  /* We treat the first ']' as a normal character.  */
 3114|     99|  if (token->type == OP_CLOSE_BRACKET)
  ------------------
  |  Branch (3114:7): [True: 0, False: 99]
  ------------------
 3115|      0|    token->type = CHARACTER;
 3116|       |
 3117|    511|  while (1)
  ------------------
  |  Branch (3117:10): [True: 511, Folded]
  ------------------
 3118|    511|    {
 3119|    511|      bracket_elem_t start_elem, end_elem;
 3120|    511|      unsigned char start_name_buf[BRACKET_NAME_BUF_SIZE];
 3121|    511|      unsigned char end_name_buf[BRACKET_NAME_BUF_SIZE];
 3122|    511|      reg_errcode_t ret;
 3123|    511|      int token_len2 = 0;
 3124|    511|      bool is_range_exp = false;
 3125|    511|      re_token_t token2;
 3126|       |
 3127|    511|      start_elem.opr.name = start_name_buf;
 3128|    511|      start_elem.type = COLL_SYM;
 3129|    511|      ret = parse_bracket_element (&start_elem, regexp, token, token_len, dfa,
 3130|    511|				   syntax, first_round);
 3131|    511|      if (__glibc_unlikely (ret != REG_NOERROR))
  ------------------
  |  Branch (3131:11): [True: 0, False: 511]
  ------------------
 3132|      0|	{
 3133|      0|	  *err = ret;
 3134|      0|	  goto parse_bracket_exp_free_return;
 3135|      0|	}
 3136|    511|      first_round = false;
 3137|       |
 3138|       |      /* Get information about the next token.  We need it in any case.  */
 3139|    511|      token_len = peek_token_bracket (token, regexp, syntax);
 3140|       |
 3141|       |      /* Do not check for ranges if we know they are not allowed.  */
 3142|    511|      if (start_elem.type != CHAR_CLASS && start_elem.type != EQUIV_CLASS)
  ------------------
  |  Branch (3142:11): [True: 511, False: 0]
  |  Branch (3142:44): [True: 511, False: 0]
  ------------------
 3143|    511|	{
 3144|    511|	  if (__glibc_unlikely (token->type == END_OF_RE))
  ------------------
  |  Branch (3144:8): [True: 0, False: 511]
  ------------------
 3145|      0|	    {
 3146|      0|	      *err = REG_EBRACK;
  ------------------
  |  |  383|      0|#define REG_EBRACK	_REG_EBRACK
  ------------------
 3147|      0|	      goto parse_bracket_exp_free_return;
 3148|      0|	    }
 3149|    511|	  if (token->type == OP_CHARSET_RANGE)
  ------------------
  |  Branch (3149:8): [True: 85, False: 426]
  ------------------
 3150|     85|	    {
 3151|     85|	      re_string_skip_bytes (regexp, token_len); /* Skip '-'.  */
  ------------------
  |  |  456|     85|#define re_string_skip_bytes(pstr,idx) ((pstr)->cur_idx += (idx))
  ------------------
 3152|     85|	      token_len2 = peek_token_bracket (&token2, regexp, syntax);
 3153|     85|	      if (__glibc_unlikely (token2.type == END_OF_RE))
  ------------------
  |  Branch (3153:12): [True: 0, False: 85]
  ------------------
 3154|      0|		{
 3155|      0|		  *err = REG_EBRACK;
  ------------------
  |  |  383|      0|#define REG_EBRACK	_REG_EBRACK
  ------------------
 3156|      0|		  goto parse_bracket_exp_free_return;
 3157|      0|		}
 3158|     85|	      if (token2.type == OP_CLOSE_BRACKET)
  ------------------
  |  Branch (3158:12): [True: 0, False: 85]
  ------------------
 3159|      0|		{
 3160|       |		  /* We treat the last '-' as a normal character.  */
 3161|      0|		  re_string_skip_bytes (regexp, -token_len);
  ------------------
  |  |  456|      0|#define re_string_skip_bytes(pstr,idx) ((pstr)->cur_idx += (idx))
  ------------------
 3162|      0|		  token->type = CHARACTER;
 3163|      0|		}
 3164|     85|	      else
 3165|     85|		is_range_exp = true;
 3166|     85|	    }
 3167|    511|	}
 3168|       |
 3169|    511|      if (is_range_exp == true)
  ------------------
  |  Branch (3169:11): [True: 85, False: 426]
  ------------------
 3170|     85|	{
 3171|     85|	  end_elem.opr.name = end_name_buf;
 3172|     85|	  end_elem.type = COLL_SYM;
 3173|     85|	  ret = parse_bracket_element (&end_elem, regexp, &token2, token_len2,
 3174|     85|				       dfa, syntax, true);
 3175|     85|	  if (__glibc_unlikely (ret != REG_NOERROR))
  ------------------
  |  Branch (3175:8): [True: 0, False: 85]
  ------------------
 3176|      0|	    {
 3177|      0|	      *err = ret;
 3178|      0|	      goto parse_bracket_exp_free_return;
 3179|      0|	    }
 3180|       |
 3181|     85|	  token_len = peek_token_bracket (token, regexp, syntax);
 3182|       |
 3183|     85|	  *err = build_range_exp (sbcset, mbcset, &range_alloc,
 3184|     85|				  &start_elem, &end_elem,
 3185|     85|				  dfa, syntax, nrules, collseqmb, collseqwc,
 3186|     85|				  table_size, symb_table, extra);
 3187|     85|	  if (__glibc_unlikely (*err != REG_NOERROR))
  ------------------
  |  Branch (3187:8): [True: 0, False: 85]
  ------------------
 3188|      0|	    goto parse_bracket_exp_free_return;
 3189|     85|	}
 3190|    426|      else
 3191|    426|	{
 3192|    426|	  switch (start_elem.type)
 3193|    426|	    {
 3194|    426|	    case SB_CHAR:
  ------------------
  |  Branch (3194:6): [True: 426, False: 0]
  ------------------
 3195|    426|	      bitset_set (sbcset, start_elem.opr.ch);
 3196|    426|	      break;
 3197|      0|	    case MB_CHAR:
  ------------------
  |  Branch (3197:6): [True: 0, False: 426]
  ------------------
 3198|       |	      /* Check whether the array has enough space.  */
 3199|      0|	      if (__glibc_unlikely (mbchar_alloc == mbcset->nmbchars))
  ------------------
  |  Branch (3199:12): [True: 0, False: 0]
  ------------------
 3200|      0|		{
 3201|      0|		  wchar_t *new_mbchars;
  ------------------
  |  |  129|      0|# define wchar_t char32_t
  ------------------
 3202|       |		  /* Not enough, realloc it.  */
 3203|       |		  /* +1 in case of mbcset->nmbchars is 0.  */
 3204|      0|		  mbchar_alloc = 2 * mbcset->nmbchars + 1;
 3205|       |		  /* Use realloc since array is NULL if *alloc == 0.  */
 3206|      0|		  new_mbchars = re_realloc (mbcset->mbchars, wchar_t,
  ------------------
  |  |  471|      0|#define re_realloc(p,t,n) ((t *) realloc (p, (n) * sizeof (t)))
  ------------------
 3207|      0|					    mbchar_alloc);
 3208|      0|		  if (__glibc_unlikely (new_mbchars == NULL))
  ------------------
  |  Branch (3208:9): [True: 0, False: 0]
  ------------------
 3209|      0|		    goto parse_bracket_exp_espace;
 3210|      0|		  mbcset->mbchars = new_mbchars;
 3211|      0|		}
 3212|      0|	      mbcset->mbchars[mbcset->nmbchars++] = start_elem.opr.wch;
 3213|      0|	      break;
 3214|      0|	    case EQUIV_CLASS:
  ------------------
  |  Branch (3214:6): [True: 0, False: 426]
  ------------------
 3215|      0|	      *err = build_equiv_class (sbcset,
 3216|      0|					mbcset, &equiv_class_alloc,
 3217|      0|					start_elem.opr.name);
 3218|      0|	      if (__glibc_unlikely (*err != REG_NOERROR))
  ------------------
  |  Branch (3218:12): [True: 0, False: 0]
  ------------------
 3219|      0|		goto parse_bracket_exp_free_return;
 3220|      0|	      break;
 3221|      0|	    case COLL_SYM:
  ------------------
  |  Branch (3221:6): [True: 0, False: 426]
  ------------------
 3222|      0|	      *err = build_collating_symbol (sbcset,
 3223|      0|					     mbcset, &coll_sym_alloc,
 3224|      0|					     start_elem.opr.name,
 3225|      0|					     nrules, table_size, symb_table, extra);
 3226|      0|	      if (__glibc_unlikely (*err != REG_NOERROR))
  ------------------
  |  Branch (3226:12): [True: 0, False: 0]
  ------------------
 3227|      0|		goto parse_bracket_exp_free_return;
 3228|      0|	      break;
 3229|      0|	    case CHAR_CLASS:
  ------------------
  |  Branch (3229:6): [True: 0, False: 426]
  ------------------
 3230|      0|	      *err = build_charclass (regexp->trans, sbcset,
 3231|      0|				      mbcset, &char_class_alloc,
 3232|      0|				      (const char *) start_elem.opr.name,
 3233|      0|				      syntax);
 3234|      0|	      if (__glibc_unlikely (*err != REG_NOERROR))
  ------------------
  |  Branch (3234:12): [True: 0, False: 0]
  ------------------
 3235|      0|	       goto parse_bracket_exp_free_return;
 3236|      0|	      break;
 3237|      0|	    default:
  ------------------
  |  Branch (3237:6): [True: 0, False: 426]
  ------------------
 3238|      0|	      DEBUG_ASSERT (false);
  ------------------
  |  |   45|      0|# define DEBUG_ASSERT(x) assume (x)
  |  |  ------------------
  |  |  |  |  375|      0|# define assume(R) ((R) ? (void) 0 : __builtin_unreachable ())
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (375:21): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 3239|      0|	      break;
 3240|    426|	    }
 3241|    426|	}
 3242|    511|      if (__glibc_unlikely (token->type == END_OF_RE))
  ------------------
  |  Branch (3242:11): [True: 0, False: 511]
  ------------------
 3243|      0|	{
 3244|      0|	  *err = REG_EBRACK;
  ------------------
  |  |  383|      0|#define REG_EBRACK	_REG_EBRACK
  ------------------
 3245|      0|	  goto parse_bracket_exp_free_return;
 3246|      0|	}
 3247|    511|      if (token->type == OP_CLOSE_BRACKET)
  ------------------
  |  Branch (3247:11): [True: 99, False: 412]
  ------------------
 3248|     99|	break;
 3249|    511|    }
 3250|       |
 3251|     99|  re_string_skip_bytes (regexp, token_len); /* Skip a token.  */
  ------------------
  |  |  456|     99|#define re_string_skip_bytes(pstr,idx) ((pstr)->cur_idx += (idx))
  ------------------
 3252|       |
 3253|       |  /* If it is non-matching list.  */
 3254|     99|  if (non_match)
  ------------------
  |  Branch (3254:7): [True: 85, False: 14]
  ------------------
 3255|     85|    bitset_not (sbcset);
 3256|       |
 3257|       |  /* Ensure only single byte characters are set.  */
 3258|     99|  if (dfa->mb_cur_max > 1)
  ------------------
  |  Branch (3258:7): [True: 0, False: 99]
  ------------------
 3259|      0|    bitset_mask (sbcset, dfa->sb_char);
 3260|       |
 3261|     99|  if (mbcset->nmbchars || mbcset->ncoll_syms || mbcset->nequiv_classes
  ------------------
  |  Branch (3261:7): [True: 0, False: 99]
  |  Branch (3261:27): [True: 0, False: 99]
  |  Branch (3261:49): [True: 0, False: 99]
  ------------------
 3262|     99|      || mbcset->nranges || (dfa->mb_cur_max > 1 && (mbcset->nchar_classes
  ------------------
  |  Branch (3262:10): [True: 0, False: 99]
  |  Branch (3262:30): [True: 0, False: 99]
  |  Branch (3262:54): [True: 0, False: 0]
  ------------------
 3263|      0|						     || mbcset->non_match)))
  ------------------
  |  Branch (3263:15): [True: 0, False: 0]
  ------------------
 3264|      0|    {
 3265|      0|      bin_tree_t *mbc_tree;
 3266|      0|      int sbc_idx;
 3267|       |      /* Build a tree for complex bracket.  */
 3268|      0|      dfa->has_mb_node = 1;
 3269|      0|      br_token.type = COMPLEX_BRACKET;
 3270|      0|      br_token.opr.mbcset = mbcset;
 3271|      0|      mbc_tree = create_token_tree (dfa, NULL, NULL, &br_token);
 3272|      0|      if (__glibc_unlikely (mbc_tree == NULL))
  ------------------
  |  Branch (3272:11): [True: 0, False: 0]
  ------------------
 3273|      0|	goto parse_bracket_exp_espace;
 3274|      0|      for (sbc_idx = 0; sbc_idx < BITSET_WORDS; ++sbc_idx)
  ------------------
  |  |  219|      0|#define BITSET_WORDS ((SBC_MAX + BITSET_WORD_BITS - 1) / BITSET_WORD_BITS)
  |  |  ------------------
  |  |  |  |  114|      0|#define SBC_MAX (UCHAR_MAX + 1)
  |  |  ------------------
  |  |               #define BITSET_WORDS ((SBC_MAX + BITSET_WORD_BITS - 1) / BITSET_WORD_BITS)
  |  |  ------------------
  |  |  |  |  216|      0|#define BITSET_WORD_BITS ULONG_WIDTH
  |  |  ------------------
  |  |               #define BITSET_WORDS ((SBC_MAX + BITSET_WORD_BITS - 1) / BITSET_WORD_BITS)
  |  |  ------------------
  |  |  |  |  216|      0|#define BITSET_WORD_BITS ULONG_WIDTH
  |  |  ------------------
  ------------------
  |  Branch (3274:25): [True: 0, False: 0]
  ------------------
 3275|      0|	if (sbcset[sbc_idx])
  ------------------
  |  Branch (3275:6): [True: 0, False: 0]
  ------------------
 3276|      0|	  break;
 3277|       |      /* If there are no bits set in sbcset, there is no point
 3278|       |	 of having both SIMPLE_BRACKET and COMPLEX_BRACKET.  */
 3279|      0|      if (sbc_idx < BITSET_WORDS)
  ------------------
  |  |  219|      0|#define BITSET_WORDS ((SBC_MAX + BITSET_WORD_BITS - 1) / BITSET_WORD_BITS)
  |  |  ------------------
  |  |  |  |  114|      0|#define SBC_MAX (UCHAR_MAX + 1)
  |  |  ------------------
  |  |               #define BITSET_WORDS ((SBC_MAX + BITSET_WORD_BITS - 1) / BITSET_WORD_BITS)
  |  |  ------------------
  |  |  |  |  216|      0|#define BITSET_WORD_BITS ULONG_WIDTH
  |  |  ------------------
  |  |               #define BITSET_WORDS ((SBC_MAX + BITSET_WORD_BITS - 1) / BITSET_WORD_BITS)
  |  |  ------------------
  |  |  |  |  216|      0|#define BITSET_WORD_BITS ULONG_WIDTH
  |  |  ------------------
  ------------------
  |  Branch (3279:11): [True: 0, False: 0]
  ------------------
 3280|      0|	{
 3281|       |	  /* Build a tree for simple bracket.  */
 3282|      0|	  br_token.type = SIMPLE_BRACKET;
 3283|      0|	  br_token.opr.sbcset = sbcset;
 3284|      0|	  work_tree = create_token_tree (dfa, NULL, NULL, &br_token);
 3285|      0|	  if (__glibc_unlikely (work_tree == NULL))
  ------------------
  |  Branch (3285:8): [True: 0, False: 0]
  ------------------
 3286|      0|	    goto parse_bracket_exp_espace;
 3287|       |
 3288|       |	  /* Then join them by ALT node.  */
 3289|      0|	  work_tree = create_tree (dfa, work_tree, mbc_tree, OP_ALT);
 3290|      0|	  if (__glibc_unlikely (work_tree == NULL))
  ------------------
  |  Branch (3290:8): [True: 0, False: 0]
  ------------------
 3291|      0|	    goto parse_bracket_exp_espace;
 3292|      0|	}
 3293|      0|      else
 3294|      0|	{
 3295|      0|	  re_free (sbcset);
  ------------------
  |  |  472|      0|#define re_free(p) free (p)
  ------------------
 3296|      0|	  work_tree = mbc_tree;
 3297|      0|	}
 3298|      0|    }
 3299|     99|  else
 3300|     99|    {
 3301|     99|      free_charset (mbcset);
 3302|     99|      mbcset = NULL;
 3303|       |      /* Build a tree for simple bracket.  */
 3304|     99|      br_token.type = SIMPLE_BRACKET;
 3305|     99|      br_token.opr.sbcset = sbcset;
 3306|     99|      work_tree = create_token_tree (dfa, NULL, NULL, &br_token);
 3307|     99|      if (__glibc_unlikely (work_tree == NULL))
  ------------------
  |  Branch (3307:11): [True: 0, False: 99]
  ------------------
 3308|      0|	goto parse_bracket_exp_espace;
 3309|     99|    }
 3310|     99|  return work_tree;
 3311|       |
 3312|      0| parse_bracket_exp_espace:
 3313|      0|  *err = REG_ESPACE;
  ------------------
  |  |  388|      0|#define REG_ESPACE	_REG_ESPACE
  ------------------
 3314|      0| parse_bracket_exp_free_return:
 3315|      0|  re_free (sbcset);
  ------------------
  |  |  472|      0|#define re_free(p) free (p)
  ------------------
 3316|      0|  if (__glibc_likely (mbcset != NULL))
  ------------------
  |  Branch (3316:7): [True: 0, False: 0]
  ------------------
 3317|      0|    free_charset (mbcset);
 3318|       |  return NULL;
 3319|      0|}
regex.c:peek_token_bracket:
 2000|    865|{
 2001|    865|  unsigned char c;
 2002|    865|  if (re_string_eoi (input))
  ------------------
  |  |  451|    865|#define re_string_eoi(pstr) ((pstr)->stop <= (pstr)->cur_idx)
  |  |  ------------------
  |  |  |  Branch (451:29): [True: 0, False: 865]
  |  |  ------------------
  ------------------
 2003|      0|    {
 2004|      0|      token->type = END_OF_RE;
 2005|      0|      return 0;
 2006|      0|    }
 2007|    865|  c = re_string_peek_byte (input, 0);
  ------------------
  |  |  443|    865|  ((pstr)->mbs[(pstr)->cur_idx + offset])
  ------------------
 2008|    865|  token->opr.c = c;
 2009|       |
 2010|    865|  if (input->mb_cur_max > 1
  ------------------
  |  Branch (2010:7): [True: 0, False: 865]
  ------------------
 2011|      0|      && !re_string_first_byte (input, re_string_cur_idx (input)))
  ------------------
  |  |  447|      0|  ((idx) == (pstr)->valid_len || (pstr)->wcs[idx] != WEOF)
  |  |  ------------------
  |  |  |  Branch (447:4): [True: 0, False: 0]
  |  |  |  Branch (447:34): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 2012|      0|    {
 2013|      0|      token->type = CHARACTER;
 2014|      0|      return 1;
 2015|      0|    }
 2016|       |
 2017|    865|  if (c == '\\' && (syntax & RE_BACKSLASH_ESCAPE_IN_LISTS)
  ------------------
  |  |   76|      0|# define RE_BACKSLASH_ESCAPE_IN_LISTS 1ul
  ------------------
  |  Branch (2017:7): [True: 0, False: 865]
  |  Branch (2017:20): [True: 0, False: 0]
  ------------------
 2018|      0|      && re_string_cur_idx (input) + 1 < re_string_length (input))
  ------------------
  |  |  452|      0|#define re_string_cur_idx(pstr) ((pstr)->cur_idx)
  ------------------
                    && re_string_cur_idx (input) + 1 < re_string_length (input))
  ------------------
  |  |  454|      0|#define re_string_length(pstr) ((pstr)->len)
  ------------------
  |  Branch (2018:10): [True: 0, False: 0]
  ------------------
 2019|      0|    {
 2020|       |      /* In this case, '\' escape a character.  */
 2021|      0|      unsigned char c2;
 2022|      0|      re_string_skip_bytes (input, 1);
  ------------------
  |  |  456|      0|#define re_string_skip_bytes(pstr,idx) ((pstr)->cur_idx += (idx))
  ------------------
 2023|      0|      c2 = re_string_peek_byte (input, 0);
  ------------------
  |  |  443|      0|  ((pstr)->mbs[(pstr)->cur_idx + offset])
  ------------------
 2024|      0|      token->opr.c = c2;
 2025|      0|      token->type = CHARACTER;
 2026|      0|      return 1;
 2027|      0|    }
 2028|    865|  if (c == '[') /* '[' is a special char in a bracket exps.  */
  ------------------
  |  Branch (2028:7): [True: 14, False: 851]
  ------------------
 2029|     14|    {
 2030|     14|      unsigned char c2;
 2031|     14|      int token_len;
 2032|     14|      if (re_string_cur_idx (input) + 1 < re_string_length (input))
  ------------------
  |  |  452|     14|#define re_string_cur_idx(pstr) ((pstr)->cur_idx)
  ------------------
                    if (re_string_cur_idx (input) + 1 < re_string_length (input))
  ------------------
  |  |  454|     14|#define re_string_length(pstr) ((pstr)->len)
  ------------------
  |  Branch (2032:11): [True: 14, False: 0]
  ------------------
 2033|     14|	c2 = re_string_peek_byte (input, 1);
  ------------------
  |  |  443|     14|  ((pstr)->mbs[(pstr)->cur_idx + offset])
  ------------------
 2034|      0|      else
 2035|      0|	c2 = 0;
 2036|     14|      token->opr.c = c2;
 2037|     14|      token_len = 2;
 2038|     14|      switch (c2)
 2039|     14|	{
 2040|      0|	case '.':
  ------------------
  |  Branch (2040:2): [True: 0, False: 14]
  ------------------
 2041|      0|	  token->type = OP_OPEN_COLL_ELEM;
 2042|      0|	  break;
 2043|       |
 2044|      0|	case '=':
  ------------------
  |  Branch (2044:2): [True: 0, False: 14]
  ------------------
 2045|      0|	  token->type = OP_OPEN_EQUIV_CLASS;
 2046|      0|	  break;
 2047|       |
 2048|      0|	case ':':
  ------------------
  |  Branch (2048:2): [True: 0, False: 14]
  ------------------
 2049|      0|	  if (syntax & RE_CHAR_CLASSES)
  ------------------
  |  |   87|      0|# define RE_CHAR_CLASSES (RE_BK_PLUS_QM << 1)
  |  |  ------------------
  |  |  |  |   81|      0|# define RE_BK_PLUS_QM (RE_BACKSLASH_ESCAPE_IN_LISTS << 1)
  |  |  |  |  ------------------
  |  |  |  |  |  |   76|      0|# define RE_BACKSLASH_ESCAPE_IN_LISTS 1ul
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  |  Branch (2049:8): [True: 0, False: 0]
  ------------------
 2050|      0|	    {
 2051|      0|	      token->type = OP_OPEN_CHAR_CLASS;
 2052|      0|	      break;
 2053|      0|	    }
 2054|      0|	  FALLTHROUGH;
  ------------------
  |  |  210|      0|#define FALLTHROUGH _GL_ATTRIBUTE_FALLTHROUGH
  |  |  ------------------
  |  |  |  | 2041|      0|#   define _GL_ATTRIBUTE_FALLTHROUGH [[__fallthrough__]]
  |  |  ------------------
  ------------------
 2055|     14|	default:
  ------------------
  |  Branch (2055:2): [True: 14, False: 0]
  ------------------
 2056|     14|	  token->type = CHARACTER;
 2057|     14|	  token->opr.c = c;
 2058|     14|	  token_len = 1;
 2059|     14|	  break;
 2060|     14|	}
 2061|     14|      return token_len;
 2062|     14|    }
 2063|    851|  switch (c)
 2064|    851|    {
 2065|     99|    case ']':
  ------------------
  |  Branch (2065:5): [True: 99, False: 752]
  ------------------
 2066|     99|      token->type = OP_CLOSE_BRACKET;
 2067|     99|      break;
 2068|     85|    case '^':
  ------------------
  |  Branch (2068:5): [True: 85, False: 766]
  ------------------
 2069|     85|      token->type = OP_NON_MATCH_LIST;
 2070|     85|      break;
 2071|     85|    case '-':
  ------------------
  |  Branch (2071:5): [True: 85, False: 766]
  ------------------
 2072|       |      /* In V7 Unix grep and Unix awk and mawk, [...---...]
 2073|       |         (3 adjacent minus signs) stands for a single minus sign.
 2074|       |         Support that without breaking anything else.  */
 2075|     85|      if (! (re_string_cur_idx (input) + 2 < re_string_length (input)
  ------------------
  |  |  452|     85|#define re_string_cur_idx(pstr) ((pstr)->cur_idx)
  ------------------
                    if (! (re_string_cur_idx (input) + 2 < re_string_length (input)
  ------------------
  |  |  454|    170|#define re_string_length(pstr) ((pstr)->len)
  ------------------
  |  Branch (2075:14): [True: 85, False: 0]
  ------------------
 2076|     85|             && re_string_peek_byte (input, 1) == '-'
  ------------------
  |  |  443|     85|  ((pstr)->mbs[(pstr)->cur_idx + offset])
  ------------------
  |  Branch (2076:17): [True: 0, False: 85]
  ------------------
 2077|      0|             && re_string_peek_byte (input, 2) == '-'))
  ------------------
  |  |  443|      0|  ((pstr)->mbs[(pstr)->cur_idx + offset])
  ------------------
  |  Branch (2077:17): [True: 0, False: 0]
  ------------------
 2078|     85|        {
 2079|     85|          token->type = OP_CHARSET_RANGE;
 2080|     85|          break;
 2081|     85|        }
 2082|      0|      re_string_skip_bytes (input, 2);
  ------------------
  |  |  456|      0|#define re_string_skip_bytes(pstr,idx) ((pstr)->cur_idx += (idx))
  ------------------
 2083|      0|      FALLTHROUGH;
  ------------------
  |  |  210|      0|#define FALLTHROUGH _GL_ATTRIBUTE_FALLTHROUGH
  |  |  ------------------
  |  |  |  | 2041|      0|#   define _GL_ATTRIBUTE_FALLTHROUGH [[__fallthrough__]]
  |  |  ------------------
  ------------------
 2084|    582|    default:
  ------------------
  |  Branch (2084:5): [True: 582, False: 269]
  ------------------
 2085|    582|      token->type = CHARACTER;
 2086|    851|    }
 2087|    851|  return 1;
 2088|    851|}
regex.c:parse_bracket_element:
 3327|    596|{
 3328|    596|  int cur_char_size;
 3329|    596|  cur_char_size = re_string_char_size_at (regexp, re_string_cur_idx (regexp));
  ------------------
  |  |  452|    596|#define re_string_cur_idx(pstr) ((pstr)->cur_idx)
  ------------------
 3330|    596|  if (cur_char_size > 1)
  ------------------
  |  Branch (3330:7): [True: 0, False: 596]
  ------------------
 3331|      0|    {
 3332|      0|      elem->type = MB_CHAR;
 3333|      0|      elem->opr.wch = re_string_wchar_at (regexp, re_string_cur_idx (regexp));
  ------------------
  |  |  452|      0|#define re_string_cur_idx(pstr) ((pstr)->cur_idx)
  ------------------
 3334|      0|      re_string_skip_bytes (regexp, cur_char_size);
  ------------------
  |  |  456|      0|#define re_string_skip_bytes(pstr,idx) ((pstr)->cur_idx += (idx))
  ------------------
 3335|      0|      return REG_NOERROR;
  ------------------
  |  |  376|      0|#define REG_NOERROR	_REG_NOERROR
  ------------------
 3336|      0|    }
 3337|    596|  re_string_skip_bytes (regexp, token_len); /* Skip a token.  */
  ------------------
  |  |  456|    596|#define re_string_skip_bytes(pstr,idx) ((pstr)->cur_idx += (idx))
  ------------------
 3338|    596|  if (token->type == OP_OPEN_COLL_ELEM || token->type == OP_OPEN_CHAR_CLASS
  ------------------
  |  Branch (3338:7): [True: 0, False: 596]
  |  Branch (3338:43): [True: 0, False: 596]
  ------------------
 3339|    596|      || token->type == OP_OPEN_EQUIV_CLASS)
  ------------------
  |  Branch (3339:10): [True: 0, False: 596]
  ------------------
 3340|      0|    return parse_bracket_symbol (elem, regexp, token);
 3341|    596|  if (__glibc_unlikely (token->type == OP_CHARSET_RANGE) && !accept_hyphen)
  ------------------
  |  Branch (3341:7): [True: 0, False: 596]
  |  Branch (3341:61): [True: 0, False: 0]
  ------------------
 3342|      0|    {
 3343|       |      /* A '-' must only appear as anything but a range indicator before
 3344|       |	 the closing bracket.  Everything else is an error.  */
 3345|      0|      re_token_t token2;
 3346|      0|      (void) peek_token_bracket (&token2, regexp, syntax);
 3347|      0|      if (token2.type != OP_CLOSE_BRACKET)
  ------------------
  |  Branch (3347:11): [True: 0, False: 0]
  ------------------
 3348|       |	/* The actual error value is not standardized since this whole
 3349|       |	   case is undefined.  But ERANGE makes good sense.  */
 3350|      0|	return REG_ERANGE;
  ------------------
  |  |  387|      0|#define REG_ERANGE	_REG_ERANGE
  ------------------
 3351|      0|    }
 3352|    596|  elem->type = SB_CHAR;
 3353|    596|  elem->opr.ch = token->opr.c;
 3354|    596|  return REG_NOERROR;
  ------------------
  |  |  376|    596|#define REG_NOERROR	_REG_NOERROR
  ------------------
 3355|    596|}
regex.c:build_range_exp:
 2678|     85|{
 2679|       |  /* Equivalence Classes and Character Classes can't be a range start/end.  */
 2680|     85|  if (__glibc_unlikely (start_elem->type == EQUIV_CLASS
  ------------------
  |  Branch (2680:7): [True: 0, False: 85]
  |  Branch (2680:7): [True: 0, False: 85]
  |  Branch (2680:7): [True: 0, False: 85]
  |  Branch (2680:7): [True: 0, False: 85]
  |  Branch (2680:7): [True: 0, False: 85]
  ------------------
 2681|     85|			|| start_elem->type == CHAR_CLASS
 2682|     85|			|| end_elem->type == EQUIV_CLASS
 2683|     85|			|| end_elem->type == CHAR_CLASS))
 2684|      0|    return REG_ERANGE;
  ------------------
  |  |  387|      0|#define REG_ERANGE	_REG_ERANGE
  ------------------
 2685|       |
 2686|       |  /* We can handle no multi character collating elements without libc
 2687|       |     support.  */
 2688|     85|  if (__glibc_unlikely ((start_elem->type == COLL_SYM
  ------------------
  |  Branch (2688:7): [True: 0, False: 85]
  |  Branch (2688:7): [True: 0, False: 0]
  |  Branch (2688:7): [True: 0, False: 85]
  |  Branch (2688:7): [True: 0, False: 0]
  |  Branch (2688:7): [True: 0, False: 85]
  ------------------
 2689|     85|			 && strlen ((char *) start_elem->opr.name) > 1)
 2690|     85|			|| (end_elem->type == COLL_SYM
 2691|     85|			    && strlen ((char *) end_elem->opr.name) > 1)))
 2692|      0|    return REG_ECOLLATE;
  ------------------
  |  |  379|      0|#define REG_ECOLLATE	_REG_ECOLLATE
  ------------------
 2693|       |
 2694|     85|  unsigned int
 2695|     85|    start_ch = ((start_elem->type == SB_CHAR) ? start_elem->opr.ch
  ------------------
  |  Branch (2695:17): [True: 85, False: 0]
  ------------------
 2696|     85|		: ((start_elem->type == COLL_SYM) ? start_elem->opr.name[0]
  ------------------
  |  Branch (2696:6): [True: 0, False: 0]
  ------------------
 2697|      0|		   : 0)),
 2698|     85|    end_ch = ((end_elem->type == SB_CHAR) ? end_elem->opr.ch
  ------------------
  |  Branch (2698:15): [True: 85, False: 0]
  ------------------
 2699|     85|	      : ((end_elem->type == COLL_SYM) ? end_elem->opr.name[0]
  ------------------
  |  Branch (2699:11): [True: 0, False: 0]
  ------------------
 2700|      0|		 : 0));
 2701|     85|  wint_t
 2702|     85|    start_wc = ((start_elem->type == SB_CHAR || start_elem->type == COLL_SYM)
  ------------------
  |  Branch (2702:18): [True: 85, False: 0]
  |  Branch (2702:49): [True: 0, False: 0]
  ------------------
 2703|     85|		? parse_byte (start_ch, dfa) : start_elem->opr.wch),
 2704|     85|    end_wc = ((end_elem->type == SB_CHAR || end_elem->type == COLL_SYM)
  ------------------
  |  Branch (2704:16): [True: 85, False: 0]
  |  Branch (2704:45): [True: 0, False: 0]
  ------------------
 2705|     85|	      ? parse_byte (end_ch, dfa) : end_elem->opr.wch);
 2706|       |
 2707|     85|  if (start_wc == WEOF || end_wc == WEOF)
  ------------------
  |  Branch (2707:7): [True: 0, False: 85]
  |  Branch (2707:27): [True: 0, False: 85]
  ------------------
 2708|      0|    return REG_ECOLLATE;
  ------------------
  |  |  379|      0|#define REG_ECOLLATE	_REG_ECOLLATE
  ------------------
 2709|     85|  else if (__glibc_unlikely ((syntax & RE_NO_EMPTY_RANGES)
  ------------------
  |  Branch (2709:12): [True: 85, False: 0]
  |  Branch (2709:12): [True: 0, False: 85]
  |  Branch (2709:12): [True: 0, False: 85]
  ------------------
 2710|     85|                             && start_wc > end_wc))
 2711|      0|    return REG_ERANGE;
  ------------------
  |  |  387|      0|#define REG_ERANGE	_REG_ERANGE
  ------------------
 2712|       |
 2713|       |  /* Got valid collation sequence values, add them as a new entry.
 2714|       |     However, for !_LIBC we have no collation elements: if the
 2715|       |     character set is single byte, the single byte character set
 2716|       |     that we build below suffices.  parse_bracket_exp passes
 2717|       |     no MBCSET if dfa->mb_cur_max == 1.  */
 2718|     85|  if (dfa->mb_cur_max > 1)
  ------------------
  |  Branch (2718:7): [True: 0, False: 85]
  ------------------
 2719|      0|    {
 2720|       |      /* Check the space of the arrays.  */
 2721|      0|      if (__glibc_unlikely (*range_alloc == mbcset->nranges))
  ------------------
  |  Branch (2721:11): [True: 0, False: 0]
  ------------------
 2722|      0|        {
 2723|       |          /* There is not enough space, need realloc.  */
 2724|      0|          wchar_t *new_array_start, *new_array_end;
  ------------------
  |  |  129|      0|# define wchar_t char32_t
  ------------------
 2725|      0|          Idx new_nranges;
 2726|       |
 2727|       |          /* +1 in case of mbcset->nranges is 0.  */
 2728|      0|          new_nranges = 2 * mbcset->nranges + 1;
 2729|       |          /* Use realloc since mbcset->range_starts and mbcset->range_ends
 2730|       |             are NULL if *range_alloc == 0.  */
 2731|      0|          new_array_start = re_realloc (mbcset->range_starts, wchar_t,
  ------------------
  |  |  471|      0|#define re_realloc(p,t,n) ((t *) realloc (p, (n) * sizeof (t)))
  ------------------
 2732|      0|                                        new_nranges);
 2733|      0|          new_array_end = re_realloc (mbcset->range_ends, wchar_t,
  ------------------
  |  |  471|      0|#define re_realloc(p,t,n) ((t *) realloc (p, (n) * sizeof (t)))
  ------------------
 2734|      0|                                      new_nranges);
 2735|       |
 2736|      0|          if (__glibc_unlikely (new_array_start == NULL
  ------------------
  |  Branch (2736:15): [True: 0, False: 0]
  |  Branch (2736:15): [True: 0, False: 0]
  |  Branch (2736:15): [True: 0, False: 0]
  ------------------
 2737|      0|                                || new_array_end == NULL))
 2738|      0|            {
 2739|      0|              re_free (new_array_start);
  ------------------
  |  |  472|      0|#define re_free(p) free (p)
  ------------------
 2740|      0|              re_free (new_array_end);
  ------------------
  |  |  472|      0|#define re_free(p) free (p)
  ------------------
 2741|      0|              return REG_ESPACE;
  ------------------
  |  |  388|      0|#define REG_ESPACE	_REG_ESPACE
  ------------------
 2742|      0|            }
 2743|       |
 2744|      0|          mbcset->range_starts = new_array_start;
 2745|      0|          mbcset->range_ends = new_array_end;
 2746|      0|          *range_alloc = new_nranges;
 2747|      0|        }
 2748|       |
 2749|      0|      mbcset->range_starts[mbcset->nranges] = start_wc;
 2750|      0|      mbcset->range_ends[mbcset->nranges++] = end_wc;
 2751|      0|    }
 2752|       |
 2753|       |  /* Build the table for single byte characters.  */
 2754|  21.8k|  for (wchar_t wc = 0; wc < SBC_MAX; ++wc)
  ------------------
  |  |  129|     85|# define wchar_t char32_t
  ------------------
                for (wchar_t wc = 0; wc < SBC_MAX; ++wc)
  ------------------
  |  |  114|  21.8k|#define SBC_MAX (UCHAR_MAX + 1)
  ------------------
  |  Branch (2754:24): [True: 21.7k, False: 85]
  ------------------
 2755|  21.7k|    {
 2756|  21.7k|      if (start_wc <= wc && wc <= end_wc)
  ------------------
  |  Branch (2756:11): [True: 21.6k, False: 85]
  |  Branch (2756:29): [True: 595, False: 21.0k]
  ------------------
 2757|    595|        bitset_set (sbcset, wc);
 2758|  21.7k|    }
 2759|       |
 2760|     85|  return REG_NOERROR;
  ------------------
  |  |  376|     85|#define REG_NOERROR	_REG_NOERROR
  ------------------
 2761|     85|}
regex.c:parse_byte:
 2660|    170|{
 2661|    170|  return dfa->mb_cur_max > 1 ? __btowc (b) : b;
  ------------------
  |  |  159|      0|#  define __btowc btoc32
  ------------------
  |  Branch (2661:10): [True: 0, False: 170]
  ------------------
 2662|    170|}
regex.c:parse_dup_op:
 2510|    228|{
 2511|    228|  bin_tree_t *tree = NULL, *old_tree = NULL;
 2512|    228|  Idx i, start, end, start_idx = re_string_cur_idx (regexp);
  ------------------
  |  |  452|    228|#define re_string_cur_idx(pstr) ((pstr)->cur_idx)
  ------------------
 2513|    228|  re_token_t start_token = *token;
 2514|       |
 2515|    228|  if (token->type == OP_OPEN_DUP_NUM)
  ------------------
  |  Branch (2515:7): [True: 0, False: 228]
  ------------------
 2516|      0|    {
 2517|      0|      end = 0;
 2518|      0|      start = fetch_number (regexp, token, syntax);
 2519|      0|      if (start == -1)
  ------------------
  |  Branch (2519:11): [True: 0, False: 0]
  ------------------
 2520|      0|	{
 2521|      0|	  if (token->type == CHARACTER && token->opr.c == ',')
  ------------------
  |  Branch (2521:8): [True: 0, False: 0]
  |  Branch (2521:36): [True: 0, False: 0]
  ------------------
 2522|      0|	    start = 0; /* We treat "{,m}" as "{0,m}".  */
 2523|      0|	  else
 2524|      0|	    {
 2525|      0|	      *err = REG_BADBR; /* <re>{} is invalid.  */
  ------------------
  |  |  386|      0|#define REG_BADBR	_REG_BADBR
  ------------------
 2526|      0|	      return NULL;
 2527|      0|	    }
 2528|      0|	}
 2529|      0|      if (__glibc_likely (start != -2))
  ------------------
  |  Branch (2529:11): [True: 0, False: 0]
  ------------------
 2530|      0|	{
 2531|       |	  /* We treat "{n}" as "{n,n}".  */
 2532|      0|	  end = ((token->type == OP_CLOSE_DUP_NUM) ? start
  ------------------
  |  Branch (2532:11): [True: 0, False: 0]
  ------------------
 2533|      0|		 : ((token->type == CHARACTER && token->opr.c == ',')
  ------------------
  |  Branch (2533:8): [True: 0, False: 0]
  |  Branch (2533:36): [True: 0, False: 0]
  ------------------
 2534|      0|		    ? fetch_number (regexp, token, syntax) : -2));
 2535|      0|	}
 2536|      0|      if (__glibc_unlikely (start == -2 || end == -2))
  ------------------
  |  Branch (2536:11): [True: 0, False: 0]
  |  Branch (2536:11): [True: 0, False: 0]
  |  Branch (2536:11): [True: 0, False: 0]
  ------------------
 2537|      0|	{
 2538|       |	  /* Invalid sequence.  */
 2539|      0|	  if (__glibc_unlikely (!(syntax & RE_INVALID_INTERVAL_ORD)))
  ------------------
  |  Branch (2539:8): [True: 0, False: 0]
  ------------------
 2540|      0|	    {
 2541|      0|	      if (token->type == END_OF_RE)
  ------------------
  |  Branch (2541:12): [True: 0, False: 0]
  ------------------
 2542|      0|		*err = REG_EBRACE;
  ------------------
  |  |  385|      0|#define REG_EBRACE	_REG_EBRACE
  ------------------
 2543|      0|	      else
 2544|      0|		*err = REG_BADBR;
  ------------------
  |  |  386|      0|#define REG_BADBR	_REG_BADBR
  ------------------
 2545|       |
 2546|      0|	      return NULL;
 2547|      0|	    }
 2548|       |
 2549|       |	  /* If the syntax bit is set, rollback.  */
 2550|      0|	  re_string_set_index (regexp, start_idx);
  ------------------
  |  |  457|      0|#define re_string_set_index(pstr,idx) ((pstr)->cur_idx = (idx))
  ------------------
 2551|      0|	  *token = start_token;
 2552|      0|	  token->type = CHARACTER;
 2553|       |	  /* mb_partial and word_char bits should be already initialized by
 2554|       |	     peek_token.  */
 2555|      0|	  return elem;
 2556|      0|	}
 2557|       |
 2558|      0|      if (__glibc_unlikely ((end != -1 && start > end)
  ------------------
  |  Branch (2558:11): [True: 0, False: 0]
  |  Branch (2558:11): [True: 0, False: 0]
  |  Branch (2558:11): [True: 0, False: 0]
  |  Branch (2558:11): [True: 0, False: 0]
  ------------------
 2559|      0|			    || token->type != OP_CLOSE_DUP_NUM))
 2560|      0|	{
 2561|       |	  /* First number greater than second.  */
 2562|      0|	  *err = REG_BADBR;
  ------------------
  |  |  386|      0|#define REG_BADBR	_REG_BADBR
  ------------------
 2563|      0|	  return NULL;
 2564|      0|	}
 2565|       |
 2566|      0|      if (__glibc_unlikely (RE_DUP_MAX < (end == -1 ? start : end)))
  ------------------
  |  Branch (2566:11): [True: 0, False: 0]
  |  Branch (2566:11): [True: 0, False: 0]
  ------------------
 2567|      0|	{
 2568|      0|	  *err = REG_ESIZE;
  ------------------
  |  |  391|      0|#define REG_ESIZE	_REG_ESIZE
  ------------------
 2569|      0|	  return NULL;
 2570|      0|	}
 2571|      0|    }
 2572|    228|  else
 2573|    228|    {
 2574|    228|      start = (token->type == OP_DUP_PLUS) ? 1 : 0;
  ------------------
  |  Branch (2574:15): [True: 96, False: 132]
  ------------------
 2575|    228|      end = (token->type == OP_DUP_QUESTION) ? 1 : -1;
  ------------------
  |  Branch (2575:13): [True: 30, False: 198]
  ------------------
 2576|    228|    }
 2577|       |
 2578|    228|  fetch_token (token, regexp, syntax);
 2579|       |
 2580|    228|  if (__glibc_unlikely (elem == NULL))
  ------------------
  |  Branch (2580:7): [True: 0, False: 228]
  ------------------
 2581|      0|    return NULL;
 2582|    228|  if (__glibc_unlikely (start == 0 && end == 0))
  ------------------
  |  Branch (2582:7): [True: 132, False: 96]
  |  Branch (2582:7): [True: 0, False: 132]
  |  Branch (2582:7): [True: 0, False: 228]
  ------------------
 2583|      0|    {
 2584|      0|      postorder (elem, free_tree, NULL);
 2585|      0|      return NULL;
 2586|      0|    }
 2587|       |
 2588|       |  /* Extract "<re>{n,m}" to "<re><re>...<re><re>{0,<m-n>}".  */
 2589|    228|  if (__glibc_unlikely (start > 0))
  ------------------
  |  Branch (2589:7): [True: 96, False: 132]
  ------------------
 2590|     96|    {
 2591|     96|      tree = elem;
 2592|     96|      for (i = 2; i <= start; ++i)
  ------------------
  |  Branch (2592:19): [True: 0, False: 96]
  ------------------
 2593|      0|	{
 2594|      0|	  elem = duplicate_tree (elem, dfa);
 2595|      0|	  tree = create_tree (dfa, tree, elem, CONCAT);
 2596|      0|	  if (__glibc_unlikely (elem == NULL || tree == NULL))
  ------------------
  |  Branch (2596:8): [True: 0, False: 0]
  |  Branch (2596:8): [True: 0, False: 0]
  |  Branch (2596:8): [True: 0, False: 0]
  ------------------
 2597|      0|	    goto parse_dup_op_espace;
 2598|      0|	}
 2599|       |
 2600|     96|      if (start == end)
  ------------------
  |  Branch (2600:11): [True: 0, False: 96]
  ------------------
 2601|      0|	return tree;
 2602|       |
 2603|       |      /* Duplicate ELEM before it is marked optional.  */
 2604|     96|      elem = duplicate_tree (elem, dfa);
 2605|     96|      if (__glibc_unlikely (elem == NULL))
  ------------------
  |  Branch (2605:11): [True: 0, False: 96]
  ------------------
 2606|      0|        goto parse_dup_op_espace;
 2607|     96|      old_tree = tree;
 2608|     96|    }
 2609|    132|  else
 2610|    132|    old_tree = NULL;
 2611|       |
 2612|    228|  if (elem->token.type == SUBEXP)
  ------------------
  |  Branch (2612:7): [True: 2, False: 226]
  ------------------
 2613|      2|    {
 2614|      2|      uintptr_t subidx = elem->token.opr.idx;
 2615|      2|      postorder (elem, mark_opt_subexp, (void *) subidx);
 2616|      2|    }
 2617|       |
 2618|    228|  tree = create_tree (dfa, elem, NULL,
 2619|    228|		      (end == -1 ? OP_DUP_ASTERISK : OP_ALT));
  ------------------
  |  Branch (2619:10): [True: 198, False: 30]
  ------------------
 2620|    228|  if (__glibc_unlikely (tree == NULL))
  ------------------
  |  Branch (2620:7): [True: 0, False: 228]
  ------------------
 2621|      0|    goto parse_dup_op_espace;
 2622|       |
 2623|       |  /* This loop is actually executed only when end != -1,
 2624|       |     to rewrite <re>{0,n} as (<re>(<re>...<re>?)?)?...  We have
 2625|       |     already created the start+1-th copy.  */
 2626|    228|  if (TYPE_SIGNED (Idx) || end != -1)
  ------------------
  |  |   43|    228|#define TYPE_SIGNED(t) _GL_TYPE_SIGNED (t)
  |  |  ------------------
  |  |  |  |   55|    456|# define _GL_TYPE_SIGNED(t) (! ((t) 0 < (t) -1))
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (55:29): [True: 228, Folded]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  |  Branch (2626:28): [True: 0, False: 0]
  ------------------
 2627|    228|    for (i = start + 2; i <= end; ++i)
  ------------------
  |  Branch (2627:25): [True: 0, False: 228]
  ------------------
 2628|      0|      {
 2629|      0|	elem = duplicate_tree (elem, dfa);
 2630|      0|	tree = create_tree (dfa, tree, elem, CONCAT);
 2631|      0|	if (__glibc_unlikely (elem == NULL || tree == NULL))
  ------------------
  |  Branch (2631:6): [True: 0, False: 0]
  |  Branch (2631:6): [True: 0, False: 0]
  |  Branch (2631:6): [True: 0, False: 0]
  ------------------
 2632|      0|	  goto parse_dup_op_espace;
 2633|       |
 2634|      0|	tree = create_tree (dfa, tree, NULL, OP_ALT);
 2635|      0|	if (__glibc_unlikely (tree == NULL))
  ------------------
  |  Branch (2635:6): [True: 0, False: 0]
  ------------------
 2636|      0|	  goto parse_dup_op_espace;
 2637|      0|      }
 2638|       |
 2639|    228|  if (old_tree)
  ------------------
  |  Branch (2639:7): [True: 96, False: 132]
  ------------------
 2640|     96|    tree = create_tree (dfa, old_tree, tree, CONCAT);
 2641|       |
 2642|    228|  return tree;
 2643|       |
 2644|      0| parse_dup_op_espace:
 2645|      0|  *err = REG_ESPACE;
  ------------------
  |  |  388|      0|#define REG_ESPACE	_REG_ESPACE
  ------------------
 2646|       |  return NULL;
 2647|    228|}
regex.c:duplicate_tree:
 3778|     96|{
 3779|     96|  const bin_tree_t *node;
 3780|     96|  bin_tree_t *dup_root;
 3781|     96|  bin_tree_t **p_new = &dup_root, *dup_node = root->parent;
 3782|       |
 3783|     96|  for (node = root; ; )
 3784|    236|    {
 3785|       |      /* Create a new tree and link it back to the current parent.  */
 3786|    236|      *p_new = create_token_tree (dfa, NULL, NULL, &node->token);
 3787|    236|      if (*p_new == NULL)
  ------------------
  |  Branch (3787:11): [True: 0, False: 236]
  ------------------
 3788|      0|	return NULL;
 3789|    236|      (*p_new)->parent = dup_node;
 3790|    236|      (*p_new)->token.duplicated = 1;
 3791|    236|      dup_node = *p_new;
 3792|       |
 3793|       |      /* Go to the left node, or up and to the right.  */
 3794|    236|      if (node->left)
  ------------------
  |  Branch (3794:11): [True: 78, False: 158]
  ------------------
 3795|     78|	{
 3796|     78|	  node = node->left;
 3797|     78|	  p_new = &dup_node->left;
 3798|     78|	}
 3799|    158|      else
 3800|    158|	{
 3801|    158|	  const bin_tree_t *prev = NULL;
 3802|    298|	  while (node->right == prev || node->right == NULL)
  ------------------
  |  Branch (3802:11): [True: 218, False: 80]
  |  Branch (3802:34): [True: 18, False: 62]
  ------------------
 3803|    236|	    {
 3804|    236|	      prev = node;
 3805|    236|	      node = node->parent;
 3806|    236|	      dup_node = dup_node->parent;
 3807|    236|	      if (!node)
  ------------------
  |  Branch (3807:12): [True: 96, False: 140]
  ------------------
 3808|     96|		return dup_root;
 3809|    236|	    }
 3810|     62|	  node = node->right;
 3811|     62|	  p_new = &dup_node->right;
 3812|     62|	}
 3813|    236|    }
 3814|     96|}
regex.c:mark_opt_subexp:
 3741|    142|{
 3742|    142|  Idx idx = (uintptr_t) extra;
 3743|    142|  if (node->token.type == SUBEXP && node->token.opr.idx == idx)
  ------------------
  |  Branch (3743:7): [True: 4, False: 138]
  |  Branch (3743:37): [True: 2, False: 2]
  ------------------
 3744|      2|    node->token.opt_subexp = 1;
 3745|       |
 3746|    142|  return REG_NOERROR;
  ------------------
  |  |  376|    142|#define REG_NOERROR	_REG_NOERROR
  ------------------
 3747|    142|}
regex.c:postorder:
 1209|    218|{
 1210|    218|  bin_tree_t *node, *prev;
 1211|       |
 1212|    218|  for (node = root; ; )
 1213|   973k|    {
 1214|       |      /* Descend down the tree, preferably to the left (or to the right
 1215|       |	 if that's the only child).  */
 1216|  1.94M|      while (node->left || node->right)
  ------------------
  |  Branch (1216:14): [True: 973k, False: 973k]
  |  Branch (1216:28): [True: 6, False: 973k]
  ------------------
 1217|   973k|	if (node->left)
  ------------------
  |  Branch (1217:6): [True: 973k, False: 6]
  ------------------
 1218|   973k|	  node = node->left;
 1219|      6|	else
 1220|      6|	  node = node->right;
 1221|       |
 1222|   973k|      do
 1223|  1.94M|	{
 1224|  1.94M|	  reg_errcode_t err = fn (extra, node);
 1225|  1.94M|	  if (__glibc_unlikely (err != REG_NOERROR))
  ------------------
  |  Branch (1225:8): [True: 0, False: 1.94M]
  ------------------
 1226|      0|	    return err;
 1227|  1.94M|	  if (node->parent == NULL)
  ------------------
  |  Branch (1227:8): [True: 218, False: 1.94M]
  ------------------
 1228|    218|	    return REG_NOERROR;
  ------------------
  |  |  376|    218|#define REG_NOERROR	_REG_NOERROR
  ------------------
 1229|  1.94M|	  prev = node;
 1230|  1.94M|	  node = node->parent;
 1231|  1.94M|	}
 1232|       |      /* Go up while we have a node that is reached from the right.  */
 1233|  1.94M|      while (node->right == prev || node->right == NULL);
  ------------------
  |  Branch (1233:14): [True: 973k, False: 973k]
  |  Branch (1233:37): [True: 294, False: 973k]
  ------------------
 1234|   973k|      node = node->right;
 1235|   973k|    }
 1236|    218|}
regex.c:free_tree:
 3765|  1.94M|{
 3766|  1.94M|  free_token (&node->token);
 3767|  1.94M|  return REG_NOERROR;
  ------------------
  |  |  376|  1.94M|#define REG_NOERROR	_REG_NOERROR
  ------------------
 3768|  1.94M|}
regex.c:create_tree:
 3697|   973k|{
 3698|   973k|  re_token_t t = { .type = type };
 3699|   973k|  return create_token_tree (dfa, left, right, &t);
 3700|   973k|}
regex.c:analyze:
 1145|     93|{
 1146|     93|  re_dfa_t *dfa = preg->buffer;
 1147|     93|  reg_errcode_t ret;
 1148|       |
 1149|       |  /* Allocate arrays.  */
 1150|     93|  dfa->nexts = re_malloc (Idx, dfa->nodes_alloc);
  ------------------
  |  |  467|     93|# define re_malloc(t,n) ((t *) malloc ((n) * sizeof (t)))
  ------------------
 1151|     93|  dfa->org_indices = re_malloc (Idx, dfa->nodes_alloc);
  ------------------
  |  |  467|     93|# define re_malloc(t,n) ((t *) malloc ((n) * sizeof (t)))
  ------------------
 1152|     93|  dfa->edests = re_malloc (re_node_set, dfa->nodes_alloc);
  ------------------
  |  |  467|     93|# define re_malloc(t,n) ((t *) malloc ((n) * sizeof (t)))
  ------------------
 1153|     93|  dfa->eclosures = re_malloc (re_node_set, dfa->nodes_alloc);
  ------------------
  |  |  467|     93|# define re_malloc(t,n) ((t *) malloc ((n) * sizeof (t)))
  ------------------
 1154|     93|  if (__glibc_unlikely (dfa->nexts == NULL || dfa->org_indices == NULL
  ------------------
  |  Branch (1154:7): [True: 0, False: 93]
  |  Branch (1154:7): [True: 0, False: 93]
  |  Branch (1154:7): [True: 0, False: 93]
  |  Branch (1154:7): [True: 0, False: 93]
  |  Branch (1154:7): [True: 0, False: 93]
  ------------------
 1155|     93|			|| dfa->edests == NULL || dfa->eclosures == NULL))
 1156|      0|    return REG_ESPACE;
  ------------------
  |  |  388|      0|#define REG_ESPACE	_REG_ESPACE
  ------------------
 1157|       |
 1158|     93|  dfa->subexp_map = re_malloc (Idx, preg->re_nsub);
  ------------------
  |  |  467|     93|# define re_malloc(t,n) ((t *) malloc ((n) * sizeof (t)))
  ------------------
 1159|     93|  if (dfa->subexp_map != NULL)
  ------------------
  |  Branch (1159:7): [True: 93, False: 0]
  ------------------
 1160|     93|    {
 1161|     93|      Idx i;
 1162|    113|      for (i = 0; i < preg->re_nsub; i++)
  ------------------
  |  Branch (1162:19): [True: 20, False: 93]
  ------------------
 1163|     20|	dfa->subexp_map[i] = i;
 1164|     93|      preorder (dfa->str_tree, optimize_subexps, dfa);
 1165|    113|      for (i = 0; i < preg->re_nsub; i++)
  ------------------
  |  Branch (1165:19): [True: 20, False: 93]
  ------------------
 1166|     20|	if (dfa->subexp_map[i] != i)
  ------------------
  |  Branch (1166:6): [True: 0, False: 20]
  ------------------
 1167|      0|	  break;
 1168|     93|      if (i == preg->re_nsub)
  ------------------
  |  Branch (1168:11): [True: 93, False: 0]
  ------------------
 1169|     93|	{
 1170|     93|	  re_free (dfa->subexp_map);
  ------------------
  |  |  472|     93|#define re_free(p) free (p)
  ------------------
 1171|     93|	  dfa->subexp_map = NULL;
 1172|     93|	}
 1173|     93|    }
 1174|       |
 1175|     93|  ret = postorder (dfa->str_tree, lower_subexps, preg);
 1176|     93|  if (__glibc_unlikely (ret != REG_NOERROR))
  ------------------
  |  Branch (1176:7): [True: 0, False: 93]
  ------------------
 1177|      0|    return ret;
 1178|     93|  ret = postorder (dfa->str_tree, calc_first, dfa);
 1179|     93|  if (__glibc_unlikely (ret != REG_NOERROR))
  ------------------
  |  Branch (1179:7): [True: 0, False: 93]
  ------------------
 1180|      0|    return ret;
 1181|     93|  preorder (dfa->str_tree, calc_next, dfa);
 1182|     93|  ret = preorder (dfa->str_tree, link_nfa_nodes, dfa);
 1183|     93|  if (__glibc_unlikely (ret != REG_NOERROR))
  ------------------
  |  Branch (1183:7): [True: 0, False: 93]
  ------------------
 1184|      0|    return ret;
 1185|     93|  ret = calc_eclosure (dfa);
 1186|     93|  if (__glibc_unlikely (ret != REG_NOERROR))
  ------------------
  |  Branch (1186:7): [True: 0, False: 93]
  ------------------
 1187|      0|    return ret;
 1188|       |
 1189|       |  /* We only need this during the prune_impossible_nodes pass in regexec.c;
 1190|       |     skip it if p_i_n will not run, as calc_inveclosure can be quadratic.  */
 1191|     93|  if ((!preg->no_sub && preg->re_nsub > 0 && dfa->has_plural_match)
  ------------------
  |  Branch (1191:8): [True: 93, False: 0]
  |  Branch (1191:25): [True: 8, False: 85]
  |  Branch (1191:46): [True: 4, False: 4]
  ------------------
 1192|     89|      || dfa->nbackref)
  ------------------
  |  Branch (1192:10): [True: 0, False: 89]
  ------------------
 1193|      4|    {
 1194|      4|      dfa->inveclosures = re_malloc (re_node_set, dfa->nodes_len);
  ------------------
  |  |  467|      4|# define re_malloc(t,n) ((t *) malloc ((n) * sizeof (t)))
  ------------------
 1195|      4|      if (__glibc_unlikely (dfa->inveclosures == NULL))
  ------------------
  |  Branch (1195:11): [True: 0, False: 4]
  ------------------
 1196|      0|	return REG_ESPACE;
  ------------------
  |  |  388|      0|#define REG_ESPACE	_REG_ESPACE
  ------------------
 1197|      4|      ret = calc_inveclosure (dfa);
 1198|      4|    }
 1199|       |
 1200|     93|  return ret;
 1201|     93|}
regex.c:preorder:
 1241|    279|{
 1242|    279|  bin_tree_t *node;
 1243|       |
 1244|    279|  for (node = root; ; )
 1245|  2.02k|    {
 1246|  2.02k|      reg_errcode_t err = fn (extra, node);
 1247|  2.02k|      if (__glibc_unlikely (err != REG_NOERROR))
  ------------------
  |  Branch (1247:11): [True: 0, False: 2.02k]
  ------------------
 1248|      0|	return err;
 1249|       |
 1250|       |      /* Go to the left node, or up and to the right.  */
 1251|  2.02k|      if (node->left)
  ------------------
  |  Branch (1251:11): [True: 883, False: 1.14k]
  ------------------
 1252|    883|	node = node->left;
 1253|  1.14k|      else
 1254|  1.14k|	{
 1255|  1.14k|	  bin_tree_t *prev = NULL;
 1256|  2.88k|	  while (node->right == prev || node->right == NULL)
  ------------------
  |  Branch (1256:11): [True: 2.00k, False: 883]
  |  Branch (1256:34): [True: 20, False: 863]
  ------------------
 1257|  2.02k|	    {
 1258|  2.02k|	      prev = node;
 1259|  2.02k|	      node = node->parent;
 1260|  2.02k|	      if (!node)
  ------------------
  |  Branch (1260:12): [True: 279, False: 1.74k]
  ------------------
 1261|    279|		return REG_NOERROR;
  ------------------
  |  |  376|    279|#define REG_NOERROR	_REG_NOERROR
  ------------------
 1262|  2.02k|	    }
 1263|    863|	  node = node->right;
 1264|    863|	}
 1265|  2.02k|    }
 1266|    279|}
regex.c:optimize_subexps:
 1273|    635|{
 1274|    635|  re_dfa_t *dfa = (re_dfa_t *) extra;
 1275|       |
 1276|    635|  if (node->token.type == OP_BACK_REF && dfa->subexp_map)
  ------------------
  |  Branch (1276:7): [True: 0, False: 635]
  |  Branch (1276:42): [True: 0, False: 0]
  ------------------
 1277|      0|    {
 1278|      0|      int idx = node->token.opr.idx;
 1279|      0|      node->token.opr.idx = dfa->subexp_map[idx];
 1280|      0|      dfa->used_bkref_map |= 1 << node->token.opr.idx;
 1281|      0|    }
 1282|       |
 1283|    635|  else if (node->token.type == SUBEXP
  ------------------
  |  Branch (1283:12): [True: 20, False: 615]
  ------------------
 1284|     20|	   && node->left && node->left->token.type == SUBEXP)
  ------------------
  |  Branch (1284:8): [True: 20, False: 0]
  |  Branch (1284:22): [True: 0, False: 20]
  ------------------
 1285|      0|    {
 1286|      0|      Idx other_idx = node->left->token.opr.idx;
 1287|       |
 1288|      0|      node->left = node->left->left;
 1289|      0|      if (node->left)
  ------------------
  |  Branch (1289:11): [True: 0, False: 0]
  ------------------
 1290|      0|	node->left->parent = node;
 1291|       |
 1292|      0|      dfa->subexp_map[other_idx] = dfa->subexp_map[node->token.opr.idx];
 1293|      0|      if (other_idx < BITSET_WORD_BITS)
  ------------------
  |  |  216|      0|#define BITSET_WORD_BITS ULONG_WIDTH
  ------------------
  |  Branch (1293:11): [True: 0, False: 0]
  ------------------
 1294|      0|	dfa->used_bkref_map &= ~((bitset_word_t) 1 << other_idx);
 1295|      0|    }
 1296|       |
 1297|    635|  return REG_NOERROR;
  ------------------
  |  |  376|    635|#define REG_NOERROR	_REG_NOERROR
  ------------------
 1298|    635|}
regex.c:lower_subexps:
 1304|    635|{
 1305|    635|  regex_t *preg = (regex_t *) extra;
 1306|    635|  reg_errcode_t err = REG_NOERROR;
  ------------------
  |  |  376|    635|#define REG_NOERROR	_REG_NOERROR
  ------------------
 1307|       |
 1308|    635|  if (node->left && node->left->token.type == SUBEXP)
  ------------------
  |  Branch (1308:7): [True: 281, False: 354]
  |  Branch (1308:21): [True: 8, False: 273]
  ------------------
 1309|      8|    {
 1310|      8|      node->left = lower_subexp (&err, preg, node->left);
 1311|      8|      if (node->left)
  ------------------
  |  Branch (1311:11): [True: 8, False: 0]
  ------------------
 1312|      8|	node->left->parent = node;
 1313|      8|    }
 1314|    635|  if (node->right && node->right->token.type == SUBEXP)
  ------------------
  |  Branch (1314:7): [True: 261, False: 374]
  |  Branch (1314:22): [True: 12, False: 249]
  ------------------
 1315|     12|    {
 1316|     12|      node->right = lower_subexp (&err, preg, node->right);
 1317|     12|      if (node->right)
  ------------------
  |  Branch (1317:11): [True: 12, False: 0]
  ------------------
 1318|     12|	node->right->parent = node;
 1319|     12|    }
 1320|       |
 1321|    635|  return err;
 1322|    635|}
regex.c:lower_subexp:
 1326|     20|{
 1327|     20|  re_dfa_t *dfa = preg->buffer;
 1328|     20|  bin_tree_t *body = node->left;
 1329|     20|  bin_tree_t *op, *cls, *tree1, *tree;
 1330|       |
 1331|     20|  if (preg->no_sub
  ------------------
  |  Branch (1331:7): [True: 0, False: 20]
  ------------------
 1332|       |      /* We do not optimize empty subexpressions, because otherwise we may
 1333|       |	 have bad CONCAT nodes with NULL children.  This is obviously not
 1334|       |	 very common, so we do not lose much.  An example that triggers
 1335|       |	 this case is the sed "script" /\(\)/x.  */
 1336|      0|      && node->left != NULL
  ------------------
  |  Branch (1336:10): [True: 0, False: 0]
  ------------------
 1337|      0|      && (node->token.opr.idx >= BITSET_WORD_BITS
  ------------------
  |  |  216|      0|#define BITSET_WORD_BITS ULONG_WIDTH
  ------------------
  |  Branch (1337:11): [True: 0, False: 0]
  ------------------
 1338|      0|	  || !(dfa->used_bkref_map
  ------------------
  |  Branch (1338:7): [True: 0, False: 0]
  ------------------
 1339|      0|	       & ((bitset_word_t) 1 << node->token.opr.idx))))
 1340|      0|    return node->left;
 1341|       |
 1342|       |  /* Convert the SUBEXP node to the concatenation of an
 1343|       |     OP_OPEN_SUBEXP, the contents, and an OP_CLOSE_SUBEXP.  */
 1344|     20|  op = create_tree (dfa, NULL, NULL, OP_OPEN_SUBEXP);
 1345|     20|  cls = create_tree (dfa, NULL, NULL, OP_CLOSE_SUBEXP);
 1346|     20|  tree1 = body ? create_tree (dfa, body, cls, CONCAT) : cls;
  ------------------
  |  Branch (1346:11): [True: 20, False: 0]
  ------------------
 1347|     20|  tree = create_tree (dfa, op, tree1, CONCAT);
 1348|     20|  if (__glibc_unlikely (tree == NULL || tree1 == NULL
  ------------------
  |  Branch (1348:7): [True: 0, False: 20]
  |  Branch (1348:7): [True: 0, False: 20]
  |  Branch (1348:7): [True: 0, False: 20]
  |  Branch (1348:7): [True: 0, False: 20]
  |  Branch (1348:7): [True: 0, False: 20]
  ------------------
 1349|     20|			|| op == NULL || cls == NULL))
 1350|      0|    {
 1351|      0|      *err = REG_ESPACE;
  ------------------
  |  |  388|      0|#define REG_ESPACE	_REG_ESPACE
  ------------------
 1352|      0|      return NULL;
 1353|      0|    }
 1354|       |
 1355|     20|  op->token.opr.idx = cls->token.opr.idx = node->token.opr.idx;
 1356|     20|  op->token.opt_subexp = cls->token.opt_subexp = node->token.opt_subexp;
 1357|     20|  return tree;
 1358|     20|}
regex.c:calc_first:
 1364|    695|{
 1365|    695|  re_dfa_t *dfa = (re_dfa_t *) extra;
 1366|    695|  if (node->token.type == CONCAT)
  ------------------
  |  Branch (1366:7): [True: 289, False: 406]
  ------------------
 1367|    289|    {
 1368|    289|      node->first = node->left->first;
 1369|    289|      node->node_idx = node->left->node_idx;
 1370|    289|    }
 1371|    406|  else
 1372|    406|    {
 1373|    406|      node->first = node;
 1374|    406|      node->node_idx = re_dfa_add_node (dfa, node->token);
 1375|    406|      if (__glibc_unlikely (node->node_idx == -1))
  ------------------
  |  Branch (1375:11): [True: 0, False: 406]
  ------------------
 1376|      0|	return REG_ESPACE;
  ------------------
  |  |  388|      0|#define REG_ESPACE	_REG_ESPACE
  ------------------
 1377|    406|      if (node->token.type == ANCHOR)
  ------------------
  |  Branch (1377:11): [True: 0, False: 406]
  ------------------
 1378|      0|	dfa->nodes[node->node_idx].constraint = node->token.opr.ctx_type;
 1379|    406|    }
 1380|    695|  return REG_NOERROR;
  ------------------
  |  |  376|    695|#define REG_NOERROR	_REG_NOERROR
  ------------------
 1381|    695|}
regex.c:calc_next:
 1386|    695|{
 1387|    695|  switch (node->token.type)
 1388|    695|    {
 1389|      0|    case OP_DUP_ASTERISK:
  ------------------
  |  Branch (1389:5): [True: 0, False: 695]
  ------------------
 1390|      0|      node->left->next = node;
 1391|      0|      break;
 1392|    289|    case CONCAT:
  ------------------
  |  Branch (1392:5): [True: 289, False: 406]
  ------------------
 1393|    289|      node->left->next = node->right->first;
 1394|    289|      node->right->next = node->next;
 1395|    289|      break;
 1396|    406|    default:
  ------------------
  |  Branch (1396:5): [True: 406, False: 289]
  ------------------
 1397|    406|      if (node->left)
  ------------------
  |  Branch (1397:11): [True: 12, False: 394]
  ------------------
 1398|     12|	node->left->next = node->next;
 1399|    406|      if (node->right)
  ------------------
  |  Branch (1399:11): [True: 12, False: 394]
  ------------------
 1400|     12|	node->right->next = node->next;
 1401|    406|      break;
 1402|    695|    }
 1403|    695|  return REG_NOERROR;
  ------------------
  |  |  376|    695|#define REG_NOERROR	_REG_NOERROR
  ------------------
 1404|    695|}
regex.c:link_nfa_nodes:
 1409|    695|{
 1410|    695|  re_dfa_t *dfa = (re_dfa_t *) extra;
 1411|    695|  Idx idx = node->node_idx;
 1412|    695|  reg_errcode_t err = REG_NOERROR;
  ------------------
  |  |  376|    695|#define REG_NOERROR	_REG_NOERROR
  ------------------
 1413|       |
 1414|    695|  switch (node->token.type)
 1415|    695|    {
 1416|    289|    case CONCAT:
  ------------------
  |  Branch (1416:5): [True: 289, False: 406]
  ------------------
 1417|    289|      break;
 1418|       |
 1419|     93|    case END_OF_RE:
  ------------------
  |  Branch (1419:5): [True: 93, False: 602]
  ------------------
 1420|     93|      DEBUG_ASSERT (node->next == NULL);
  ------------------
  |  |   45|     93|# define DEBUG_ASSERT(x) assume (x)
  |  |  ------------------
  |  |  |  |  375|     93|# define assume(R) ((R) ? (void) 0 : __builtin_unreachable ())
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (375:21): [True: 93, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1421|     93|      break;
 1422|       |
 1423|     93|    case OP_DUP_ASTERISK:
  ------------------
  |  Branch (1423:5): [True: 0, False: 695]
  ------------------
 1424|     12|    case OP_ALT:
  ------------------
  |  Branch (1424:5): [True: 12, False: 683]
  ------------------
 1425|     12|      {
 1426|     12|	Idx left, right;
 1427|     12|	dfa->has_plural_match = 1;
 1428|     12|	if (node->left != NULL)
  ------------------
  |  Branch (1428:6): [True: 12, False: 0]
  ------------------
 1429|     12|	  left = node->left->first->node_idx;
 1430|      0|	else
 1431|      0|	  left = node->next->node_idx;
 1432|     12|	if (node->right != NULL)
  ------------------
  |  Branch (1432:6): [True: 12, False: 0]
  ------------------
 1433|     12|	  right = node->right->first->node_idx;
 1434|      0|	else
 1435|      0|	  right = node->next->node_idx;
 1436|     12|	DEBUG_ASSERT (left > -1);
  ------------------
  |  |   45|     12|# define DEBUG_ASSERT(x) assume (x)
  |  |  ------------------
  |  |  |  |  375|     12|# define assume(R) ((R) ? (void) 0 : __builtin_unreachable ())
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (375:21): [True: 12, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1437|     12|	DEBUG_ASSERT (right > -1);
  ------------------
  |  |   45|     12|# define DEBUG_ASSERT(x) assume (x)
  |  |  ------------------
  |  |  |  |  375|     12|# define assume(R) ((R) ? (void) 0 : __builtin_unreachable ())
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (375:21): [True: 12, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1438|     12|	err = re_node_set_init_2 (dfa->edests + idx, left, right);
 1439|     12|      }
 1440|      0|      break;
 1441|       |
 1442|      0|    case ANCHOR:
  ------------------
  |  Branch (1442:5): [True: 0, False: 695]
  ------------------
 1443|     20|    case OP_OPEN_SUBEXP:
  ------------------
  |  Branch (1443:5): [True: 20, False: 675]
  ------------------
 1444|     40|    case OP_CLOSE_SUBEXP:
  ------------------
  |  Branch (1444:5): [True: 20, False: 675]
  ------------------
 1445|     40|      err = re_node_set_init_1 (dfa->edests + idx, node->next->node_idx);
 1446|     40|      break;
 1447|       |
 1448|      0|    case OP_BACK_REF:
  ------------------
  |  Branch (1448:5): [True: 0, False: 695]
  ------------------
 1449|      0|      dfa->nexts[idx] = node->next->node_idx;
 1450|      0|      if (node->token.type == OP_BACK_REF)
  ------------------
  |  Branch (1450:11): [True: 0, False: 0]
  ------------------
 1451|      0|	err = re_node_set_init_1 (dfa->edests + idx, dfa->nexts[idx]);
 1452|      0|      break;
 1453|       |
 1454|    261|    default:
  ------------------
  |  Branch (1454:5): [True: 261, False: 434]
  ------------------
 1455|    261|      DEBUG_ASSERT (!IS_EPSILON_NODE (node->token.type));
  ------------------
  |  |   45|    261|# define DEBUG_ASSERT(x) assume (x)
  |  |  ------------------
  |  |  |  |  375|    261|# define assume(R) ((R) ? (void) 0 : __builtin_unreachable ())
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (375:21): [True: 261, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1456|    261|      dfa->nexts[idx] = node->next->node_idx;
 1457|    261|      break;
 1458|    695|    }
 1459|       |
 1460|    695|  return err;
 1461|    695|}
regex.c:calc_eclosure:
 1634|     93|{
 1635|     93|  Idx node_idx;
 1636|     93|  bool incomplete;
 1637|     93|  DEBUG_ASSERT (dfa->nodes_len > 0);
  ------------------
  |  |   45|     93|# define DEBUG_ASSERT(x) assume (x)
  |  |  ------------------
  |  |  |  |  375|     93|# define assume(R) ((R) ? (void) 0 : __builtin_unreachable ())
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (375:21): [True: 93, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1638|     93|  incomplete = false;
 1639|       |  /* For each nodes, calculate epsilon closure.  */
 1640|    406|  for (node_idx = 0; ; ++node_idx)
 1641|    499|    {
 1642|    499|      reg_errcode_t err;
 1643|    499|      re_node_set eclosure_elem;
 1644|    499|      if (node_idx == dfa->nodes_len)
  ------------------
  |  Branch (1644:11): [True: 93, False: 406]
  ------------------
 1645|     93|	{
 1646|     93|	  if (!incomplete)
  ------------------
  |  Branch (1646:8): [True: 93, False: 0]
  ------------------
 1647|     93|	    break;
 1648|      0|	  incomplete = false;
 1649|      0|	  node_idx = 0;
 1650|      0|	}
 1651|       |
 1652|    406|      DEBUG_ASSERT (dfa->eclosures[node_idx].nelem != -1);
  ------------------
  |  |   45|    406|# define DEBUG_ASSERT(x) assume (x)
  |  |  ------------------
  |  |  |  |  375|    406|# define assume(R) ((R) ? (void) 0 : __builtin_unreachable ())
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (375:21): [True: 406, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1653|       |
 1654|       |      /* If we have already calculated, skip it.  */
 1655|    406|      if (dfa->eclosures[node_idx].nelem != 0)
  ------------------
  |  Branch (1655:11): [True: 28, False: 378]
  ------------------
 1656|     28|	continue;
 1657|       |      /* Calculate epsilon closure of 'node_idx'.  */
 1658|    378|      err = calc_eclosure_iter (&eclosure_elem, dfa, node_idx, true);
 1659|    378|      if (__glibc_unlikely (err != REG_NOERROR))
  ------------------
  |  Branch (1659:11): [True: 0, False: 378]
  ------------------
 1660|      0|	return err;
 1661|       |
 1662|    378|      if (dfa->eclosures[node_idx].nelem == 0)
  ------------------
  |  Branch (1662:11): [True: 0, False: 378]
  ------------------
 1663|      0|	{
 1664|      0|	  incomplete = true;
 1665|      0|	  re_node_set_free (&eclosure_elem);
  ------------------
  |  |  695|      0|#define re_node_set_free(set) re_free ((set)->elems)
  |  |  ------------------
  |  |  |  |  472|      0|#define re_free(p) free (p)
  |  |  ------------------
  ------------------
 1666|      0|	}
 1667|    378|    }
 1668|     93|  return REG_NOERROR;
  ------------------
  |  |  376|     93|#define REG_NOERROR	_REG_NOERROR
  ------------------
 1669|     93|}
regex.c:calc_eclosure_iter:
 1675|    406|{
 1676|    406|  reg_errcode_t err;
 1677|    406|  Idx i;
 1678|    406|  re_node_set eclosure;
 1679|    406|  bool incomplete = false;
 1680|    406|  err = re_node_set_alloc (&eclosure, dfa->edests[node].nelem + 1);
 1681|    406|  if (__glibc_unlikely (err != REG_NOERROR))
  ------------------
  |  Branch (1681:7): [True: 0, False: 406]
  ------------------
 1682|      0|    return err;
 1683|       |
 1684|       |  /* An epsilon closure includes itself.  */
 1685|    406|  eclosure.elems[eclosure.nelem++] = node;
 1686|       |
 1687|       |  /* This indicates that we are calculating this node now.
 1688|       |     We reference this value to avoid infinite loop.  */
 1689|    406|  dfa->eclosures[node].nelem = -1;
 1690|       |
 1691|       |  /* If the current node has constraints, duplicate all nodes
 1692|       |     since they must inherit the constraints.  */
 1693|    406|  if (dfa->nodes[node].constraint
  ------------------
  |  Branch (1693:7): [True: 0, False: 406]
  ------------------
 1694|      0|      && dfa->edests[node].nelem
  ------------------
  |  Branch (1694:10): [True: 0, False: 0]
  ------------------
 1695|      0|      && !dfa->nodes[dfa->edests[node].elems[0]].duplicated)
  ------------------
  |  Branch (1695:10): [True: 0, False: 0]
  ------------------
 1696|      0|    {
 1697|      0|      err = duplicate_node_closure (dfa, node, node, node,
 1698|      0|				    dfa->nodes[node].constraint);
 1699|      0|    }
 1700|       |
 1701|       |  /* Expand each epsilon destination nodes.  */
 1702|    406|  if (__glibc_likely (err == REG_NOERROR)
  ------------------
  |  Branch (1702:7): [True: 406, False: 0]
  ------------------
 1703|    406|      && IS_EPSILON_NODE (dfa->nodes[node].type))
  ------------------
  |  |  377|    406|#define IS_EPSILON_NODE(type) ((type) & EPSILON_BIT)
  |  |  ------------------
  |  |  |  |  272|    406|#define EPSILON_BIT 8
  |  |  ------------------
  |  |  |  Branch (377:31): [True: 52, False: 354]
  |  |  ------------------
  ------------------
 1704|    116|    for (i = 0; i < dfa->edests[node].nelem; ++i)
  ------------------
  |  Branch (1704:17): [True: 64, False: 52]
  ------------------
 1705|     64|      {
 1706|     64|	re_node_set eclosure_elem;
 1707|     64|	Idx edest = dfa->edests[node].elems[i];
 1708|       |	/* If calculating the epsilon closure of 'edest' is in progress,
 1709|       |	   return intermediate result.  */
 1710|     64|	if (dfa->eclosures[edest].nelem == -1)
  ------------------
  |  Branch (1710:6): [True: 0, False: 64]
  ------------------
 1711|      0|	  {
 1712|      0|	    incomplete = true;
 1713|      0|	    continue;
 1714|      0|	  }
 1715|       |	/* If we haven't calculated the epsilon closure of 'edest' yet,
 1716|       |	   calculate now. Otherwise use calculated epsilon closure.  */
 1717|     64|	if (dfa->eclosures[edest].nelem == 0)
  ------------------
  |  Branch (1717:6): [True: 28, False: 36]
  ------------------
 1718|     28|	  {
 1719|     28|	    err = calc_eclosure_iter (&eclosure_elem, dfa, edest, false);
 1720|     28|	    if (__glibc_unlikely (err != REG_NOERROR))
  ------------------
  |  Branch (1720:10): [True: 0, False: 28]
  ------------------
 1721|      0|	      break;
 1722|     28|	  }
 1723|     36|	else
 1724|     36|	  eclosure_elem = dfa->eclosures[edest];
 1725|       |	/* Merge the epsilon closure of 'edest'.  */
 1726|     64|	err = re_node_set_merge (&eclosure, &eclosure_elem);
 1727|     64|	if (__glibc_unlikely (err != REG_NOERROR))
  ------------------
  |  Branch (1727:6): [True: 0, False: 64]
  ------------------
 1728|      0|	  break;
 1729|       |	/* If the epsilon closure of 'edest' is incomplete,
 1730|       |	   the epsilon closure of this node is also incomplete.  */
 1731|     64|	if (dfa->eclosures[edest].nelem == 0)
  ------------------
  |  Branch (1731:6): [True: 0, False: 64]
  ------------------
 1732|      0|	  {
 1733|      0|	    incomplete = true;
 1734|      0|	    re_node_set_free (&eclosure_elem);
  ------------------
  |  |  695|      0|#define re_node_set_free(set) re_free ((set)->elems)
  |  |  ------------------
  |  |  |  |  472|      0|#define re_free(p) free (p)
  |  |  ------------------
  ------------------
 1735|      0|	  }
 1736|     64|      }
 1737|       |
 1738|    406|  if (err != REG_NOERROR)
  ------------------
  |  |  376|    406|#define REG_NOERROR	_REG_NOERROR
  ------------------
  |  Branch (1738:7): [True: 0, False: 406]
  ------------------
 1739|    406|    re_node_set_free (&eclosure);
  ------------------
  |  |  695|      0|#define re_node_set_free(set) re_free ((set)->elems)
  |  |  ------------------
  |  |  |  |  472|      0|#define re_free(p) free (p)
  |  |  ------------------
  ------------------
 1740|    406|  else
 1741|    406|    {
 1742|    406|      if (incomplete && !root)
  ------------------
  |  Branch (1742:11): [True: 0, False: 406]
  |  Branch (1742:25): [True: 0, False: 0]
  ------------------
 1743|      0|	dfa->eclosures[node].nelem = 0;
 1744|    406|      else
 1745|    406|	dfa->eclosures[node] = eclosure;
 1746|    406|      *new_set = eclosure;
 1747|    406|    }
 1748|       |
 1749|    406|  return err;
 1750|    406|}
regex.c:calc_inveclosure:
 1610|      4|{
 1611|      4|  Idx src, idx;
 1612|      4|  bool ok;
 1613|    156|  for (idx = 0; idx < dfa->nodes_len; ++idx)
  ------------------
  |  Branch (1613:17): [True: 152, False: 4]
  ------------------
 1614|    152|    re_node_set_init_empty (dfa->inveclosures + idx);
  ------------------
  |  |  691|    152|#define re_node_set_init_empty(set) memset (set, '\0', sizeof (re_node_set))
  ------------------
 1615|       |
 1616|    156|  for (src = 0; src < dfa->nodes_len; ++src)
  ------------------
  |  Branch (1616:17): [True: 152, False: 4]
  ------------------
 1617|    152|    {
 1618|    152|      Idx *elems = dfa->eclosures[src].elems;
 1619|    420|      for (idx = 0; idx < dfa->eclosures[src].nelem; ++idx)
  ------------------
  |  Branch (1619:21): [True: 268, False: 152]
  ------------------
 1620|    268|	{
 1621|    268|	  ok = re_node_set_insert_last (dfa->inveclosures + elems[idx], src);
 1622|    268|	  if (__glibc_unlikely (! ok))
  ------------------
  |  Branch (1622:8): [True: 0, False: 268]
  ------------------
 1623|      0|	    return REG_ESPACE;
  ------------------
  |  |  388|      0|#define REG_ESPACE	_REG_ESPACE
  ------------------
 1624|    268|	}
 1625|    152|    }
 1626|       |
 1627|      4|  return REG_NOERROR;
  ------------------
  |  |  376|      4|#define REG_NOERROR	_REG_NOERROR
  ------------------
 1628|      4|}
regex.c:create_initial_state:
  981|     93|{
  982|     93|  Idx first, i;
  983|     93|  reg_errcode_t err;
  984|     93|  re_node_set init_nodes;
  985|       |
  986|       |  /* Initial states have the epsilon closure of the node which is
  987|       |     the first node of the regular expression.  */
  988|     93|  first = dfa->str_tree->first->node_idx;
  989|     93|  dfa->init_node = first;
  990|     93|  err = re_node_set_init_copy (&init_nodes, dfa->eclosures + first);
  991|     93|  if (__glibc_unlikely (err != REG_NOERROR))
  ------------------
  |  Branch (991:7): [True: 0, False: 93]
  ------------------
  992|      0|    return err;
  993|       |
  994|       |  /* The back-references which are in initial states can epsilon transit,
  995|       |     since in this case all of the subexpressions can be null.
  996|       |     Then we add epsilon closures of the nodes which are the next nodes of
  997|       |     the back-references.  */
  998|     93|  if (dfa->nbackref > 0)
  ------------------
  |  Branch (998:7): [True: 0, False: 93]
  ------------------
  999|      0|    for (i = 0; i < init_nodes.nelem; ++i)
  ------------------
  |  Branch (999:17): [True: 0, False: 0]
  ------------------
 1000|      0|      {
 1001|      0|	Idx node_idx = init_nodes.elems[i];
 1002|      0|	re_token_type_t type = dfa->nodes[node_idx].type;
 1003|       |
 1004|      0|	Idx clexp_idx;
 1005|      0|	if (type != OP_BACK_REF)
  ------------------
  |  Branch (1005:6): [True: 0, False: 0]
  ------------------
 1006|      0|	  continue;
 1007|      0|	for (clexp_idx = 0; clexp_idx < init_nodes.nelem; ++clexp_idx)
  ------------------
  |  Branch (1007:22): [True: 0, False: 0]
  ------------------
 1008|      0|	  {
 1009|      0|	    re_token_t *clexp_node;
 1010|      0|	    clexp_node = dfa->nodes + init_nodes.elems[clexp_idx];
 1011|      0|	    if (clexp_node->type == OP_CLOSE_SUBEXP
  ------------------
  |  Branch (1011:10): [True: 0, False: 0]
  ------------------
 1012|      0|		&& clexp_node->opr.idx == dfa->nodes[node_idx].opr.idx)
  ------------------
  |  Branch (1012:6): [True: 0, False: 0]
  ------------------
 1013|      0|	      break;
 1014|      0|	  }
 1015|      0|	if (clexp_idx == init_nodes.nelem)
  ------------------
  |  Branch (1015:6): [True: 0, False: 0]
  ------------------
 1016|      0|	  continue;
 1017|       |
 1018|      0|	if (type == OP_BACK_REF)
  ------------------
  |  Branch (1018:6): [True: 0, False: 0]
  ------------------
 1019|      0|	  {
 1020|      0|	    Idx dest_idx = dfa->edests[node_idx].elems[0];
 1021|      0|	    if (!re_node_set_contains (&init_nodes, dest_idx))
  ------------------
  |  Branch (1021:10): [True: 0, False: 0]
  ------------------
 1022|      0|	      {
 1023|      0|		err
 1024|      0|                  = re_node_set_merge (&init_nodes, dfa->eclosures + dest_idx);
 1025|      0|		if (err != REG_NOERROR)
  ------------------
  |  |  376|      0|#define REG_NOERROR	_REG_NOERROR
  ------------------
  |  Branch (1025:7): [True: 0, False: 0]
  ------------------
 1026|      0|		  break;
 1027|      0|		i = 0;
 1028|      0|	      }
 1029|      0|	  }
 1030|      0|      }
 1031|       |
 1032|       |  /* It must be the first time to invoke acquire_state.  */
 1033|     93|  dfa->init_state
 1034|     93|    = (err == REG_NOERROR
  ------------------
  |  |  376|     93|#define REG_NOERROR	_REG_NOERROR
  ------------------
  |  Branch (1034:8): [True: 93, False: 0]
  ------------------
 1035|     93|       ? re_acquire_state_context (&err, dfa, &init_nodes, 0)
 1036|     93|       : NULL);
 1037|     93|  if (__glibc_unlikely (dfa->init_state == NULL))
  ------------------
  |  Branch (1037:7): [True: 0, False: 93]
  ------------------
 1038|      0|    {
 1039|       |      /* Don't check ERR here, as the initial state must not be null.  */
 1040|      0|    }
 1041|     93|  else if (dfa->init_state->has_constraint)
  ------------------
  |  Branch (1041:12): [True: 0, False: 93]
  ------------------
 1042|      0|    {
 1043|      0|      dfa->init_state_word = re_acquire_state_context (&err, dfa, &init_nodes,
 1044|      0|						       CONTEXT_WORD);
  ------------------
  |  |  500|      0|#define CONTEXT_WORD 1
  ------------------
 1045|      0|      dfa->init_state_nl = re_acquire_state_context (&err, dfa, &init_nodes,
 1046|      0|						     CONTEXT_NEWLINE);
  ------------------
  |  |  501|      0|#define CONTEXT_NEWLINE (CONTEXT_WORD << 1)
  |  |  ------------------
  |  |  |  |  500|      0|#define CONTEXT_WORD 1
  |  |  ------------------
  ------------------
 1047|      0|      dfa->init_state_begbuf = re_acquire_state_context (&err, dfa,
 1048|      0|							 &init_nodes,
 1049|      0|							 CONTEXT_NEWLINE
  ------------------
  |  |  501|      0|#define CONTEXT_NEWLINE (CONTEXT_WORD << 1)
  |  |  ------------------
  |  |  |  |  500|      0|#define CONTEXT_WORD 1
  |  |  ------------------
  ------------------
 1050|      0|							 | CONTEXT_BEGBUF);
  ------------------
  |  |  502|      0|#define CONTEXT_BEGBUF (CONTEXT_NEWLINE << 1)
  |  |  ------------------
  |  |  |  |  501|      0|#define CONTEXT_NEWLINE (CONTEXT_WORD << 1)
  |  |  |  |  ------------------
  |  |  |  |  |  |  500|      0|#define CONTEXT_WORD 1
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1051|      0|    }
 1052|     93|  else
 1053|     93|    dfa->init_state_word = dfa->init_state_nl
 1054|     93|      = dfa->init_state_begbuf = dfa->init_state;
 1055|       |
 1056|     93|  re_node_set_free (&init_nodes);
  ------------------
  |  |  695|     93|#define re_node_set_free(set) re_free ((set)->elems)
  |  |  ------------------
  |  |  |  |  472|     93|#define re_free(p) free (p)
  |  |  ------------------
  ------------------
 1057|     93|  return err;
 1058|     93|}

regex.c:free_state:
 1580|    198|{
 1581|    198|  re_node_set_free (&state->non_eps_nodes);
  ------------------
  |  |  695|    198|#define re_node_set_free(set) re_free ((set)->elems)
  |  |  ------------------
  |  |  |  |  472|    198|#define re_free(p) free (p)
  |  |  ------------------
  ------------------
 1582|    198|  re_node_set_free (&state->inveclosure);
  ------------------
  |  |  695|    198|#define re_node_set_free(set) re_free ((set)->elems)
  |  |  ------------------
  |  |  |  |  472|    198|#define re_free(p) free (p)
  |  |  ------------------
  ------------------
 1583|    198|  if (state->entrance_nodes != &state->nodes)
  ------------------
  |  Branch (1583:7): [True: 0, False: 198]
  ------------------
 1584|      0|    {
 1585|      0|      re_node_set_free (state->entrance_nodes);
  ------------------
  |  |  695|      0|#define re_node_set_free(set) re_free ((set)->elems)
  |  |  ------------------
  |  |  |  |  472|      0|#define re_free(p) free (p)
  |  |  ------------------
  ------------------
 1586|      0|      re_free (state->entrance_nodes);
  ------------------
  |  |  472|      0|#define re_free(p) free (p)
  ------------------
 1587|      0|    }
 1588|    198|  re_node_set_free (&state->nodes);
  ------------------
  |  |  695|    198|#define re_node_set_free(set) re_free ((set)->elems)
  |  |  ------------------
  |  |  |  |  472|    198|#define re_free(p) free (p)
  |  |  ------------------
  ------------------
 1589|    198|  re_free (state->word_trtable);
  ------------------
  |  |  472|    198|#define re_free(p) free (p)
  ------------------
 1590|    198|  re_free (state->trtable);
  ------------------
  |  |  472|    198|#define re_free(p) free (p)
  ------------------
 1591|    198|  re_free (state);
  ------------------
  |  |  472|    198|#define re_free(p) free (p)
  ------------------
 1592|    198|}
regex.c:re_string_construct:
   77|    103|{
   78|    103|  reg_errcode_t ret;
   79|    103|  memset (pstr, '\0', sizeof (re_string_t));
   80|    103|  re_string_construct_common (str, len, pstr, trans, icase, dfa);
   81|       |
   82|    103|  if (len > 0)
  ------------------
  |  Branch (82:7): [True: 103, False: 0]
  ------------------
   83|    103|    {
   84|    103|      ret = re_string_realloc_buffers (pstr, len + 1);
   85|    103|      if (__glibc_unlikely (ret != REG_NOERROR))
  ------------------
  |  Branch (85:11): [True: 0, False: 103]
  ------------------
   86|      0|	return ret;
   87|    103|    }
   88|    103|  pstr->mbs = pstr->mbs_allocated ? pstr->mbs : (unsigned char *) str;
  ------------------
  |  Branch (88:15): [True: 0, False: 103]
  ------------------
   89|       |
   90|    103|  if (icase)
  ------------------
  |  Branch (90:7): [True: 0, False: 103]
  ------------------
   91|      0|    {
   92|      0|      if (dfa->mb_cur_max > 1)
  ------------------
  |  Branch (92:11): [True: 0, False: 0]
  ------------------
   93|      0|	{
   94|      0|	  while (1)
  ------------------
  |  Branch (94:11): [True: 0, Folded]
  ------------------
   95|      0|	    {
   96|      0|	      ret = build_wcs_upper_buffer (pstr);
   97|      0|	      if (__glibc_unlikely (ret != REG_NOERROR))
  ------------------
  |  Branch (97:12): [True: 0, False: 0]
  ------------------
   98|      0|		return ret;
   99|      0|	      if (pstr->valid_raw_len >= len)
  ------------------
  |  Branch (99:12): [True: 0, False: 0]
  ------------------
  100|      0|		break;
  101|      0|	      if (pstr->bufs_len > pstr->valid_len + dfa->mb_cur_max)
  ------------------
  |  Branch (101:12): [True: 0, False: 0]
  ------------------
  102|      0|		break;
  103|      0|	      ret = re_string_realloc_buffers (pstr, pstr->bufs_len * 2);
  104|      0|	      if (__glibc_unlikely (ret != REG_NOERROR))
  ------------------
  |  Branch (104:12): [True: 0, False: 0]
  ------------------
  105|      0|		return ret;
  106|      0|	    }
  107|      0|	}
  108|      0|      else
  109|      0|	build_upper_buffer (pstr);
  110|      0|    }
  111|    103|  else
  112|    103|    {
  113|    103|      if (dfa->mb_cur_max > 1)
  ------------------
  |  Branch (113:11): [True: 0, False: 103]
  ------------------
  114|      0|	build_wcs_buffer (pstr);
  115|    103|      else
  116|    103|	{
  117|    103|	  if (trans != NULL)
  ------------------
  |  Branch (117:8): [True: 0, False: 103]
  ------------------
  118|      0|	    re_string_translate_buffer (pstr);
  119|    103|	  else
  120|    103|	    {
  121|    103|	      pstr->valid_len = pstr->bufs_len;
  122|    103|	      pstr->valid_raw_len = pstr->bufs_len;
  123|    103|	    }
  124|    103|	}
  125|    103|    }
  126|       |
  127|    103|  return REG_NOERROR;
  ------------------
  |  |  376|    103|#define REG_NOERROR	_REG_NOERROR
  ------------------
  128|    103|}
regex.c:re_string_construct_common:
  175|    160|{
  176|    160|  pstr->raw_mbs = (const unsigned char *) str;
  177|    160|  pstr->len = len;
  178|    160|  pstr->raw_len = len;
  179|    160|  pstr->trans = trans;
  180|    160|  pstr->icase = icase;
  181|    160|  pstr->mbs_allocated = (trans != NULL || icase);
  ------------------
  |  Branch (181:26): [True: 0, False: 160]
  |  Branch (181:43): [True: 0, False: 160]
  ------------------
  182|    160|  pstr->mb_cur_max = dfa->mb_cur_max;
  183|    160|  pstr->is_utf8 = dfa->is_utf8;
  184|    160|  pstr->map_notascii = dfa->map_notascii;
  185|    160|  pstr->stop = pstr->len;
  186|    160|  pstr->raw_stop = pstr->stop;
  187|    160|}
regex.c:re_string_realloc_buffers:
  135|    160|{
  136|    160|  if (pstr->mb_cur_max > 1)
  ------------------
  |  Branch (136:7): [True: 0, False: 160]
  ------------------
  137|      0|    {
  138|      0|      wint_t *new_wcs;
  139|       |
  140|       |      /* Avoid overflow in realloc.  */
  141|      0|      const size_t max_object_size = MAX (sizeof (wint_t), sizeof (Idx));
  ------------------
  |  |  460|      0|# define MAX(a,b) ((a) < (b) ? (b) : (a))
  |  |  ------------------
  |  |  |  Branch (460:20): [True: 0, Folded]
  |  |  ------------------
  ------------------
  142|      0|      if (__glibc_unlikely (MIN (IDX_MAX, SIZE_MAX / max_object_size)
  ------------------
  |  Branch (142:11): [Folded, False: 0]
  |  Branch (142:11): [True: 0, False: 0]
  ------------------
  143|      0|			    < new_buf_len))
  144|      0|	return REG_ESPACE;
  ------------------
  |  |  388|      0|#define REG_ESPACE	_REG_ESPACE
  ------------------
  145|       |
  146|      0|      new_wcs = re_realloc (pstr->wcs, wint_t, new_buf_len);
  ------------------
  |  |  471|      0|#define re_realloc(p,t,n) ((t *) realloc (p, (n) * sizeof (t)))
  ------------------
  147|      0|      if (__glibc_unlikely (new_wcs == NULL))
  ------------------
  |  Branch (147:11): [True: 0, False: 0]
  ------------------
  148|      0|	return REG_ESPACE;
  ------------------
  |  |  388|      0|#define REG_ESPACE	_REG_ESPACE
  ------------------
  149|      0|      pstr->wcs = new_wcs;
  150|      0|      if (pstr->offsets != NULL)
  ------------------
  |  Branch (150:11): [True: 0, False: 0]
  ------------------
  151|      0|	{
  152|      0|	  Idx *new_offsets = re_realloc (pstr->offsets, Idx, new_buf_len);
  ------------------
  |  |  471|      0|#define re_realloc(p,t,n) ((t *) realloc (p, (n) * sizeof (t)))
  ------------------
  153|      0|	  if (__glibc_unlikely (new_offsets == NULL))
  ------------------
  |  Branch (153:8): [True: 0, False: 0]
  ------------------
  154|      0|	    return REG_ESPACE;
  ------------------
  |  |  388|      0|#define REG_ESPACE	_REG_ESPACE
  ------------------
  155|      0|	  pstr->offsets = new_offsets;
  156|      0|	}
  157|      0|    }
  158|    160|  if (pstr->mbs_allocated)
  ------------------
  |  Branch (158:7): [True: 0, False: 160]
  ------------------
  159|      0|    {
  160|      0|      unsigned char *new_mbs = re_realloc (pstr->mbs, unsigned char,
  ------------------
  |  |  471|      0|#define re_realloc(p,t,n) ((t *) realloc (p, (n) * sizeof (t)))
  ------------------
  161|      0|					   new_buf_len);
  162|      0|      if (__glibc_unlikely (new_mbs == NULL))
  ------------------
  |  Branch (162:11): [True: 0, False: 0]
  ------------------
  163|      0|	return REG_ESPACE;
  ------------------
  |  |  388|      0|#define REG_ESPACE	_REG_ESPACE
  ------------------
  164|      0|      pstr->mbs = new_mbs;
  165|      0|    }
  166|    160|  pstr->bufs_len = new_buf_len;
  167|    160|  return REG_NOERROR;
  ------------------
  |  |  376|    160|#define REG_NOERROR	_REG_NOERROR
  ------------------
  168|    160|}
regex.c:re_string_destruct:
  884|    160|{
  885|    160|  re_free (pstr->wcs);
  ------------------
  |  |  472|    160|#define re_free(p) free (p)
  ------------------
  886|    160|  re_free (pstr->offsets);
  ------------------
  |  |  472|    160|#define re_free(p) free (p)
  ------------------
  887|    160|  if (pstr->mbs_allocated)
  ------------------
  |  Branch (887:7): [True: 0, False: 160]
  ------------------
  888|      0|    re_free (pstr->mbs);
  ------------------
  |  |  472|      0|#define re_free(p) free (p)
  ------------------
  889|    160|}
regex.c:re_string_peek_byte_case:
  819|    116|{
  820|    116|  int ch;
  821|    116|  Idx off;
  822|       |
  823|       |  /* Handle the common (easiest) cases first.  */
  824|    116|  if (__glibc_likely (!pstr->mbs_allocated))
  ------------------
  |  Branch (824:7): [True: 116, False: 0]
  ------------------
  825|    116|    return re_string_peek_byte (pstr, idx);
  ------------------
  |  |  443|    116|  ((pstr)->mbs[(pstr)->cur_idx + offset])
  ------------------
  826|       |
  827|      0|  if (pstr->mb_cur_max > 1
  ------------------
  |  Branch (827:7): [True: 0, False: 0]
  ------------------
  828|      0|      && ! re_string_is_single_byte_char (pstr, pstr->cur_idx + idx))
  ------------------
  |  |  449|      0|  ((pstr)->wcs[idx] != WEOF && ((pstr)->valid_len == (idx) + 1 \
  |  |  ------------------
  |  |  |  Branch (449:4): [True: 0, False: 0]
  |  |  |  Branch (449:33): [True: 0, False: 0]
  |  |  ------------------
  |  |  450|      0|				|| (pstr)->wcs[(idx) + 1] != WEOF))
  |  |  ------------------
  |  |  |  Branch (450:8): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  829|      0|    return re_string_peek_byte (pstr, idx);
  ------------------
  |  |  443|      0|  ((pstr)->mbs[(pstr)->cur_idx + offset])
  ------------------
  830|       |
  831|      0|  off = pstr->cur_idx + idx;
  832|      0|  if (pstr->offsets_needed)
  ------------------
  |  Branch (832:7): [True: 0, False: 0]
  ------------------
  833|      0|    off = pstr->offsets[off];
  834|       |
  835|      0|  ch = pstr->raw_mbs[pstr->raw_mbs_idx + off];
  836|       |
  837|       |  /* Ensure that e.g. for tr_TR.UTF-8 BACKSLASH DOTLESS SMALL LETTER I
  838|       |     this function returns CAPITAL LETTER I instead of first byte of
  839|       |     DOTLESS SMALL LETTER I.  The latter would confuse the parser,
  840|       |     since peek_byte_case doesn't advance cur_idx in any way.  */
  841|      0|  if (pstr->offsets_needed && !isascii (ch))
  ------------------
  |  |   88|      0|# define isascii(c) (((c) & ~0x7f) == 0)
  ------------------
  |  Branch (841:7): [True: 0, False: 0]
  |  Branch (841:31): [True: 0, False: 0]
  ------------------
  842|      0|    return re_string_peek_byte (pstr, idx);
  ------------------
  |  |  443|      0|  ((pstr)->mbs[(pstr)->cur_idx + offset])
  ------------------
  843|       |
  844|      0|  return ch;
  845|      0|}
regex.c:re_dfa_add_node:
 1386|    406|{
 1387|    406|  if (__glibc_unlikely (dfa->nodes_len >= dfa->nodes_alloc))
  ------------------
  |  Branch (1387:7): [True: 0, False: 406]
  ------------------
 1388|      0|    {
 1389|      0|      size_t new_nodes_alloc = dfa->nodes_alloc * 2;
 1390|      0|      Idx *new_nexts, *new_indices;
 1391|      0|      re_node_set *new_edests, *new_eclosures;
 1392|      0|      re_token_t *new_nodes;
 1393|       |
 1394|       |      /* Avoid overflows in realloc.  */
 1395|      0|      const size_t max_object_size = MAX (sizeof (re_token_t),
  ------------------
  |  |  460|      0|# define MAX(a,b) ((a) < (b) ? (b) : (a))
  |  |  ------------------
  |  |  |  Branch (460:20): [True: 0, Folded]
  |  |  |  Branch (460:27): [Folded, False: 0]
  |  |  |  Branch (460:33): [Folded, False: 0]
  |  |  ------------------
  ------------------
 1396|      0|					  MAX (sizeof (re_node_set),
 1397|      0|					       sizeof (Idx)));
 1398|      0|      if (__glibc_unlikely (MIN (IDX_MAX, SIZE_MAX / max_object_size)
  ------------------
  |  Branch (1398:11): [Folded, False: 0]
  |  Branch (1398:11): [True: 0, False: 0]
  ------------------
 1399|      0|			    < new_nodes_alloc))
 1400|      0|	return -1;
 1401|       |
 1402|      0|      new_nodes = re_realloc (dfa->nodes, re_token_t, new_nodes_alloc);
  ------------------
  |  |  471|      0|#define re_realloc(p,t,n) ((t *) realloc (p, (n) * sizeof (t)))
  ------------------
 1403|      0|      if (__glibc_unlikely (new_nodes == NULL))
  ------------------
  |  Branch (1403:11): [True: 0, False: 0]
  ------------------
 1404|      0|	return -1;
 1405|      0|      dfa->nodes = new_nodes;
 1406|      0|      dfa->nodes_alloc = new_nodes_alloc;
 1407|      0|      new_nexts = re_realloc (dfa->nexts, Idx, new_nodes_alloc);
  ------------------
  |  |  471|      0|#define re_realloc(p,t,n) ((t *) realloc (p, (n) * sizeof (t)))
  ------------------
 1408|      0|      if (new_nexts != NULL)
  ------------------
  |  Branch (1408:11): [True: 0, False: 0]
  ------------------
 1409|      0|	dfa->nexts = new_nexts;
 1410|      0|      new_indices = re_realloc (dfa->org_indices, Idx, new_nodes_alloc);
  ------------------
  |  |  471|      0|#define re_realloc(p,t,n) ((t *) realloc (p, (n) * sizeof (t)))
  ------------------
 1411|      0|      if (new_indices != NULL)
  ------------------
  |  Branch (1411:11): [True: 0, False: 0]
  ------------------
 1412|      0|	dfa->org_indices = new_indices;
 1413|      0|      new_edests = re_realloc (dfa->edests, re_node_set, new_nodes_alloc);
  ------------------
  |  |  471|      0|#define re_realloc(p,t,n) ((t *) realloc (p, (n) * sizeof (t)))
  ------------------
 1414|      0|      if (new_edests != NULL)
  ------------------
  |  Branch (1414:11): [True: 0, False: 0]
  ------------------
 1415|      0|	dfa->edests = new_edests;
 1416|      0|      new_eclosures = re_realloc (dfa->eclosures, re_node_set, new_nodes_alloc);
  ------------------
  |  |  471|      0|#define re_realloc(p,t,n) ((t *) realloc (p, (n) * sizeof (t)))
  ------------------
 1417|      0|      if (new_eclosures != NULL)
  ------------------
  |  Branch (1417:11): [True: 0, False: 0]
  ------------------
 1418|      0|	dfa->eclosures = new_eclosures;
 1419|      0|      if (__glibc_unlikely (new_nexts == NULL || new_indices == NULL
  ------------------
  |  Branch (1419:11): [True: 0, False: 0]
  |  Branch (1419:11): [True: 0, False: 0]
  |  Branch (1419:11): [True: 0, False: 0]
  |  Branch (1419:11): [True: 0, False: 0]
  |  Branch (1419:11): [True: 0, False: 0]
  ------------------
 1420|      0|			    || new_edests == NULL || new_eclosures == NULL))
 1421|      0|	return -1;
 1422|      0|    }
 1423|    406|  dfa->nodes[dfa->nodes_len] = token;
 1424|    406|  dfa->nodes[dfa->nodes_len].constraint = 0;
 1425|    406|  dfa->nodes[dfa->nodes_len].accept_mb =
 1426|    406|    ((token.type == OP_PERIOD && dfa->mb_cur_max > 1)
  ------------------
  |  Branch (1426:7): [True: 0, False: 406]
  |  Branch (1426:34): [True: 0, False: 0]
  ------------------
 1427|    406|     || token.type == COMPLEX_BRACKET);
  ------------------
  |  Branch (1427:9): [True: 0, False: 406]
  ------------------
 1428|    406|  dfa->nexts[dfa->nodes_len] = -1;
 1429|    406|  re_node_set_init_empty (dfa->edests + dfa->nodes_len);
  ------------------
  |  |  691|    406|#define re_node_set_init_empty(set) memset (set, '\0', sizeof (re_node_set))
  ------------------
 1430|    406|  re_node_set_init_empty (dfa->eclosures + dfa->nodes_len);
  ------------------
  |  |  691|    406|#define re_node_set_init_empty(set) memset (set, '\0', sizeof (re_node_set))
  ------------------
 1431|    406|  return dfa->nodes_len++;
 1432|    406|}
regex.c:re_node_set_init_2:
  964|     12|{
  965|     12|  set->alloc = 2;
  966|     12|  set->elems = re_malloc (Idx, 2);
  ------------------
  |  |  467|     12|# define re_malloc(t,n) ((t *) malloc ((n) * sizeof (t)))
  ------------------
  967|     12|  if (__glibc_unlikely (set->elems == NULL))
  ------------------
  |  Branch (967:7): [True: 0, False: 12]
  ------------------
  968|      0|    return REG_ESPACE;
  ------------------
  |  |  388|      0|#define REG_ESPACE	_REG_ESPACE
  ------------------
  969|     12|  if (elem1 == elem2)
  ------------------
  |  Branch (969:7): [True: 0, False: 12]
  ------------------
  970|      0|    {
  971|      0|      set->nelem = 1;
  972|      0|      set->elems[0] = elem1;
  973|      0|    }
  974|     12|  else
  975|     12|    {
  976|     12|      set->nelem = 2;
  977|     12|      if (elem1 < elem2)
  ------------------
  |  Branch (977:11): [True: 12, False: 0]
  ------------------
  978|     12|	{
  979|     12|	  set->elems[0] = elem1;
  980|     12|	  set->elems[1] = elem2;
  981|     12|	}
  982|      0|      else
  983|      0|	{
  984|      0|	  set->elems[0] = elem2;
  985|      0|	  set->elems[1] = elem1;
  986|      0|	}
  987|     12|    }
  988|     12|  return REG_NOERROR;
  ------------------
  |  |  376|     12|#define REG_NOERROR	_REG_NOERROR
  ------------------
  989|     12|}
regex.c:re_node_set_init_1:
  948|    145|{
  949|    145|  set->alloc = 1;
  950|    145|  set->nelem = 1;
  951|    145|  set->elems = re_malloc (Idx, 1);
  ------------------
  |  |  467|    145|# define re_malloc(t,n) ((t *) malloc ((n) * sizeof (t)))
  ------------------
  952|    145|  if (__glibc_unlikely (set->elems == NULL))
  ------------------
  |  Branch (952:7): [True: 0, False: 145]
  ------------------
  953|      0|    {
  954|      0|      set->alloc = set->nelem = 0;
  955|      0|      return REG_ESPACE;
  ------------------
  |  |  388|      0|#define REG_ESPACE	_REG_ESPACE
  ------------------
  956|      0|    }
  957|    145|  set->elems[0] = elem;
  958|    145|  return REG_NOERROR;
  ------------------
  |  |  376|    145|#define REG_NOERROR	_REG_NOERROR
  ------------------
  959|    145|}
regex.c:re_node_set_alloc:
  936|    701|{
  937|    701|  set->alloc = size;
  938|    701|  set->nelem = 0;
  939|    701|  set->elems = re_malloc (Idx, size);
  ------------------
  |  |  467|    701|# define re_malloc(t,n) ((t *) malloc ((n) * sizeof (t)))
  ------------------
  940|    701|  if (__glibc_unlikely (set->elems == NULL))
  ------------------
  |  Branch (940:7): [True: 0, False: 701]
  ------------------
  941|      0|    return REG_ESPACE;
  ------------------
  |  |  388|      0|#define REG_ESPACE	_REG_ESPACE
  ------------------
  942|    701|  return REG_NOERROR;
  ------------------
  |  |  376|    701|#define REG_NOERROR	_REG_NOERROR
  ------------------
  943|    701|}
regex.c:re_node_set_insert:
 1250|      4|{
 1251|      4|  Idx idx;
 1252|       |  /* In case the set is empty.  */
 1253|      4|  if (set->alloc == 0)
  ------------------
  |  Branch (1253:7): [True: 0, False: 4]
  ------------------
 1254|      0|    return __glibc_likely (re_node_set_init_1 (set, elem) == REG_NOERROR);
 1255|       |
 1256|      4|  if (__glibc_unlikely (set->nelem) == 0)
  ------------------
  |  Branch (1256:7): [True: 0, False: 4]
  ------------------
 1257|      0|    {
 1258|       |      /* Although we already guaranteed above that set->alloc != 0 and
 1259|       |         therefore set->elems != NULL, add a debug assertion to pacify
 1260|       |         GCC 11.2 -fanalyzer.  */
 1261|      0|      DEBUG_ASSERT (set->elems);
  ------------------
  |  |   45|      0|# define DEBUG_ASSERT(x) assume (x)
  |  |  ------------------
  |  |  |  |  375|      0|# define assume(R) ((R) ? (void) 0 : __builtin_unreachable ())
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (375:21): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1262|      0|      set->elems[0] = elem;
 1263|      0|      ++set->nelem;
 1264|      0|      return true;
 1265|      0|    }
 1266|       |
 1267|       |  /* Realloc if we need.  */
 1268|      4|  if (set->alloc == set->nelem)
  ------------------
  |  Branch (1268:7): [True: 4, False: 0]
  ------------------
 1269|      4|    {
 1270|      4|      Idx *new_elems;
 1271|      4|      set->alloc = set->alloc * 2;
 1272|      4|      new_elems = re_realloc (set->elems, Idx, set->alloc);
  ------------------
  |  |  471|      4|#define re_realloc(p,t,n) ((t *) realloc (p, (n) * sizeof (t)))
  ------------------
 1273|      4|      if (__glibc_unlikely (new_elems == NULL))
  ------------------
  |  Branch (1273:11): [True: 0, False: 4]
  ------------------
 1274|      0|	return false;
 1275|      4|      set->elems = new_elems;
 1276|      4|    }
 1277|       |
 1278|       |  /* Move the elements which follows the new element.  Test the
 1279|       |     first element separately to skip a check in the inner loop.  */
 1280|      4|  if (elem < set->elems[0])
  ------------------
  |  Branch (1280:7): [True: 0, False: 4]
  ------------------
 1281|      0|    {
 1282|      0|      for (idx = set->nelem; idx > 0; idx--)
  ------------------
  |  Branch (1282:30): [True: 0, False: 0]
  ------------------
 1283|      0|	set->elems[idx] = set->elems[idx - 1];
 1284|      0|    }
 1285|      4|  else
 1286|      4|    {
 1287|      4|      for (idx = set->nelem; set->elems[idx - 1] > elem; idx--)
  ------------------
  |  Branch (1287:30): [True: 0, False: 4]
  ------------------
 1288|      0|        {
 1289|      0|          set->elems[idx] = set->elems[idx - 1];
 1290|       |          /* Although we already guaranteed that idx is at least 2 here,
 1291|       |             add an assertion to pacify GCC 16.1.1 -Wanalyzer-out-of-bounds
 1292|       |             when _REGEX_AVOID_UCHAR_H is defined.  */
 1293|      0|          DEBUG_ASSERT (1 < idx);
  ------------------
  |  |   45|      0|# define DEBUG_ASSERT(x) assume (x)
  |  |  ------------------
  |  |  |  |  375|      0|# define assume(R) ((R) ? (void) 0 : __builtin_unreachable ())
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (375:21): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1294|      0|        }
 1295|       |      /* Already in set.  Return early.  */
 1296|      4|      if (__glibc_unlikely (set->elems[idx - 1] == elem))
  ------------------
  |  Branch (1296:11): [True: 0, False: 4]
  ------------------
 1297|      0|	return true;
 1298|      4|    }
 1299|       |
 1300|       |  /* Insert the new element.  */
 1301|      4|  set->elems[idx] = elem;
 1302|      4|  ++set->nelem;
 1303|       |  return true;
 1304|      4|}
regex.c:re_node_set_merge:
 1163|    173|{
 1164|    173|  Idx is, id, sbase, delta;
 1165|    173|  if (src == NULL || src->nelem == 0)
  ------------------
  |  Branch (1165:7): [True: 0, False: 173]
  |  Branch (1165:22): [True: 0, False: 173]
  ------------------
 1166|      0|    return REG_NOERROR;
  ------------------
  |  |  376|      0|#define REG_NOERROR	_REG_NOERROR
  ------------------
 1167|    173|  if (dest->alloc < 2 * src->nelem + dest->nelem)
  ------------------
  |  Branch (1167:7): [True: 60, False: 113]
  ------------------
 1168|     60|    {
 1169|     60|      Idx new_alloc = 2 * (src->nelem + dest->alloc);
 1170|     60|      Idx *new_buffer = re_realloc (dest->elems, Idx, new_alloc);
  ------------------
  |  |  471|     60|#define re_realloc(p,t,n) ((t *) realloc (p, (n) * sizeof (t)))
  ------------------
 1171|     60|      if (__glibc_unlikely (new_buffer == NULL))
  ------------------
  |  Branch (1171:11): [True: 0, False: 60]
  ------------------
 1172|      0|	return REG_ESPACE;
  ------------------
  |  |  388|      0|#define REG_ESPACE	_REG_ESPACE
  ------------------
 1173|     60|      dest->elems = new_buffer;
 1174|     60|      dest->alloc = new_alloc;
 1175|     60|    }
 1176|       |
 1177|    173|  if (__glibc_unlikely (dest->nelem == 0))
  ------------------
  |  Branch (1177:7): [True: 105, False: 68]
  ------------------
 1178|    105|    {
 1179|       |      /* Although we already guaranteed above that dest->alloc != 0 and
 1180|       |         therefore dest->elems != NULL, add a debug assertion to pacify
 1181|       |         GCC 11.2.1's -fanalyzer.  */
 1182|    105|      DEBUG_ASSERT (dest->elems);
  ------------------
  |  |   45|    105|# define DEBUG_ASSERT(x) assume (x)
  |  |  ------------------
  |  |  |  |  375|    105|# define assume(R) ((R) ? (void) 0 : __builtin_unreachable ())
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (375:21): [True: 105, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1183|    105|      dest->nelem = src->nelem;
 1184|    105|      memcpy (dest->elems, src->elems, src->nelem * sizeof (Idx));
 1185|    105|      return REG_NOERROR;
  ------------------
  |  |  376|    105|#define REG_NOERROR	_REG_NOERROR
  ------------------
 1186|    105|    }
 1187|       |
 1188|       |  /* Copy into the top of DEST the items of SRC that are not
 1189|       |     found in DEST.  Maybe we could binary search in DEST?  */
 1190|     68|  for (sbase = dest->nelem + 2 * src->nelem,
 1191|    160|       is = src->nelem - 1, id = dest->nelem - 1; is >= 0 && id >= 0; )
  ------------------
  |  Branch (1191:51): [True: 104, False: 56]
  |  Branch (1191:62): [True: 92, False: 12]
  ------------------
 1192|     92|    {
 1193|     92|      if (dest->elems[id] == src->elems[is])
  ------------------
  |  Branch (1193:11): [True: 0, False: 92]
  ------------------
 1194|      0|	is--, id--;
 1195|     92|      else if (dest->elems[id] < src->elems[is])
  ------------------
  |  Branch (1195:16): [True: 68, False: 24]
  ------------------
 1196|     68|	dest->elems[--sbase] = src->elems[is--];
 1197|     24|      else /* if (dest->elems[id] > src->elems[is]) */
 1198|     24|	--id;
 1199|     92|    }
 1200|       |
 1201|     68|  if (is >= 0)
  ------------------
  |  Branch (1201:7): [True: 12, False: 56]
  ------------------
 1202|     12|    {
 1203|       |      /* If DEST is exhausted, the remaining items of SRC must be unique.  */
 1204|     12|      sbase -= is + 1;
 1205|     12|      memcpy (dest->elems + sbase, src->elems, (is + 1) * sizeof (Idx));
 1206|     12|    }
 1207|       |
 1208|     68|  id = dest->nelem - 1;
 1209|     68|  is = dest->nelem + 2 * src->nelem - 1;
 1210|     68|  delta = is - sbase + 1;
 1211|     68|  if (delta == 0)
  ------------------
  |  Branch (1211:7): [True: 0, False: 68]
  ------------------
 1212|      0|    return REG_NOERROR;
  ------------------
  |  |  376|      0|#define REG_NOERROR	_REG_NOERROR
  ------------------
 1213|       |
 1214|       |  /* Now copy.  When DELTA becomes zero, the remaining
 1215|       |     DEST elements are already in place.  */
 1216|     68|  dest->nelem += delta;
 1217|     68|  for (;;)
 1218|     92|    {
 1219|     92|      if (dest->elems[is] > dest->elems[id])
  ------------------
  |  Branch (1219:11): [True: 68, False: 24]
  ------------------
 1220|     68|	{
 1221|       |	  /* Copy from the top.  */
 1222|     68|	  dest->elems[id + delta--] = dest->elems[is--];
 1223|     68|	  if (delta == 0)
  ------------------
  |  Branch (1223:8): [True: 56, False: 12]
  ------------------
 1224|     56|	    break;
 1225|     68|	}
 1226|     24|      else
 1227|     24|	{
 1228|       |	  /* Slide from the bottom.  */
 1229|     24|	  dest->elems[id + delta] = dest->elems[id];
 1230|     24|	  if (--id < 0)
  ------------------
  |  Branch (1230:8): [True: 12, False: 12]
  ------------------
 1231|     12|	    {
 1232|       |	      /* Copy remaining SRC elements.  */
 1233|     12|	      memcpy (dest->elems, dest->elems + sbase,
 1234|     12|		      delta * sizeof (Idx));
 1235|     12|	      break;
 1236|     12|	    }
 1237|     24|	}
 1238|     92|    }
 1239|       |
 1240|     68|  return REG_NOERROR;
  ------------------
  |  |  376|     68|#define REG_NOERROR	_REG_NOERROR
  ------------------
 1241|     68|}
regex.c:re_node_set_insert_last:
 1313|    482|{
 1314|       |  /* Realloc if we need.  */
 1315|    482|  if (set->alloc == set->nelem)
  ------------------
  |  Branch (1315:7): [True: 188, False: 294]
  ------------------
 1316|    188|    {
 1317|    188|      Idx *new_elems;
 1318|    188|      set->alloc = (set->alloc + 1) * 2;
 1319|    188|      new_elems = re_realloc (set->elems, Idx, set->alloc);
  ------------------
  |  |  471|    188|#define re_realloc(p,t,n) ((t *) realloc (p, (n) * sizeof (t)))
  ------------------
 1320|    188|      if (__glibc_unlikely (new_elems == NULL))
  ------------------
  |  Branch (1320:11): [True: 0, False: 188]
  ------------------
 1321|      0|	return false;
 1322|    188|      set->elems = new_elems;
 1323|    188|    }
 1324|       |
 1325|       |  /* Insert the new element.  */
 1326|    482|  set->elems[set->nelem++] = elem;
 1327|       |  return true;
 1328|    482|}
regex.c:re_node_set_init_copy:
  994|    291|{
  995|    291|  dest->nelem = src->nelem;
  996|    291|  if (src->nelem > 0)
  ------------------
  |  Branch (996:7): [True: 291, False: 0]
  ------------------
  997|    291|    {
  998|    291|      dest->alloc = dest->nelem;
  999|    291|      dest->elems = re_malloc (Idx, dest->alloc);
  ------------------
  |  |  467|    291|# define re_malloc(t,n) ((t *) malloc ((n) * sizeof (t)))
  ------------------
 1000|    291|      if (__glibc_unlikely (dest->elems == NULL))
  ------------------
  |  Branch (1000:11): [True: 0, False: 291]
  ------------------
 1001|      0|	{
 1002|      0|	  dest->alloc = dest->nelem = 0;
 1003|      0|	  return REG_ESPACE;
  ------------------
  |  |  388|      0|#define REG_ESPACE	_REG_ESPACE
  ------------------
 1004|      0|	}
 1005|    291|      memcpy (dest->elems, src->elems, src->nelem * sizeof (Idx));
 1006|    291|    }
 1007|      0|  else
 1008|      0|    re_node_set_init_empty (dest);
  ------------------
  |  |  691|      0|#define re_node_set_init_empty(set) memset (set, '\0', sizeof (re_node_set))
  ------------------
 1009|    291|  return REG_NOERROR;
  ------------------
  |  |  376|    291|#define REG_NOERROR	_REG_NOERROR
  ------------------
 1010|    291|}
regex.c:re_acquire_state_context:
 1505|    198|{
 1506|    198|  re_hashval_t hash;
 1507|    198|  re_dfastate_t *new_state;
 1508|    198|  struct re_state_table_entry *spot;
 1509|    198|  Idx i;
 1510|       |#if defined GCC_LINT || defined lint
 1511|       |  /* Suppress bogus uninitialized-variable warnings.  */
 1512|       |  *err = REG_NOERROR;
 1513|       |#endif
 1514|    198|  if (nodes->nelem == 0)
  ------------------
  |  Branch (1514:7): [True: 0, False: 198]
  ------------------
 1515|      0|    {
 1516|      0|      *err = REG_NOERROR;
  ------------------
  |  |  376|      0|#define REG_NOERROR	_REG_NOERROR
  ------------------
 1517|      0|      return NULL;
 1518|      0|    }
 1519|    198|  hash = calc_state_hash (nodes, context);
 1520|    198|  spot = dfa->state_table + (hash & dfa->state_hash_mask);
 1521|       |
 1522|    206|  for (i = 0 ; i < spot->num ; i++)
  ------------------
  |  Branch (1522:16): [True: 8, False: 198]
  ------------------
 1523|      8|    {
 1524|      8|      re_dfastate_t *state = spot->array[i];
 1525|      8|      if (state->hash == hash
  ------------------
  |  Branch (1525:11): [True: 4, False: 4]
  ------------------
 1526|      4|	  && state->context == context
  ------------------
  |  Branch (1526:7): [True: 4, False: 0]
  ------------------
 1527|      4|	  && re_node_set_compare (state->entrance_nodes, nodes))
  ------------------
  |  Branch (1527:7): [True: 0, False: 4]
  ------------------
 1528|      0|	return state;
 1529|      8|    }
 1530|       |  /* There are no appropriate state in 'dfa', create the new one.  */
 1531|    198|  new_state = create_cd_newstate (dfa, nodes, context, hash);
 1532|    198|  if (__glibc_unlikely (new_state == NULL))
  ------------------
  |  Branch (1532:7): [True: 0, False: 198]
  ------------------
 1533|      0|    *err = REG_ESPACE;
  ------------------
  |  |  388|      0|#define REG_ESPACE	_REG_ESPACE
  ------------------
 1534|       |
 1535|    198|  return new_state;
 1536|    198|}
regex.c:calc_state_hash:
 1436|    198|{
 1437|    198|  re_hashval_t hash = nodes->nelem + context;
 1438|    198|  Idx i;
 1439|    452|  for (i = 0 ; i < nodes->nelem ; i++)
  ------------------
  |  Branch (1439:16): [True: 254, False: 198]
  ------------------
 1440|    254|    hash += nodes->elems[i];
 1441|    198|  return hash;
 1442|    198|}
regex.c:re_node_set_compare:
 1336|      4|{
 1337|      4|  Idx i;
 1338|      4|  if (set1 == NULL || set2 == NULL || set1->nelem != set2->nelem)
  ------------------
  |  Branch (1338:7): [True: 0, False: 4]
  |  Branch (1338:23): [True: 0, False: 4]
  |  Branch (1338:39): [True: 4, False: 0]
  ------------------
 1339|      4|    return false;
 1340|      0|  for (i = set1->nelem ; --i >= 0 ; )
  ------------------
  |  Branch (1340:26): [True: 0, False: 0]
  ------------------
 1341|      0|    if (set1->elems[i] != set2->elems[i])
  ------------------
  |  Branch (1341:9): [True: 0, False: 0]
  ------------------
 1342|      0|      return false;
 1343|      0|  return true;
 1344|      0|}
regex.c:create_cd_newstate:
 1649|    198|{
 1650|    198|  Idx i, nctx_nodes = 0;
 1651|    198|  reg_errcode_t err;
 1652|    198|  re_dfastate_t *newstate;
 1653|       |
 1654|    198|  newstate = (re_dfastate_t *) calloc (1, sizeof (re_dfastate_t));
 1655|    198|  if (__glibc_unlikely (newstate == NULL))
  ------------------
  |  Branch (1655:7): [True: 0, False: 198]
  ------------------
 1656|      0|    return NULL;
 1657|    198|  err = re_node_set_init_copy (&newstate->nodes, nodes);
 1658|    198|  if (__glibc_unlikely (err != REG_NOERROR))
  ------------------
  |  Branch (1658:7): [True: 0, False: 198]
  ------------------
 1659|      0|    {
 1660|      0|      re_free (newstate);
  ------------------
  |  |  472|      0|#define re_free(p) free (p)
  ------------------
 1661|      0|      return NULL;
 1662|      0|    }
 1663|       |
 1664|    198|  newstate->context = context;
 1665|    198|  newstate->entrance_nodes = &newstate->nodes;
 1666|       |
 1667|    452|  for (i = 0 ; i < nodes->nelem ; i++)
  ------------------
  |  Branch (1667:16): [True: 254, False: 198]
  ------------------
 1668|    254|    {
 1669|    254|      re_token_t *node = dfa->nodes + nodes->elems[i];
 1670|    254|      re_token_type_t type = node->type;
 1671|    254|      unsigned int constraint = node->constraint;
 1672|       |
 1673|    254|      if (type == CHARACTER && !constraint)
  ------------------
  |  Branch (1673:11): [True: 120, False: 134]
  |  Branch (1673:32): [True: 120, False: 0]
  ------------------
 1674|    120|	continue;
 1675|    134|      newstate->accept_mb |= node->accept_mb;
 1676|       |
 1677|       |      /* If the state has the halt node, the state is a halt state.  */
 1678|    134|      if (type == END_OF_RE)
  ------------------
  |  Branch (1678:11): [True: 9, False: 125]
  ------------------
 1679|      9|	newstate->halt = 1;
 1680|    125|      else if (type == OP_BACK_REF)
  ------------------
  |  Branch (1680:16): [True: 0, False: 125]
  ------------------
 1681|      0|	newstate->has_backref = 1;
 1682|       |
 1683|    134|      if (constraint)
  ------------------
  |  Branch (1683:11): [True: 0, False: 134]
  ------------------
 1684|      0|	{
 1685|      0|	  if (newstate->entrance_nodes == &newstate->nodes)
  ------------------
  |  Branch (1685:8): [True: 0, False: 0]
  ------------------
 1686|      0|	    {
 1687|      0|	      re_node_set *entrance_nodes = re_malloc (re_node_set, 1);
  ------------------
  |  |  467|      0|# define re_malloc(t,n) ((t *) malloc ((n) * sizeof (t)))
  ------------------
 1688|      0|	      if (__glibc_unlikely (entrance_nodes == NULL))
  ------------------
  |  Branch (1688:12): [True: 0, False: 0]
  ------------------
 1689|      0|		{
 1690|      0|		  free_state (newstate);
 1691|      0|		  return NULL;
 1692|      0|		}
 1693|      0|	      newstate->entrance_nodes = entrance_nodes;
 1694|      0|	      if (re_node_set_init_copy (newstate->entrance_nodes, nodes)
  ------------------
  |  Branch (1694:12): [True: 0, False: 0]
  ------------------
 1695|      0|		  != REG_NOERROR)
  ------------------
  |  |  376|      0|#define REG_NOERROR	_REG_NOERROR
  ------------------
 1696|      0|		{
 1697|      0|		  free_state (newstate);
 1698|      0|		  return NULL;
 1699|      0|		}
 1700|      0|	      nctx_nodes = 0;
 1701|      0|	      newstate->has_constraint = 1;
 1702|      0|	    }
 1703|       |
 1704|      0|	  if (NOT_SATISFY_PREV_CONSTRAINT (constraint,context))
  ------------------
  |  |  517|      0| ((((constraint) & PREV_WORD_CONSTRAINT) && !IS_WORD_CONTEXT (context)) \
  |  |  ------------------
  |  |  |  |  225|      0|#define PREV_WORD_CONSTRAINT 0x0001
  |  |  ------------------
  |  |                ((((constraint) & PREV_WORD_CONSTRAINT) && !IS_WORD_CONTEXT (context)) \
  |  |  ------------------
  |  |  |  |  505|      0|#define IS_WORD_CONTEXT(c) ((c) & CONTEXT_WORD)
  |  |  |  |  ------------------
  |  |  |  |  |  |  500|      0|#define CONTEXT_WORD 1
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  |  Branch (517:4): [True: 0, False: 0]
  |  |  |  Branch (517:45): [True: 0, False: 0]
  |  |  ------------------
  |  |  518|      0|  || ((constraint & PREV_NOTWORD_CONSTRAINT) && IS_WORD_CONTEXT (context)) \
  |  |  ------------------
  |  |  |  |  226|      0|#define PREV_NOTWORD_CONSTRAINT 0x0002
  |  |  ------------------
  |  |                 || ((constraint & PREV_NOTWORD_CONSTRAINT) && IS_WORD_CONTEXT (context)) \
  |  |  ------------------
  |  |  |  |  505|      0|#define IS_WORD_CONTEXT(c) ((c) & CONTEXT_WORD)
  |  |  |  |  ------------------
  |  |  |  |  |  |  500|      0|#define CONTEXT_WORD 1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (505:28): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  |  Branch (518:7): [True: 0, False: 0]
  |  |  ------------------
  |  |  519|      0|  || ((constraint & PREV_NEWLINE_CONSTRAINT) && !IS_NEWLINE_CONTEXT (context))\
  |  |  ------------------
  |  |  |  |  229|      0|#define PREV_NEWLINE_CONSTRAINT 0x0010
  |  |  ------------------
  |  |                 || ((constraint & PREV_NEWLINE_CONSTRAINT) && !IS_NEWLINE_CONTEXT (context))\
  |  |  ------------------
  |  |  |  |  506|      0|#define IS_NEWLINE_CONTEXT(c) ((c) & CONTEXT_NEWLINE)
  |  |  |  |  ------------------
  |  |  |  |  |  |  501|      0|#define CONTEXT_NEWLINE (CONTEXT_WORD << 1)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  500|      0|#define CONTEXT_WORD 1
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  |  Branch (519:7): [True: 0, False: 0]
  |  |  |  Branch (519:49): [True: 0, False: 0]
  |  |  ------------------
  |  |  520|      0|  || ((constraint & PREV_BEGBUF_CONSTRAINT) && !IS_BEGBUF_CONTEXT (context)))
  |  |  ------------------
  |  |  |  |  231|      0|#define PREV_BEGBUF_CONSTRAINT 0x0040
  |  |  ------------------
  |  |                 || ((constraint & PREV_BEGBUF_CONSTRAINT) && !IS_BEGBUF_CONTEXT (context)))
  |  |  ------------------
  |  |  |  |  507|      0|#define IS_BEGBUF_CONTEXT(c) ((c) & CONTEXT_BEGBUF)
  |  |  |  |  ------------------
  |  |  |  |  |  |  502|      0|#define CONTEXT_BEGBUF (CONTEXT_NEWLINE << 1)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  501|      0|#define CONTEXT_NEWLINE (CONTEXT_WORD << 1)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  500|      0|#define CONTEXT_WORD 1
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  |  Branch (520:7): [True: 0, False: 0]
  |  |  |  Branch (520:48): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 1705|      0|	    {
 1706|      0|	      re_node_set_remove_at (&newstate->nodes, i - nctx_nodes);
 1707|      0|	      ++nctx_nodes;
 1708|      0|	    }
 1709|      0|	}
 1710|    134|    }
 1711|    198|  err = register_state (dfa, newstate, hash);
 1712|    198|  if (__glibc_unlikely (err != REG_NOERROR))
  ------------------
  |  Branch (1712:7): [True: 0, False: 198]
  ------------------
 1713|      0|    {
 1714|      0|      free_state (newstate);
 1715|       |      newstate = NULL;
 1716|      0|    }
 1717|    198|  return  newstate;
 1718|    198|}
regex.c:register_state:
 1546|    198|{
 1547|    198|  struct re_state_table_entry *spot;
 1548|    198|  reg_errcode_t err;
 1549|    198|  Idx i;
 1550|       |
 1551|    198|  newstate->hash = hash;
 1552|    198|  err = re_node_set_alloc (&newstate->non_eps_nodes, newstate->nodes.nelem);
 1553|    198|  if (__glibc_unlikely (err != REG_NOERROR))
  ------------------
  |  Branch (1553:7): [True: 0, False: 198]
  ------------------
 1554|      0|    return REG_ESPACE;
  ------------------
  |  |  388|      0|#define REG_ESPACE	_REG_ESPACE
  ------------------
 1555|    452|  for (i = 0; i < newstate->nodes.nelem; i++)
  ------------------
  |  Branch (1555:15): [True: 254, False: 198]
  ------------------
 1556|    254|    {
 1557|    254|      Idx elem = newstate->nodes.elems[i];
 1558|    254|      if (!IS_EPSILON_NODE (dfa->nodes[elem].type))
  ------------------
  |  |  377|    254|#define IS_EPSILON_NODE(type) ((type) & EPSILON_BIT)
  |  |  ------------------
  |  |  |  |  272|    254|#define EPSILON_BIT 8
  |  |  ------------------
  ------------------
  |  Branch (1558:11): [True: 214, False: 40]
  ------------------
 1559|    214|	if (! re_node_set_insert_last (&newstate->non_eps_nodes, elem))
  ------------------
  |  Branch (1559:6): [True: 0, False: 214]
  ------------------
 1560|      0|	  return REG_ESPACE;
  ------------------
  |  |  388|      0|#define REG_ESPACE	_REG_ESPACE
  ------------------
 1561|    254|    }
 1562|       |
 1563|    198|  spot = dfa->state_table + (hash & dfa->state_hash_mask);
 1564|    198|  if (__glibc_unlikely (spot->alloc <= spot->num))
  ------------------
  |  Branch (1564:7): [True: 190, False: 8]
  ------------------
 1565|    190|    {
 1566|    190|      Idx new_alloc = 2 * spot->num + 2;
 1567|    190|      re_dfastate_t **new_array = re_realloc (spot->array, re_dfastate_t *,
  ------------------
  |  |  471|    190|#define re_realloc(p,t,n) ((t *) realloc (p, (n) * sizeof (t)))
  ------------------
 1568|    190|					      new_alloc);
 1569|    190|      if (__glibc_unlikely (new_array == NULL))
  ------------------
  |  Branch (1569:11): [True: 0, False: 190]
  ------------------
 1570|      0|	return REG_ESPACE;
  ------------------
  |  |  388|      0|#define REG_ESPACE	_REG_ESPACE
  ------------------
 1571|    190|      spot->array = new_array;
 1572|    190|      spot->alloc = new_alloc;
 1573|    190|    }
 1574|    198|  spot->array[spot->num++] = newstate;
 1575|    198|  return REG_NOERROR;
  ------------------
  |  |  376|    198|#define REG_NOERROR	_REG_NOERROR
  ------------------
 1576|    198|}
regex.c:re_string_allocate:
   49|     57|{
   50|     57|  reg_errcode_t ret;
   51|     57|  Idx init_buf_len;
   52|       |
   53|       |  /* Ensure at least one character fits into the buffers.  */
   54|     57|  if (init_len < dfa->mb_cur_max)
  ------------------
  |  Branch (54:7): [True: 0, False: 57]
  ------------------
   55|      0|    init_len = dfa->mb_cur_max;
   56|     57|  init_buf_len = (len + 1 < init_len) ? len + 1: init_len;
  ------------------
  |  Branch (56:18): [True: 56, False: 1]
  ------------------
   57|     57|  re_string_construct_common (str, len, pstr, trans, icase, dfa);
   58|       |
   59|     57|  ret = re_string_realloc_buffers (pstr, init_buf_len);
   60|     57|  if (__glibc_unlikely (ret != REG_NOERROR))
  ------------------
  |  Branch (60:7): [True: 0, False: 57]
  ------------------
   61|      0|    return ret;
   62|       |
   63|     57|  pstr->word_char = dfa->word_char;
   64|     57|  pstr->word_ops_used = dfa->word_ops_used;
   65|     57|  pstr->mbs = pstr->mbs_allocated ? pstr->mbs : (unsigned char *) str;
  ------------------
  |  Branch (65:15): [True: 0, False: 57]
  ------------------
   66|     57|  pstr->valid_len = (pstr->mbs_allocated || dfa->mb_cur_max > 1) ? 0 : len;
  ------------------
  |  Branch (66:22): [True: 0, False: 57]
  |  Branch (66:45): [True: 0, False: 57]
  ------------------
   67|     57|  pstr->valid_raw_len = pstr->valid_len;
   68|     57|  return REG_NOERROR;
  ------------------
  |  |  376|     57|#define REG_NOERROR	_REG_NOERROR
  ------------------
   69|     57|}
regex.c:re_string_reconstruct:
  570|     57|{
  571|     57|  Idx offset;
  572|       |
  573|     57|  if (__glibc_unlikely (pstr->raw_mbs_idx <= idx))
  ------------------
  |  Branch (573:7): [True: 57, False: 0]
  ------------------
  574|     57|    offset = idx - pstr->raw_mbs_idx;
  575|      0|  else
  576|      0|    {
  577|       |      /* Reset buffer.  */
  578|      0|      if (pstr->mb_cur_max > 1)
  ------------------
  |  Branch (578:11): [True: 0, False: 0]
  ------------------
  579|      0|	memset (&pstr->cur_state, '\0', sizeof (mbstate_t));
  580|      0|      pstr->len = pstr->raw_len;
  581|      0|      pstr->stop = pstr->raw_stop;
  582|      0|      pstr->valid_len = 0;
  583|      0|      pstr->raw_mbs_idx = 0;
  584|      0|      pstr->valid_raw_len = 0;
  585|      0|      pstr->offsets_needed = 0;
  586|      0|      pstr->tip_context = ((eflags & REG_NOTBOL) ? CONTEXT_BEGBUF
  ------------------
  |  |  333|      0|#define REG_NOTBOL 1
  ------------------
                    pstr->tip_context = ((eflags & REG_NOTBOL) ? CONTEXT_BEGBUF
  ------------------
  |  |  502|      0|#define CONTEXT_BEGBUF (CONTEXT_NEWLINE << 1)
  |  |  ------------------
  |  |  |  |  501|      0|#define CONTEXT_NEWLINE (CONTEXT_WORD << 1)
  |  |  |  |  ------------------
  |  |  |  |  |  |  500|      0|#define CONTEXT_WORD 1
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  |  Branch (586:28): [True: 0, False: 0]
  ------------------
  587|      0|			   : CONTEXT_NEWLINE | CONTEXT_BEGBUF);
  ------------------
  |  |  501|      0|#define CONTEXT_NEWLINE (CONTEXT_WORD << 1)
  |  |  ------------------
  |  |  |  |  500|      0|#define CONTEXT_WORD 1
  |  |  ------------------
  ------------------
              			   : CONTEXT_NEWLINE | CONTEXT_BEGBUF);
  ------------------
  |  |  502|      0|#define CONTEXT_BEGBUF (CONTEXT_NEWLINE << 1)
  |  |  ------------------
  |  |  |  |  501|      0|#define CONTEXT_NEWLINE (CONTEXT_WORD << 1)
  |  |  |  |  ------------------
  |  |  |  |  |  |  500|      0|#define CONTEXT_WORD 1
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  588|      0|      if (!pstr->mbs_allocated)
  ------------------
  |  Branch (588:11): [True: 0, False: 0]
  ------------------
  589|      0|	pstr->mbs = (unsigned char *) pstr->raw_mbs;
  590|      0|      offset = idx;
  591|      0|    }
  592|       |
  593|     57|  if (__glibc_likely (offset != 0))
  ------------------
  |  Branch (593:7): [True: 0, False: 57]
  ------------------
  594|      0|    {
  595|       |      /* Should the already checked characters be kept?  */
  596|      0|      if (__glibc_likely (offset < pstr->valid_raw_len))
  ------------------
  |  Branch (596:11): [True: 0, False: 0]
  ------------------
  597|      0|	{
  598|       |	  /* Yes, move them to the front of the buffer.  */
  599|      0|	  if (__glibc_unlikely (pstr->offsets_needed))
  ------------------
  |  Branch (599:8): [True: 0, False: 0]
  ------------------
  600|      0|	    {
  601|      0|	      Idx low = 0, high = pstr->valid_len, mid;
  602|      0|	      do
  603|      0|		{
  604|      0|		  mid = (high + low) / 2;
  605|      0|		  if (pstr->offsets[mid] > offset)
  ------------------
  |  Branch (605:9): [True: 0, False: 0]
  ------------------
  606|      0|		    high = mid;
  607|      0|		  else if (pstr->offsets[mid] < offset)
  ------------------
  |  Branch (607:14): [True: 0, False: 0]
  ------------------
  608|      0|		    low = mid + 1;
  609|      0|		  else
  610|      0|		    break;
  611|      0|		}
  612|      0|	      while (low < high);
  ------------------
  |  Branch (612:15): [True: 0, False: 0]
  ------------------
  613|      0|	      if (pstr->offsets[mid] < offset)
  ------------------
  |  Branch (613:12): [True: 0, False: 0]
  ------------------
  614|      0|		++mid;
  615|      0|	      pstr->tip_context = re_string_context_at (pstr, mid - 1,
  616|      0|							eflags);
  617|       |	      /* This can be quite complicated, so handle specially
  618|       |		 only the common and easy case where the character with
  619|       |		 different length representation of lower and upper
  620|       |		 case is present at or after offset.  */
  621|      0|	      if (pstr->valid_len > offset
  ------------------
  |  Branch (621:12): [True: 0, False: 0]
  ------------------
  622|      0|		  && mid == offset && pstr->offsets[mid] == offset)
  ------------------
  |  Branch (622:8): [True: 0, False: 0]
  |  Branch (622:25): [True: 0, False: 0]
  ------------------
  623|      0|		{
  624|      0|		  memmove (pstr->wcs, pstr->wcs + offset,
  625|      0|			   (pstr->valid_len - offset) * sizeof (wint_t));
  626|      0|		  memmove (pstr->mbs, pstr->mbs + offset, pstr->valid_len - offset);
  627|      0|		  pstr->valid_len -= offset;
  628|      0|		  pstr->valid_raw_len -= offset;
  629|      0|		  for (low = 0; low < pstr->valid_len; low++)
  ------------------
  |  Branch (629:19): [True: 0, False: 0]
  ------------------
  630|      0|		    pstr->offsets[low] = pstr->offsets[low + offset] - offset;
  631|      0|		}
  632|      0|	      else
  633|      0|		{
  634|       |		  /* Otherwise, just find out how long the partial multibyte
  635|       |		     character at offset is and fill it with WEOF/255.  */
  636|      0|		  pstr->len = pstr->raw_len - idx + offset;
  637|      0|		  pstr->stop = pstr->raw_stop - idx + offset;
  638|      0|		  pstr->offsets_needed = 0;
  639|      0|		  while (mid > 0 && pstr->offsets[mid - 1] == offset)
  ------------------
  |  Branch (639:12): [True: 0, False: 0]
  |  Branch (639:23): [True: 0, False: 0]
  ------------------
  640|      0|		    --mid;
  641|      0|		  while (mid < pstr->valid_len)
  ------------------
  |  Branch (641:12): [True: 0, False: 0]
  ------------------
  642|      0|		    if (pstr->wcs[mid] != WEOF)
  ------------------
  |  Branch (642:11): [True: 0, False: 0]
  ------------------
  643|      0|		      break;
  644|      0|		    else
  645|      0|		      ++mid;
  646|      0|		  if (mid == pstr->valid_len)
  ------------------
  |  Branch (646:9): [True: 0, False: 0]
  ------------------
  647|      0|		    pstr->valid_len = 0;
  648|      0|		  else
  649|      0|		    {
  650|      0|		      pstr->valid_len = pstr->offsets[mid] - offset;
  651|      0|		      if (pstr->valid_len)
  ------------------
  |  Branch (651:13): [True: 0, False: 0]
  ------------------
  652|      0|			{
  653|      0|			  for (low = 0; low < pstr->valid_len; ++low)
  ------------------
  |  Branch (653:20): [True: 0, False: 0]
  ------------------
  654|      0|			    pstr->wcs[low] = WEOF;
  655|      0|			  memset (pstr->mbs, 255, pstr->valid_len);
  656|      0|			}
  657|      0|		    }
  658|      0|		  pstr->valid_raw_len = pstr->valid_len;
  659|      0|		}
  660|      0|	    }
  661|      0|	  else
  662|      0|	    {
  663|      0|	      pstr->tip_context = re_string_context_at (pstr, offset - 1,
  664|      0|							eflags);
  665|      0|	      if (pstr->mb_cur_max > 1)
  ------------------
  |  Branch (665:12): [True: 0, False: 0]
  ------------------
  666|      0|		memmove (pstr->wcs, pstr->wcs + offset,
  667|      0|			 (pstr->valid_len - offset) * sizeof (wint_t));
  668|      0|	      if (__glibc_unlikely (pstr->mbs_allocated))
  ------------------
  |  Branch (668:12): [True: 0, False: 0]
  ------------------
  669|      0|		memmove (pstr->mbs, pstr->mbs + offset,
  670|      0|			 pstr->valid_len - offset);
  671|      0|	      pstr->valid_len -= offset;
  672|      0|	      pstr->valid_raw_len -= offset;
  673|      0|	      DEBUG_ASSERT (pstr->valid_len > 0);
  ------------------
  |  |   45|      0|# define DEBUG_ASSERT(x) assume (x)
  |  |  ------------------
  |  |  |  |  375|      0|# define assume(R) ((R) ? (void) 0 : __builtin_unreachable ())
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (375:21): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  674|      0|	    }
  675|      0|	}
  676|      0|      else
  677|      0|	{
  678|       |	  /* No, skip all characters until IDX.  */
  679|      0|	  Idx prev_valid_len = pstr->valid_len;
  680|       |
  681|      0|	  if (__glibc_unlikely (pstr->offsets_needed))
  ------------------
  |  Branch (681:8): [True: 0, False: 0]
  ------------------
  682|      0|	    {
  683|      0|	      pstr->len = pstr->raw_len - idx + offset;
  684|      0|	      pstr->stop = pstr->raw_stop - idx + offset;
  685|      0|	      pstr->offsets_needed = 0;
  686|      0|	    }
  687|      0|	  pstr->valid_len = 0;
  688|      0|	  if (pstr->mb_cur_max > 1)
  ------------------
  |  Branch (688:8): [True: 0, False: 0]
  ------------------
  689|      0|	    {
  690|      0|	      Idx wcs_idx;
  691|      0|	      wint_t wc = WEOF;
  692|       |
  693|      0|	      if (pstr->is_utf8)
  ------------------
  |  Branch (693:12): [True: 0, False: 0]
  ------------------
  694|      0|		{
  695|      0|		  const unsigned char *raw, *p, *end;
  696|       |
  697|       |		  /* Special case UTF-8.  Multi-byte chars start with any
  698|       |		     byte other than 0x80 - 0xbf.  */
  699|      0|		  raw = pstr->raw_mbs + pstr->raw_mbs_idx;
  700|      0|		  end = raw + (offset - pstr->mb_cur_max);
  701|      0|		  if (end < pstr->raw_mbs)
  ------------------
  |  Branch (701:9): [True: 0, False: 0]
  ------------------
  702|      0|		    end = pstr->raw_mbs;
  703|      0|		  p = raw + offset - 1;
  704|       |#ifdef _LIBC
  705|       |		  /* We know the wchar_t encoding is UCS4, so for the simple
  706|       |		     case, ASCII characters, skip the conversion step.  */
  707|       |		  if (isascii (*p) && __glibc_likely (pstr->trans == NULL))
  708|       |		    {
  709|       |		      memset (&pstr->cur_state, '\0', sizeof (mbstate_t));
  710|       |		      /* pstr->valid_len = 0; */
  711|       |		      wc = (wchar_t) *p;
  712|       |		    }
  713|       |		  else
  714|       |#endif
  715|      0|		    for (; p >= end; --p)
  ------------------
  |  Branch (715:14): [True: 0, False: 0]
  ------------------
  716|      0|		      if ((*p & 0xc0) != 0x80)
  ------------------
  |  Branch (716:13): [True: 0, False: 0]
  ------------------
  717|      0|			{
  718|      0|			  mbstate_t cur_state;
  719|      0|			  wchar_t wc2;
  ------------------
  |  |  129|      0|# define wchar_t char32_t
  ------------------
  720|      0|			  Idx mlen = raw + pstr->len - p;
  721|      0|			  unsigned char buf[6];
  722|      0|			  size_t mbclen;
  723|       |
  724|      0|			  const unsigned char *pp = p;
  725|      0|			  if (__glibc_unlikely (pstr->trans != NULL))
  ------------------
  |  Branch (725:10): [True: 0, False: 0]
  ------------------
  726|      0|			    {
  727|      0|			      int i = mlen < 6 ? mlen : 6;
  ------------------
  |  Branch (727:18): [True: 0, False: 0]
  ------------------
  728|      0|			      while (--i >= 0)
  ------------------
  |  Branch (728:17): [True: 0, False: 0]
  ------------------
  729|      0|				buf[i] = pstr->trans[p[i]];
  730|      0|			      pp = buf;
  731|      0|			    }
  732|       |			  /* XXX Don't use mbrtowc, we know which conversion
  733|       |			     to use (UTF-8 -> UCS4).  */
  734|      0|			  memset (&cur_state, 0, sizeof (cur_state));
  735|      0|			  mbclen = __mbrtowc (&wc2, (const char *) pp, mlen,
  ------------------
  |  |  160|      0|#  define __mbrtowc mbrtoc32
  ------------------
  736|      0|					      &cur_state);
  737|      0|			  if (raw + offset - p <= mbclen
  ------------------
  |  Branch (737:10): [True: 0, False: 0]
  ------------------
  738|      0|			      && mbclen < (size_t) -2)
  ------------------
  |  Branch (738:13): [True: 0, False: 0]
  ------------------
  739|      0|			    {
  740|      0|			      memset (&pstr->cur_state, '\0',
  741|      0|				      sizeof (mbstate_t));
  742|      0|			      pstr->valid_len = mbclen - (raw + offset - p);
  743|      0|			      wc = wc2;
  744|      0|			    }
  745|      0|			  break;
  746|      0|			}
  747|      0|		}
  748|       |
  749|      0|	      if (wc == WEOF)
  ------------------
  |  Branch (749:12): [True: 0, False: 0]
  ------------------
  750|      0|		pstr->valid_len = re_string_skip_chars (pstr, idx, &wc) - idx;
  751|      0|	      if (wc == WEOF)
  ------------------
  |  Branch (751:12): [True: 0, False: 0]
  ------------------
  752|      0|		pstr->tip_context
  753|      0|		  = re_string_context_at (pstr, prev_valid_len - 1, eflags);
  754|      0|	      else
  755|      0|		pstr->tip_context = ((__glibc_unlikely (pstr->word_ops_used != 0)
  ------------------
  |  Branch (755:25): [True: 0, False: 0]
  ------------------
  756|      0|				      && IS_WIDE_WORD_CHAR (wc))
  ------------------
  |  |  513|      0|#define IS_WIDE_WORD_CHAR(ch) (__iswalnum (ch) || (ch) == L'_')
  |  |  ------------------
  |  |  |  |  155|      0|#  define __iswalnum c32isalnum
  |  |  ------------------
  |  |  |  Branch (513:32): [True: 0, False: 0]
  |  |  |  Branch (513:51): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  757|      0|				     ? CONTEXT_WORD
  ------------------
  |  |  500|      0|#define CONTEXT_WORD 1
  ------------------
  758|      0|				     : ((IS_WIDE_NEWLINE (wc)
  ------------------
  |  |  514|      0|#define IS_WIDE_NEWLINE(ch) ((ch) == WIDE_NEWLINE_CHAR)
  |  |  ------------------
  |  |  |  |  120|      0|#define WIDE_NEWLINE_CHAR L'\n'
  |  |  ------------------
  |  |  |  Branch (514:29): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  759|      0|					 && pstr->newline_anchor)
  ------------------
  |  Branch (759:10): [True: 0, False: 0]
  ------------------
  760|      0|					? CONTEXT_NEWLINE : 0));
  ------------------
  |  |  501|      0|#define CONTEXT_NEWLINE (CONTEXT_WORD << 1)
  |  |  ------------------
  |  |  |  |  500|      0|#define CONTEXT_WORD 1
  |  |  ------------------
  ------------------
  761|      0|	      if (__glibc_unlikely (pstr->valid_len))
  ------------------
  |  Branch (761:12): [True: 0, False: 0]
  ------------------
  762|      0|		{
  763|      0|		  for (wcs_idx = 0; wcs_idx < pstr->valid_len; ++wcs_idx)
  ------------------
  |  Branch (763:23): [True: 0, False: 0]
  ------------------
  764|      0|		    pstr->wcs[wcs_idx] = WEOF;
  765|      0|		  if (pstr->mbs_allocated)
  ------------------
  |  Branch (765:9): [True: 0, False: 0]
  ------------------
  766|      0|		    memset (pstr->mbs, 255, pstr->valid_len);
  767|      0|		}
  768|      0|	      pstr->valid_raw_len = pstr->valid_len;
  769|      0|	    }
  770|      0|	  else
  771|      0|	    {
  772|      0|	      int c = pstr->raw_mbs[pstr->raw_mbs_idx + offset - 1];
  773|      0|	      pstr->valid_raw_len = 0;
  774|      0|	      if (pstr->trans)
  ------------------
  |  Branch (774:12): [True: 0, False: 0]
  ------------------
  775|      0|		c = pstr->trans[c];
  776|      0|	      pstr->tip_context = (bitset_contain (pstr->word_char, c)
  ------------------
  |  Branch (776:29): [True: 0, False: 0]
  ------------------
  777|      0|				   ? CONTEXT_WORD
  ------------------
  |  |  500|      0|#define CONTEXT_WORD 1
  ------------------
  778|      0|				   : ((IS_NEWLINE (c) && pstr->newline_anchor)
  ------------------
  |  |  512|      0|#define IS_NEWLINE(ch) ((ch) == NEWLINE_CHAR)
  |  |  ------------------
  |  |  |  |  119|      0|#define NEWLINE_CHAR '\n'
  |  |  ------------------
  |  |  |  Branch (512:24): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  |  Branch (778:30): [True: 0, False: 0]
  ------------------
  779|      0|				      ? CONTEXT_NEWLINE : 0));
  ------------------
  |  |  501|      0|#define CONTEXT_NEWLINE (CONTEXT_WORD << 1)
  |  |  ------------------
  |  |  |  |  500|      0|#define CONTEXT_WORD 1
  |  |  ------------------
  ------------------
  780|      0|	    }
  781|      0|	}
  782|      0|      if (!__glibc_unlikely (pstr->mbs_allocated))
  ------------------
  |  Branch (782:11): [True: 0, False: 0]
  ------------------
  783|      0|	pstr->mbs += offset;
  784|      0|    }
  785|     57|  pstr->raw_mbs_idx = idx;
  786|     57|  pstr->len -= offset;
  787|     57|  pstr->stop -= offset;
  788|       |
  789|       |  /* Then build the buffers.  */
  790|     57|  if (pstr->mb_cur_max > 1)
  ------------------
  |  Branch (790:7): [True: 0, False: 57]
  ------------------
  791|      0|    {
  792|      0|      if (pstr->icase)
  ------------------
  |  Branch (792:11): [True: 0, False: 0]
  ------------------
  793|      0|	{
  794|      0|	  reg_errcode_t ret = build_wcs_upper_buffer (pstr);
  795|      0|	  if (__glibc_unlikely (ret != REG_NOERROR))
  ------------------
  |  Branch (795:8): [True: 0, False: 0]
  ------------------
  796|      0|	    return ret;
  797|      0|	}
  798|      0|      else
  799|      0|	build_wcs_buffer (pstr);
  800|      0|    }
  801|     57|  else
  802|     57|    if (__glibc_unlikely (pstr->mbs_allocated))
  ------------------
  |  Branch (802:9): [True: 0, False: 57]
  ------------------
  803|      0|      {
  804|      0|	if (pstr->icase)
  ------------------
  |  Branch (804:6): [True: 0, False: 0]
  ------------------
  805|      0|	  build_upper_buffer (pstr);
  806|      0|	else if (pstr->trans != NULL)
  ------------------
  |  Branch (806:11): [True: 0, False: 0]
  ------------------
  807|      0|	  re_string_translate_buffer (pstr);
  808|      0|      }
  809|     57|    else
  810|     57|      pstr->valid_len = pstr->len;
  811|       |
  812|     57|  pstr->cur_idx = 0;
  813|     57|  return REG_NOERROR;
  ------------------
  |  |  376|     57|#define REG_NOERROR	_REG_NOERROR
  ------------------
  814|     57|}

regex.c:bitset_set:
  723|  1.12k|{
  724|  1.12k|  set[i / BITSET_WORD_BITS] |= (bitset_word_t) 1 << i % BITSET_WORD_BITS;
  ------------------
  |  |  216|  1.12k|#define BITSET_WORD_BITS ULONG_WIDTH
  ------------------
                set[i / BITSET_WORD_BITS] |= (bitset_word_t) 1 << i % BITSET_WORD_BITS;
  ------------------
  |  |  216|  1.12k|#define BITSET_WORD_BITS ULONG_WIDTH
  ------------------
  725|  1.12k|}
regex.c:re_string_char_size_at:
  792|    596|{
  793|    596|  int byte_idx;
  794|    596|  if (pstr->mb_cur_max == 1)
  ------------------
  |  Branch (794:7): [True: 596, False: 0]
  ------------------
  795|    596|    return 1;
  796|      0|  for (byte_idx = 1; idx + byte_idx < pstr->valid_len; ++byte_idx)
  ------------------
  |  Branch (796:22): [True: 0, False: 0]
  ------------------
  797|      0|    if (pstr->wcs[idx + byte_idx] != WEOF)
  ------------------
  |  Branch (797:9): [True: 0, False: 0]
  ------------------
  798|      0|      break;
  799|      0|  return byte_idx;
  800|    596|}
regex.c:bitset_not:
  762|     85|{
  763|     85|  int bitset_i;
  764|    425|  for (bitset_i = 0; bitset_i < SBC_MAX / BITSET_WORD_BITS; ++bitset_i)
  ------------------
  |  |  114|    425|#define SBC_MAX (UCHAR_MAX + 1)
  ------------------
                for (bitset_i = 0; bitset_i < SBC_MAX / BITSET_WORD_BITS; ++bitset_i)
  ------------------
  |  |  216|    425|#define BITSET_WORD_BITS ULONG_WIDTH
  ------------------
  |  Branch (764:22): [True: 340, False: 85]
  ------------------
  765|    340|    set[bitset_i] = ~set[bitset_i];
  766|     85|  if (SBC_MAX % BITSET_WORD_BITS != 0)
  ------------------
  |  |  114|     85|#define SBC_MAX (UCHAR_MAX + 1)
  ------------------
                if (SBC_MAX % BITSET_WORD_BITS != 0)
  ------------------
  |  |  216|     85|#define BITSET_WORD_BITS ULONG_WIDTH
  ------------------
  |  Branch (766:7): [Folded, False: 85]
  ------------------
  767|      0|    set[BITSET_WORDS - 1] =
  ------------------
  |  |  219|      0|#define BITSET_WORDS ((SBC_MAX + BITSET_WORD_BITS - 1) / BITSET_WORD_BITS)
  |  |  ------------------
  |  |  |  |  114|      0|#define SBC_MAX (UCHAR_MAX + 1)
  |  |  ------------------
  |  |               #define BITSET_WORDS ((SBC_MAX + BITSET_WORD_BITS - 1) / BITSET_WORD_BITS)
  |  |  ------------------
  |  |  |  |  216|      0|#define BITSET_WORD_BITS ULONG_WIDTH
  |  |  ------------------
  |  |               #define BITSET_WORDS ((SBC_MAX + BITSET_WORD_BITS - 1) / BITSET_WORD_BITS)
  |  |  ------------------
  |  |  |  |  216|      0|#define BITSET_WORD_BITS ULONG_WIDTH
  |  |  ------------------
  ------------------
  768|      0|      ((((bitset_word_t) 1 << SBC_MAX % BITSET_WORD_BITS) - 1)
  ------------------
  |  |  114|      0|#define SBC_MAX (UCHAR_MAX + 1)
  ------------------
                    ((((bitset_word_t) 1 << SBC_MAX % BITSET_WORD_BITS) - 1)
  ------------------
  |  |  216|      0|#define BITSET_WORD_BITS ULONG_WIDTH
  ------------------
  769|       |       & ~set[BITSET_WORDS - 1]);
  ------------------
  |  |  219|      0|#define BITSET_WORDS ((SBC_MAX + BITSET_WORD_BITS - 1) / BITSET_WORD_BITS)
  |  |  ------------------
  |  |  |  |  114|      0|#define SBC_MAX (UCHAR_MAX + 1)
  |  |  ------------------
  |  |               #define BITSET_WORDS ((SBC_MAX + BITSET_WORD_BITS - 1) / BITSET_WORD_BITS)
  |  |  ------------------
  |  |  |  |  216|      0|#define BITSET_WORD_BITS ULONG_WIDTH
  |  |  ------------------
  |  |               #define BITSET_WORDS ((SBC_MAX + BITSET_WORD_BITS - 1) / BITSET_WORD_BITS)
  |  |  ------------------
  |  |  |  |  216|      0|#define BITSET_WORD_BITS ULONG_WIDTH
  |  |  ------------------
  ------------------
  770|     85|}
regex.c:bitset_contain:
  735|    118|{
  736|    118|  return (set[i / BITSET_WORD_BITS] >> i % BITSET_WORD_BITS) & 1;
  ------------------
  |  |  216|    118|#define BITSET_WORD_BITS ULONG_WIDTH
  ------------------
                return (set[i / BITSET_WORD_BITS] >> i % BITSET_WORD_BITS) & 1;
  ------------------
  |  |  216|    118|#define BITSET_WORD_BITS ULONG_WIDTH
  ------------------
  737|    118|}
regex.c:bitset_copy:
  756|    105|{
  757|    105|  memcpy (dest, src, sizeof (bitset_t));
  758|    105|}
regex.c:bitset_empty:
  741|    300|{
  742|    300|  memset (set, '\0', sizeof (bitset_t));
  743|    300|}
regex.c:bitset_merge:
  774|    106|{
  775|    106|  int bitset_i;
  776|    530|  for (bitset_i = 0; bitset_i < BITSET_WORDS; ++bitset_i)
  ------------------
  |  |  219|    530|#define BITSET_WORDS ((SBC_MAX + BITSET_WORD_BITS - 1) / BITSET_WORD_BITS)
  |  |  ------------------
  |  |  |  |  114|    530|#define SBC_MAX (UCHAR_MAX + 1)
  |  |  ------------------
  |  |               #define BITSET_WORDS ((SBC_MAX + BITSET_WORD_BITS - 1) / BITSET_WORD_BITS)
  |  |  ------------------
  |  |  |  |  216|    530|#define BITSET_WORD_BITS ULONG_WIDTH
  |  |  ------------------
  |  |               #define BITSET_WORDS ((SBC_MAX + BITSET_WORD_BITS - 1) / BITSET_WORD_BITS)
  |  |  ------------------
  |  |  |  |  216|    530|#define BITSET_WORD_BITS ULONG_WIDTH
  |  |  ------------------
  ------------------
  |  Branch (776:22): [True: 424, False: 106]
  ------------------
  777|    424|    dest[bitset_i] |= src[bitset_i];
  778|    106|}

rpl_re_match:
  273|     57|{
  274|       |  return re_search_stub (bufp, string, length, start, 0, length, regs, true);
  275|     57|}
regex.c:re_search_stub:
  366|     57|{
  367|     57|  reg_errcode_t result;
  368|     57|  regmatch_t *pmatch;
  369|     57|  Idx nregs;
  370|     57|  regoff_t rval;
  371|     57|  int eflags = 0;
  372|     57|  re_dfa_t *dfa = bufp->buffer;
  373|     57|  Idx last_start = start + range;
  374|       |
  375|       |  /* Check for out-of-range.  */
  376|     57|  if (__glibc_unlikely (start < 0 || start > length))
  ------------------
  |  Branch (376:7): [True: 0, False: 57]
  |  Branch (376:7): [True: 0, False: 57]
  |  Branch (376:7): [True: 0, False: 57]
  ------------------
  377|      0|    return -1;
  378|     57|  if (__glibc_unlikely (length < last_start
  ------------------
  |  Branch (378:7): [True: 57, False: 0]
  |  Branch (378:7): [True: 0, False: 57]
  |  Branch (378:7): [True: 0, False: 57]
  |  Branch (378:7): [True: 0, False: 57]
  ------------------
  379|     57|			|| (0 <= range && last_start < start)))
  380|      0|    last_start = length;
  381|     57|  else if (__glibc_unlikely (last_start < 0
  ------------------
  |  Branch (381:12): [True: 0, False: 57]
  |  Branch (381:12): [True: 0, False: 0]
  |  Branch (381:12): [True: 0, False: 57]
  |  Branch (381:12): [True: 0, False: 57]
  ------------------
  382|     57|			     || (range < 0 && start <= last_start)))
  383|      0|    last_start = 0;
  384|       |
  385|     57|  lock_lock (dfa->lock);
  ------------------
  |  |   60|     57|# define lock_lock(lock) glthread_lock_lock (&(lock))
  |  |  ------------------
  |  |  |  |  216|     57|    (pthread_in_use () ? pthread_mutex_lock (LOCK) : 0)
  |  |  |  |  ------------------
  |  |  |  |  |  |  170|     57|#   define pthread_in_use() 1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (170:29): [True: 57, Folded]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  386|       |
  387|     57|  eflags |= (bufp->not_bol) ? REG_NOTBOL : 0;
  ------------------
  |  |  333|      0|#define REG_NOTBOL 1
  ------------------
  |  Branch (387:13): [True: 0, False: 57]
  ------------------
  388|     57|  eflags |= (bufp->not_eol) ? REG_NOTEOL : 0;
  ------------------
  |  |  336|      0|#define REG_NOTEOL (1 << 1)
  ------------------
  |  Branch (388:13): [True: 0, False: 57]
  ------------------
  389|       |
  390|       |  /* Compile fastmap if we haven't yet.  */
  391|     57|  if (start < last_start && bufp->fastmap != NULL && !bufp->fastmap_accurate)
  ------------------
  |  Branch (391:7): [True: 0, False: 57]
  |  Branch (391:29): [True: 0, False: 0]
  |  Branch (391:54): [True: 0, False: 0]
  ------------------
  392|      0|    re_compile_fastmap (bufp);
  ------------------
  |  | 2526|      0|#define re_compile_fastmap rpl_re_compile_fastmap
  ------------------
  393|       |
  394|     57|  if (__glibc_unlikely (bufp->no_sub))
  ------------------
  |  Branch (394:7): [True: 0, False: 57]
  ------------------
  395|      0|    regs = NULL;
  396|       |
  397|       |  /* We need at least 1 register.  */
  398|     57|  if (regs == NULL)
  ------------------
  |  Branch (398:7): [True: 57, False: 0]
  ------------------
  399|     57|    nregs = 1;
  400|      0|  else if (__glibc_unlikely (bufp->regs_allocated == REGS_FIXED
  ------------------
  |  Branch (400:12): [True: 0, False: 0]
  |  Branch (400:12): [True: 0, False: 0]
  |  Branch (400:12): [True: 0, False: 0]
  ------------------
  401|      0|			     && regs->num_regs <= bufp->re_nsub))
  402|      0|    {
  403|      0|      nregs = regs->num_regs;
  404|      0|      if (__glibc_unlikely (nregs < 1))
  ------------------
  |  Branch (404:11): [True: 0, False: 0]
  ------------------
  405|      0|	{
  406|       |	  /* Nothing can be copied to regs.  */
  407|      0|	  regs = NULL;
  408|      0|	  nregs = 1;
  409|      0|	}
  410|      0|    }
  411|      0|  else
  412|      0|    nregs = bufp->re_nsub + 1;
  413|     57|  pmatch = re_malloc (regmatch_t, nregs);
  ------------------
  |  |  467|     57|# define re_malloc(t,n) ((t *) malloc ((n) * sizeof (t)))
  ------------------
  414|     57|  if (__glibc_unlikely (pmatch == NULL))
  ------------------
  |  Branch (414:7): [True: 0, False: 57]
  ------------------
  415|      0|    {
  416|      0|      rval = -2;
  417|      0|      goto out;
  418|      0|    }
  419|       |
  420|     57|  result = re_search_internal (bufp, string, length, start, last_start, stop,
  421|     57|			       nregs, pmatch, eflags);
  422|       |
  423|     57|  rval = 0;
  424|       |
  425|       |  /* I hope we needn't fill their regs with -1's when no match was found.  */
  426|     57|  if (result != REG_NOERROR)
  ------------------
  |  |  376|     57|#define REG_NOERROR	_REG_NOERROR
  ------------------
  |  Branch (426:7): [True: 48, False: 9]
  ------------------
  427|     48|    rval = result == REG_NOMATCH ? -1 : -2;
  ------------------
  |  |  377|     48|#define REG_NOMATCH	_REG_NOMATCH
  ------------------
  |  Branch (427:12): [True: 48, False: 0]
  ------------------
  428|      9|  else if (regs != NULL)
  ------------------
  |  Branch (428:12): [True: 0, False: 9]
  ------------------
  429|      0|    {
  430|       |      /* If caller wants register contents data back, copy them.  */
  431|      0|      bufp->regs_allocated = re_copy_regs (regs, pmatch, nregs,
  432|      0|					   bufp->regs_allocated);
  433|      0|      if (__glibc_unlikely (bufp->regs_allocated == REGS_UNALLOCATED))
  ------------------
  |  Branch (433:11): [True: 0, False: 0]
  ------------------
  434|      0|	rval = -2;
  435|      0|    }
  436|       |
  437|     57|  if (__glibc_likely (rval == 0))
  ------------------
  |  Branch (437:7): [True: 9, False: 48]
  ------------------
  438|      9|    {
  439|      9|      if (ret_len)
  ------------------
  |  Branch (439:11): [True: 9, False: 0]
  ------------------
  440|      9|	{
  441|      9|	  DEBUG_ASSERT (pmatch[0].rm_so == start);
  ------------------
  |  |   45|      9|# define DEBUG_ASSERT(x) assume (x)
  |  |  ------------------
  |  |  |  |  375|      9|# define assume(R) ((R) ? (void) 0 : __builtin_unreachable ())
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (375:21): [True: 9, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  442|      9|	  rval = pmatch[0].rm_eo - start;
  443|      9|	}
  444|      0|      else
  445|      0|	rval = pmatch[0].rm_so;
  446|      9|    }
  447|     57|  re_free (pmatch);
  ------------------
  |  |  472|     57|#define re_free(p) free (p)
  ------------------
  448|     57| out:
  449|     57|  lock_unlock (dfa->lock);
  ------------------
  |  |   61|     57|# define lock_unlock(lock) glthread_lock_unlock (&(lock))
  |  |  ------------------
  |  |  |  |  218|     57|    (pthread_in_use () ? pthread_mutex_unlock (LOCK) : 0)
  |  |  |  |  ------------------
  |  |  |  |  |  |  170|     57|#   define pthread_in_use() 1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (170:29): [True: 57, Folded]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  450|     57|  return rval;
  451|     57|}
regex.c:re_search_internal:
  583|     57|{
  584|     57|  reg_errcode_t err;
  585|     57|  const re_dfa_t *dfa = preg->buffer;
  586|     57|  Idx left_lim, right_lim;
  587|     57|  int incr;
  588|     57|  bool fl_longest_match;
  589|     57|  int match_kind;
  590|     57|  Idx match_first;
  591|     57|  Idx match_last = -1;
  592|     57|  Idx extra_nmatch;
  593|     57|  bool sb;
  594|     57|  int ch;
  595|     57|  re_match_context_t mctx = { .dfa = dfa };
  596|     57|  char *fastmap = ((preg->fastmap != NULL && preg->fastmap_accurate
  ------------------
  |  Branch (596:21): [True: 0, False: 57]
  |  Branch (596:46): [True: 0, False: 0]
  ------------------
  597|      0|		    && start != last_start && !preg->can_be_null)
  ------------------
  |  Branch (597:10): [True: 0, False: 0]
  |  Branch (597:33): [True: 0, False: 0]
  ------------------
  598|     57|		   ? preg->fastmap : NULL);
  599|     57|  RE_TRANSLATE_TYPE t = preg->translate;
  ------------------
  |  |  403|     57|#  define RE_TRANSLATE_TYPE __RE_TRANSLATE_TYPE
  |  |  ------------------
  |  |  |  |  401|     57|# define __RE_TRANSLATE_TYPE unsigned char *
  |  |  ------------------
  ------------------
  600|       |
  601|     57|  extra_nmatch = (nmatch > preg->re_nsub) ? nmatch - (preg->re_nsub + 1) : 0;
  ------------------
  |  Branch (601:18): [True: 49, False: 8]
  ------------------
  602|     57|  nmatch -= extra_nmatch;
  603|       |
  604|       |  /* Check if the DFA haven't been compiled.  */
  605|     57|  if (__glibc_unlikely (preg->used == 0 || dfa->init_state == NULL
  ------------------
  |  Branch (605:7): [True: 0, False: 57]
  |  Branch (605:7): [True: 0, False: 57]
  |  Branch (605:7): [True: 0, False: 57]
  |  Branch (605:7): [True: 0, False: 57]
  |  Branch (605:7): [True: 0, False: 57]
  |  Branch (605:7): [True: 0, False: 57]
  ------------------
  606|     57|			|| dfa->init_state_word == NULL
  607|     57|			|| dfa->init_state_nl == NULL
  608|     57|			|| dfa->init_state_begbuf == NULL))
  609|      0|    return REG_NOMATCH;
  ------------------
  |  |  377|      0|#define REG_NOMATCH	_REG_NOMATCH
  ------------------
  610|       |
  611|       |  /* We assume front-end functions already check them.  */
  612|     57|  DEBUG_ASSERT (0 <= last_start && last_start <= length);
  ------------------
  |  |   45|     57|# define DEBUG_ASSERT(x) assume (x)
  |  |  ------------------
  |  |  |  |  375|    114|# define assume(R) ((R) ? (void) 0 : __builtin_unreachable ())
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (375:22): [True: 57, False: 0]
  |  |  |  |  |  Branch (375:22): [True: 57, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  613|       |
  614|       |  /* If initial states with non-begbuf contexts have no elements,
  615|       |     the regex must be anchored.  If preg->newline_anchor is set,
  616|       |     we'll never use init_state_nl, so do not check it.  */
  617|     57|  if (dfa->init_state->nodes.nelem == 0
  ------------------
  |  Branch (617:7): [True: 0, False: 57]
  ------------------
  618|      0|      && dfa->init_state_word->nodes.nelem == 0
  ------------------
  |  Branch (618:10): [True: 0, False: 0]
  ------------------
  619|      0|      && (dfa->init_state_nl->nodes.nelem == 0
  ------------------
  |  Branch (619:11): [True: 0, False: 0]
  ------------------
  620|      0|	  || !preg->newline_anchor))
  ------------------
  |  Branch (620:7): [True: 0, False: 0]
  ------------------
  621|      0|    {
  622|      0|      if (start != 0 && last_start != 0)
  ------------------
  |  Branch (622:11): [True: 0, False: 0]
  |  Branch (622:25): [True: 0, False: 0]
  ------------------
  623|      0|        return REG_NOMATCH;
  ------------------
  |  |  377|      0|#define REG_NOMATCH	_REG_NOMATCH
  ------------------
  624|      0|      start = last_start = 0;
  625|      0|    }
  626|       |
  627|       |  /* We must check the longest matching, if nmatch > 0.  */
  628|     57|  fl_longest_match = (nmatch != 0 || dfa->nbackref);
  ------------------
  |  Branch (628:23): [True: 57, False: 0]
  |  Branch (628:38): [True: 0, False: 0]
  ------------------
  629|       |
  630|     57|  re_dfastate_t **save_state_log = NULL;
  631|       |
  632|     57|  err = re_string_allocate (&mctx.input, string, length, dfa->nodes_len + 1,
  633|     57|			    preg->translate, (preg->syntax & RE_ICASE) != 0,
  ------------------
  |  |  190|     57|# define RE_ICASE (RE_INVALID_INTERVAL_ORD << 1)
  |  |  ------------------
  |  |  |  |  186|     57|# define RE_INVALID_INTERVAL_ORD (RE_DEBUG << 1)
  |  |  |  |  ------------------
  |  |  |  |  |  |  181|     57|# define RE_DEBUG (RE_NO_GNU_OPS << 1)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  173|     57|# define RE_NO_GNU_OPS (RE_NO_POSIX_BACKTRACKING << 1)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  169|     57|# define RE_NO_POSIX_BACKTRACKING (RE_UNMATCHED_RIGHT_PAREN_ORD << 1)
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  165|     57|# define RE_UNMATCHED_RIGHT_PAREN_ORD (RE_NO_EMPTY_RANGES << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  161|     57|# define RE_NO_EMPTY_RANGES (RE_NO_BK_VBAR << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  155|     57|# define RE_NO_BK_VBAR (RE_NO_BK_REFS << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  151|     57|# define RE_NO_BK_REFS (RE_NO_BK_PARENS << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  147|     57|# define RE_NO_BK_PARENS (RE_NO_BK_BRACES << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  143|     57|# define RE_NO_BK_BRACES (RE_NEWLINE_ALT << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  138|     57|# define RE_NEWLINE_ALT (RE_LIMITED_OPS << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  134|     57|# define RE_LIMITED_OPS (RE_INTERVALS << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  130|     57|# define RE_INTERVALS (RE_HAT_LISTS_NOT_NEWLINE << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  125|     57|# define RE_HAT_LISTS_NOT_NEWLINE (RE_DOT_NOT_NULL << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  121|     57|# define RE_DOT_NOT_NULL (RE_DOT_NEWLINE << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  117|     57|# define RE_DOT_NEWLINE (RE_CONTEXT_INVALID_OPS << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  113|     57|# define RE_CONTEXT_INVALID_OPS (RE_CONTEXT_INDEP_OPS << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  109|     57|# define RE_CONTEXT_INDEP_OPS (RE_CONTEXT_INDEP_ANCHORS << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  101|     57|# define RE_CONTEXT_INDEP_ANCHORS (RE_CHAR_CLASSES << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |   87|     57|# define RE_CHAR_CLASSES (RE_BK_PLUS_QM << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |   81|     57|# define RE_BK_PLUS_QM (RE_BACKSLASH_ESCAPE_IN_LISTS << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |   76|     57|# define RE_BACKSLASH_ESCAPE_IN_LISTS 1ul
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  634|     57|			    dfa);
  635|     57|  if (__glibc_unlikely (err != REG_NOERROR))
  ------------------
  |  Branch (635:7): [True: 0, False: 57]
  ------------------
  636|      0|    goto free_return;
  637|     57|  mctx.input.stop = stop;
  638|     57|  mctx.input.raw_stop = stop;
  639|     57|  mctx.input.newline_anchor = preg->newline_anchor;
  640|       |
  641|     57|  err = match_ctx_init (&mctx, eflags, dfa->nbackref * 2);
  642|     57|  if (__glibc_unlikely (err != REG_NOERROR))
  ------------------
  |  Branch (642:7): [True: 0, False: 57]
  ------------------
  643|      0|    goto free_return;
  644|       |
  645|       |  /* We will log all the DFA states through which the dfa pass,
  646|       |     if nmatch > 1, or this dfa has "multibyte node", which is a
  647|       |     back-reference or a node which can accept multibyte character or
  648|       |     multi character collating element.  */
  649|     57|  if (nmatch > 1 || dfa->has_mb_node)
  ------------------
  |  Branch (649:7): [True: 0, False: 57]
  |  Branch (649:21): [True: 0, False: 57]
  ------------------
  650|      0|    {
  651|       |      /* Avoid overflow.  */
  652|      0|      if (__glibc_unlikely ((MIN (IDX_MAX, SIZE_MAX / sizeof (re_dfastate_t *))
  ------------------
  |  Branch (652:11): [Folded, False: 0]
  |  Branch (652:11): [True: 0, False: 0]
  ------------------
  653|      0|			     <= mctx.input.bufs_len)))
  654|      0|	{
  655|      0|	  err = REG_ESPACE;
  ------------------
  |  |  388|      0|#define REG_ESPACE	_REG_ESPACE
  ------------------
  656|      0|	  goto free_return;
  657|      0|	}
  658|       |
  659|      0|      mctx.state_log = re_malloc (re_dfastate_t *, mctx.input.bufs_len + 1);
  ------------------
  |  |  467|      0|# define re_malloc(t,n) ((t *) malloc ((n) * sizeof (t)))
  ------------------
  660|      0|      if (__glibc_unlikely (mctx.state_log == NULL))
  ------------------
  |  Branch (660:11): [True: 0, False: 0]
  ------------------
  661|      0|	{
  662|      0|	  err = REG_ESPACE;
  ------------------
  |  |  388|      0|#define REG_ESPACE	_REG_ESPACE
  ------------------
  663|      0|	  goto free_return;
  664|      0|	}
  665|      0|    }
  666|       |
  667|     57|  match_first = start;
  668|     57|  mctx.input.tip_context = (eflags & REG_NOTBOL) ? CONTEXT_BEGBUF
  ------------------
  |  |  333|     57|#define REG_NOTBOL 1
  ------------------
                mctx.input.tip_context = (eflags & REG_NOTBOL) ? CONTEXT_BEGBUF
  ------------------
  |  |  502|      0|#define CONTEXT_BEGBUF (CONTEXT_NEWLINE << 1)
  |  |  ------------------
  |  |  |  |  501|      0|#define CONTEXT_NEWLINE (CONTEXT_WORD << 1)
  |  |  |  |  ------------------
  |  |  |  |  |  |  500|      0|#define CONTEXT_WORD 1
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  |  Branch (668:28): [True: 0, False: 57]
  ------------------
  669|     57|			   : CONTEXT_NEWLINE | CONTEXT_BEGBUF;
  ------------------
  |  |  501|     57|#define CONTEXT_NEWLINE (CONTEXT_WORD << 1)
  |  |  ------------------
  |  |  |  |  500|     57|#define CONTEXT_WORD 1
  |  |  ------------------
  ------------------
              			   : CONTEXT_NEWLINE | CONTEXT_BEGBUF;
  ------------------
  |  |  502|    114|#define CONTEXT_BEGBUF (CONTEXT_NEWLINE << 1)
  |  |  ------------------
  |  |  |  |  501|     57|#define CONTEXT_NEWLINE (CONTEXT_WORD << 1)
  |  |  |  |  ------------------
  |  |  |  |  |  |  500|     57|#define CONTEXT_WORD 1
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  670|       |
  671|       |  /* Check incrementally whether the input string matches.  */
  672|     57|  incr = (last_start < start) ? -1 : 1;
  ------------------
  |  Branch (672:10): [True: 0, False: 57]
  ------------------
  673|     57|  left_lim = (last_start < start) ? last_start : start;
  ------------------
  |  Branch (673:14): [True: 0, False: 57]
  ------------------
  674|     57|  right_lim = (last_start < start) ? start : last_start;
  ------------------
  |  Branch (674:15): [True: 0, False: 57]
  ------------------
  675|     57|  sb = dfa->mb_cur_max == 1;
  676|     57|  match_kind =
  677|     57|    (fastmap
  ------------------
  |  Branch (677:6): [True: 0, False: 57]
  ------------------
  678|     57|     ? ((sb || !(preg->syntax & RE_ICASE || t) ? 4 : 0)
  ------------------
  |  |  190|      0|# define RE_ICASE (RE_INVALID_INTERVAL_ORD << 1)
  |  |  ------------------
  |  |  |  |  186|      0|# define RE_INVALID_INTERVAL_ORD (RE_DEBUG << 1)
  |  |  |  |  ------------------
  |  |  |  |  |  |  181|      0|# define RE_DEBUG (RE_NO_GNU_OPS << 1)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  173|      0|# define RE_NO_GNU_OPS (RE_NO_POSIX_BACKTRACKING << 1)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  169|      0|# define RE_NO_POSIX_BACKTRACKING (RE_UNMATCHED_RIGHT_PAREN_ORD << 1)
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  165|      0|# define RE_UNMATCHED_RIGHT_PAREN_ORD (RE_NO_EMPTY_RANGES << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  161|      0|# define RE_NO_EMPTY_RANGES (RE_NO_BK_VBAR << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  155|      0|# define RE_NO_BK_VBAR (RE_NO_BK_REFS << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  151|      0|# define RE_NO_BK_REFS (RE_NO_BK_PARENS << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  147|      0|# define RE_NO_BK_PARENS (RE_NO_BK_BRACES << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  143|      0|# define RE_NO_BK_BRACES (RE_NEWLINE_ALT << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  138|      0|# define RE_NEWLINE_ALT (RE_LIMITED_OPS << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  134|      0|# define RE_LIMITED_OPS (RE_INTERVALS << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  130|      0|# define RE_INTERVALS (RE_HAT_LISTS_NOT_NEWLINE << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  125|      0|# define RE_HAT_LISTS_NOT_NEWLINE (RE_DOT_NOT_NULL << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  121|      0|# define RE_DOT_NOT_NULL (RE_DOT_NEWLINE << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  117|      0|# define RE_DOT_NEWLINE (RE_CONTEXT_INVALID_OPS << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  113|      0|# define RE_CONTEXT_INVALID_OPS (RE_CONTEXT_INDEP_OPS << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  109|      0|# define RE_CONTEXT_INDEP_OPS (RE_CONTEXT_INDEP_ANCHORS << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  101|      0|# define RE_CONTEXT_INDEP_ANCHORS (RE_CHAR_CLASSES << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |   87|      0|# define RE_CHAR_CLASSES (RE_BK_PLUS_QM << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |   81|      0|# define RE_BK_PLUS_QM (RE_BACKSLASH_ESCAPE_IN_LISTS << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |   76|      0|# define RE_BACKSLASH_ESCAPE_IN_LISTS 1ul
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  |  Branch (678:10): [True: 0, False: 0]
  |  Branch (678:18): [True: 0, False: 0]
  |  Branch (678:45): [True: 0, False: 0]
  ------------------
  679|      0|	| (start <= last_start ? 2 : 0)
  ------------------
  |  Branch (679:5): [True: 0, False: 0]
  ------------------
  680|      0|	| (t != NULL ? 1 : 0))
  ------------------
  |  Branch (680:5): [True: 0, False: 0]
  ------------------
  681|     57|     : 8);
  682|       |
  683|     57|  for (;; match_first += incr)
  684|    105|    {
  685|    105|      err = REG_NOMATCH;
  ------------------
  |  |  377|    105|#define REG_NOMATCH	_REG_NOMATCH
  ------------------
  686|    105|      if (match_first < left_lim || right_lim < match_first)
  ------------------
  |  Branch (686:11): [True: 0, False: 105]
  |  Branch (686:37): [True: 48, False: 57]
  ------------------
  687|     48|	goto free_return;
  688|       |
  689|       |      /* Advance as rapidly as possible through the string, until we
  690|       |	 find a plausible place to start matching.  This may be done
  691|       |	 with varying efficiency, so there are various possibilities:
  692|       |	 only the most common of them are specialized, in order to
  693|       |	 save on code size.  We use a switch statement for speed.  */
  694|     57|      switch (match_kind)
  695|     57|	{
  696|     57|	case 8:
  ------------------
  |  Branch (696:2): [True: 57, False: 0]
  ------------------
  697|       |	  /* No fastmap.  */
  698|     57|	  break;
  699|       |
  700|      0|	case 7:
  ------------------
  |  Branch (700:2): [True: 0, False: 57]
  ------------------
  701|       |	  /* Fastmap with single-byte translation, match forward.  */
  702|      0|	  while (__glibc_likely (match_first < right_lim)
  ------------------
  |  Branch (702:11): [True: 0, False: 0]
  ------------------
  703|      0|		 && !fastmap[t[(unsigned char) string[match_first]]])
  ------------------
  |  Branch (703:7): [True: 0, False: 0]
  ------------------
  704|      0|	    ++match_first;
  705|      0|	  goto forward_match_found_start_or_reached_end;
  706|       |
  707|      0|	case 6:
  ------------------
  |  Branch (707:2): [True: 0, False: 57]
  ------------------
  708|       |	  /* Fastmap without translation, match forward.  */
  709|      0|	  while (__glibc_likely (match_first < right_lim)
  ------------------
  |  Branch (709:11): [True: 0, False: 0]
  ------------------
  710|      0|		 && !fastmap[(unsigned char) string[match_first]])
  ------------------
  |  Branch (710:7): [True: 0, False: 0]
  ------------------
  711|      0|	    ++match_first;
  712|       |
  713|      0|	forward_match_found_start_or_reached_end:
  714|      0|	  if (__glibc_unlikely (match_first == right_lim))
  ------------------
  |  Branch (714:8): [True: 0, False: 0]
  ------------------
  715|      0|	    {
  716|      0|	      ch = match_first >= length
  ------------------
  |  Branch (716:13): [True: 0, False: 0]
  ------------------
  717|      0|		       ? 0 : (unsigned char) string[match_first];
  718|      0|	      if (!fastmap[t ? t[ch] : ch])
  ------------------
  |  Branch (718:12): [True: 0, False: 0]
  |  Branch (718:21): [True: 0, False: 0]
  ------------------
  719|      0|		goto free_return;
  720|      0|	    }
  721|      0|	  break;
  722|       |
  723|      0|	case 4:
  ------------------
  |  Branch (723:2): [True: 0, False: 57]
  ------------------
  724|      0|	case 5:
  ------------------
  |  Branch (724:2): [True: 0, False: 57]
  ------------------
  725|       |	  /* Fastmap without multi-byte translation, match backwards.  */
  726|      0|	  while (match_first >= left_lim)
  ------------------
  |  Branch (726:11): [True: 0, False: 0]
  ------------------
  727|      0|	    {
  728|      0|	      ch = match_first >= length
  ------------------
  |  Branch (728:13): [True: 0, False: 0]
  ------------------
  729|      0|		       ? 0 : (unsigned char) string[match_first];
  730|      0|	      if (fastmap[t ? t[ch] : ch])
  ------------------
  |  Branch (730:12): [True: 0, False: 0]
  |  Branch (730:20): [True: 0, False: 0]
  ------------------
  731|      0|		break;
  732|      0|	      --match_first;
  733|      0|	    }
  734|      0|	  if (match_first < left_lim)
  ------------------
  |  Branch (734:8): [True: 0, False: 0]
  ------------------
  735|      0|	    goto free_return;
  736|      0|	  break;
  737|       |
  738|      0|	default:
  ------------------
  |  Branch (738:2): [True: 0, False: 57]
  ------------------
  739|       |	  /* In this case, we can't determine easily the current byte,
  740|       |	     since it might be a component byte of a multibyte
  741|       |	     character.  Then we use the constructed buffer instead.  */
  742|      0|	  for (;;)
  743|      0|	    {
  744|       |	      /* If MATCH_FIRST is out of the valid range, reconstruct the
  745|       |		 buffers.  */
  746|      0|	      __re_size_t offset = match_first - mctx.input.raw_mbs_idx;
  747|      0|	      if (__glibc_unlikely (offset
  ------------------
  |  Branch (747:12): [True: 0, False: 0]
  ------------------
  748|      0|				    >= (__re_size_t) mctx.input.valid_raw_len))
  749|      0|		{
  750|      0|		  err = re_string_reconstruct (&mctx.input, match_first,
  751|      0|					       eflags);
  752|      0|		  if (__glibc_unlikely (err != REG_NOERROR))
  ------------------
  |  Branch (752:9): [True: 0, False: 0]
  ------------------
  753|      0|		    goto free_return;
  754|       |
  755|      0|		  offset = match_first - mctx.input.raw_mbs_idx;
  756|      0|		}
  757|       |	      /* Use buffer byte if OFFSET is in buffer, otherwise '\0'.  */
  758|      0|	      ch = (offset < mctx.input.valid_len
  ------------------
  |  Branch (758:14): [True: 0, False: 0]
  ------------------
  759|      0|		    ? re_string_byte_at (&mctx.input, offset) : 0);
  ------------------
  |  |  455|      0|#define re_string_byte_at(pstr,idx) ((pstr)->mbs[idx])
  ------------------
  760|      0|	      if (fastmap[ch])
  ------------------
  |  Branch (760:12): [True: 0, False: 0]
  ------------------
  761|      0|		break;
  762|      0|	      match_first += incr;
  763|      0|	      if (match_first < left_lim || match_first > right_lim)
  ------------------
  |  Branch (763:12): [True: 0, False: 0]
  |  Branch (763:38): [True: 0, False: 0]
  ------------------
  764|      0|		{
  765|      0|		  err = REG_NOMATCH;
  ------------------
  |  |  377|      0|#define REG_NOMATCH	_REG_NOMATCH
  ------------------
  766|      0|		  goto free_return;
  767|      0|		}
  768|      0|	    }
  769|      0|	  break;
  770|     57|	}
  771|       |
  772|       |      /* Reconstruct the buffers so that the matcher can assume that
  773|       |	 the matching starts from the beginning of the buffer.  */
  774|     57|      err = re_string_reconstruct (&mctx.input, match_first, eflags);
  775|     57|      if (__glibc_unlikely (err != REG_NOERROR))
  ------------------
  |  Branch (775:11): [True: 0, False: 57]
  ------------------
  776|      0|	goto free_return;
  777|       |
  778|       |      /* Don't consider this char as a possible match start if it part,
  779|       |         yet isn't the head, of a multibyte character.  */
  780|     57|      if (!sb && !re_string_first_byte (&mctx.input, 0))
  ------------------
  |  |  447|      0|  ((idx) == (pstr)->valid_len || (pstr)->wcs[idx] != WEOF)
  |  |  ------------------
  |  |  |  Branch (447:4): [True: 0, False: 0]
  |  |  |  Branch (447:34): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  |  Branch (780:11): [True: 0, False: 57]
  ------------------
  781|      0|	continue;
  782|       |
  783|       |      /* It seems to be appropriate one, then use the matcher.  */
  784|       |      /* We assume that the matching starts from 0.  */
  785|     57|      mctx.state_log_top = mctx.nbkref_ents = mctx.max_mb_elem_len = 0;
  786|     57|      match_last = check_matching (&mctx, fl_longest_match,
  787|     57|				   start <= last_start ? &match_first : NULL);
  ------------------
  |  Branch (787:8): [True: 57, False: 0]
  ------------------
  788|     57|      if (match_last != -1)
  ------------------
  |  Branch (788:11): [True: 9, False: 48]
  ------------------
  789|      9|	{
  790|      9|	  if (__glibc_unlikely (match_last == -2))
  ------------------
  |  Branch (790:8): [True: 0, False: 9]
  ------------------
  791|      0|	    {
  792|      0|	      err = REG_ESPACE;
  ------------------
  |  |  388|      0|#define REG_ESPACE	_REG_ESPACE
  ------------------
  793|      0|	      goto free_return;
  794|      0|	    }
  795|      9|	  else
  796|      9|	    {
  797|      9|	      mctx.match_last = match_last;
  798|      9|	      if ((!preg->no_sub && nmatch > 1) || dfa->nbackref)
  ------------------
  |  Branch (798:13): [True: 9, False: 0]
  |  Branch (798:30): [True: 0, False: 9]
  |  Branch (798:45): [True: 0, False: 9]
  ------------------
  799|      0|		{
  800|      0|		  re_dfastate_t *pstate = mctx.state_log[match_last];
  801|      0|		  mctx.last_node = check_halt_state_context (&mctx, pstate,
  802|      0|							     match_last);
  803|      0|		}
  804|      9|	      if ((!preg->no_sub && nmatch > 1 && dfa->has_plural_match)
  ------------------
  |  Branch (804:13): [True: 9, False: 0]
  |  Branch (804:30): [True: 0, False: 9]
  |  Branch (804:44): [True: 0, False: 0]
  ------------------
  805|      9|		  || dfa->nbackref)
  ------------------
  |  Branch (805:8): [True: 0, False: 9]
  ------------------
  806|      0|		{
  807|       |		  /* Save state_log before pruning, in case set_regs
  808|       |		     later fails and we need to retry with a shorter
  809|       |		     match.  */
  810|      0|		  re_free (save_state_log);
  ------------------
  |  |  472|      0|#define re_free(p) free (p)
  ------------------
  811|      0|		  save_state_log = NULL;
  812|      0|		  if (!preg->no_sub && nmatch > 1 && dfa->nbackref)
  ------------------
  |  Branch (812:9): [True: 0, False: 0]
  |  Branch (812:26): [True: 0, False: 0]
  |  Branch (812:40): [True: 0, False: 0]
  ------------------
  813|      0|		    {
  814|      0|		      save_state_log
  815|      0|			= re_malloc (re_dfastate_t *,
  ------------------
  |  |  467|      0|# define re_malloc(t,n) ((t *) malloc ((n) * sizeof (t)))
  ------------------
  816|      0|				     mctx.match_last + 1);
  817|      0|		      if (__glibc_unlikely (save_state_log == NULL))
  ------------------
  |  Branch (817:13): [True: 0, False: 0]
  ------------------
  818|      0|			{
  819|      0|			  err = REG_ESPACE;
  ------------------
  |  |  388|      0|#define REG_ESPACE	_REG_ESPACE
  ------------------
  820|      0|			  goto free_return;
  821|      0|			}
  822|      0|		      memcpy (save_state_log, mctx.state_log,
  823|      0|			      sizeof (re_dfastate_t *)
  824|      0|			      * (mctx.match_last + 1));
  825|      0|		    }
  826|      0|		  err = prune_impossible_nodes (&mctx);
  827|      0|		  if (err == REG_NOERROR)
  ------------------
  |  |  376|      0|#define REG_NOERROR	_REG_NOERROR
  ------------------
  |  Branch (827:9): [True: 0, False: 0]
  ------------------
  828|      0|		    break;
  829|      0|		  if (__glibc_unlikely (err != REG_NOMATCH))
  ------------------
  |  Branch (829:9): [True: 0, False: 0]
  ------------------
  830|      0|		    goto free_return;
  831|      0|		  re_free (save_state_log);
  ------------------
  |  |  472|      0|#define re_free(p) free (p)
  ------------------
  832|      0|		  save_state_log = NULL;
  833|      0|		  match_last = -1;
  834|      0|		}
  835|      9|	      else
  836|      9|		break; /* We found a match.  */
  837|      9|	    }
  838|      9|	}
  839|       |
  840|     48|      match_ctx_clean (&mctx);
  841|     48|    }
  842|       |
  843|      9|  DEBUG_ASSERT (match_last != -1);
  ------------------
  |  |   45|      9|# define DEBUG_ASSERT(x) assume (x)
  |  |  ------------------
  |  |  |  |  375|      9|# define assume(R) ((R) ? (void) 0 : __builtin_unreachable ())
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (375:21): [True: 9, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  844|      9|  DEBUG_ASSERT (err == REG_NOERROR);
  ------------------
  |  |   45|      9|# define DEBUG_ASSERT(x) assume (x)
  |  |  ------------------
  |  |  |  |  375|      9|# define assume(R) ((R) ? (void) 0 : __builtin_unreachable ())
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (375:21): [True: 9, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  845|       |
  846|       |  /* Set pmatch[] if we need.  */
  847|      9|  if (nmatch > 0)
  ------------------
  |  Branch (847:7): [True: 9, False: 0]
  ------------------
  848|      9|    {
  849|      9|      Idx reg_idx;
  850|       |
  851|       |      /* When set_regs fails for a backref pattern, the structural
  852|       |	 match at match_last has no valid register assignment.  Try
  853|       |	 shorter match lengths, since a valid shorter match may
  854|       |	 exist (e.g., all groups matching empty).  */
  855|      9|      for (;;)
  856|      9|	{
  857|       |	  /* Initialize registers.  */
  858|      9|	  for (reg_idx = 1; reg_idx < nmatch; ++reg_idx)
  ------------------
  |  Branch (858:22): [True: 0, False: 9]
  ------------------
  859|      0|	    pmatch[reg_idx].rm_so = pmatch[reg_idx].rm_eo = -1;
  860|      9|	  pmatch[0].rm_so = 0;
  861|      9|	  pmatch[0].rm_eo = mctx.match_last;
  862|       |
  863|      9|	  if (preg->no_sub || nmatch <= 1)
  ------------------
  |  Branch (863:8): [True: 0, False: 9]
  |  Branch (863:24): [True: 9, False: 0]
  ------------------
  864|      9|	    break;
  865|       |
  866|      0|	  err = set_regs (preg, &mctx, nmatch, pmatch,
  867|      0|			  dfa->has_plural_match && dfa->nbackref > 0);
  ------------------
  |  Branch (867:6): [True: 0, False: 0]
  |  Branch (867:31): [True: 0, False: 0]
  ------------------
  868|      0|	  if (__glibc_likely (err == REG_NOERROR)
  ------------------
  |  Branch (868:8): [True: 0, False: 0]
  ------------------
  869|      0|	      || save_state_log == NULL
  ------------------
  |  Branch (869:11): [True: 0, False: 0]
  ------------------
  870|      0|	      || err != REG_NOMATCH)
  ------------------
  |  |  377|      0|#define REG_NOMATCH	_REG_NOMATCH
  ------------------
  |  Branch (870:11): [True: 0, False: 0]
  ------------------
  871|      0|	    break;
  872|       |
  873|       |	  /* set_regs failed; try a shorter match_last.  */
  874|      0|	  Idx ml = mctx.match_last;
  875|      0|	  re_free (mctx.state_log);
  ------------------
  |  |  472|      0|#define re_free(p) free (p)
  ------------------
  876|      0|	  do
  877|      0|	    {
  878|      0|	      --ml;
  879|      0|	      if (ml < 0)
  ------------------
  |  Branch (879:12): [True: 0, False: 0]
  ------------------
  880|      0|		break;
  881|      0|	    }
  882|      0|	  while (save_state_log[ml] == NULL
  ------------------
  |  Branch (882:11): [True: 0, False: 0]
  ------------------
  883|      0|		 || !save_state_log[ml]->halt
  ------------------
  |  Branch (883:7): [True: 0, False: 0]
  ------------------
  884|      0|		 || !check_halt_state_context
  ------------------
  |  Branch (884:7): [True: 0, False: 0]
  ------------------
  885|      0|		      (&mctx, save_state_log[ml], ml));
  886|      0|	  if (ml < 0)
  ------------------
  |  Branch (886:8): [True: 0, False: 0]
  ------------------
  887|      0|	    {
  888|      0|	      err = REG_NOMATCH;
  ------------------
  |  |  377|      0|#define REG_NOMATCH	_REG_NOMATCH
  ------------------
  889|      0|	      mctx.state_log = save_state_log;
  890|      0|	      save_state_log = NULL;
  891|      0|	      break;
  892|      0|	    }
  893|      0|	  mctx.state_log
  894|      0|	    = re_malloc (re_dfastate_t *, ml + 1);
  ------------------
  |  |  467|      0|# define re_malloc(t,n) ((t *) malloc ((n) * sizeof (t)))
  ------------------
  895|      0|	  if (__glibc_unlikely (mctx.state_log == NULL))
  ------------------
  |  Branch (895:8): [True: 0, False: 0]
  ------------------
  896|      0|	    {
  897|      0|	      mctx.state_log = save_state_log;
  898|      0|	      save_state_log = NULL;
  899|      0|	      err = REG_ESPACE;
  ------------------
  |  |  388|      0|#define REG_ESPACE	_REG_ESPACE
  ------------------
  900|      0|	      break;
  901|      0|	    }
  902|      0|	  memcpy (mctx.state_log, save_state_log,
  903|      0|		  sizeof (re_dfastate_t *) * (ml + 1));
  904|      0|	  mctx.match_last = ml;
  905|      0|	  mctx.last_node
  906|      0|	    = check_halt_state_context
  907|      0|		(&mctx, save_state_log[ml], ml);
  908|      0|	  err = prune_impossible_nodes (&mctx);
  909|      0|	  if (__glibc_unlikely (err != REG_NOERROR))
  ------------------
  |  Branch (909:8): [True: 0, False: 0]
  ------------------
  910|      0|	    {
  911|      0|	      if (err == REG_NOMATCH)
  ------------------
  |  |  377|      0|#define REG_NOMATCH	_REG_NOMATCH
  ------------------
  |  Branch (911:12): [True: 0, False: 0]
  ------------------
  912|      0|		{
  913|      0|		  re_free (mctx.state_log);
  ------------------
  |  |  472|      0|#define re_free(p) free (p)
  ------------------
  914|      0|		  mctx.state_log = save_state_log;
  915|      0|		  save_state_log = NULL;
  916|      0|		}
  917|      0|	      break;
  918|      0|	    }
  919|      0|	}
  920|      9|      re_free (save_state_log);
  ------------------
  |  |  472|      9|#define re_free(p) free (p)
  ------------------
  921|      9|      save_state_log = NULL;
  922|      9|      if (__glibc_unlikely (err != REG_NOERROR))
  ------------------
  |  Branch (922:11): [True: 0, False: 9]
  ------------------
  923|      0|	goto free_return;
  924|       |
  925|       |      /* At last, add the offset to each register, since we slid
  926|       |	 the buffers so that we could assume that the matching starts
  927|       |	 from 0.  */
  928|     18|      for (reg_idx = 0; reg_idx < nmatch; ++reg_idx)
  ------------------
  |  Branch (928:25): [True: 9, False: 9]
  ------------------
  929|      9|	if (pmatch[reg_idx].rm_so != -1)
  ------------------
  |  Branch (929:6): [True: 9, False: 0]
  ------------------
  930|      9|	  {
  931|      9|	    if (__glibc_unlikely (mctx.input.offsets_needed != 0))
  ------------------
  |  Branch (931:10): [True: 0, False: 9]
  ------------------
  932|      0|	      {
  933|      0|		pmatch[reg_idx].rm_so =
  934|      0|		  (pmatch[reg_idx].rm_so == mctx.input.valid_len
  ------------------
  |  Branch (934:6): [True: 0, False: 0]
  ------------------
  935|      0|		   ? mctx.input.valid_raw_len
  936|      0|		   : mctx.input.offsets[pmatch[reg_idx].rm_so]);
  937|      0|		pmatch[reg_idx].rm_eo =
  938|      0|		  (pmatch[reg_idx].rm_eo == mctx.input.valid_len
  ------------------
  |  Branch (938:6): [True: 0, False: 0]
  ------------------
  939|      0|		   ? mctx.input.valid_raw_len
  940|      0|		   : mctx.input.offsets[pmatch[reg_idx].rm_eo]);
  941|      0|	      }
  942|      9|	    pmatch[reg_idx].rm_so += match_first;
  943|      9|	    pmatch[reg_idx].rm_eo += match_first;
  944|      9|	  }
  945|      9|      for (reg_idx = 0; reg_idx < extra_nmatch; ++reg_idx)
  ------------------
  |  Branch (945:25): [True: 0, False: 9]
  ------------------
  946|      0|	{
  947|      0|	  pmatch[nmatch + reg_idx].rm_so = -1;
  948|      0|	  pmatch[nmatch + reg_idx].rm_eo = -1;
  949|      0|	}
  950|       |
  951|      9|      if (dfa->subexp_map)
  ------------------
  |  Branch (951:11): [True: 0, False: 9]
  ------------------
  952|      0|	for (reg_idx = 0; reg_idx + 1 < nmatch; reg_idx++)
  ------------------
  |  Branch (952:20): [True: 0, False: 0]
  ------------------
  953|      0|	  if (dfa->subexp_map[reg_idx] != reg_idx)
  ------------------
  |  Branch (953:8): [True: 0, False: 0]
  ------------------
  954|      0|	    {
  955|      0|	      pmatch[reg_idx + 1].rm_so
  956|      0|		= pmatch[dfa->subexp_map[reg_idx] + 1].rm_so;
  957|      0|	      pmatch[reg_idx + 1].rm_eo
  958|      0|		= pmatch[dfa->subexp_map[reg_idx] + 1].rm_eo;
  959|      0|	    }
  960|      9|    }
  961|       |
  962|     57| free_return:
  963|     57|  re_free (save_state_log);
  ------------------
  |  |  472|     57|#define re_free(p) free (p)
  ------------------
  964|     57|  re_free (mctx.state_log);
  ------------------
  |  |  472|     57|#define re_free(p) free (p)
  ------------------
  965|     57|  if (dfa->nbackref)
  ------------------
  |  Branch (965:7): [True: 0, False: 57]
  ------------------
  966|      0|    match_ctx_free (&mctx);
  967|     57|  re_string_destruct (&mctx.input);
  968|     57|  return err;
  969|      9|}
regex.c:match_ctx_init:
 4096|     57|{
 4097|     57|  mctx->eflags = eflags;
 4098|     57|  mctx->match_last = -1;
 4099|     57|  if (n > 0)
  ------------------
  |  Branch (4099:7): [True: 0, False: 57]
  ------------------
 4100|      0|    {
 4101|       |      /* Avoid overflow.  */
 4102|      0|      size_t max_object_size =
 4103|      0|	MAX (sizeof (struct re_backref_cache_entry),
  ------------------
  |  |  460|      0|# define MAX(a,b) ((a) < (b) ? (b) : (a))
  |  |  ------------------
  |  |  |  Branch (460:20): [Folded, False: 0]
  |  |  ------------------
  ------------------
 4104|      0|	     sizeof (re_sub_match_top_t *));
 4105|      0|      if (__glibc_unlikely (MIN (IDX_MAX, SIZE_MAX / max_object_size) < n))
  ------------------
  |  Branch (4105:11): [True: 0, False: 0]
  |  Branch (4105:11): [True: 0, False: 0]
  ------------------
 4106|      0|	return REG_ESPACE;
  ------------------
  |  |  388|      0|#define REG_ESPACE	_REG_ESPACE
  ------------------
 4107|       |
 4108|      0|      mctx->bkref_ents = re_malloc (struct re_backref_cache_entry, n);
  ------------------
  |  |  467|      0|# define re_malloc(t,n) ((t *) malloc ((n) * sizeof (t)))
  ------------------
 4109|      0|      mctx->sub_tops = re_malloc (re_sub_match_top_t *, n);
  ------------------
  |  |  467|      0|# define re_malloc(t,n) ((t *) malloc ((n) * sizeof (t)))
  ------------------
 4110|      0|      if (__glibc_unlikely (mctx->bkref_ents == NULL || mctx->sub_tops == NULL))
  ------------------
  |  Branch (4110:11): [True: 0, False: 0]
  |  Branch (4110:11): [True: 0, False: 0]
  |  Branch (4110:11): [True: 0, False: 0]
  ------------------
 4111|      0|	return REG_ESPACE;
  ------------------
  |  |  388|      0|#define REG_ESPACE	_REG_ESPACE
  ------------------
 4112|      0|    }
 4113|       |  /* Already zero-ed by the caller.
 4114|       |     else
 4115|       |       mctx->bkref_ents = NULL;
 4116|       |     mctx->nbkref_ents = 0;
 4117|       |     mctx->nsub_tops = 0;  */
 4118|     57|  mctx->abkref_ents = n;
 4119|     57|  mctx->max_mb_elem_len = 1;
 4120|     57|  mctx->asub_tops = n;
 4121|     57|  return REG_NOERROR;
  ------------------
  |  |  376|     57|#define REG_NOERROR	_REG_NOERROR
  ------------------
 4122|     57|}
regex.c:check_matching:
 1117|     57|{
 1118|     57|  const re_dfa_t *const dfa = mctx->dfa;
 1119|     57|  reg_errcode_t err;
 1120|     57|  Idx match = 0;
 1121|     57|  Idx match_last = -1;
 1122|     57|  Idx cur_str_idx = re_string_cur_idx (&mctx->input);
  ------------------
  |  |  452|     57|#define re_string_cur_idx(pstr) ((pstr)->cur_idx)
  ------------------
 1123|     57|  re_dfastate_t *cur_state;
 1124|     57|  bool at_init_state = p_match_first != NULL;
 1125|     57|  Idx next_start_idx = cur_str_idx;
 1126|       |
 1127|     57|  err = REG_NOERROR;
  ------------------
  |  |  376|     57|#define REG_NOERROR	_REG_NOERROR
  ------------------
 1128|     57|  cur_state = acquire_init_state_context (&err, mctx, cur_str_idx);
 1129|       |  /* An initial state must not be NULL (invalid).  */
 1130|     57|  if (__glibc_unlikely (cur_state == NULL))
  ------------------
  |  Branch (1130:7): [True: 0, False: 57]
  ------------------
 1131|      0|    {
 1132|      0|      DEBUG_ASSERT (err == REG_ESPACE);
  ------------------
  |  |   45|      0|# define DEBUG_ASSERT(x) assume (x)
  |  |  ------------------
  |  |  |  |  375|      0|# define assume(R) ((R) ? (void) 0 : __builtin_unreachable ())
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (375:21): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1133|      0|      return -2;
 1134|      0|    }
 1135|       |
 1136|     57|  if (mctx->state_log != NULL)
  ------------------
  |  Branch (1136:7): [True: 0, False: 57]
  ------------------
 1137|      0|    {
 1138|      0|      mctx->state_log[cur_str_idx] = cur_state;
 1139|       |
 1140|       |      /* Check OP_OPEN_SUBEXP in the initial state in case that we use them
 1141|       |	 later.  E.g. Processing back references.  */
 1142|      0|      if (__glibc_unlikely (dfa->nbackref))
  ------------------
  |  Branch (1142:11): [True: 0, False: 0]
  ------------------
 1143|      0|	{
 1144|      0|	  at_init_state = false;
 1145|      0|	  err = check_subexp_matching_top (mctx, &cur_state->nodes, 0);
 1146|      0|	  if (__glibc_unlikely (err != REG_NOERROR))
  ------------------
  |  Branch (1146:8): [True: 0, False: 0]
  ------------------
 1147|      0|	    return err;
 1148|       |
 1149|      0|	  if (cur_state->has_backref)
  ------------------
  |  Branch (1149:8): [True: 0, False: 0]
  ------------------
 1150|      0|	    {
 1151|      0|	      err = transit_state_bkref (mctx, &cur_state->nodes);
 1152|      0|	      if (__glibc_unlikely (err != REG_NOERROR))
  ------------------
  |  Branch (1152:12): [True: 0, False: 0]
  ------------------
 1153|      0|		return err;
 1154|      0|	    }
 1155|      0|	}
 1156|      0|    }
 1157|       |
 1158|       |  /* If the RE accepts NULL string.  */
 1159|     57|  if (__glibc_unlikely (cur_state->halt))
  ------------------
  |  Branch (1159:7): [True: 0, False: 57]
  ------------------
 1160|      0|    {
 1161|      0|      if (!cur_state->has_constraint
  ------------------
  |  Branch (1161:11): [True: 0, False: 0]
  ------------------
 1162|      0|	  || check_halt_state_context (mctx, cur_state, cur_str_idx))
  ------------------
  |  Branch (1162:7): [True: 0, False: 0]
  ------------------
 1163|      0|	{
 1164|      0|	  if (!fl_longest_match)
  ------------------
  |  Branch (1164:8): [True: 0, False: 0]
  ------------------
 1165|      0|	    return cur_str_idx;
 1166|      0|	  else
 1167|      0|	    {
 1168|      0|	      match_last = cur_str_idx;
 1169|      0|	      match = 1;
 1170|      0|	    }
 1171|      0|	}
 1172|      0|    }
 1173|       |
 1174|    154|  while (!re_string_eoi (&mctx->input))
  ------------------
  |  |  451|    154|#define re_string_eoi(pstr) ((pstr)->stop <= (pstr)->cur_idx)
  ------------------
  |  Branch (1174:10): [True: 98, False: 56]
  ------------------
 1175|     98|    {
 1176|     98|      re_dfastate_t *old_state = cur_state;
 1177|     98|      Idx next_char_idx = re_string_cur_idx (&mctx->input) + 1;
  ------------------
  |  |  452|     98|#define re_string_cur_idx(pstr) ((pstr)->cur_idx)
  ------------------
 1178|       |
 1179|     98|      if ((__glibc_unlikely (next_char_idx >= mctx->input.bufs_len)
  ------------------
  |  Branch (1179:12): [True: 0, False: 98]
  ------------------
 1180|      0|	   && mctx->input.bufs_len < mctx->input.len)
  ------------------
  |  Branch (1180:8): [True: 0, False: 0]
  ------------------
 1181|     98|	  || (__glibc_unlikely (next_char_idx >= mctx->input.valid_len)
  ------------------
  |  Branch (1181:8): [True: 8, False: 90]
  ------------------
 1182|      8|	      && mctx->input.valid_len < mctx->input.len))
  ------------------
  |  Branch (1182:11): [True: 0, False: 8]
  ------------------
 1183|      0|	{
 1184|      0|	  err = extend_buffers (mctx, next_char_idx + 1);
 1185|      0|	  if (__glibc_unlikely (err != REG_NOERROR))
  ------------------
  |  Branch (1185:8): [True: 0, False: 0]
  ------------------
 1186|      0|	    {
 1187|      0|	      DEBUG_ASSERT (err == REG_ESPACE);
  ------------------
  |  |   45|      0|# define DEBUG_ASSERT(x) assume (x)
  |  |  ------------------
  |  |  |  |  375|      0|# define assume(R) ((R) ? (void) 0 : __builtin_unreachable ())
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (375:21): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1188|      0|	      return -2;
 1189|      0|	    }
 1190|      0|	}
 1191|       |
 1192|     98|      cur_state = transit_state (&err, mctx, cur_state);
 1193|     98|      if (mctx->state_log != NULL)
  ------------------
  |  Branch (1193:11): [True: 0, False: 98]
  ------------------
 1194|      0|	cur_state = merge_state_with_log (&err, mctx, cur_state);
 1195|       |
 1196|     98|      if (cur_state == NULL)
  ------------------
  |  Branch (1196:11): [True: 1, False: 97]
  ------------------
 1197|      1|	{
 1198|       |	  /* Reached the invalid state or an error.  Try to recover a valid
 1199|       |	     state using the state log, if available and if we have not
 1200|       |	     already found a valid (even if not the longest) match.  */
 1201|      1|	  if (__glibc_unlikely (err != REG_NOERROR))
  ------------------
  |  Branch (1201:8): [True: 0, False: 1]
  ------------------
 1202|      0|	    return -2;
 1203|       |
 1204|      1|	  if (mctx->state_log == NULL
  ------------------
  |  Branch (1204:8): [True: 1, False: 0]
  ------------------
 1205|      0|	      || (match && !fl_longest_match)
  ------------------
  |  Branch (1205:12): [True: 0, False: 0]
  |  Branch (1205:21): [True: 0, False: 0]
  ------------------
 1206|      0|	      || (cur_state = find_recover_state (&err, mctx)) == NULL)
  ------------------
  |  Branch (1206:11): [True: 0, False: 0]
  ------------------
 1207|      1|	    break;
 1208|      1|	}
 1209|       |
 1210|     97|      if (__glibc_unlikely (at_init_state))
  ------------------
  |  Branch (1210:11): [True: 9, False: 88]
  ------------------
 1211|      9|	{
 1212|      9|	  if (old_state == cur_state)
  ------------------
  |  Branch (1212:8): [True: 0, False: 9]
  ------------------
 1213|      0|	    next_start_idx = next_char_idx;
 1214|      9|	  else
 1215|      9|	    at_init_state = false;
 1216|      9|	}
 1217|       |
 1218|     97|      if (cur_state->halt)
  ------------------
  |  Branch (1218:11): [True: 9, False: 88]
  ------------------
 1219|      9|	{
 1220|       |	  /* Reached a halt state.
 1221|       |	     Check the halt state can satisfy the current context.  */
 1222|      9|	  if (!cur_state->has_constraint
  ------------------
  |  Branch (1222:8): [True: 9, False: 0]
  ------------------
 1223|      0|	      || check_halt_state_context (mctx, cur_state,
  ------------------
  |  Branch (1223:11): [True: 0, False: 0]
  ------------------
 1224|      0|					   re_string_cur_idx (&mctx->input)))
  ------------------
  |  |  452|      0|#define re_string_cur_idx(pstr) ((pstr)->cur_idx)
  ------------------
 1225|      9|	    {
 1226|       |	      /* We found an appropriate halt state.  */
 1227|      9|	      match_last = re_string_cur_idx (&mctx->input);
  ------------------
  |  |  452|      9|#define re_string_cur_idx(pstr) ((pstr)->cur_idx)
  ------------------
 1228|      9|	      match = 1;
 1229|       |
 1230|       |	      /* We found a match, do not modify match_first below.  */
 1231|      9|	      p_match_first = NULL;
 1232|      9|	      if (!fl_longest_match)
  ------------------
  |  Branch (1232:12): [True: 0, False: 9]
  ------------------
 1233|      0|		break;
 1234|      9|	    }
 1235|      9|	}
 1236|     97|    }
 1237|       |
 1238|     57|  if (p_match_first)
  ------------------
  |  Branch (1238:7): [True: 48, False: 9]
  ------------------
 1239|     48|    *p_match_first += next_start_idx;
 1240|       |
 1241|     57|  return match_last;
 1242|     57|}
regex.c:acquire_init_state_context:
 1075|     57|{
 1076|     57|  const re_dfa_t *const dfa = mctx->dfa;
 1077|     57|  if (dfa->init_state->has_constraint)
  ------------------
  |  Branch (1077:7): [True: 0, False: 57]
  ------------------
 1078|      0|    {
 1079|      0|      unsigned int context;
 1080|      0|      context = re_string_context_at (&mctx->input, idx - 1, mctx->eflags);
 1081|      0|      if (IS_WORD_CONTEXT (context))
  ------------------
  |  |  505|      0|#define IS_WORD_CONTEXT(c) ((c) & CONTEXT_WORD)
  |  |  ------------------
  |  |  |  |  500|      0|#define CONTEXT_WORD 1
  |  |  ------------------
  |  |  |  Branch (505:28): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 1082|      0|	return dfa->init_state_word;
 1083|      0|      else if (IS_ORDINARY_CONTEXT (context))
  ------------------
  |  |  509|      0|#define IS_ORDINARY_CONTEXT(c) ((c) == 0)
  |  |  ------------------
  |  |  |  Branch (509:32): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 1084|      0|	return dfa->init_state;
 1085|      0|      else if (IS_BEGBUF_CONTEXT (context) && IS_NEWLINE_CONTEXT (context))
  ------------------
  |  |  507|      0|#define IS_BEGBUF_CONTEXT(c) ((c) & CONTEXT_BEGBUF)
  |  |  ------------------
  |  |  |  |  502|      0|#define CONTEXT_BEGBUF (CONTEXT_NEWLINE << 1)
  |  |  |  |  ------------------
  |  |  |  |  |  |  501|      0|#define CONTEXT_NEWLINE (CONTEXT_WORD << 1)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  500|      0|#define CONTEXT_WORD 1
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  |  Branch (507:30): [True: 0, False: 0]
  |  |  ------------------
  ------------------
                    else if (IS_BEGBUF_CONTEXT (context) && IS_NEWLINE_CONTEXT (context))
  ------------------
  |  |  506|      0|#define IS_NEWLINE_CONTEXT(c) ((c) & CONTEXT_NEWLINE)
  |  |  ------------------
  |  |  |  |  501|      0|#define CONTEXT_NEWLINE (CONTEXT_WORD << 1)
  |  |  |  |  ------------------
  |  |  |  |  |  |  500|      0|#define CONTEXT_WORD 1
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  |  Branch (506:31): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 1086|      0|	return dfa->init_state_begbuf;
 1087|      0|      else if (IS_NEWLINE_CONTEXT (context))
  ------------------
  |  |  506|      0|#define IS_NEWLINE_CONTEXT(c) ((c) & CONTEXT_NEWLINE)
  |  |  ------------------
  |  |  |  |  501|      0|#define CONTEXT_NEWLINE (CONTEXT_WORD << 1)
  |  |  |  |  ------------------
  |  |  |  |  |  |  500|      0|#define CONTEXT_WORD 1
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  |  Branch (506:31): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 1088|      0|	return dfa->init_state_nl;
 1089|      0|      else if (IS_BEGBUF_CONTEXT (context))
  ------------------
  |  |  507|      0|#define IS_BEGBUF_CONTEXT(c) ((c) & CONTEXT_BEGBUF)
  |  |  ------------------
  |  |  |  |  502|      0|#define CONTEXT_BEGBUF (CONTEXT_NEWLINE << 1)
  |  |  |  |  ------------------
  |  |  |  |  |  |  501|      0|#define CONTEXT_NEWLINE (CONTEXT_WORD << 1)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  500|      0|#define CONTEXT_WORD 1
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  |  Branch (507:30): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 1090|      0|	{
 1091|       |	  /* It is relatively rare case, then calculate on demand.  */
 1092|      0|	  return re_acquire_state_context (err, dfa,
 1093|      0|					   dfa->init_state->entrance_nodes,
 1094|      0|					   context);
 1095|      0|	}
 1096|      0|      else
 1097|       |	/* Must not happen?  */
 1098|      0|	return dfa->init_state;
 1099|      0|    }
 1100|     57|  else
 1101|     57|    return dfa->init_state;
 1102|     57|}
regex.c:transit_state:
 2280|     98|{
 2281|     98|  re_dfastate_t **trtable;
 2282|     98|  unsigned char ch;
 2283|       |
 2284|       |  /* If the current state can accept multibyte.  */
 2285|     98|  if (__glibc_unlikely (state->accept_mb))
  ------------------
  |  Branch (2285:7): [True: 0, False: 98]
  ------------------
 2286|      0|    {
 2287|      0|      *err = transit_state_mb (mctx, state);
 2288|      0|      if (__glibc_unlikely (*err != REG_NOERROR))
  ------------------
  |  Branch (2288:11): [True: 0, False: 0]
  ------------------
 2289|      0|	return NULL;
 2290|      0|    }
 2291|       |
 2292|       |  /* Then decide the next state with the single byte.  */
 2293|       |#if 0
 2294|       |  if (0)
 2295|       |    /* don't use transition table  */
 2296|       |    return transit_state_sb (err, mctx, state);
 2297|       |#endif
 2298|       |
 2299|       |  /* Use transition table  */
 2300|     98|  ch = re_string_fetch_byte (&mctx->input);
  ------------------
  |  |  445|     98|  ((pstr)->mbs[(pstr)->cur_idx++])
  ------------------
 2301|     98|  for (;;)
 2302|    196|    {
 2303|    196|      trtable = state->trtable;
 2304|    196|      if (__glibc_likely (trtable != NULL))
  ------------------
  |  Branch (2304:11): [True: 98, False: 98]
  ------------------
 2305|     98|	return trtable[ch];
 2306|       |
 2307|     98|      trtable = state->word_trtable;
 2308|     98|      if (__glibc_likely (trtable != NULL))
  ------------------
  |  Branch (2308:11): [True: 0, False: 98]
  ------------------
 2309|      0|	{
 2310|      0|	  unsigned int context;
 2311|      0|	  context
 2312|      0|	    = re_string_context_at (&mctx->input,
 2313|      0|				    re_string_cur_idx (&mctx->input) - 1,
  ------------------
  |  |  452|      0|#define re_string_cur_idx(pstr) ((pstr)->cur_idx)
  ------------------
 2314|      0|				    mctx->eflags);
 2315|      0|	  if (IS_WORD_CONTEXT (context))
  ------------------
  |  |  505|      0|#define IS_WORD_CONTEXT(c) ((c) & CONTEXT_WORD)
  |  |  ------------------
  |  |  |  |  500|      0|#define CONTEXT_WORD 1
  |  |  ------------------
  |  |  |  Branch (505:28): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 2316|      0|	    return trtable[ch + SBC_MAX];
  ------------------
  |  |  114|      0|#define SBC_MAX (UCHAR_MAX + 1)
  ------------------
 2317|      0|	  else
 2318|      0|	    return trtable[ch];
 2319|      0|	}
 2320|       |
 2321|     98|      if (!build_trtable (mctx->dfa, state))
  ------------------
  |  Branch (2321:11): [True: 0, False: 98]
  ------------------
 2322|      0|	{
 2323|      0|	  *err = REG_ESPACE;
  ------------------
  |  |  388|      0|#define REG_ESPACE	_REG_ESPACE
  ------------------
 2324|      0|	  return NULL;
 2325|      0|	}
 2326|       |
 2327|       |      /* Retry, we now have a transition table.  */
 2328|     98|    }
 2329|     98|}
regex.c:build_trtable:
 3321|     98|{
 3322|     98|  reg_errcode_t err;
 3323|     98|  Idx i, j;
 3324|     98|  int ch;
 3325|     98|  bool need_word_trtable = false;
 3326|     98|  bitset_word_t elem, mask;
 3327|     98|  Idx ndests; /* Number of the destination states from 'state'.  */
 3328|     98|  re_dfastate_t **trtable;
 3329|     98|  re_dfastate_t *dest_states[SBC_MAX];
 3330|     98|  re_dfastate_t *dest_states_word[SBC_MAX];
 3331|     98|  re_dfastate_t *dest_states_nl[SBC_MAX];
 3332|     98|  re_node_set follows;
 3333|     98|  bitset_t acceptable;
 3334|       |
 3335|       |  /* We build DFA states which corresponds to the destination nodes
 3336|       |     from 'state'.  'dests_node[i]' represents the nodes which i-th
 3337|       |     destination state contains, and 'dests_ch[i]' represents the
 3338|       |     characters which i-th destination state accepts.  */
 3339|     98|  re_node_set dests_node[SBC_MAX];
 3340|     98|  bitset_t dests_ch[SBC_MAX];
 3341|       |
 3342|       |  /* Initialize transition table.  */
 3343|     98|  state->word_trtable = state->trtable = NULL;
 3344|       |
 3345|       |  /* At first, group all nodes belonging to 'state' into several
 3346|       |     destinations.  */
 3347|     98|  ndests = group_nodes_into_DFAstates (dfa, state, dests_node, dests_ch);
 3348|     98|  if (__glibc_unlikely (ndests <= 0))
  ------------------
  |  Branch (3348:7): [True: 1, False: 97]
  ------------------
 3349|      1|    {
 3350|       |      /* Return false in case of an error, true otherwise.  */
 3351|      1|      if (ndests == 0)
  ------------------
  |  Branch (3351:11): [True: 1, False: 0]
  ------------------
 3352|      1|	{
 3353|      1|	  state->trtable = (re_dfastate_t **)
 3354|      1|	    calloc (SBC_MAX, sizeof (re_dfastate_t *));
  ------------------
  |  |  114|      1|#define SBC_MAX (UCHAR_MAX + 1)
  ------------------
 3355|      1|          if (__glibc_unlikely (state->trtable == NULL))
  ------------------
  |  Branch (3355:15): [True: 0, False: 1]
  ------------------
 3356|      0|            return false;
 3357|      1|	  return true;
 3358|      1|	}
 3359|      0|      return false;
 3360|      1|    }
 3361|       |
 3362|     97|  err = re_node_set_alloc (&follows, ndests + 1);
 3363|     97|  if (__glibc_unlikely (err != REG_NOERROR))
  ------------------
  |  Branch (3363:7): [True: 0, False: 97]
  ------------------
 3364|      0|    {
 3365|      0|    out_free:
 3366|      0|      re_node_set_free (&follows);
  ------------------
  |  |  695|      0|#define re_node_set_free(set) re_free ((set)->elems)
  |  |  ------------------
  |  |  |  |  472|      0|#define re_free(p) free (p)
  |  |  ------------------
  ------------------
 3367|      0|      for (i = 0; i < ndests; ++i)
  ------------------
  |  Branch (3367:19): [True: 0, False: 0]
  ------------------
 3368|      0|	re_node_set_free (dests_node + i);
  ------------------
  |  |  695|      0|#define re_node_set_free(set) re_free ((set)->elems)
  |  |  ------------------
  |  |  |  |  472|      0|#define re_free(p) free (p)
  |  |  ------------------
  ------------------
 3369|      0|      return false;
 3370|      0|    }
 3371|       |
 3372|     97|  bitset_empty (acceptable);
 3373|       |
 3374|       |  /* Then build the states for all destinations.  */
 3375|    202|  for (i = 0; i < ndests; ++i)
  ------------------
  |  Branch (3375:15): [True: 105, False: 97]
  ------------------
 3376|    105|    {
 3377|    105|      Idx next_node;
 3378|    105|      re_node_set_empty (&follows);
  ------------------
  |  |  694|    105|#define re_node_set_empty(p) ((p)->nelem = 0)
  ------------------
 3379|       |      /* Merge the follows of this destination states.  */
 3380|    214|      for (j = 0; j < dests_node[i].nelem; ++j)
  ------------------
  |  Branch (3380:19): [True: 109, False: 105]
  ------------------
 3381|    109|	{
 3382|    109|	  next_node = dfa->nexts[dests_node[i].elems[j]];
 3383|    109|	  if (next_node != -1)
  ------------------
  |  Branch (3383:8): [True: 109, False: 0]
  ------------------
 3384|    109|	    {
 3385|    109|	      err = re_node_set_merge (&follows, dfa->eclosures + next_node);
 3386|    109|	      if (__glibc_unlikely (err != REG_NOERROR))
  ------------------
  |  Branch (3386:12): [True: 0, False: 109]
  ------------------
 3387|      0|		goto out_free;
 3388|    109|	    }
 3389|    109|	}
 3390|    105|      dest_states[i] = re_acquire_state_context (&err, dfa, &follows, 0);
 3391|    105|      if (__glibc_unlikely (dest_states[i] == NULL && err != REG_NOERROR))
  ------------------
  |  Branch (3391:11): [True: 0, False: 105]
  |  Branch (3391:11): [True: 0, False: 0]
  |  Branch (3391:11): [True: 0, False: 105]
  ------------------
 3392|      0|	goto out_free;
 3393|       |      /* If the new state has context constraint,
 3394|       |	 build appropriate states for these contexts.  */
 3395|    105|      if (dest_states[i]->has_constraint)
  ------------------
  |  Branch (3395:11): [True: 0, False: 105]
  ------------------
 3396|      0|	{
 3397|      0|	  dest_states_word[i] = re_acquire_state_context (&err, dfa, &follows,
 3398|      0|							  CONTEXT_WORD);
  ------------------
  |  |  500|      0|#define CONTEXT_WORD 1
  ------------------
 3399|      0|	  if (__glibc_unlikely (dest_states_word[i] == NULL
  ------------------
  |  Branch (3399:8): [True: 0, False: 0]
  |  Branch (3399:8): [True: 0, False: 0]
  |  Branch (3399:8): [True: 0, False: 0]
  ------------------
 3400|      0|				&& err != REG_NOERROR))
 3401|      0|	    goto out_free;
 3402|       |
 3403|      0|	  if (dest_states[i] != dest_states_word[i] && dfa->mb_cur_max > 1)
  ------------------
  |  Branch (3403:8): [True: 0, False: 0]
  |  Branch (3403:49): [True: 0, False: 0]
  ------------------
 3404|      0|	    need_word_trtable = true;
 3405|       |
 3406|      0|	  dest_states_nl[i] = re_acquire_state_context (&err, dfa, &follows,
 3407|      0|							CONTEXT_NEWLINE);
  ------------------
  |  |  501|      0|#define CONTEXT_NEWLINE (CONTEXT_WORD << 1)
  |  |  ------------------
  |  |  |  |  500|      0|#define CONTEXT_WORD 1
  |  |  ------------------
  ------------------
 3408|      0|	  if (__glibc_unlikely (dest_states_nl[i] == NULL && err != REG_NOERROR))
  ------------------
  |  Branch (3408:8): [True: 0, False: 0]
  |  Branch (3408:8): [True: 0, False: 0]
  |  Branch (3408:8): [True: 0, False: 0]
  ------------------
 3409|      0|	    goto out_free;
 3410|      0|	}
 3411|    105|      else
 3412|    105|	{
 3413|    105|	  dest_states_word[i] = dest_states[i];
 3414|    105|	  dest_states_nl[i] = dest_states[i];
 3415|    105|	}
 3416|    105|      bitset_merge (acceptable, dests_ch[i]);
 3417|    105|    }
 3418|       |
 3419|     97|  if (!__glibc_unlikely (need_word_trtable))
  ------------------
  |  Branch (3419:7): [True: 97, False: 0]
  ------------------
 3420|     97|    {
 3421|       |      /* We don't care about whether the following character is a word
 3422|       |	 character, or we are in a single-byte character set so we can
 3423|       |	 discern by looking at the character code: allocate a
 3424|       |	 256-entry transition table.  */
 3425|     97|      trtable = state->trtable =
 3426|     97|	(re_dfastate_t **) calloc (SBC_MAX, sizeof (re_dfastate_t *));
  ------------------
  |  |  114|     97|#define SBC_MAX (UCHAR_MAX + 1)
  ------------------
 3427|     97|      if (__glibc_unlikely (trtable == NULL))
  ------------------
  |  Branch (3427:11): [True: 0, False: 97]
  ------------------
 3428|      0|	goto out_free;
 3429|       |
 3430|       |      /* For all characters ch...:  */
 3431|    485|      for (i = 0; i < BITSET_WORDS; ++i)
  ------------------
  |  |  219|    485|#define BITSET_WORDS ((SBC_MAX + BITSET_WORD_BITS - 1) / BITSET_WORD_BITS)
  |  |  ------------------
  |  |  |  |  114|    485|#define SBC_MAX (UCHAR_MAX + 1)
  |  |  ------------------
  |  |               #define BITSET_WORDS ((SBC_MAX + BITSET_WORD_BITS - 1) / BITSET_WORD_BITS)
  |  |  ------------------
  |  |  |  |  216|    485|#define BITSET_WORD_BITS ULONG_WIDTH
  |  |  ------------------
  |  |               #define BITSET_WORDS ((SBC_MAX + BITSET_WORD_BITS - 1) / BITSET_WORD_BITS)
  |  |  ------------------
  |  |  |  |  216|    485|#define BITSET_WORD_BITS ULONG_WIDTH
  |  |  ------------------
  ------------------
  |  Branch (3431:19): [True: 388, False: 97]
  ------------------
 3432|    388|	for (ch = i * BITSET_WORD_BITS, elem = acceptable[i], mask = 1;
  ------------------
  |  |  216|    388|#define BITSET_WORD_BITS ULONG_WIDTH
  ------------------
 3433|  4.89k|	     elem;
  ------------------
  |  Branch (3433:7): [True: 4.51k, False: 388]
  ------------------
 3434|  4.51k|	     mask <<= 1, elem >>= 1, ++ch)
 3435|  4.51k|	  if (__glibc_unlikely (elem & 1))
  ------------------
  |  Branch (3435:8): [True: 352, False: 4.15k]
  ------------------
 3436|    352|	    {
 3437|       |	      /* There must be exactly one destination which accepts
 3438|       |		 character ch.  See group_nodes_into_DFAstates.  */
 3439|    364|	      for (j = 0; (dests_ch[j][i] & mask) == 0; ++j)
  ------------------
  |  Branch (3439:20): [True: 12, False: 352]
  ------------------
 3440|     12|		;
 3441|       |
 3442|       |	      /* j-th destination accepts the word character ch.  */
 3443|    352|	      if (dfa->word_char[i] & mask)
  ------------------
  |  Branch (3443:12): [True: 0, False: 352]
  ------------------
 3444|      0|		trtable[ch] = dest_states_word[j];
 3445|    352|	      else
 3446|    352|		trtable[ch] = dest_states[j];
 3447|    352|	    }
 3448|     97|    }
 3449|      0|  else
 3450|      0|    {
 3451|       |      /* We care about whether the following character is a word
 3452|       |	 character, and we are in a multi-byte character set: discern
 3453|       |	 by looking at the character code: build two 256-entry
 3454|       |	 transition tables, one starting at trtable[0] and one
 3455|       |	 starting at trtable[SBC_MAX].  */
 3456|      0|      trtable = state->word_trtable =
 3457|      0|	(re_dfastate_t **) calloc (2 * SBC_MAX, sizeof (re_dfastate_t *));
  ------------------
  |  |  114|      0|#define SBC_MAX (UCHAR_MAX + 1)
  ------------------
 3458|      0|      if (__glibc_unlikely (trtable == NULL))
  ------------------
  |  Branch (3458:11): [True: 0, False: 0]
  ------------------
 3459|      0|	goto out_free;
 3460|       |
 3461|       |      /* For all characters ch...:  */
 3462|      0|      for (i = 0; i < BITSET_WORDS; ++i)
  ------------------
  |  |  219|      0|#define BITSET_WORDS ((SBC_MAX + BITSET_WORD_BITS - 1) / BITSET_WORD_BITS)
  |  |  ------------------
  |  |  |  |  114|      0|#define SBC_MAX (UCHAR_MAX + 1)
  |  |  ------------------
  |  |               #define BITSET_WORDS ((SBC_MAX + BITSET_WORD_BITS - 1) / BITSET_WORD_BITS)
  |  |  ------------------
  |  |  |  |  216|      0|#define BITSET_WORD_BITS ULONG_WIDTH
  |  |  ------------------
  |  |               #define BITSET_WORDS ((SBC_MAX + BITSET_WORD_BITS - 1) / BITSET_WORD_BITS)
  |  |  ------------------
  |  |  |  |  216|      0|#define BITSET_WORD_BITS ULONG_WIDTH
  |  |  ------------------
  ------------------
  |  Branch (3462:19): [True: 0, False: 0]
  ------------------
 3463|      0|	for (ch = i * BITSET_WORD_BITS, elem = acceptable[i], mask = 1;
  ------------------
  |  |  216|      0|#define BITSET_WORD_BITS ULONG_WIDTH
  ------------------
 3464|      0|	     elem;
  ------------------
  |  Branch (3464:7): [True: 0, False: 0]
  ------------------
 3465|      0|	     mask <<= 1, elem >>= 1, ++ch)
 3466|      0|	  if (__glibc_unlikely (elem & 1))
  ------------------
  |  Branch (3466:8): [True: 0, False: 0]
  ------------------
 3467|      0|	    {
 3468|       |	      /* There must be exactly one destination which accepts
 3469|       |		 character ch.  See group_nodes_into_DFAstates.  */
 3470|      0|	      for (j = 0; (dests_ch[j][i] & mask) == 0; ++j)
  ------------------
  |  Branch (3470:20): [True: 0, False: 0]
  ------------------
 3471|      0|		;
 3472|       |
 3473|       |	      /* j-th destination accepts the word character ch.  */
 3474|      0|	      trtable[ch] = dest_states[j];
 3475|      0|	      trtable[ch + SBC_MAX] = dest_states_word[j];
  ------------------
  |  |  114|      0|#define SBC_MAX (UCHAR_MAX + 1)
  ------------------
 3476|      0|	    }
 3477|      0|    }
 3478|       |
 3479|       |  /* new line */
 3480|     97|  if (bitset_contain (acceptable, NEWLINE_CHAR))
  ------------------
  |  |  119|     97|#define NEWLINE_CHAR '\n'
  ------------------
  |  Branch (3480:7): [True: 1, False: 96]
  ------------------
 3481|      1|    {
 3482|       |      /* The current state accepts newline character.  */
 3483|      1|      for (j = 0; j < ndests; ++j)
  ------------------
  |  Branch (3483:19): [True: 1, False: 0]
  ------------------
 3484|      1|	if (bitset_contain (dests_ch[j], NEWLINE_CHAR))
  ------------------
  |  |  119|      1|#define NEWLINE_CHAR '\n'
  ------------------
  |  Branch (3484:6): [True: 1, False: 0]
  ------------------
 3485|      1|	  {
 3486|       |	    /* k-th destination accepts newline character.  */
 3487|      1|	    trtable[NEWLINE_CHAR] = dest_states_nl[j];
  ------------------
  |  |  119|      1|#define NEWLINE_CHAR '\n'
  ------------------
 3488|      1|	    if (need_word_trtable)
  ------------------
  |  Branch (3488:10): [True: 0, False: 1]
  ------------------
 3489|      0|	      trtable[NEWLINE_CHAR + SBC_MAX] = dest_states_nl[j];
  ------------------
  |  |  119|      0|#define NEWLINE_CHAR '\n'
  ------------------
              	      trtable[NEWLINE_CHAR + SBC_MAX] = dest_states_nl[j];
  ------------------
  |  |  114|      0|#define SBC_MAX (UCHAR_MAX + 1)
  ------------------
 3490|       |	    /* There must be only one destination which accepts
 3491|       |	       newline.  See group_nodes_into_DFAstates.  */
 3492|      1|	    break;
 3493|      1|	  }
 3494|      1|    }
 3495|       |
 3496|     97|  re_node_set_free (&follows);
  ------------------
  |  |  695|     97|#define re_node_set_free(set) re_free ((set)->elems)
  |  |  ------------------
  |  |  |  |  472|     97|#define re_free(p) free (p)
  |  |  ------------------
  ------------------
 3497|    202|  for (i = 0; i < ndests; ++i)
  ------------------
  |  Branch (3497:15): [True: 105, False: 97]
  ------------------
 3498|    105|    re_node_set_free (dests_node + i);
  ------------------
  |  |  695|    105|#define re_node_set_free(set) re_free ((set)->elems)
  |  |  ------------------
  |  |  |  |  472|    202|#define re_free(p) free (p)
  |  |  ------------------
  ------------------
 3499|       |  return true;
 3500|     97|}
regex.c:group_nodes_into_DFAstates:
 3511|     98|{
 3512|     98|  reg_errcode_t err;
 3513|     98|  bool ok;
 3514|     98|  Idx i, j, k;
 3515|     98|  Idx ndests; /* Number of the destinations from 'state'.  */
 3516|     98|  bitset_t accepts; /* Characters a node can accept.  */
 3517|     98|  const re_node_set *cur_nodes = &state->nodes;
 3518|     98|  bitset_empty (accepts);
 3519|     98|  ndests = 0;
 3520|       |
 3521|       |  /* For all the nodes belonging to 'state',  */
 3522|    240|  for (i = 0; i < cur_nodes->nelem; ++i)
  ------------------
  |  Branch (3522:15): [True: 142, False: 98]
  ------------------
 3523|    142|    {
 3524|    142|      re_token_t *node = &dfa->nodes[cur_nodes->elems[i]];
 3525|    142|      re_token_type_t type = node->type;
 3526|    142|      unsigned int constraint = node->constraint;
 3527|       |
 3528|       |      /* Enumerate all single byte character this node can accept.  */
 3529|    142|      if (type == CHARACTER)
  ------------------
  |  Branch (3529:11): [True: 108, False: 34]
  ------------------
 3530|    108|	bitset_set (accepts, node->opr.c);
 3531|     34|      else if (type == SIMPLE_BRACKET)
  ------------------
  |  Branch (3531:16): [True: 1, False: 33]
  ------------------
 3532|      1|	{
 3533|      1|	  bitset_merge (accepts, node->opr.sbcset);
 3534|      1|	}
 3535|     33|      else if (type == OP_PERIOD)
  ------------------
  |  Branch (3535:16): [True: 0, False: 33]
  ------------------
 3536|      0|	{
 3537|      0|	  if (dfa->mb_cur_max > 1)
  ------------------
  |  Branch (3537:8): [True: 0, False: 0]
  ------------------
 3538|      0|	    bitset_merge (accepts, dfa->sb_char);
 3539|      0|	  else
 3540|      0|	    bitset_set_all (accepts);
 3541|      0|	  if (!(dfa->syntax & RE_DOT_NEWLINE))
  ------------------
  |  |  117|      0|# define RE_DOT_NEWLINE (RE_CONTEXT_INVALID_OPS << 1)
  |  |  ------------------
  |  |  |  |  113|      0|# define RE_CONTEXT_INVALID_OPS (RE_CONTEXT_INDEP_OPS << 1)
  |  |  |  |  ------------------
  |  |  |  |  |  |  109|      0|# define RE_CONTEXT_INDEP_OPS (RE_CONTEXT_INDEP_ANCHORS << 1)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  101|      0|# define RE_CONTEXT_INDEP_ANCHORS (RE_CHAR_CLASSES << 1)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   87|      0|# define RE_CHAR_CLASSES (RE_BK_PLUS_QM << 1)
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |   81|      0|# define RE_BK_PLUS_QM (RE_BACKSLASH_ESCAPE_IN_LISTS << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |   76|      0|# define RE_BACKSLASH_ESCAPE_IN_LISTS 1ul
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  |  Branch (3541:8): [True: 0, False: 0]
  ------------------
 3542|      0|	    bitset_clear (accepts, '\n');
 3543|      0|	  if (dfa->syntax & RE_DOT_NOT_NULL)
  ------------------
  |  |  121|      0|# define RE_DOT_NOT_NULL (RE_DOT_NEWLINE << 1)
  |  |  ------------------
  |  |  |  |  117|      0|# define RE_DOT_NEWLINE (RE_CONTEXT_INVALID_OPS << 1)
  |  |  |  |  ------------------
  |  |  |  |  |  |  113|      0|# define RE_CONTEXT_INVALID_OPS (RE_CONTEXT_INDEP_OPS << 1)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  109|      0|# define RE_CONTEXT_INDEP_OPS (RE_CONTEXT_INDEP_ANCHORS << 1)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  101|      0|# define RE_CONTEXT_INDEP_ANCHORS (RE_CHAR_CLASSES << 1)
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |   87|      0|# define RE_CHAR_CLASSES (RE_BK_PLUS_QM << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |   81|      0|# define RE_BK_PLUS_QM (RE_BACKSLASH_ESCAPE_IN_LISTS << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |   76|      0|# define RE_BACKSLASH_ESCAPE_IN_LISTS 1ul
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  |  Branch (3543:8): [True: 0, False: 0]
  ------------------
 3544|      0|	    bitset_clear (accepts, '\0');
 3545|      0|	}
 3546|     33|      else if (type == OP_UTF8_PERIOD)
  ------------------
  |  Branch (3546:16): [True: 0, False: 33]
  ------------------
 3547|      0|	{
 3548|      0|	  if (ASCII_CHARS % BITSET_WORD_BITS == 0)
  ------------------
  |  |  111|      0|#define ASCII_CHARS 0x80
  ------------------
              	  if (ASCII_CHARS % BITSET_WORD_BITS == 0)
  ------------------
  |  |  216|      0|#define BITSET_WORD_BITS ULONG_WIDTH
  ------------------
  |  Branch (3548:8): [True: 0, Folded]
  ------------------
 3549|      0|	    memset (accepts, -1, ASCII_CHARS / CHAR_BIT);
  ------------------
  |  |  111|      0|#define ASCII_CHARS 0x80
  ------------------
 3550|      0|	  else
 3551|      0|	    bitset_merge (accepts, utf8_sb_map);
 3552|      0|	  if (!(dfa->syntax & RE_DOT_NEWLINE))
  ------------------
  |  |  117|      0|# define RE_DOT_NEWLINE (RE_CONTEXT_INVALID_OPS << 1)
  |  |  ------------------
  |  |  |  |  113|      0|# define RE_CONTEXT_INVALID_OPS (RE_CONTEXT_INDEP_OPS << 1)
  |  |  |  |  ------------------
  |  |  |  |  |  |  109|      0|# define RE_CONTEXT_INDEP_OPS (RE_CONTEXT_INDEP_ANCHORS << 1)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  101|      0|# define RE_CONTEXT_INDEP_ANCHORS (RE_CHAR_CLASSES << 1)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   87|      0|# define RE_CHAR_CLASSES (RE_BK_PLUS_QM << 1)
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |   81|      0|# define RE_BK_PLUS_QM (RE_BACKSLASH_ESCAPE_IN_LISTS << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |   76|      0|# define RE_BACKSLASH_ESCAPE_IN_LISTS 1ul
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  |  Branch (3552:8): [True: 0, False: 0]
  ------------------
 3553|      0|	    bitset_clear (accepts, '\n');
 3554|      0|	  if (dfa->syntax & RE_DOT_NOT_NULL)
  ------------------
  |  |  121|      0|# define RE_DOT_NOT_NULL (RE_DOT_NEWLINE << 1)
  |  |  ------------------
  |  |  |  |  117|      0|# define RE_DOT_NEWLINE (RE_CONTEXT_INVALID_OPS << 1)
  |  |  |  |  ------------------
  |  |  |  |  |  |  113|      0|# define RE_CONTEXT_INVALID_OPS (RE_CONTEXT_INDEP_OPS << 1)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  109|      0|# define RE_CONTEXT_INDEP_OPS (RE_CONTEXT_INDEP_ANCHORS << 1)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  101|      0|# define RE_CONTEXT_INDEP_ANCHORS (RE_CHAR_CLASSES << 1)
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |   87|      0|# define RE_CHAR_CLASSES (RE_BK_PLUS_QM << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |   81|      0|# define RE_BK_PLUS_QM (RE_BACKSLASH_ESCAPE_IN_LISTS << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |   76|      0|# define RE_BACKSLASH_ESCAPE_IN_LISTS 1ul
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  |  Branch (3554:8): [True: 0, False: 0]
  ------------------
 3555|      0|	    bitset_clear (accepts, '\0');
 3556|      0|	}
 3557|     33|      else
 3558|     33|	continue;
 3559|       |
 3560|       |      /* Check the 'accepts' and sift the characters which are not
 3561|       |	 match it the context.  */
 3562|    109|      if (constraint)
  ------------------
  |  Branch (3562:11): [True: 0, False: 109]
  ------------------
 3563|      0|	{
 3564|      0|	  if (constraint & NEXT_NEWLINE_CONSTRAINT)
  ------------------
  |  |  230|      0|#define NEXT_NEWLINE_CONSTRAINT 0x0020
  ------------------
  |  Branch (3564:8): [True: 0, False: 0]
  ------------------
 3565|      0|	    {
 3566|      0|	      bool accepts_newline = bitset_contain (accepts, NEWLINE_CHAR);
  ------------------
  |  |  119|      0|#define NEWLINE_CHAR '\n'
  ------------------
 3567|      0|	      bitset_empty (accepts);
 3568|      0|	      if (accepts_newline)
  ------------------
  |  Branch (3568:12): [True: 0, False: 0]
  ------------------
 3569|      0|		bitset_set (accepts, NEWLINE_CHAR);
  ------------------
  |  |  119|      0|#define NEWLINE_CHAR '\n'
  ------------------
 3570|      0|	      else
 3571|      0|		continue;
 3572|      0|	    }
 3573|      0|	  if (constraint & NEXT_ENDBUF_CONSTRAINT)
  ------------------
  |  |  232|      0|#define NEXT_ENDBUF_CONSTRAINT 0x0080
  ------------------
  |  Branch (3573:8): [True: 0, False: 0]
  ------------------
 3574|      0|	    {
 3575|      0|	      bitset_empty (accepts);
 3576|      0|	      continue;
 3577|      0|	    }
 3578|       |
 3579|      0|	  if (constraint & NEXT_WORD_CONSTRAINT)
  ------------------
  |  |  227|      0|#define NEXT_WORD_CONSTRAINT 0x0004
  ------------------
  |  Branch (3579:8): [True: 0, False: 0]
  ------------------
 3580|      0|	    {
 3581|      0|	      bitset_word_t any_set = 0;
 3582|      0|	      if (type == CHARACTER && !node->word_char)
  ------------------
  |  Branch (3582:12): [True: 0, False: 0]
  |  Branch (3582:33): [True: 0, False: 0]
  ------------------
 3583|      0|		{
 3584|      0|		  bitset_empty (accepts);
 3585|      0|		  continue;
 3586|      0|		}
 3587|      0|	      if (dfa->mb_cur_max > 1)
  ------------------
  |  Branch (3587:12): [True: 0, False: 0]
  ------------------
 3588|      0|		for (j = 0; j < BITSET_WORDS; ++j)
  ------------------
  |  |  219|      0|#define BITSET_WORDS ((SBC_MAX + BITSET_WORD_BITS - 1) / BITSET_WORD_BITS)
  |  |  ------------------
  |  |  |  |  114|      0|#define SBC_MAX (UCHAR_MAX + 1)
  |  |  ------------------
  |  |               #define BITSET_WORDS ((SBC_MAX + BITSET_WORD_BITS - 1) / BITSET_WORD_BITS)
  |  |  ------------------
  |  |  |  |  216|      0|#define BITSET_WORD_BITS ULONG_WIDTH
  |  |  ------------------
  |  |               #define BITSET_WORDS ((SBC_MAX + BITSET_WORD_BITS - 1) / BITSET_WORD_BITS)
  |  |  ------------------
  |  |  |  |  216|      0|#define BITSET_WORD_BITS ULONG_WIDTH
  |  |  ------------------
  ------------------
  |  Branch (3588:15): [True: 0, False: 0]
  ------------------
 3589|      0|		  any_set |= (accepts[j] &= (dfa->word_char[j] | ~dfa->sb_char[j]));
 3590|      0|	      else
 3591|      0|		for (j = 0; j < BITSET_WORDS; ++j)
  ------------------
  |  |  219|      0|#define BITSET_WORDS ((SBC_MAX + BITSET_WORD_BITS - 1) / BITSET_WORD_BITS)
  |  |  ------------------
  |  |  |  |  114|      0|#define SBC_MAX (UCHAR_MAX + 1)
  |  |  ------------------
  |  |               #define BITSET_WORDS ((SBC_MAX + BITSET_WORD_BITS - 1) / BITSET_WORD_BITS)
  |  |  ------------------
  |  |  |  |  216|      0|#define BITSET_WORD_BITS ULONG_WIDTH
  |  |  ------------------
  |  |               #define BITSET_WORDS ((SBC_MAX + BITSET_WORD_BITS - 1) / BITSET_WORD_BITS)
  |  |  ------------------
  |  |  |  |  216|      0|#define BITSET_WORD_BITS ULONG_WIDTH
  |  |  ------------------
  ------------------
  |  Branch (3591:15): [True: 0, False: 0]
  ------------------
 3592|      0|		  any_set |= (accepts[j] &= dfa->word_char[j]);
 3593|      0|	      if (!any_set)
  ------------------
  |  Branch (3593:12): [True: 0, False: 0]
  ------------------
 3594|      0|		continue;
 3595|      0|	    }
 3596|      0|	  if (constraint & NEXT_NOTWORD_CONSTRAINT)
  ------------------
  |  |  228|      0|#define NEXT_NOTWORD_CONSTRAINT 0x0008
  ------------------
  |  Branch (3596:8): [True: 0, False: 0]
  ------------------
 3597|      0|	    {
 3598|      0|	      bitset_word_t any_set = 0;
 3599|      0|	      if (type == CHARACTER && node->word_char)
  ------------------
  |  Branch (3599:12): [True: 0, False: 0]
  |  Branch (3599:33): [True: 0, False: 0]
  ------------------
 3600|      0|		{
 3601|      0|		  bitset_empty (accepts);
 3602|      0|		  continue;
 3603|      0|		}
 3604|      0|	      if (dfa->mb_cur_max > 1)
  ------------------
  |  Branch (3604:12): [True: 0, False: 0]
  ------------------
 3605|      0|		for (j = 0; j < BITSET_WORDS; ++j)
  ------------------
  |  |  219|      0|#define BITSET_WORDS ((SBC_MAX + BITSET_WORD_BITS - 1) / BITSET_WORD_BITS)
  |  |  ------------------
  |  |  |  |  114|      0|#define SBC_MAX (UCHAR_MAX + 1)
  |  |  ------------------
  |  |               #define BITSET_WORDS ((SBC_MAX + BITSET_WORD_BITS - 1) / BITSET_WORD_BITS)
  |  |  ------------------
  |  |  |  |  216|      0|#define BITSET_WORD_BITS ULONG_WIDTH
  |  |  ------------------
  |  |               #define BITSET_WORDS ((SBC_MAX + BITSET_WORD_BITS - 1) / BITSET_WORD_BITS)
  |  |  ------------------
  |  |  |  |  216|      0|#define BITSET_WORD_BITS ULONG_WIDTH
  |  |  ------------------
  ------------------
  |  Branch (3605:15): [True: 0, False: 0]
  ------------------
 3606|      0|		  any_set |= (accepts[j] &= ~(dfa->word_char[j] & dfa->sb_char[j]));
 3607|      0|	      else
 3608|      0|		for (j = 0; j < BITSET_WORDS; ++j)
  ------------------
  |  |  219|      0|#define BITSET_WORDS ((SBC_MAX + BITSET_WORD_BITS - 1) / BITSET_WORD_BITS)
  |  |  ------------------
  |  |  |  |  114|      0|#define SBC_MAX (UCHAR_MAX + 1)
  |  |  ------------------
  |  |               #define BITSET_WORDS ((SBC_MAX + BITSET_WORD_BITS - 1) / BITSET_WORD_BITS)
  |  |  ------------------
  |  |  |  |  216|      0|#define BITSET_WORD_BITS ULONG_WIDTH
  |  |  ------------------
  |  |               #define BITSET_WORDS ((SBC_MAX + BITSET_WORD_BITS - 1) / BITSET_WORD_BITS)
  |  |  ------------------
  |  |  |  |  216|      0|#define BITSET_WORD_BITS ULONG_WIDTH
  |  |  ------------------
  ------------------
  |  Branch (3608:15): [True: 0, False: 0]
  ------------------
 3609|      0|		  any_set |= (accepts[j] &= ~dfa->word_char[j]);
 3610|      0|	      if (!any_set)
  ------------------
  |  Branch (3610:12): [True: 0, False: 0]
  ------------------
 3611|      0|		continue;
 3612|      0|	    }
 3613|      0|	}
 3614|       |
 3615|       |      /* Then divide 'accepts' into DFA states, or create a new
 3616|       |	 state.  Above, we make sure that accepts is not empty.  */
 3617|    125|      for (j = 0; j < ndests; ++j)
  ------------------
  |  Branch (3617:19): [True: 20, False: 105]
  ------------------
 3618|     20|	{
 3619|     20|	  bitset_t intersec; /* Intersection sets, see below.  */
 3620|     20|	  bitset_t remains;
 3621|       |	  /* Flags, see below.  */
 3622|     20|	  bitset_word_t has_intersec, not_subset, not_consumed;
 3623|       |
 3624|       |	  /* Optimization, skip if this state doesn't accept the character.  */
 3625|     20|	  if (type == CHARACTER && !bitset_contain (dests_ch[j], node->opr.c))
  ------------------
  |  Branch (3625:8): [True: 20, False: 0]
  |  Branch (3625:29): [True: 16, False: 4]
  ------------------
 3626|     16|	    continue;
 3627|       |
 3628|       |	  /* Enumerate the intersection set of this state and 'accepts'.  */
 3629|      4|	  has_intersec = 0;
 3630|     20|	  for (k = 0; k < BITSET_WORDS; ++k)
  ------------------
  |  |  219|     20|#define BITSET_WORDS ((SBC_MAX + BITSET_WORD_BITS - 1) / BITSET_WORD_BITS)
  |  |  ------------------
  |  |  |  |  114|     20|#define SBC_MAX (UCHAR_MAX + 1)
  |  |  ------------------
  |  |               #define BITSET_WORDS ((SBC_MAX + BITSET_WORD_BITS - 1) / BITSET_WORD_BITS)
  |  |  ------------------
  |  |  |  |  216|     20|#define BITSET_WORD_BITS ULONG_WIDTH
  |  |  ------------------
  |  |               #define BITSET_WORDS ((SBC_MAX + BITSET_WORD_BITS - 1) / BITSET_WORD_BITS)
  |  |  ------------------
  |  |  |  |  216|     20|#define BITSET_WORD_BITS ULONG_WIDTH
  |  |  ------------------
  ------------------
  |  Branch (3630:16): [True: 16, False: 4]
  ------------------
 3631|     16|	    has_intersec |= intersec[k] = accepts[k] & dests_ch[j][k];
 3632|       |	  /* And skip if the intersection set is empty.  */
 3633|      4|	  if (!has_intersec)
  ------------------
  |  Branch (3633:8): [True: 0, False: 4]
  ------------------
 3634|      0|	    continue;
 3635|       |
 3636|       |	  /* Then check if this state is a subset of 'accepts'.  */
 3637|      4|	  not_subset = not_consumed = 0;
 3638|     20|	  for (k = 0; k < BITSET_WORDS; ++k)
  ------------------
  |  |  219|     20|#define BITSET_WORDS ((SBC_MAX + BITSET_WORD_BITS - 1) / BITSET_WORD_BITS)
  |  |  ------------------
  |  |  |  |  114|     20|#define SBC_MAX (UCHAR_MAX + 1)
  |  |  ------------------
  |  |               #define BITSET_WORDS ((SBC_MAX + BITSET_WORD_BITS - 1) / BITSET_WORD_BITS)
  |  |  ------------------
  |  |  |  |  216|     20|#define BITSET_WORD_BITS ULONG_WIDTH
  |  |  ------------------
  |  |               #define BITSET_WORDS ((SBC_MAX + BITSET_WORD_BITS - 1) / BITSET_WORD_BITS)
  |  |  ------------------
  |  |  |  |  216|     20|#define BITSET_WORD_BITS ULONG_WIDTH
  |  |  ------------------
  ------------------
  |  Branch (3638:16): [True: 16, False: 4]
  ------------------
 3639|     16|	    {
 3640|     16|	      not_subset |= remains[k] = ~accepts[k] & dests_ch[j][k];
 3641|     16|	      not_consumed |= accepts[k] = accepts[k] & ~dests_ch[j][k];
 3642|     16|	    }
 3643|       |
 3644|       |	  /* If this state isn't a subset of 'accepts', create a
 3645|       |	     new group state, which has the 'remains'. */
 3646|      4|	  if (not_subset)
  ------------------
  |  Branch (3646:8): [True: 0, False: 4]
  ------------------
 3647|      0|	    {
 3648|      0|	      bitset_copy (dests_ch[ndests], remains);
 3649|      0|	      bitset_copy (dests_ch[j], intersec);
 3650|      0|	      err = re_node_set_init_copy (dests_node + ndests, &dests_node[j]);
 3651|      0|	      if (__glibc_unlikely (err != REG_NOERROR))
  ------------------
  |  Branch (3651:12): [True: 0, False: 0]
  ------------------
 3652|      0|		goto error_return;
 3653|      0|	      ++ndests;
 3654|      0|	    }
 3655|       |
 3656|       |	  /* Put the position in the current group. */
 3657|      4|	  ok = re_node_set_insert (&dests_node[j], cur_nodes->elems[i]);
 3658|      4|	  if (__glibc_unlikely (! ok))
  ------------------
  |  Branch (3658:8): [True: 0, False: 4]
  ------------------
 3659|      0|	    goto error_return;
 3660|       |
 3661|       |	  /* If all characters are consumed, go to next node. */
 3662|      4|	  if (!not_consumed)
  ------------------
  |  Branch (3662:8): [True: 4, False: 0]
  ------------------
 3663|      4|	    break;
 3664|      4|	}
 3665|       |      /* Some characters remain, create a new group. */
 3666|    109|      if (j == ndests)
  ------------------
  |  Branch (3666:11): [True: 105, False: 4]
  ------------------
 3667|    105|	{
 3668|    105|	  bitset_copy (dests_ch[ndests], accepts);
 3669|    105|	  err = re_node_set_init_1 (dests_node + ndests, cur_nodes->elems[i]);
 3670|    105|	  if (__glibc_unlikely (err != REG_NOERROR))
  ------------------
  |  Branch (3670:8): [True: 0, False: 105]
  ------------------
 3671|      0|	    goto error_return;
 3672|    105|	  ++ndests;
 3673|    105|	  bitset_empty (accepts);
 3674|    105|	}
 3675|    109|    }
 3676|     98|  assume (ndests <= SBC_MAX);
  ------------------
  |  |  375|     98|# define assume(R) ((R) ? (void) 0 : __builtin_unreachable ())
  |  |  ------------------
  |  |  |  Branch (375:21): [True: 98, False: 0]
  |  |  ------------------
  ------------------
 3677|     98|  return ndests;
 3678|      0| error_return:
 3679|      0|  for (j = 0; j < ndests; ++j)
  ------------------
  |  Branch (3679:15): [True: 0, False: 0]
  ------------------
 3680|      0|    re_node_set_free (dests_node + j);
  ------------------
  |  |  695|      0|#define re_node_set_free(set) re_free ((set)->elems)
  |  |  ------------------
  |  |  |  |  472|      0|#define re_free(p) free (p)
  |  |  ------------------
  ------------------
 3681|      0|  return -1;
 3682|     98|}
regex.c:match_ctx_clean:
 4130|     48|{
 4131|     48|  Idx st_idx;
 4132|     48|  for (st_idx = 0; st_idx < mctx->nsub_tops; ++st_idx)
  ------------------
  |  Branch (4132:20): [True: 0, False: 48]
  ------------------
 4133|      0|    {
 4134|      0|      Idx sl_idx;
 4135|      0|      re_sub_match_top_t *top = mctx->sub_tops[st_idx];
 4136|      0|      for (sl_idx = 0; sl_idx < top->nlasts; ++sl_idx)
  ------------------
  |  Branch (4136:24): [True: 0, False: 0]
  ------------------
 4137|      0|	{
 4138|      0|	  re_sub_match_last_t *last = top->lasts[sl_idx];
 4139|      0|	  re_free (last->path.array);
  ------------------
  |  |  472|      0|#define re_free(p) free (p)
  ------------------
 4140|      0|	  re_free (last);
  ------------------
  |  |  472|      0|#define re_free(p) free (p)
  ------------------
 4141|      0|	}
 4142|      0|      re_free (top->lasts);
  ------------------
  |  |  472|      0|#define re_free(p) free (p)
  ------------------
 4143|      0|      if (top->path)
  ------------------
  |  Branch (4143:11): [True: 0, False: 0]
  ------------------
 4144|      0|	{
 4145|      0|	  re_free (top->path->array);
  ------------------
  |  |  472|      0|#define re_free(p) free (p)
  ------------------
 4146|      0|	  re_free (top->path);
  ------------------
  |  |  472|      0|#define re_free(p) free (p)
  ------------------
 4147|      0|	}
 4148|      0|      re_free (top);
  ------------------
  |  |  472|      0|#define re_free(p) free (p)
  ------------------
 4149|      0|    }
 4150|       |
 4151|     48|  mctx->nsub_tops = 0;
 4152|     48|  mctx->nbkref_ents = 0;
 4153|     48|}

tree_child:
  107|    128|struct tree *tree_child(struct tree *tree, const char *label) {
  108|    128|    if (tree == NULL)
  ------------------
  |  Branch (108:9): [True: 0, False: 128]
  ------------------
  109|      0|        return NULL;
  110|       |
  111|    305|    list_for_each(child, tree->children) {
  ------------------
  |  |   38|    320|    for (typeof(list) (iter) = list; (iter) != NULL; (iter) = (iter)->next)
  |  |  ------------------
  |  |  |  Branch (38:38): [True: 305, False: 15]
  |  |  ------------------
  ------------------
  112|    305|        if (streqv(label, child->label))
  ------------------
  |  Branch (112:13): [True: 113, False: 192]
  ------------------
  113|    113|            return child;
  114|    305|    }
  115|     15|    return NULL;
  116|    128|}
tree_child_cr:
  118|    128|struct tree *tree_child_cr(struct tree *tree, const char *label) {
  119|    128|    static struct tree *child = NULL;
  120|       |
  121|    128|    if (tree == NULL)
  ------------------
  |  Branch (121:9): [True: 0, False: 128]
  ------------------
  122|      0|        return NULL;
  123|       |
  124|    128|    child = tree_child(tree, label);
  125|    128|    if (child == NULL) {
  ------------------
  |  Branch (125:9): [True: 15, False: 113]
  ------------------
  126|     15|        char *l = strdup(label);
  127|     15|        if (l == NULL)
  ------------------
  |  Branch (127:13): [True: 0, False: 15]
  ------------------
  128|      0|            return NULL;
  129|     15|        child = tree_append(tree, l, NULL);
  130|     15|    }
  131|    128|    return child;
  132|    128|}
tree_path_cr:
  134|     32|struct tree *tree_path_cr(struct tree *tree, int n, ...) {
  135|     32|    va_list ap;
  136|       |
  137|     32|    va_start(ap, n);
  138|    128|    for (int i=0; i < n; i++) {
  ------------------
  |  Branch (138:19): [True: 96, False: 32]
  ------------------
  139|     96|        const char *l = va_arg(ap, const char *);
  140|     96|        tree = tree_child_cr(tree, l);
  141|     96|    }
  142|       |    va_end(ap);
  143|     32|    return tree;
  144|     32|}
tree_store_value:
  220|     77|void tree_store_value(struct tree *tree, char **value) {
  221|     77|    if (streqv(tree->value, *value)) {
  ------------------
  |  Branch (221:9): [True: 0, False: 77]
  ------------------
  222|      0|        free(*value);
  223|      0|        *value = NULL;
  224|      0|        return;
  225|      0|    }
  226|     77|    if (tree->value != NULL) {
  ------------------
  |  Branch (226:9): [True: 22, False: 55]
  ------------------
  227|     22|        free(tree->value);
  228|     22|        tree->value = NULL;
  229|     22|    }
  230|     77|    if (*value != NULL) {
  ------------------
  |  Branch (230:9): [True: 77, False: 0]
  ------------------
  231|     77|        tree->value = *value;
  232|       |        *value = NULL;
  233|     77|    }
  234|     77|    tree_mark_dirty(tree);
  235|     77|}
tree_set_value:
  237|    164|int tree_set_value(struct tree *tree, const char *value) {
  238|    164|    char *v = NULL;
  239|       |
  240|    164|    if (streqv(tree->value, value))
  ------------------
  |  Branch (240:9): [True: 87, False: 77]
  ------------------
  241|     87|        return 0;
  242|     77|    if (value != NULL) {
  ------------------
  |  Branch (242:9): [True: 77, False: 0]
  ------------------
  243|     77|        v = strdup(value);
  244|     77|        if (v == NULL)
  ------------------
  |  Branch (244:13): [True: 0, False: 77]
  ------------------
  245|      0|            return -1;
  246|     77|    }
  247|     77|    tree_store_value(tree, &v);
  248|     77|    return 0;
  249|     77|}
pathx_aug_parse:
  288|    366|                              const char *path, bool need_nodeset) {
  289|    366|    struct pathx *result;
  290|    366|    struct error *err = err_of_aug(aug);
  291|       |
  292|    366|    if (tree == NULL)
  ------------------
  |  Branch (292:9): [True: 0, False: 366]
  ------------------
  293|      0|        tree = aug->origin;
  294|       |
  295|    366|    pathx_parse(tree, err, path, need_nodeset, aug->symtab, root_ctx, &result);
  296|    366|    return result;
  297|    366|}
tree_root_ctx:
  300|    122|struct tree *tree_root_ctx(const struct augeas *aug) {
  301|    122|    struct pathx *p = NULL;
  302|    122|    struct tree *match = NULL;
  303|    122|    const char *ctx_path;
  304|    122|    int r;
  305|       |
  306|    122|    p = pathx_aug_parse(aug, aug->origin, NULL, AUGEAS_CONTEXT, true);
  ------------------
  |  |   91|    122|#define AUGEAS_CONTEXT AUGEAS_META_TREE "/context"
  |  |  ------------------
  |  |  |  |   63|    122|#define AUGEAS_META_TREE "/augeas"
  |  |  ------------------
  ------------------
  307|    122|    ERR_BAIL(aug);
  ------------------
  |  |   65|    122|#define ERR_BAIL(obj) if ((obj)->error->code != AUG_NOERROR) goto error;
  |  |  ------------------
  |  |  |  Branch (65:27): [True: 0, False: 122]
  |  |  ------------------
  ------------------
  308|       |
  309|    122|    r = pathx_find_one(p, &match);
  310|    122|    ERR_THROW(r > 1, aug, AUG_EMMATCH,
  ------------------
  |  |   79|    122|    do {                                                \
  |  |   80|    122|        if (cond) {                                     \
  |  |  ------------------
  |  |  |  Branch (80:13): [True: 0, False: 122]
  |  |  ------------------
  |  |   81|      0|            report_error((obj)->error, code, ## fmt);   \
  |  |  ------------------
  |  |  |  |  311|      0|              "There are %d nodes matching %s, expecting one",
  |  |  |  |  312|      0|              r, AUGEAS_CONTEXT);
  |  |  |  |  ------------------
  |  |  |  |  |  |   91|      0|#define AUGEAS_CONTEXT AUGEAS_META_TREE "/context"
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   63|      0|#define AUGEAS_META_TREE "/augeas"
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   82|      0|            goto error;                                 \
  |  |   83|      0|        }                                               \
  |  |   84|    122|    } while(0)
  |  |  ------------------
  |  |  |  Branch (84:13): [Folded, False: 122]
  |  |  ------------------
  ------------------
  311|    122|              "There are %d nodes matching %s, expecting one",
  312|    122|              r, AUGEAS_CONTEXT);
  313|       |
  314|    122|    if (match == NULL || match->value == NULL || *match->value == '\0')
  ------------------
  |  Branch (314:9): [True: 5, False: 117]
  |  Branch (314:26): [True: 0, False: 117]
  |  Branch (314:50): [True: 0, False: 117]
  ------------------
  315|      5|        goto error;
  316|       |
  317|       |    /* Clean via augrun's helper to ensure it's valid */
  318|    117|    ctx_path = cleanpath(match->value);
  319|    117|    free_pathx(p);
  320|       |
  321|    117|    p = pathx_aug_parse(aug, aug->origin, NULL, ctx_path, true);
  322|    117|    ERR_BAIL(aug);
  ------------------
  |  |   65|    117|#define ERR_BAIL(obj) if ((obj)->error->code != AUG_NOERROR) goto error;
  |  |  ------------------
  |  |  |  Branch (65:27): [True: 0, False: 117]
  |  |  ------------------
  ------------------
  323|       |
  324|    117|    if (pathx_first(p) == NULL) {
  ------------------
  |  Branch (324:9): [True: 5, False: 112]
  ------------------
  325|      5|        r = pathx_expand_tree(p, &match);
  326|      5|        if (r < 0)
  ------------------
  |  Branch (326:13): [True: 0, False: 5]
  ------------------
  327|      0|            goto done;
  328|      5|        r = tree_set_value(match, NULL);
  329|      5|        if (r < 0)
  ------------------
  |  Branch (329:13): [True: 0, False: 5]
  ------------------
  330|      0|            goto done;
  331|    112|    } else {
  332|    112|        r = pathx_find_one(p, &match);
  333|    112|        ERR_THROW(r > 1, aug, AUG_EMMATCH,
  ------------------
  |  |   79|    112|    do {                                                \
  |  |   80|    112|        if (cond) {                                     \
  |  |  ------------------
  |  |  |  Branch (80:13): [True: 0, False: 112]
  |  |  ------------------
  |  |   81|      0|            report_error((obj)->error, code, ## fmt);   \
  |  |   82|      0|            goto error;                                 \
  |  |   83|      0|        }                                               \
  |  |   84|    112|    } while(0)
  |  |  ------------------
  |  |  |  Branch (84:13): [Folded, False: 112]
  |  |  ------------------
  ------------------
  334|    112|                  "There are %d nodes matching the context %s, expecting one",
  335|    112|                  r, ctx_path);
  336|    112|    }
  337|       |
  338|    122| done:
  339|    122|    free_pathx(p);
  340|    122|    return match;
  341|      5| error:
  342|       |    match = NULL;
  343|      5|    goto done;
  344|    117|}
tree_append:
  347|     15|                         char *label, char *value) {
  348|     15|    struct tree *result = make_tree(label, value, parent, NULL);
  349|     15|    if (result != NULL)
  ------------------
  |  Branch (349:9): [True: 15, False: 0]
  ------------------
  350|       |        list_append(parent->children, result);
  ------------------
  |  |   27|     15|    do {                                                                \
  |  |   28|     15|        if ((head) == NULL) {                                           \
  |  |  ------------------
  |  |  |  Branch (28:13): [True: 10, False: 5]
  |  |  ------------------
  |  |   29|     10|            head = tail;                                                \
  |  |   30|     10|            break;                                                      \
  |  |   31|     10|        }                                                               \
  |  |   32|     15|        typeof(head) _p;                                                \
  |  |   33|     30|        for (_p = (head); _p->next != NULL; _p = _p->next);             \
  |  |  ------------------
  |  |  |  Branch (33:27): [True: 25, False: 5]
  |  |  ------------------
  |  |   34|      5|        _p->next = (tail);                                              \
  |  |   35|      5|    } while (0)
  |  |  ------------------
  |  |  |  Branch (35:14): [Folded, False: 5]
  |  |  ------------------
  ------------------
  351|     15|    return result;
  352|     15|}
api_entry:
  441|    135|void api_entry(const struct augeas *aug) {
  442|    135|    struct error *err = ((struct augeas *) aug)->error;
  443|       |
  444|    135|    ((struct augeas *) aug)->api_entries += 1;
  445|       |
  446|    135|    if (aug->api_entries > 1)
  ------------------
  |  Branch (446:9): [True: 95, False: 40]
  ------------------
  447|     95|        return;
  448|       |
  449|     40|    reset_error(err);
  450|     40|    save_locale((struct augeas *) aug);
  451|     40|}
api_exit:
  453|    135|void api_exit(const struct augeas *aug) {
  454|    135|    assert(aug->api_entries > 0);
  ------------------
  |  Branch (454:5): [True: 0, False: 135]
  |  Branch (454:5): [True: 135, False: 0]
  ------------------
  455|    135|    ((struct augeas *) aug)->api_entries -= 1;
  456|    135|    if (aug->api_entries == 0) {
  ------------------
  |  Branch (456:9): [True: 40, False: 95]
  ------------------
  457|     40|        store_pathx_error(aug);
  458|     40|        restore_locale((struct augeas *) aug);
  459|     40|    }
  460|    135|}
aug_init:
  553|      5|                        unsigned int flags) {
  554|      5|    struct augeas *result;
  555|      5|    struct tree *tree_root = make_tree(NULL, NULL, NULL, NULL);
  556|      5|    int r;
  557|      5|    bool close_on_error = true;
  558|       |
  559|      5|    if (tree_root == NULL)
  ------------------
  |  Branch (559:9): [True: 0, False: 5]
  ------------------
  560|      0|        return NULL;
  561|       |
  562|      5|    if (ALLOC(result) < 0)
  ------------------
  |  |   43|      5|#define ALLOC(ptr) mem_alloc_n(&(ptr), sizeof(*(ptr)), 1)
  ------------------
  |  Branch (562:9): [True: 0, False: 5]
  ------------------
  563|      0|        goto error;
  564|      5|    if (ALLOC(result->error) < 0)
  ------------------
  |  |   43|      5|#define ALLOC(ptr) mem_alloc_n(&(ptr), sizeof(*(ptr)), 1)
  ------------------
  |  Branch (564:9): [True: 0, False: 5]
  ------------------
  565|      0|        goto error;
  566|      5|    if (make_ref(result->error->info) < 0)
  ------------------
  |  |   48|      5|    ref_make_ref(&(var), sizeof(*(var)), offsetof(typeof(*(var)), ref))
  ------------------
  |  Branch (566:9): [True: 0, False: 5]
  ------------------
  567|      0|        goto error;
  568|      5|    result->error->info->error = result->error;
  569|      5|    result->error->info->filename = dup_string("(unknown file)");
  570|      5|    if (result->error->info->filename == NULL)
  ------------------
  |  Branch (570:9): [True: 0, False: 5]
  ------------------
  571|      0|        goto error;
  572|      5|    result->error->aug = result;
  573|       |
  574|      5|    result->origin = make_tree_origin(tree_root);
  575|      5|    if (result->origin == NULL) {
  ------------------
  |  Branch (575:9): [True: 0, False: 5]
  ------------------
  576|      0|        free_tree(tree_root);
  577|      0|        goto error;
  578|      0|    }
  579|       |
  580|      5|    api_entry(result);
  581|       |
  582|      5|    result->flags = flags;
  583|       |
  584|      5|    r = init_root(result, root);
  585|      5|    ERR_NOMEM(r < 0, result);
  ------------------
  |  |   70|      5|    if (cond) {                                          \
  |  |  ------------------
  |  |  |  Branch (70:9): [True: 0, False: 5]
  |  |  ------------------
  |  |   71|      0|        report_error((obj)->error, AUG_ENOMEM, NULL);    \
  |  |   72|      0|        goto error;                                      \
  |  |   73|      0|    }
  ------------------
  586|       |
  587|      5|    result->origin->children->label = strdup(s_augeas);
  588|       |
  589|       |    /* We are now initialized enough that we can dare return RESULT even
  590|       |     * when we encounter errors if the caller so wishes */
  591|      5|    close_on_error = !(flags & AUG_NO_ERR_CLOSE);
  592|       |
  593|      5|    r = init_loadpath(result, loadpath);
  594|      5|    ERR_NOMEM(r < 0, result);
  ------------------
  |  |   70|      5|    if (cond) {                                          \
  |  |  ------------------
  |  |  |  Branch (70:9): [True: 0, False: 5]
  |  |  ------------------
  |  |   71|      0|        report_error((obj)->error, AUG_ENOMEM, NULL);    \
  |  |   72|      0|        goto error;                                      \
  |  |   73|      0|    }
  ------------------
  595|       |
  596|       |    /* We report the root dir in AUGEAS_META_ROOT, but we only use the
  597|       |       value we store internally, to avoid any problems with
  598|       |       AUGEAS_META_ROOT getting changed. */
  599|      5|    aug_set(result, AUGEAS_META_ROOT, result->root);
  ------------------
  |  |   75|      5|#define AUGEAS_META_ROOT AUGEAS_META_TREE "/root"
  |  |  ------------------
  |  |  |  |   63|      5|#define AUGEAS_META_TREE "/augeas"
  |  |  ------------------
  ------------------
  600|      5|    ERR_BAIL(result);
  ------------------
  |  |   65|      5|#define ERR_BAIL(obj) if ((obj)->error->code != AUG_NOERROR) goto error;
  |  |  ------------------
  |  |  |  Branch (65:27): [True: 0, False: 5]
  |  |  ------------------
  ------------------
  601|       |
  602|       |    /* Set the default path context */
  603|      5|    aug_set(result, AUGEAS_CONTEXT, AUG_CONTEXT_DEFAULT);
  ------------------
  |  |   91|      5|#define AUGEAS_CONTEXT AUGEAS_META_TREE "/context"
  |  |  ------------------
  |  |  |  |   63|      5|#define AUGEAS_META_TREE "/augeas"
  |  |  ------------------
  ------------------
                  aug_set(result, AUGEAS_CONTEXT, AUG_CONTEXT_DEFAULT);
  ------------------
  |  |  132|      5|#define AUG_CONTEXT_DEFAULT "/files"
  ------------------
  604|      5|    ERR_BAIL(result);
  ------------------
  |  |   65|      5|#define ERR_BAIL(obj) if ((obj)->error->code != AUG_NOERROR) goto error;
  |  |  ------------------
  |  |  |  Branch (65:27): [True: 0, False: 5]
  |  |  ------------------
  ------------------
  605|       |
  606|     80|    for (int i=0; i < ARRAY_CARDINALITY(static_nodes); i++) {
  ------------------
  |  |  221|     80|#define ARRAY_CARDINALITY(array) (sizeof (array) / sizeof *(array))
  ------------------
  |  Branch (606:19): [True: 75, False: 5]
  ------------------
  607|     75|        aug_set(result, static_nodes[i][0], static_nodes[i][1]);
  608|     75|        ERR_BAIL(result);
  ------------------
  |  |   65|     75|#define ERR_BAIL(obj) if ((obj)->error->code != AUG_NOERROR) goto error;
  |  |  ------------------
  |  |  |  Branch (65:27): [True: 0, False: 75]
  |  |  ------------------
  ------------------
  609|     75|    }
  610|       |
  611|      5|    init_save_mode(result);
  612|      5|    ERR_BAIL(result);
  ------------------
  |  |   65|      5|#define ERR_BAIL(obj) if ((obj)->error->code != AUG_NOERROR) goto error;
  |  |  ------------------
  |  |  |  Branch (65:27): [True: 0, False: 5]
  |  |  ------------------
  ------------------
  613|       |
  614|      5|    const char *v = (flags & AUG_ENABLE_SPAN) ? AUG_ENABLE : AUG_DISABLE;
  ------------------
  |  |  128|      0|#define AUG_ENABLE "enable"
  ------------------
                  const char *v = (flags & AUG_ENABLE_SPAN) ? AUG_ENABLE : AUG_DISABLE;
  ------------------
  |  |  129|      5|#define AUG_DISABLE "disable"
  ------------------
  |  Branch (614:21): [True: 0, False: 5]
  ------------------
  615|      5|    aug_set(result, AUGEAS_SPAN_OPTION, v);
  ------------------
  |  |  104|      5|#define AUGEAS_SPAN_OPTION AUGEAS_META_TREE "/span"
  |  |  ------------------
  |  |  |  |   63|      5|#define AUGEAS_META_TREE "/augeas"
  |  |  ------------------
  ------------------
  616|      5|    ERR_BAIL(result);
  ------------------
  |  |   65|      5|#define ERR_BAIL(obj) if ((obj)->error->code != AUG_NOERROR) goto error;
  |  |  ------------------
  |  |  |  Branch (65:27): [True: 0, False: 5]
  |  |  ------------------
  ------------------
  617|       |
  618|      5|    if (interpreter_init(result) == -1)
  ------------------
  |  Branch (618:9): [True: 0, False: 5]
  ------------------
  619|      0|        goto error;
  620|       |
  621|     10|    list_for_each(modl, result->modules) {
  ------------------
  |  |   38|     15|    for (typeof(list) (iter) = list; (iter) != NULL; (iter) = (iter)->next)
  |  |  ------------------
  |  |  |  Branch (38:38): [True: 10, False: 5]
  |  |  ------------------
  ------------------
  622|     10|        struct transform *xform = modl->autoload;
  623|     10|        if (xform == NULL)
  ------------------
  |  Branch (623:13): [True: 10, False: 0]
  ------------------
  624|     10|            continue;
  625|      0|        tree_from_transform(result, modl->name, xform);
  626|      0|        ERR_BAIL(result);
  ------------------
  |  |   65|      0|#define ERR_BAIL(obj) if ((obj)->error->code != AUG_NOERROR) goto error;
  |  |  ------------------
  |  |  |  Branch (65:27): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  627|      0|    }
  628|      5|    if (!(result->flags & AUG_NO_LOAD))
  ------------------
  |  Branch (628:9): [True: 0, False: 5]
  ------------------
  629|      0|        if (aug_load(result) < 0)
  ------------------
  |  Branch (629:13): [True: 0, False: 0]
  ------------------
  630|      0|            goto error;
  631|       |
  632|      5|    api_exit(result);
  633|      5|    return result;
  634|       |
  635|      0| error:
  636|      0|    if (close_on_error) {
  ------------------
  |  Branch (636:9): [True: 0, False: 0]
  ------------------
  637|      0|        aug_close(result);
  638|      0|        result = NULL;
  639|      0|    }
  640|      0|    if (result != NULL && result->api_entries > 0)
  ------------------
  |  Branch (640:9): [True: 0, False: 0]
  |  Branch (640:27): [True: 0, False: 0]
  ------------------
  641|      0|        api_exit(result);
  642|      0|    return result;
  643|      5|}
aug_get:
  813|      5|int aug_get(const struct augeas *aug, const char *path, const char **value) {
  814|      5|    struct pathx *p = NULL;
  815|      5|    struct tree *match;
  816|      5|    int r;
  817|       |
  818|      5|    if (value != NULL)
  ------------------
  |  Branch (818:9): [True: 5, False: 0]
  ------------------
  819|      5|        *value = NULL;
  820|       |
  821|      5|    api_entry(aug);
  822|       |
  823|      5|    p = pathx_aug_parse(aug, aug->origin, tree_root_ctx(aug), path, true);
  824|      5|    ERR_BAIL(aug);
  ------------------
  |  |   65|      5|#define ERR_BAIL(obj) if ((obj)->error->code != AUG_NOERROR) goto error;
  |  |  ------------------
  |  |  |  Branch (65:27): [True: 4, False: 1]
  |  |  ------------------
  ------------------
  825|       |
  826|      1|    r = pathx_find_one(p, &match);
  827|      1|    ERR_BAIL(aug);
  ------------------
  |  |   65|      1|#define ERR_BAIL(obj) if ((obj)->error->code != AUG_NOERROR) goto error;
  |  |  ------------------
  |  |  |  Branch (65:27): [True: 1, False: 0]
  |  |  ------------------
  ------------------
  828|      0|    ERR_THROW(r > 1, aug, AUG_EMMATCH, "There are %d nodes matching %s",
  ------------------
  |  |   79|      0|    do {                                                \
  |  |   80|      0|        if (cond) {                                     \
  |  |  ------------------
  |  |  |  Branch (80:13): [True: 0, False: 0]
  |  |  ------------------
  |  |   81|      0|            report_error((obj)->error, code, ## fmt);   \
  |  |   82|      0|            goto error;                                 \
  |  |   83|      0|        }                                               \
  |  |   84|      0|    } while(0)
  |  |  ------------------
  |  |  |  Branch (84:13): [Folded, False: 0]
  |  |  ------------------
  ------------------
  829|      0|              r, path);
  830|       |
  831|      0|    if (r == 1 && value != NULL)
  ------------------
  |  Branch (831:9): [True: 0, False: 0]
  |  Branch (831:19): [True: 0, False: 0]
  ------------------
  832|      0|        *value = match->value;
  833|      0|    free_pathx(p);
  834|       |
  835|      0|    api_exit(aug);
  836|      0|    return r;
  837|      5| error:
  838|      5|    free_pathx(p);
  839|      5|    api_exit(aug);
  840|      5|    return -1;
  841|      0|}
aug_label:
  843|      5|int aug_label(const struct augeas *aug, const char *path, const char **label) {
  844|      5|    struct pathx *p = NULL;
  845|      5|    struct tree *match;
  846|      5|    int r;
  847|       |
  848|      5|    api_entry(aug);
  849|       |
  850|      5|    p = pathx_aug_parse(aug, aug->origin, tree_root_ctx(aug), path, true);
  851|      5|    ERR_BAIL(aug);
  ------------------
  |  |   65|      5|#define ERR_BAIL(obj) if ((obj)->error->code != AUG_NOERROR) goto error;
  |  |  ------------------
  |  |  |  Branch (65:27): [True: 4, False: 1]
  |  |  ------------------
  ------------------
  852|       |
  853|      1|    if (label != NULL)
  ------------------
  |  Branch (853:9): [True: 1, False: 0]
  ------------------
  854|      1|        *label = NULL;
  855|       |
  856|      1|    r = pathx_find_one(p, &match);
  857|      1|    ERR_BAIL(aug);
  ------------------
  |  |   65|      1|#define ERR_BAIL(obj) if ((obj)->error->code != AUG_NOERROR) goto error;
  |  |  ------------------
  |  |  |  Branch (65:27): [True: 1, False: 0]
  |  |  ------------------
  ------------------
  858|      0|    ERR_THROW(r > 1, aug, AUG_EMMATCH, "There are %d nodes matching %s",
  ------------------
  |  |   79|      0|    do {                                                \
  |  |   80|      0|        if (cond) {                                     \
  |  |  ------------------
  |  |  |  Branch (80:13): [True: 0, False: 0]
  |  |  ------------------
  |  |   81|      0|            report_error((obj)->error, code, ## fmt);   \
  |  |   82|      0|            goto error;                                 \
  |  |   83|      0|        }                                               \
  |  |   84|      0|    } while(0)
  |  |  ------------------
  |  |  |  Branch (84:13): [Folded, False: 0]
  |  |  ------------------
  ------------------
  859|      0|              r, path);
  860|       |
  861|      0|    if (r == 1 && label != NULL)
  ------------------
  |  Branch (861:9): [True: 0, False: 0]
  |  Branch (861:19): [True: 0, False: 0]
  ------------------
  862|      0|        *label = match->label;
  863|      0|    free_pathx(p);
  864|       |
  865|      0|    api_exit(aug);
  866|      0|    return r;
  867|      5| error:
  868|      5|    free_pathx(p);
  869|      5|    api_exit(aug);
  870|      5|    return -1;
  871|      0|}
aug_defvar:
  889|      5|int aug_defvar(augeas *aug, const char *name, const char *expr) {
  890|      5|    struct pathx *p = NULL;
  891|      5|    int result = -1;
  892|       |
  893|      5|    api_entry(aug);
  894|       |
  895|      5|    if (expr == NULL) {
  ------------------
  |  Branch (895:9): [True: 0, False: 5]
  ------------------
  896|      0|        result = pathx_symtab_undefine(&(aug->symtab), name);
  897|      5|    } else {
  898|      5|        p = pathx_aug_parse(aug, aug->origin, tree_root_ctx(aug), expr, false);
  899|      5|        ERR_BAIL(aug);
  ------------------
  |  |   65|      5|#define ERR_BAIL(obj) if ((obj)->error->code != AUG_NOERROR) goto error;
  |  |  ------------------
  |  |  |  Branch (65:27): [True: 4, False: 1]
  |  |  ------------------
  ------------------
  900|      1|        result = pathx_symtab_define(&(aug->symtab), name, p);
  901|      1|    }
  902|      1|    ERR_BAIL(aug);
  ------------------
  |  |   65|      1|#define ERR_BAIL(obj) if ((obj)->error->code != AUG_NOERROR) goto error;
  |  |  ------------------
  |  |  |  Branch (65:27): [True: 1, False: 0]
  |  |  ------------------
  ------------------
  903|       |
  904|      0|    record_var_meta(aug, name, expr);
  905|      0|    ERR_BAIL(aug);
  ------------------
  |  |   65|      0|#define ERR_BAIL(obj) if ((obj)->error->code != AUG_NOERROR) goto error;
  |  |  ------------------
  |  |  |  Branch (65:27): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  906|      5| error:
  907|      5|    free_pathx(p);
  908|      5|    api_exit(aug);
  909|      5|    return result;
  910|      0|}
tree_set:
  961|     95|struct tree *tree_set(struct pathx *p, const char *value) {
  962|     95|    struct tree *tree;
  963|     95|    int r;
  964|       |
  965|     95|    r = pathx_expand_tree(p, &tree);
  966|     95|    if (r == -1)
  ------------------
  |  Branch (966:9): [True: 0, False: 95]
  ------------------
  967|      0|        return NULL;
  968|       |
  969|     95|    r = tree_set_value(tree, value);
  970|     95|    if (r < 0)
  ------------------
  |  Branch (970:9): [True: 0, False: 95]
  ------------------
  971|      0|        return NULL;
  972|     95|    return tree;
  973|     95|}
aug_set:
  975|     95|int aug_set(struct augeas *aug, const char *path, const char *value) {
  976|     95|    struct pathx *p = NULL;
  977|     95|    int result = -1;
  978|       |
  979|     95|    api_entry(aug);
  980|       |
  981|       |    /* Get-out clause, in case context is broken */
  982|     95|    struct tree *root_ctx = NULL;
  983|     95|    if (STRNEQ(path, AUGEAS_CONTEXT))
  ------------------
  |  |  227|     95|#define STRNEQ(a,b) (strcmp((a),(b)) != 0)
  |  |  ------------------
  |  |  |  Branch (227:21): [True: 90, False: 5]
  |  |  ------------------
  ------------------
  984|     90|        root_ctx = tree_root_ctx(aug);
  985|       |
  986|     95|    p = pathx_aug_parse(aug, aug->origin, root_ctx, path, true);
  987|     95|    ERR_BAIL(aug);
  ------------------
  |  |   65|     95|#define ERR_BAIL(obj) if ((obj)->error->code != AUG_NOERROR) goto error;
  |  |  ------------------
  |  |  |  Branch (65:27): [True: 0, False: 95]
  |  |  ------------------
  ------------------
  988|       |
  989|     95|    result = tree_set(p, value) == NULL ? -1 : 0;
  ------------------
  |  Branch (989:14): [True: 0, False: 95]
  ------------------
  990|     95| error:
  991|     95|    free_pathx(p);
  992|     95|    api_exit(aug);
  993|     95|    return result;
  994|     95|}
aug_setm:
  997|      5|             const char *sub, const char *value) {
  998|      5|    struct pathx *bx = NULL, *sx = NULL;
  999|      5|    struct tree *bt, *st;
 1000|      5|    int result, r;
 1001|       |
 1002|      5|    api_entry(aug);
 1003|       |
 1004|      5|    bx = pathx_aug_parse(aug, aug->origin, tree_root_ctx(aug), base, true);
 1005|      5|    ERR_BAIL(aug);
  ------------------
  |  |   65|      5|#define ERR_BAIL(obj) if ((obj)->error->code != AUG_NOERROR) goto error;
  |  |  ------------------
  |  |  |  Branch (65:27): [True: 4, False: 1]
  |  |  ------------------
  ------------------
 1006|       |
 1007|      1|    if (sub != NULL && STREQ(sub, "."))
  ------------------
  |  |  224|      0|#define STREQ(a,b) (strcmp((a),(b)) == 0)
  |  |  ------------------
  |  |  |  Branch (224:20): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  |  Branch (1007:9): [True: 0, False: 1]
  ------------------
 1008|      0|        sub = NULL;
 1009|       |
 1010|      1|    result = 0;
 1011|      1|    for (bt = pathx_first(bx); bt != NULL; bt = pathx_next(bx)) {
  ------------------
  |  Branch (1011:32): [True: 0, False: 1]
  ------------------
 1012|      0|        if (sub != NULL) {
  ------------------
  |  Branch (1012:13): [True: 0, False: 0]
  ------------------
 1013|       |            /* Handle subnodes of BT */
 1014|      0|            sx = pathx_aug_parse(aug, bt, NULL, sub, true);
 1015|      0|            ERR_BAIL(aug);
  ------------------
  |  |   65|      0|#define ERR_BAIL(obj) if ((obj)->error->code != AUG_NOERROR) goto error;
  |  |  ------------------
  |  |  |  Branch (65:27): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 1016|      0|            if (pathx_first(sx) != NULL) {
  ------------------
  |  Branch (1016:17): [True: 0, False: 0]
  ------------------
 1017|       |                /* Change existing subnodes matching SUB */
 1018|      0|                for (st = pathx_first(sx); st != NULL; st = pathx_next(sx)) {
  ------------------
  |  Branch (1018:44): [True: 0, False: 0]
  ------------------
 1019|      0|                    r = tree_set_value(st, value);
 1020|      0|                    ERR_NOMEM(r < 0, aug);
  ------------------
  |  |   70|      0|    if (cond) {                                          \
  |  |  ------------------
  |  |  |  Branch (70:9): [True: 0, False: 0]
  |  |  ------------------
  |  |   71|      0|        report_error((obj)->error, AUG_ENOMEM, NULL);    \
  |  |   72|      0|        goto error;                                      \
  |  |   73|      0|    }
  ------------------
 1021|      0|                    result += 1;
 1022|      0|                }
 1023|      0|            } else {
 1024|       |                /* Create a new subnode matching SUB */
 1025|      0|                r = pathx_expand_tree(sx, &st);
 1026|      0|                if (r == -1)
  ------------------
  |  Branch (1026:21): [True: 0, False: 0]
  ------------------
 1027|      0|                    goto error;
 1028|      0|                r = tree_set_value(st, value);
 1029|      0|                ERR_NOMEM(r < 0, aug);
  ------------------
  |  |   70|      0|    if (cond) {                                          \
  |  |  ------------------
  |  |  |  Branch (70:9): [True: 0, False: 0]
  |  |  ------------------
  |  |   71|      0|        report_error((obj)->error, AUG_ENOMEM, NULL);    \
  |  |   72|      0|        goto error;                                      \
  |  |   73|      0|    }
  ------------------
 1030|      0|                result += 1;
 1031|      0|            }
 1032|      0|            free_pathx(sx);
 1033|      0|            sx = NULL;
 1034|      0|        } else {
 1035|       |            /* Set nodes matching BT directly */
 1036|      0|            r = tree_set_value(bt, value);
 1037|      0|            ERR_NOMEM(r < 0, aug);
  ------------------
  |  |   70|      0|    if (cond) {                                          \
  |  |  ------------------
  |  |  |  Branch (70:9): [True: 0, False: 0]
  |  |  ------------------
  |  |   71|      0|        report_error((obj)->error, AUG_ENOMEM, NULL);    \
  |  |   72|      0|        goto error;                                      \
  |  |   73|      0|    }
  ------------------
 1038|      0|            result += 1;
 1039|      0|        }
 1040|      0|    }
 1041|       |
 1042|      5| done:
 1043|      5|    free_pathx(bx);
 1044|      5|    free_pathx(sx);
 1045|      5|    api_exit(aug);
 1046|      5|    return result;
 1047|      4| error:
 1048|      4|    result = -1;
 1049|      4|    goto done;
 1050|      1|}
make_tree:
 1095|    140|                       struct tree *children) {
 1096|    140|    struct tree *tree;
 1097|    140|    if (ALLOC(tree) < 0)
  ------------------
  |  |   43|    140|#define ALLOC(ptr) mem_alloc_n(&(ptr), sizeof(*(ptr)), 1)
  ------------------
  |  Branch (1097:9): [True: 0, False: 140]
  ------------------
 1098|      0|        return NULL;
 1099|       |
 1100|    140|    tree->label = label;
 1101|    140|    tree->value = value;
 1102|    140|    tree->parent = parent;
 1103|    140|    tree->children = children;
 1104|    140|    list_for_each(c, tree->children)
  ------------------
  |  |   38|    145|    for (typeof(list) (iter) = list; (iter) != NULL; (iter) = (iter)->next)
  |  |  ------------------
  |  |  |  Branch (38:38): [True: 5, False: 140]
  |  |  ------------------
  ------------------
 1105|      5|        c->parent = tree;
 1106|    140|    if (parent != NULL)
  ------------------
  |  Branch (1106:9): [True: 130, False: 10]
  ------------------
 1107|    130|        tree_mark_dirty(tree);
 1108|     10|    else
 1109|     10|        tree->dirty = 1;
 1110|    140|    return tree;
 1111|    140|}
make_tree_origin:
 1113|      5|struct tree *make_tree_origin(struct tree *root) {
 1114|      5|    struct tree *origin = NULL;
 1115|       |
 1116|      5|    origin = make_tree(NULL, NULL, NULL, root);
 1117|      5|    if (origin == NULL)
  ------------------
  |  Branch (1117:9): [True: 0, False: 5]
  ------------------
 1118|      0|        return NULL;
 1119|       |
 1120|      5|    origin->parent = origin;
 1121|      5|    return origin;
 1122|      5|}
free_tree:
 1125|    145|int free_tree(struct tree *tree) {
 1126|    145|    int cnt = 0;
 1127|       |
 1128|    285|    while (tree != NULL) {
  ------------------
  |  Branch (1128:12): [True: 140, False: 145]
  ------------------
 1129|    140|        struct tree *del = tree;
 1130|    140|        tree = del->next;
 1131|    140|        cnt += free_tree(del->children);
 1132|    140|        free_tree_node(del);
 1133|    140|        cnt += 1;
 1134|    140|    }
 1135|       |
 1136|    145|    return cnt;
 1137|    145|}
aug_rename:
 1392|      5|int aug_rename(struct augeas *aug, const char *src, const char *lbl) {
 1393|      5|    struct pathx *s = NULL;
 1394|      5|    struct tree *ts;
 1395|      5|    int ret;
 1396|      5|    int count = 0;
 1397|       |
 1398|      5|    api_entry(aug);
 1399|       |
 1400|      5|    ret = -1;
 1401|      5|    ERR_THROW(strchr(lbl, '/') != NULL, aug, AUG_ELABEL,
  ------------------
  |  |   79|      5|    do {                                                \
  |  |   80|      5|        if (cond) {                                     \
  |  |  ------------------
  |  |  |  Branch (80:13): [True: 3, False: 2]
  |  |  ------------------
  |  |   81|      3|            report_error((obj)->error, code, ## fmt);   \
  |  |   82|      3|            goto error;                                 \
  |  |   83|      3|        }                                               \
  |  |   84|      5|    } while(0)
  |  |  ------------------
  |  |  |  Branch (84:13): [Folded, False: 2]
  |  |  ------------------
  ------------------
 1402|      5|              "Label %s contains a /", lbl);
 1403|       |
 1404|      2|    s = pathx_aug_parse(aug, aug->origin, tree_root_ctx(aug), src, true);
 1405|      2|    ERR_BAIL(aug);
  ------------------
  |  |   65|      2|#define ERR_BAIL(obj) if ((obj)->error->code != AUG_NOERROR) goto error;
  |  |  ------------------
  |  |  |  Branch (65:27): [True: 2, False: 0]
  |  |  ------------------
  ------------------
 1406|       |
 1407|      0|    for (ts = pathx_first(s); ts != NULL; ts = pathx_next(s)) {
  ------------------
  |  Branch (1407:31): [True: 0, False: 0]
  ------------------
 1408|      0|        free(ts->label);
 1409|      0|        ts->label = strdup(lbl);
 1410|      0|        tree_mark_dirty(ts);
 1411|      0|        count ++;
 1412|      0|    }
 1413|       |
 1414|      0|    free_pathx(s);
 1415|      0|    api_exit(aug);
 1416|      0|    return count;
 1417|      5| error:
 1418|      5|    free_pathx(s);
 1419|      5|    api_exit(aug);
 1420|      5|    return ret;
 1421|      2|}
aug_text_store:
 1747|      5|                   const char *path) {
 1748|       |
 1749|      5|    struct pathx *p;
 1750|      5|    const char *src;
 1751|      5|    int result = -1, r;
 1752|       |
 1753|      5|    api_entry(aug);
 1754|       |
 1755|       |    /* Validate PATH is syntactically correct */
 1756|      5|    p = pathx_aug_parse(aug, aug->origin, tree_root_ctx(aug), path, true);
 1757|      5|    free_pathx(p);
 1758|      5|    ERR_BAIL(aug);
  ------------------
  |  |   65|      5|#define ERR_BAIL(obj) if ((obj)->error->code != AUG_NOERROR) goto error;
  |  |  ------------------
  |  |  |  Branch (65:27): [True: 5, False: 0]
  |  |  ------------------
  ------------------
 1759|       |
 1760|      0|    r = aug_get(aug, node, &src);
 1761|      0|    ERR_BAIL(aug);
  ------------------
  |  |   65|      0|#define ERR_BAIL(obj) if ((obj)->error->code != AUG_NOERROR) goto error;
  |  |  ------------------
  |  |  |  Branch (65:27): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 1762|      0|    ERR_THROW(r == 0, aug, AUG_ENOMATCH,
  ------------------
  |  |   79|      0|    do {                                                \
  |  |   80|      0|        if (cond) {                                     \
  |  |  ------------------
  |  |  |  Branch (80:13): [True: 0, False: 0]
  |  |  ------------------
  |  |   81|      0|            report_error((obj)->error, code, ## fmt);   \
  |  |   82|      0|            goto error;                                 \
  |  |   83|      0|        }                                               \
  |  |   84|      0|    } while(0)
  |  |  ------------------
  |  |  |  Branch (84:13): [Folded, False: 0]
  |  |  ------------------
  ------------------
 1763|      0|              "Source node %s does not exist", node);
 1764|      0|    ERR_THROW(src == NULL, aug, AUG_ENOMATCH,
  ------------------
  |  |   79|      0|    do {                                                \
  |  |   80|      0|        if (cond) {                                     \
  |  |  ------------------
  |  |  |  Branch (80:13): [True: 0, False: 0]
  |  |  ------------------
  |  |   81|      0|            report_error((obj)->error, code, ## fmt);   \
  |  |   82|      0|            goto error;                                 \
  |  |   83|      0|        }                                               \
  |  |   84|      0|    } while(0)
  |  |  ------------------
  |  |  |  Branch (84:13): [Folded, False: 0]
  |  |  ------------------
  ------------------
 1765|      0|              "Source node %s has a NULL value", node);
 1766|       |
 1767|      0|    result = text_store(aug, lens, path, src);
 1768|      5| error:
 1769|      5|    api_exit(aug);
 1770|      5|    return result;
 1771|      0|}
aug_print:
 1926|      5|int aug_print(const struct augeas *aug, FILE *out, const char *pathin) {
 1927|      5|    struct pathx *p;
 1928|      5|    int result = -1;
 1929|       |
 1930|      5|    api_entry(aug);
 1931|       |
 1932|      5|    if (pathin == NULL || strlen(pathin) == 0) {
  ------------------
  |  Branch (1932:9): [True: 0, False: 5]
  |  Branch (1932:27): [True: 0, False: 5]
  ------------------
 1933|      0|        pathin = "/*";
 1934|      0|    }
 1935|       |
 1936|      5|    p = pathx_aug_parse(aug, aug->origin, tree_root_ctx(aug), pathin, true);
 1937|      5|    ERR_BAIL(aug);
  ------------------
  |  |   65|      5|#define ERR_BAIL(obj) if ((obj)->error->code != AUG_NOERROR) goto error;
  |  |  ------------------
  |  |  |  Branch (65:27): [True: 4, False: 1]
  |  |  ------------------
  ------------------
 1938|       |
 1939|      1|    result = print_tree(out, p, 0);
 1940|      5| error:
 1941|      5|    free_pathx(p);
 1942|      5|    api_exit(aug);
 1943|      5|    return result;
 1944|      1|}
aug_close:
 2058|      5|void aug_close(struct augeas *aug) {
 2059|      5|    if (aug == NULL)
  ------------------
  |  Branch (2059:9): [True: 0, False: 5]
  ------------------
 2060|      0|        return;
 2061|       |
 2062|       |    /* There's no point in bothering with api_entry/api_exit here */
 2063|      5|    free_tree(aug->origin);
 2064|      5|    unref(aug->modules, module);
  ------------------
  |  |   55|      5|    do {                                                                \
  |  |   56|      5|        if ((s) != NULL && (s)->ref != REF_MAX) {                       \
  |  |  ------------------
  |  |  |  |   41|      5|#define REF_MAX UINT_MAX
  |  |  ------------------
  |  |  |  Branch (56:13): [True: 5, False: 0]
  |  |  |  Branch (56:28): [True: 5, False: 0]
  |  |  ------------------
  |  |   57|      5|            assert((s)->ref > 0);                                       \
  |  |   58|      5|            if (--(s)->ref == 0) {                                      \
  |  |  ------------------
  |  |  |  Branch (58:17): [True: 5, False: 0]
  |  |  ------------------
  |  |   59|      5|                /*memset(s, 255, sizeof(*s));*/                         \
  |  |   60|      5|                free_##t(s);                                            \
  |  |   61|      5|            }                                                           \
  |  |   62|      5|        }                                                               \
  |  |   63|      5|        (s) = NULL;                                                     \
  |  |   64|      5|    } while(0)
  |  |  ------------------
  |  |  |  Branch (64:13): [Folded, False: 5]
  |  |  ------------------
  ------------------
  |  Branch (2064:5): [True: 0, False: 5]
  |  Branch (2064:5): [True: 5, False: 0]
  ------------------
 2065|      5|    if (aug->error->exn != NULL) {
  ------------------
  |  Branch (2065:9): [True: 5, False: 0]
  ------------------
 2066|      5|        aug->error->exn->ref = 0;
 2067|      5|        free_value(aug->error->exn);
 2068|      5|        aug->error->exn = NULL;
 2069|      5|    }
 2070|      5|    free((void *) aug->root);
 2071|      5|    free(aug->modpathz);
 2072|      5|    free_symtab(aug->symtab);
 2073|      5|    unref(aug->error->info, info);
  ------------------
  |  |   55|      5|    do {                                                                \
  |  |   56|      5|        if ((s) != NULL && (s)->ref != REF_MAX) {                       \
  |  |  ------------------
  |  |  |  |   41|      5|#define REF_MAX UINT_MAX
  |  |  ------------------
  |  |  |  Branch (56:13): [True: 5, False: 0]
  |  |  |  Branch (56:28): [True: 5, False: 0]
  |  |  ------------------
  |  |   57|      5|            assert((s)->ref > 0);                                       \
  |  |   58|      5|            if (--(s)->ref == 0) {                                      \
  |  |  ------------------
  |  |  |  Branch (58:17): [True: 5, False: 0]
  |  |  ------------------
  |  |   59|      5|                /*memset(s, 255, sizeof(*s));*/                         \
  |  |   60|      5|                free_##t(s);                                            \
  |  |   61|      5|            }                                                           \
  |  |   62|      5|        }                                                               \
  |  |   63|      5|        (s) = NULL;                                                     \
  |  |   64|      5|    } while(0)
  |  |  ------------------
  |  |  |  Branch (64:13): [Folded, False: 5]
  |  |  ------------------
  ------------------
  |  Branch (2073:5): [True: 0, False: 5]
  |  Branch (2073:5): [True: 5, False: 0]
  ------------------
 2074|      5|    free(aug->error->details);
 2075|      5|    free(aug->error);
 2076|      5|    free(aug);
 2077|      5|}
augeas.c:tree_mark_dirty:
   88|    207|static void tree_mark_dirty(struct tree *tree) {
   89|    207|    tree->dirty = 1;
   90|    903|    while (tree != tree->parent ) {
  ------------------
  |  Branch (90:12): [True: 696, False: 207]
  ------------------
   91|    696|        if ( tree->file ) {
  ------------------
  |  Branch (91:14): [True: 0, False: 696]
  ------------------
   92|      0|           tree->dirty = 1;
   93|      0|           break;
   94|      0|        }
   95|    696|        tree = tree->parent;
   96|    696|    }
   97|    207|}
augeas.c:save_locale:
  412|     40|static void save_locale(struct augeas *aug) {
  413|     40|    if (aug->c_locale == NULL) {
  ------------------
  |  Branch (413:9): [True: 5, False: 35]
  ------------------
  414|      5|        aug->c_locale = newlocale(LC_ALL_MASK, "C", NULL);
  415|      5|        ERR_NOMEM(aug->c_locale == NULL, aug);
  ------------------
  |  |   70|      5|    if (cond) {                                          \
  |  |  ------------------
  |  |  |  Branch (70:9): [True: 0, False: 5]
  |  |  ------------------
  |  |   71|      0|        report_error((obj)->error, AUG_ENOMEM, NULL);    \
  |  |   72|      0|        goto error;                                      \
  |  |   73|      0|    }
  ------------------
  416|      5|    }
  417|       |
  418|     40|    aug->user_locale = uselocale(aug->c_locale);
  419|     40| error:
  420|     40|    return;
  421|     40|}
augeas.c:store_pathx_error:
  277|     40|static void store_pathx_error(const struct augeas *aug) {
  278|     40|    if (aug->error->code != AUG_EPATHX)
  ------------------
  |  Branch (278:9): [True: 8, False: 32]
  ------------------
  279|      8|        return;
  280|       |
  281|     32|    store_error(aug, s_pathx, aug->error->minor_details,
  282|     32|                2, s_pos, aug->error->details);
  283|     32|}
augeas.c:store_error:
  252|     32|                 int nentries, ...) {
  253|     32|    va_list ap;
  254|     32|    struct tree *tree;
  255|       |
  256|     32|    ensure(nentries % 2 == 0, aug);
  ------------------
  |  |   98|     32|    if (!(cond)) {                                                   \
  |  |  ------------------
  |  |  |  Branch (98:9): [True: 0, False: 32]
  |  |  ------------------
  |  |   99|      0|        bug_on((obj)->error, __FILE__, __LINE__, NULL);              \
  |  |  100|      0|        goto error;                                                  \
  |  |  101|      0|    }
  ------------------
  257|     32|    tree = tree_path_cr(aug->origin, 3, s_augeas, s_error, label);
  258|     32|    if (tree == NULL)
  ------------------
  |  Branch (258:9): [True: 0, False: 32]
  ------------------
  259|      0|        return;
  260|       |
  261|     32|    tree_set_value(tree, value);
  262|       |
  263|     32|    va_start(ap, nentries);
  264|     64|    for (int i=0; i < nentries; i += 2) {
  ------------------
  |  Branch (264:19): [True: 32, False: 32]
  ------------------
  265|     32|        char *l = va_arg(ap, char *);
  266|     32|        char *v = va_arg(ap, char *);
  267|     32|        struct tree *t = tree_child_cr(tree, l);
  268|     32|        if (t != NULL)
  ------------------
  |  Branch (268:13): [True: 32, False: 0]
  ------------------
  269|     32|            tree_set_value(t, v);
  270|     32|    }
  271|     32|    va_end(ap);
  272|     32| error:
  273|     32|    return;
  274|     32|}
augeas.c:restore_locale:
  427|     40|static void restore_locale(struct augeas *aug) {
  428|     40|    uselocale(aug->user_locale);
  429|       |    aug->user_locale = NULL;
  430|     40|}
augeas.c:init_root:
  462|      5|static int init_root(struct augeas *aug, const char *root0) {
  463|      5|    if (root0 == NULL)
  ------------------
  |  Branch (463:9): [True: 0, False: 5]
  ------------------
  464|      0|        root0 = getenv(AUGEAS_ROOT_ENV);
  ------------------
  |  |   55|      0|#define AUGEAS_ROOT_ENV "AUGEAS_ROOT"
  ------------------
  465|      5|    if (root0 == NULL || root0[0] == '\0')
  ------------------
  |  Branch (465:9): [True: 0, False: 5]
  |  Branch (465:26): [True: 0, False: 5]
  ------------------
  466|      0|        root0 = "/";
  467|       |
  468|      5|    aug->root = strdup(root0);
  469|      5|    if (aug->root == NULL)
  ------------------
  |  Branch (469:9): [True: 0, False: 5]
  ------------------
  470|      0|        return -1;
  471|       |
  472|      5|    if (aug->root[strlen(aug->root)-1] != SEP) {
  ------------------
  |  |  241|      5|#define SEP '/'
  ------------------
  |  Branch (472:9): [True: 5, False: 0]
  ------------------
  473|      5|        if (REALLOC_N(aug->root, strlen(aug->root) + 2) < 0)
  ------------------
  |  |   69|      5|#define REALLOC_N(ptr, count) mem_realloc_n(&(ptr), sizeof(*(ptr)), (count))
  ------------------
  |  Branch (473:13): [True: 0, False: 5]
  ------------------
  474|      0|            return -1;
  475|      5|        strcat((char *) aug->root, "/");
  476|      5|    }
  477|      5|    return 0;
  478|      5|}
augeas.c:init_loadpath:
  480|      5|static int init_loadpath(struct augeas *aug, const char *loadpath) {
  481|      5|    int r;
  482|       |
  483|      5|    aug->modpathz = NULL;
  484|      5|    aug->nmodpath = 0;
  485|      5|    if (loadpath != NULL) {
  ------------------
  |  Branch (485:9): [True: 0, False: 5]
  ------------------
  486|      0|        r = argz_add_sep(&aug->modpathz, &aug->nmodpath,
  487|      0|                         loadpath, PATH_SEP_CHAR);
  ------------------
  |  |  118|      0|#define PATH_SEP_CHAR ':'
  ------------------
  488|      0|        if (r != 0)
  ------------------
  |  Branch (488:13): [True: 0, False: 0]
  ------------------
  489|      0|            return -1;
  490|      0|    }
  491|      5|    char *env = getenv(AUGEAS_LENS_ENV);
  ------------------
  |  |  109|      5|#define AUGEAS_LENS_ENV "AUGEAS_LENS_LIB"
  ------------------
  492|      5|    if (env != NULL) {
  ------------------
  |  Branch (492:9): [True: 0, False: 5]
  ------------------
  493|      0|        r = argz_add_sep(&aug->modpathz, &aug->nmodpath,
  494|      0|                         env, PATH_SEP_CHAR);
  ------------------
  |  |  118|      0|#define PATH_SEP_CHAR ':'
  ------------------
  495|      0|        if (r != 0)
  ------------------
  |  Branch (495:13): [True: 0, False: 0]
  ------------------
  496|      0|            return -1;
  497|      0|    }
  498|      5|    if (!(aug->flags & AUG_NO_STDINC)) {
  ------------------
  |  Branch (498:9): [True: 0, False: 5]
  ------------------
  499|      0|        r = argz_add(&aug->modpathz, &aug->nmodpath, AUGEAS_LENS_DIR);
  ------------------
  |  |   47|      0|#define AUGEAS_LENS_DIR DATADIR "/augeas/lenses"
  |  |  ------------------
  |  |  |  |    1|      0|#define DATADIR "/usr/local/share"
  |  |  ------------------
  ------------------
  500|      0|        if (r != 0)
  ------------------
  |  Branch (500:13): [True: 0, False: 0]
  ------------------
  501|      0|            return -1;
  502|      0|        r = argz_add(&aug->modpathz, &aug->nmodpath,
  503|      0|                     AUGEAS_LENS_DIST_DIR);
  ------------------
  |  |   50|      0|#define AUGEAS_LENS_DIST_DIR DATADIR "/augeas/lenses/dist"
  |  |  ------------------
  |  |  |  |    1|      0|#define DATADIR "/usr/local/share"
  |  |  ------------------
  ------------------
  504|      0|        if (r != 0)
  ------------------
  |  Branch (504:13): [True: 0, False: 0]
  ------------------
  505|      0|            return -1;
  506|      0|    }
  507|       |    /* Clean up trailing slashes */
  508|      5|    if (aug->nmodpath > 0) {
  ------------------
  |  Branch (508:9): [True: 0, False: 5]
  ------------------
  509|      0|        argz_stringify(aug->modpathz, aug->nmodpath, PATH_SEP_CHAR);
  ------------------
  |  |  118|      0|#define PATH_SEP_CHAR ':'
  ------------------
  510|      0|        char *s, *t;
  511|      0|        const char *e = aug->modpathz + strlen(aug->modpathz);
  512|      0|        for (s = aug->modpathz, t = aug->modpathz; s < e; s++) {
  ------------------
  |  Branch (512:52): [True: 0, False: 0]
  ------------------
  513|      0|            char *p = s;
  514|      0|            if (*p == '/') {
  ------------------
  |  Branch (514:17): [True: 0, False: 0]
  ------------------
  515|      0|                while (*p == '/') p += 1;
  ------------------
  |  Branch (515:24): [True: 0, False: 0]
  ------------------
  516|      0|                if (*p == '\0' || *p == PATH_SEP_CHAR)
  ------------------
  |  |  118|      0|#define PATH_SEP_CHAR ':'
  ------------------
  |  Branch (516:21): [True: 0, False: 0]
  |  Branch (516:35): [True: 0, False: 0]
  ------------------
  517|      0|                    s = p;
  518|      0|            }
  519|      0|            if (t != s)
  ------------------
  |  Branch (519:17): [True: 0, False: 0]
  ------------------
  520|      0|                *t++ = *s;
  521|      0|            else
  522|      0|                t += 1;
  523|      0|        }
  524|      0|        if (t != s) {
  ------------------
  |  Branch (524:13): [True: 0, False: 0]
  ------------------
  525|      0|            *t = '\0';
  526|      0|        }
  527|      0|        s = aug->modpathz;
  528|      0|        aug->modpathz = NULL;
  529|      0|        r = argz_create_sep(s, PATH_SEP_CHAR, &aug->modpathz,
  ------------------
  |  |  118|      0|#define PATH_SEP_CHAR ':'
  ------------------
  530|      0|                            &aug->nmodpath);
  531|      0|        free(s);
  532|      0|        if (r != 0)
  ------------------
  |  Branch (532:13): [True: 0, False: 0]
  ------------------
  533|      0|            return -1;
  534|      0|    }
  535|      5|    return 0;
  536|      5|}
augeas.c:init_save_mode:
  538|      5|static void init_save_mode(struct augeas *aug) {
  539|      5|    const char *v = AUG_SAVE_OVERWRITE_TEXT;
  ------------------
  |  |  125|      5|#define AUG_SAVE_OVERWRITE_TEXT "overwrite"
  ------------------
  540|       |
  541|      5|    if (aug->flags & AUG_SAVE_NEWFILE) {
  ------------------
  |  Branch (541:9): [True: 0, False: 5]
  ------------------
  542|      0|        v = AUG_SAVE_NEWFILE_TEXT;
  ------------------
  |  |  123|      0|#define AUG_SAVE_NEWFILE_TEXT "newfile"
  ------------------
  543|      5|    } else if (aug->flags & AUG_SAVE_BACKUP) {
  ------------------
  |  Branch (543:16): [True: 0, False: 5]
  ------------------
  544|      0|        v = AUG_SAVE_BACKUP_TEXT;
  ------------------
  |  |  122|      0|#define AUG_SAVE_BACKUP_TEXT "backup"
  ------------------
  545|      5|    } else if (aug->flags & AUG_SAVE_NOOP) {
  ------------------
  |  Branch (545:16): [True: 0, False: 5]
  ------------------
  546|      0|        v = AUG_SAVE_NOOP_TEXT;
  ------------------
  |  |  124|      0|#define AUG_SAVE_NOOP_TEXT "noop"
  ------------------
  547|      0|    }
  548|       |
  549|      5|    aug_set(aug, AUGEAS_META_SAVE_MODE, v);
  ------------------
  |  |   79|      5|#define AUGEAS_META_SAVE_MODE AUGEAS_META_TREE "/save"
  |  |  ------------------
  |  |  |  |   63|      5|#define AUGEAS_META_TREE "/augeas"
  |  |  ------------------
  ------------------
  550|      5|}
augeas.c:free_tree_node:
  646|    140|static void free_tree_node(struct tree *tree) {
  647|    140|    if (tree == NULL)
  ------------------
  |  Branch (647:9): [True: 0, False: 140]
  ------------------
  648|      0|        return;
  649|       |
  650|    140|    if (tree->span != NULL)
  ------------------
  |  Branch (650:9): [True: 0, False: 140]
  ------------------
  651|      0|        free_span(tree->span);
  652|    140|    free(tree->label);
  653|    140|    free(tree->value);
  654|    140|    free(tree);
  655|    140|}
augeas.c:print_tree:
 1705|      1|static int print_tree(FILE *out, struct pathx *p, int pr_hidden) {
 1706|      1|    char *path = NULL;
 1707|      1|    struct tree *tree;
 1708|      1|    int r;
 1709|       |
 1710|      1|    for (tree = pathx_first(p); tree != NULL; tree = pathx_next(p)) {
  ------------------
  |  Branch (1710:33): [True: 0, False: 1]
  ------------------
 1711|      0|        if (TREE_HIDDEN(tree) && ! pr_hidden)
  ------------------
  |  |  444|      0|#define TREE_HIDDEN(tree) ((tree)->label == NULL)
  |  |  ------------------
  |  |  |  Branch (444:27): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  |  Branch (1711:34): [True: 0, False: 0]
  ------------------
 1712|      0|            continue;
 1713|       |
 1714|      0|        path = path_of_tree(tree);
 1715|      0|        if (path == NULL)
  ------------------
  |  Branch (1715:13): [True: 0, False: 0]
  ------------------
 1716|      0|            goto error;
 1717|      0|        r = print_one(out, path, tree->value);
 1718|      0|        if (r < 0)
  ------------------
  |  Branch (1718:13): [True: 0, False: 0]
  ------------------
 1719|      0|            goto error;
 1720|      0|        r = print_rec(out, tree->children, path, pr_hidden);
 1721|      0|        if (r < 0)
  ------------------
  |  Branch (1721:13): [True: 0, False: 0]
  ------------------
 1722|      0|            goto error;
 1723|      0|        free(path);
 1724|      0|        path = NULL;
 1725|      0|    }
 1726|      1|    return 0;
 1727|      0| error:
 1728|      0|    free(path);
 1729|      0|    return -1;
 1730|      1|}

builtin_init:
  633|      5|struct module *builtin_init(struct error *error) {
  634|      5|    struct module *modl = module_create("Builtin");
  635|      5|    int r;
  636|       |
  637|      5|#define DEFINE_NATIVE(modl, name, nargs, impl, types ...)               \
  638|      5|    r = define_native(error, modl, name, nargs, impl, ##types);         \
  639|      5|    if (r < 0) goto error;
  640|       |
  641|      5|    DEFINE_NATIVE(modl, "gensym", 1, gensym, T_STRING, T_STRING);
  ------------------
  |  |  638|      5|    r = define_native(error, modl, name, nargs, impl, ##types);         \
  |  |  ------------------
  |  |  |  |  273|      5|    define_native_intl(__FILE__, __LINE__, error, module, name,         \
  |  |  |  |  274|      5|                       argc, impl, ## types)
  |  |  ------------------
  |  |  639|      5|    if (r < 0) goto error;
  |  |  ------------------
  |  |  |  Branch (639:9): [True: 0, False: 5]
  |  |  ------------------
  ------------------
  642|       |
  643|       |    /* Primitive lenses */
  644|      5|    DEFINE_NATIVE(modl, "del",     2, lns_del, T_REGEXP, T_STRING, T_LENS);
  ------------------
  |  |  638|      5|    r = define_native(error, modl, name, nargs, impl, ##types);         \
  |  |  ------------------
  |  |  |  |  273|      5|    define_native_intl(__FILE__, __LINE__, error, module, name,         \
  |  |  |  |  274|      5|                       argc, impl, ## types)
  |  |  ------------------
  |  |  639|      5|    if (r < 0) goto error;
  |  |  ------------------
  |  |  |  Branch (639:9): [True: 0, False: 5]
  |  |  ------------------
  ------------------
  645|      5|    DEFINE_NATIVE(modl, "store",   1, lns_store, T_REGEXP, T_LENS);
  ------------------
  |  |  638|      5|    r = define_native(error, modl, name, nargs, impl, ##types);         \
  |  |  ------------------
  |  |  |  |  273|      5|    define_native_intl(__FILE__, __LINE__, error, module, name,         \
  |  |  |  |  274|      5|                       argc, impl, ## types)
  |  |  ------------------
  |  |  639|      5|    if (r < 0) goto error;
  |  |  ------------------
  |  |  |  Branch (639:9): [True: 0, False: 5]
  |  |  ------------------
  ------------------
  646|      5|    DEFINE_NATIVE(modl, "value",   1, lns_value, T_STRING, T_LENS);
  ------------------
  |  |  638|      5|    r = define_native(error, modl, name, nargs, impl, ##types);         \
  |  |  ------------------
  |  |  |  |  273|      5|    define_native_intl(__FILE__, __LINE__, error, module, name,         \
  |  |  |  |  274|      5|                       argc, impl, ## types)
  |  |  ------------------
  |  |  639|      5|    if (r < 0) goto error;
  |  |  ------------------
  |  |  |  Branch (639:9): [True: 0, False: 5]
  |  |  ------------------
  ------------------
  647|      5|    DEFINE_NATIVE(modl, "key",     1, lns_key, T_REGEXP, T_LENS);
  ------------------
  |  |  638|      5|    r = define_native(error, modl, name, nargs, impl, ##types);         \
  |  |  ------------------
  |  |  |  |  273|      5|    define_native_intl(__FILE__, __LINE__, error, module, name,         \
  |  |  |  |  274|      5|                       argc, impl, ## types)
  |  |  ------------------
  |  |  639|      5|    if (r < 0) goto error;
  |  |  ------------------
  |  |  |  Branch (639:9): [True: 0, False: 5]
  |  |  ------------------
  ------------------
  648|      5|    DEFINE_NATIVE(modl, "label",   1, lns_label, T_STRING, T_LENS);
  ------------------
  |  |  638|      5|    r = define_native(error, modl, name, nargs, impl, ##types);         \
  |  |  ------------------
  |  |  |  |  273|      5|    define_native_intl(__FILE__, __LINE__, error, module, name,         \
  |  |  |  |  274|      5|                       argc, impl, ## types)
  |  |  ------------------
  |  |  639|      5|    if (r < 0) goto error;
  |  |  ------------------
  |  |  |  Branch (639:9): [True: 0, False: 5]
  |  |  ------------------
  ------------------
  649|      5|    DEFINE_NATIVE(modl, "seq",     1, lns_seq, T_STRING, T_LENS);
  ------------------
  |  |  638|      5|    r = define_native(error, modl, name, nargs, impl, ##types);         \
  |  |  ------------------
  |  |  |  |  273|      5|    define_native_intl(__FILE__, __LINE__, error, module, name,         \
  |  |  |  |  274|      5|                       argc, impl, ## types)
  |  |  ------------------
  |  |  639|      5|    if (r < 0) goto error;
  |  |  ------------------
  |  |  |  Branch (639:9): [True: 0, False: 5]
  |  |  ------------------
  ------------------
  650|      5|    DEFINE_NATIVE(modl, "counter", 1, lns_counter, T_STRING, T_LENS);
  ------------------
  |  |  638|      5|    r = define_native(error, modl, name, nargs, impl, ##types);         \
  |  |  ------------------
  |  |  |  |  273|      5|    define_native_intl(__FILE__, __LINE__, error, module, name,         \
  |  |  |  |  274|      5|                       argc, impl, ## types)
  |  |  ------------------
  |  |  639|      5|    if (r < 0) goto error;
  |  |  ------------------
  |  |  |  Branch (639:9): [True: 0, False: 5]
  |  |  ------------------
  ------------------
  651|      5|    DEFINE_NATIVE(modl, "square",  3, lns_square, T_LENS, T_LENS, T_LENS, T_LENS);
  ------------------
  |  |  638|      5|    r = define_native(error, modl, name, nargs, impl, ##types);         \
  |  |  ------------------
  |  |  |  |  273|      5|    define_native_intl(__FILE__, __LINE__, error, module, name,         \
  |  |  |  |  274|      5|                       argc, impl, ## types)
  |  |  ------------------
  |  |  639|      5|    if (r < 0) goto error;
  |  |  ------------------
  |  |  |  Branch (639:9): [True: 0, False: 5]
  |  |  ------------------
  ------------------
  652|       |    /* Applying lenses (mostly for tests) */
  653|      5|    DEFINE_NATIVE(modl, "get",     2, lens_get, T_LENS, T_STRING, T_TREE);
  ------------------
  |  |  638|      5|    r = define_native(error, modl, name, nargs, impl, ##types);         \
  |  |  ------------------
  |  |  |  |  273|      5|    define_native_intl(__FILE__, __LINE__, error, module, name,         \
  |  |  |  |  274|      5|                       argc, impl, ## types)
  |  |  ------------------
  |  |  639|      5|    if (r < 0) goto error;
  |  |  ------------------
  |  |  |  Branch (639:9): [True: 0, False: 5]
  |  |  ------------------
  ------------------
  654|      5|    DEFINE_NATIVE(modl, "put",     3, lens_put, T_LENS, T_TREE, T_STRING,
  ------------------
  |  |  638|      5|    r = define_native(error, modl, name, nargs, impl, ##types);         \
  |  |  ------------------
  |  |  |  |  273|      5|    define_native_intl(__FILE__, __LINE__, error, module, name,         \
  |  |  |  |  274|      5|                       argc, impl, ## types)
  |  |  ------------------
  |  |  639|      5|    if (r < 0) goto error;
  |  |  ------------------
  |  |  |  Branch (639:9): [True: 0, False: 5]
  |  |  ------------------
  ------------------
  655|      5|                  T_STRING);
  656|       |    /* Tree manipulation used by the PUT tests */
  657|      5|    DEFINE_NATIVE(modl, "set", 3, tree_set_glue, T_STRING, T_STRING, T_TREE,
  ------------------
  |  |  638|      5|    r = define_native(error, modl, name, nargs, impl, ##types);         \
  |  |  ------------------
  |  |  |  |  273|      5|    define_native_intl(__FILE__, __LINE__, error, module, name,         \
  |  |  |  |  274|      5|                       argc, impl, ## types)
  |  |  ------------------
  |  |  639|      5|    if (r < 0) goto error;
  |  |  ------------------
  |  |  |  Branch (639:9): [True: 0, False: 5]
  |  |  ------------------
  ------------------
  658|      5|                                                 T_TREE);
  659|      5|    DEFINE_NATIVE(modl, "clear", 2, tree_clear_glue, T_STRING, T_TREE,
  ------------------
  |  |  638|      5|    r = define_native(error, modl, name, nargs, impl, ##types);         \
  |  |  ------------------
  |  |  |  |  273|      5|    define_native_intl(__FILE__, __LINE__, error, module, name,         \
  |  |  |  |  274|      5|                       argc, impl, ## types)
  |  |  ------------------
  |  |  639|      5|    if (r < 0) goto error;
  |  |  ------------------
  |  |  |  Branch (639:9): [True: 0, False: 5]
  |  |  ------------------
  ------------------
  660|      5|                                                 T_TREE);
  661|      5|    DEFINE_NATIVE(modl, "rm", 2, tree_rm_glue, T_STRING, T_TREE, T_TREE);
  ------------------
  |  |  638|      5|    r = define_native(error, modl, name, nargs, impl, ##types);         \
  |  |  ------------------
  |  |  |  |  273|      5|    define_native_intl(__FILE__, __LINE__, error, module, name,         \
  |  |  |  |  274|      5|                       argc, impl, ## types)
  |  |  ------------------
  |  |  639|      5|    if (r < 0) goto error;
  |  |  ------------------
  |  |  |  Branch (639:9): [True: 0, False: 5]
  |  |  ------------------
  ------------------
  662|      5|    DEFINE_NATIVE(modl, "insa", 3, tree_insa_glue, T_STRING, T_STRING, T_TREE,
  ------------------
  |  |  638|      5|    r = define_native(error, modl, name, nargs, impl, ##types);         \
  |  |  ------------------
  |  |  |  |  273|      5|    define_native_intl(__FILE__, __LINE__, error, module, name,         \
  |  |  |  |  274|      5|                       argc, impl, ## types)
  |  |  ------------------
  |  |  639|      5|    if (r < 0) goto error;
  |  |  ------------------
  |  |  |  Branch (639:9): [True: 0, False: 5]
  |  |  ------------------
  ------------------
  663|      5|                                                   T_TREE);
  664|      5|    DEFINE_NATIVE(modl, "insb", 3, tree_insb_glue, T_STRING, T_STRING, T_TREE,
  ------------------
  |  |  638|      5|    r = define_native(error, modl, name, nargs, impl, ##types);         \
  |  |  ------------------
  |  |  |  |  273|      5|    define_native_intl(__FILE__, __LINE__, error, module, name,         \
  |  |  |  |  274|      5|                       argc, impl, ## types)
  |  |  ------------------
  |  |  639|      5|    if (r < 0) goto error;
  |  |  ------------------
  |  |  |  Branch (639:9): [True: 0, False: 5]
  |  |  ------------------
  ------------------
  665|      5|                                                   T_TREE);
  666|       |    /* Transforms and filters */
  667|      5|    DEFINE_NATIVE(modl, "incl", 1, xform_incl, T_STRING, T_FILTER);
  ------------------
  |  |  638|      5|    r = define_native(error, modl, name, nargs, impl, ##types);         \
  |  |  ------------------
  |  |  |  |  273|      5|    define_native_intl(__FILE__, __LINE__, error, module, name,         \
  |  |  |  |  274|      5|                       argc, impl, ## types)
  |  |  ------------------
  |  |  639|      5|    if (r < 0) goto error;
  |  |  ------------------
  |  |  |  Branch (639:9): [True: 0, False: 5]
  |  |  ------------------
  ------------------
  668|      5|    DEFINE_NATIVE(modl, "excl", 1, xform_excl, T_STRING, T_FILTER);
  ------------------
  |  |  638|      5|    r = define_native(error, modl, name, nargs, impl, ##types);         \
  |  |  ------------------
  |  |  |  |  273|      5|    define_native_intl(__FILE__, __LINE__, error, module, name,         \
  |  |  |  |  274|      5|                       argc, impl, ## types)
  |  |  ------------------
  |  |  639|      5|    if (r < 0) goto error;
  |  |  ------------------
  |  |  |  Branch (639:9): [True: 0, False: 5]
  |  |  ------------------
  ------------------
  669|      5|    DEFINE_NATIVE(modl, "transform", 2, xform_transform, T_LENS, T_FILTER,
  ------------------
  |  |  638|      5|    r = define_native(error, modl, name, nargs, impl, ##types);         \
  |  |  ------------------
  |  |  |  |  273|      5|    define_native_intl(__FILE__, __LINE__, error, module, name,         \
  |  |  |  |  274|      5|                       argc, impl, ## types)
  |  |  ------------------
  |  |  639|      5|    if (r < 0) goto error;
  |  |  ------------------
  |  |  |  Branch (639:9): [True: 0, False: 5]
  |  |  ------------------
  ------------------
  670|      5|                                                         T_TRANSFORM);
  671|      5|    DEFINE_NATIVE(modl, LNS_CHECK_REC_NAME,
  ------------------
  |  |  638|      5|    r = define_native(error, modl, name, nargs, impl, ##types);         \
  |  |  ------------------
  |  |  |  |  273|      5|    define_native_intl(__FILE__, __LINE__, error, module, name,         \
  |  |  |  |  274|      5|                       argc, impl, ## types)
  |  |  ------------------
  |  |  639|      5|    if (r < 0) goto error;
  |  |  ------------------
  |  |  |  Branch (639:9): [True: 0, False: 5]
  |  |  ------------------
  ------------------
  672|      5|                  2, lns_check_rec_glue, T_LENS, T_LENS, T_LENS);
  673|       |    /* Printing */
  674|      5|    DEFINE_NATIVE(modl, "print_string", 1, pr_string, T_STRING, T_UNIT);
  ------------------
  |  |  638|      5|    r = define_native(error, modl, name, nargs, impl, ##types);         \
  |  |  ------------------
  |  |  |  |  273|      5|    define_native_intl(__FILE__, __LINE__, error, module, name,         \
  |  |  |  |  274|      5|                       argc, impl, ## types)
  |  |  ------------------
  |  |  639|      5|    if (r < 0) goto error;
  |  |  ------------------
  |  |  |  Branch (639:9): [True: 0, False: 5]
  |  |  ------------------
  ------------------
  675|      5|    DEFINE_NATIVE(modl, "print_regexp", 1, pr_regexp, T_REGEXP, T_UNIT);
  ------------------
  |  |  638|      5|    r = define_native(error, modl, name, nargs, impl, ##types);         \
  |  |  ------------------
  |  |  |  |  273|      5|    define_native_intl(__FILE__, __LINE__, error, module, name,         \
  |  |  |  |  274|      5|                       argc, impl, ## types)
  |  |  ------------------
  |  |  639|      5|    if (r < 0) goto error;
  |  |  ------------------
  |  |  |  Branch (639:9): [True: 0, False: 5]
  |  |  ------------------
  ------------------
  676|      5|    DEFINE_NATIVE(modl, "print_endline", 1, pr_endline, T_STRING, T_UNIT);
  ------------------
  |  |  638|      5|    r = define_native(error, modl, name, nargs, impl, ##types);         \
  |  |  ------------------
  |  |  |  |  273|      5|    define_native_intl(__FILE__, __LINE__, error, module, name,         \
  |  |  |  |  274|      5|                       argc, impl, ## types)
  |  |  ------------------
  |  |  639|      5|    if (r < 0) goto error;
  |  |  ------------------
  |  |  |  Branch (639:9): [True: 0, False: 5]
  |  |  ------------------
  ------------------
  677|      5|    DEFINE_NATIVE(modl, "print_tree", 1, pr_tree, T_TREE, T_TREE);
  ------------------
  |  |  638|      5|    r = define_native(error, modl, name, nargs, impl, ##types);         \
  |  |  ------------------
  |  |  |  |  273|      5|    define_native_intl(__FILE__, __LINE__, error, module, name,         \
  |  |  |  |  274|      5|                       argc, impl, ## types)
  |  |  ------------------
  |  |  639|      5|    if (r < 0) goto error;
  |  |  ------------------
  |  |  |  Branch (639:9): [True: 0, False: 5]
  |  |  ------------------
  ------------------
  678|       |
  679|       |    /* Lens inspection */
  680|      5|    DEFINE_NATIVE(modl, "lens_ctype", 1, lns_ctype, T_LENS, T_REGEXP);
  ------------------
  |  |  638|      5|    r = define_native(error, modl, name, nargs, impl, ##types);         \
  |  |  ------------------
  |  |  |  |  273|      5|    define_native_intl(__FILE__, __LINE__, error, module, name,         \
  |  |  |  |  274|      5|                       argc, impl, ## types)
  |  |  ------------------
  |  |  639|      5|    if (r < 0) goto error;
  |  |  ------------------
  |  |  |  Branch (639:9): [True: 0, False: 5]
  |  |  ------------------
  ------------------
  681|      5|    DEFINE_NATIVE(modl, "lens_atype", 1, lns_atype, T_LENS, T_REGEXP);
  ------------------
  |  |  638|      5|    r = define_native(error, modl, name, nargs, impl, ##types);         \
  |  |  ------------------
  |  |  |  |  273|      5|    define_native_intl(__FILE__, __LINE__, error, module, name,         \
  |  |  |  |  274|      5|                       argc, impl, ## types)
  |  |  ------------------
  |  |  639|      5|    if (r < 0) goto error;
  |  |  ------------------
  |  |  |  Branch (639:9): [True: 0, False: 5]
  |  |  ------------------
  ------------------
  682|      5|    DEFINE_NATIVE(modl, "lens_vtype", 1, lns_vtype, T_LENS, T_REGEXP);
  ------------------
  |  |  638|      5|    r = define_native(error, modl, name, nargs, impl, ##types);         \
  |  |  ------------------
  |  |  |  |  273|      5|    define_native_intl(__FILE__, __LINE__, error, module, name,         \
  |  |  |  |  274|      5|                       argc, impl, ## types)
  |  |  ------------------
  |  |  639|      5|    if (r < 0) goto error;
  |  |  ------------------
  |  |  |  Branch (639:9): [True: 0, False: 5]
  |  |  ------------------
  ------------------
  683|      5|    DEFINE_NATIVE(modl, "lens_ktype", 1, lns_ktype, T_LENS, T_REGEXP);
  ------------------
  |  |  638|      5|    r = define_native(error, modl, name, nargs, impl, ##types);         \
  |  |  ------------------
  |  |  |  |  273|      5|    define_native_intl(__FILE__, __LINE__, error, module, name,         \
  |  |  |  |  274|      5|                       argc, impl, ## types)
  |  |  ------------------
  |  |  639|      5|    if (r < 0) goto error;
  |  |  ------------------
  |  |  |  Branch (639:9): [True: 0, False: 5]
  |  |  ------------------
  ------------------
  684|      5|    DEFINE_NATIVE(modl, "lens_format_atype", 1, lns_fmt_atype,
  ------------------
  |  |  638|      5|    r = define_native(error, modl, name, nargs, impl, ##types);         \
  |  |  ------------------
  |  |  |  |  273|      5|    define_native_intl(__FILE__, __LINE__, error, module, name,         \
  |  |  |  |  274|      5|                       argc, impl, ## types)
  |  |  ------------------
  |  |  639|      5|    if (r < 0) goto error;
  |  |  ------------------
  |  |  |  Branch (639:9): [True: 0, False: 5]
  |  |  ------------------
  ------------------
  685|      5|                  T_LENS, T_STRING);
  686|       |
  687|       |    /* Regexp matching */
  688|      5|    DEFINE_NATIVE(modl, "regexp_match", 2, rx_match, T_REGEXP, T_STRING,
  ------------------
  |  |  638|      5|    r = define_native(error, modl, name, nargs, impl, ##types);         \
  |  |  ------------------
  |  |  |  |  273|      5|    define_native_intl(__FILE__, __LINE__, error, module, name,         \
  |  |  |  |  274|      5|                       argc, impl, ## types)
  |  |  ------------------
  |  |  639|      5|    if (r < 0) goto error;
  |  |  ------------------
  |  |  |  Branch (639:9): [True: 0, False: 5]
  |  |  ------------------
  ------------------
  689|      5|                  T_STRING);
  690|       |
  691|       |    /* System functions */
  692|      5|    struct module *sys = module_create("Sys");
  693|      5|    modl->next = sys;
  694|      5|    DEFINE_NATIVE(sys, "getenv", 1, sys_getenv, T_STRING, T_STRING);
  ------------------
  |  |  638|      5|    r = define_native(error, modl, name, nargs, impl, ##types);         \
  |  |  ------------------
  |  |  |  |  273|      5|    define_native_intl(__FILE__, __LINE__, error, module, name,         \
  |  |  |  |  274|      5|                       argc, impl, ## types)
  |  |  ------------------
  |  |  639|      5|    if (r < 0) goto error;
  |  |  ------------------
  |  |  |  Branch (639:9): [True: 0, False: 5]
  |  |  ------------------
  ------------------
  695|      5|    DEFINE_NATIVE(sys, "read_file", 1, sys_read_file, T_STRING, T_STRING);
  ------------------
  |  |  638|      5|    r = define_native(error, modl, name, nargs, impl, ##types);         \
  |  |  ------------------
  |  |  |  |  273|      5|    define_native_intl(__FILE__, __LINE__, error, module, name,         \
  |  |  |  |  274|      5|                       argc, impl, ## types)
  |  |  ------------------
  |  |  639|      5|    if (r < 0) goto error;
  |  |  ------------------
  |  |  |  Branch (639:9): [True: 0, False: 5]
  |  |  ------------------
  ------------------
  696|      5|    return modl;
  697|      0| error:
  698|      0|    unref(modl, module);
  ------------------
  |  |   55|      0|    do {                                                                \
  |  |   56|      0|        if ((s) != NULL && (s)->ref != REF_MAX) {                       \
  |  |  ------------------
  |  |  |  |   41|      0|#define REF_MAX UINT_MAX
  |  |  ------------------
  |  |  |  Branch (56:13): [True: 0, False: 0]
  |  |  |  Branch (56:28): [True: 0, False: 0]
  |  |  ------------------
  |  |   57|      0|            assert((s)->ref > 0);                                       \
  |  |   58|      0|            if (--(s)->ref == 0) {                                      \
  |  |  ------------------
  |  |  |  Branch (58:17): [True: 0, False: 0]
  |  |  ------------------
  |  |   59|      0|                /*memset(s, 255, sizeof(*s));*/                         \
  |  |   60|      0|                free_##t(s);                                            \
  |  |   61|      0|            }                                                           \
  |  |   62|      0|        }                                                               \
  |  |   63|      0|        (s) = NULL;                                                     \
  |  |   64|      0|    } while(0)
  |  |  ------------------
  |  |  |  Branch (64:13): [Folded, False: 0]
  |  |  ------------------
  ------------------
  |  Branch (698:5): [True: 0, False: 0]
  |  Branch (698:5): [True: 0, False: 0]
  ------------------
  699|      0|    return NULL;
  700|      0|}

report_error:
   44|      3|                  const char *format, ...) {
   45|      3|    va_list ap;
   46|       |
   47|      3|    va_start(ap, format);
   48|      3|    vreport_error(err, errcode, format, ap);
   49|       |    va_end(ap);
   50|      3|}
reset_error:
   76|     40|void reset_error(struct error *err) {
   77|     40|    err->code = AUG_NOERROR;
   78|     40|    err->minor = 0;
   79|     40|    FREE(err->details);
  ------------------
  |  |   79|     40|  do {                                          \
  |  |   80|     40|    free(ptr);                                  \
  |  |   81|     40|    (ptr) = NULL;                               \
  |  |   82|     40|  } while(0)
  |  |  ------------------
  |  |  |  Branch (82:11): [Folded, False: 40]
  |  |  ------------------
  ------------------
   80|       |    err->minor_details = NULL;
   81|     40|}
errcode.c:vreport_error:
   30|      3|                   const char *format, va_list ap) {
   31|       |    /* We only remember the first error */
   32|      3|    if (err->code != AUG_NOERROR)
  ------------------
  |  Branch (32:9): [True: 0, False: 3]
  ------------------
   33|      0|        return;
   34|      3|    assert(err->details == NULL);
  ------------------
  |  Branch (34:5): [True: 0, False: 3]
  |  Branch (34:5): [True: 3, False: 0]
  ------------------
   35|       |
   36|      3|    err->code = errcode;
   37|      3|    if (format != NULL) {
  ------------------
  |  Branch (37:9): [True: 3, False: 0]
  ------------------
   38|      3|        if (vasprintf(&err->details, format, ap) < 0)
  ------------------
  |  Branch (38:13): [True: 0, False: 3]
  ------------------
   39|      0|            err->details = NULL;
   40|      3|    }
   41|      3|}

dup_string:
   42|      5|struct string *dup_string(const char *str) {
   43|      5|    struct string *string;
   44|      5|    make_ref(string);
  ------------------
  |  |   48|      5|    ref_make_ref(&(var), sizeof(*(var)), offsetof(typeof(*(var)), ref))
  ------------------
   45|      5|    if (str == NULL)
  ------------------
  |  Branch (45:9): [True: 0, False: 5]
  ------------------
   46|      0|        string->str = strdup("");
   47|      5|    else
   48|      5|        string->str = strdup(str);
   49|      5|    if (string->str == NULL)
  ------------------
  |  Branch (49:9): [True: 0, False: 5]
  ------------------
   50|      0|        unref(string, string);
  ------------------
  |  |   55|      0|    do {                                                                \
  |  |   56|      0|        if ((s) != NULL && (s)->ref != REF_MAX) {                       \
  |  |  ------------------
  |  |  |  |   41|      0|#define REF_MAX UINT_MAX
  |  |  ------------------
  |  |  |  Branch (56:13): [True: 0, False: 0]
  |  |  |  Branch (56:28): [True: 0, False: 0]
  |  |  ------------------
  |  |   57|      0|            assert((s)->ref > 0);                                       \
  |  |   58|      0|            if (--(s)->ref == 0) {                                      \
  |  |  ------------------
  |  |  |  Branch (58:17): [True: 0, False: 0]
  |  |  ------------------
  |  |   59|      0|                /*memset(s, 255, sizeof(*s));*/                         \
  |  |   60|      0|                free_##t(s);                                            \
  |  |   61|      0|            }                                                           \
  |  |   62|      0|        }                                                               \
  |  |   63|      0|        (s) = NULL;                                                     \
  |  |   64|      0|    } while(0)
  |  |  ------------------
  |  |  |  Branch (64:13): [Folded, False: 0]
  |  |  ------------------
  ------------------
  |  Branch (50:9): [True: 0, False: 0]
  |  Branch (50:9): [True: 0, False: 0]
  ------------------
   51|      5|    return string;
   52|      5|}
free_string:
   54|    701|void free_string(struct string *string) {
   55|    701|    if (string == NULL)
  ------------------
  |  Branch (55:9): [True: 0, False: 701]
  ------------------
   56|      0|        return;
   57|    701|    assert(string->ref == 0);
  ------------------
  |  Branch (57:5): [True: 0, False: 701]
  |  Branch (57:5): [True: 701, False: 0]
  ------------------
   58|    701|    free(string->str);
   59|    701|    free(string);
   60|    701|}
free_info:
  121|    165|void free_info(struct info *info) {
  122|    165|    if (info == NULL)
  ------------------
  |  Branch (122:9): [True: 0, False: 165]
  ------------------
  123|      0|        return;
  124|    165|    assert(info->ref == 0);
  ------------------
  |  Branch (124:5): [True: 0, False: 165]
  |  Branch (124:5): [True: 165, False: 0]
  ------------------
  125|    165|    unref(info->filename, string);
  ------------------
  |  |   55|    165|    do {                                                                \
  |  |   56|    165|        if ((s) != NULL && (s)->ref != REF_MAX) {                       \
  |  |  ------------------
  |  |  |  |   41|    165|#define REF_MAX UINT_MAX
  |  |  ------------------
  |  |  |  Branch (56:13): [True: 165, False: 0]
  |  |  |  Branch (56:28): [True: 165, False: 0]
  |  |  ------------------
  |  |   57|    165|            assert((s)->ref > 0);                                       \
  |  |   58|    165|            if (--(s)->ref == 0) {                                      \
  |  |  ------------------
  |  |  |  Branch (58:17): [True: 165, False: 0]
  |  |  ------------------
  |  |   59|    165|                /*memset(s, 255, sizeof(*s));*/                         \
  |  |   60|    165|                free_##t(s);                                            \
  |  |   61|    165|            }                                                           \
  |  |   62|    165|        }                                                               \
  |  |   63|    165|        (s) = NULL;                                                     \
  |  |   64|    165|    } while(0)
  |  |  ------------------
  |  |  |  Branch (64:13): [Folded, False: 165]
  |  |  ------------------
  ------------------
  |  Branch (125:5): [True: 0, False: 165]
  |  Branch (125:5): [True: 165, False: 0]
  ------------------
  126|    165|    free(info);
  127|    165|}

unescape:
  169|    118|char *unescape(const char *s, int len, const char *extra) {
  170|    118|    size_t size;
  171|    118|    const char *n;
  172|    118|    char *result, *t;
  173|    118|    int i;
  174|       |
  175|    118|    if (len < 0 || len > strlen(s))
  ------------------
  |  Branch (175:9): [True: 0, False: 118]
  |  Branch (175:20): [True: 0, False: 118]
  ------------------
  176|      0|        len = strlen(s);
  177|       |
  178|    118|    size = 0;
  179|   734k|    for (i=0; i < len; i++, size++) {
  ------------------
  |  Branch (179:15): [True: 734k, False: 118]
  ------------------
  180|   734k|        if (s[i] == '\\' && strchr(escape_names, s[i+1])) {
  ------------------
  |  Branch (180:13): [True: 106, False: 734k]
  |  Branch (180:29): [True: 3, False: 103]
  ------------------
  181|      3|            i += 1;
  182|   734k|        } else if (s[i] == '\\' && extra && strchr(extra, s[i+1])) {
  ------------------
  |  Branch (182:20): [True: 103, False: 734k]
  |  Branch (182:36): [True: 0, False: 103]
  |  Branch (182:45): [True: 0, False: 0]
  ------------------
  183|      0|            i += 1;
  184|      0|        }
  185|   734k|    }
  186|       |
  187|    118|    if (ALLOC_N(result, size + 1) < 0)
  ------------------
  |  |   56|    118|#define ALLOC_N(ptr, count) mem_alloc_n(&(ptr), sizeof(*(ptr)), (count))
  ------------------
  |  Branch (187:9): [True: 0, False: 118]
  ------------------
  188|      0|        return NULL;
  189|       |
  190|   734k|    for (i = 0, t = result; i < len; i++, size++) {
  ------------------
  |  Branch (190:29): [True: 734k, False: 118]
  ------------------
  191|   734k|        if (s[i] == '\\' && (n = strchr(escape_names, s[i+1])) != NULL) {
  ------------------
  |  Branch (191:13): [True: 106, False: 734k]
  |  Branch (191:29): [True: 3, False: 103]
  ------------------
  192|      3|            *t++ = escape_chars[n - escape_names];
  193|      3|            i += 1;
  194|   734k|        } else if (s[i] == '\\' && extra && strchr(extra, s[i+1]) != NULL) {
  ------------------
  |  Branch (194:20): [True: 103, False: 734k]
  |  Branch (194:36): [True: 0, False: 103]
  |  Branch (194:45): [True: 0, False: 0]
  ------------------
  195|      0|            *t++ = s[i+1];
  196|      0|            i += 1;
  197|   734k|        } else {
  198|   734k|            *t++ = s[i];
  199|   734k|        }
  200|   734k|    }
  201|    118|    return result;
  202|    118|}
cleanpath:
  424|    117|char *cleanpath(char *path) {
  425|    117|    if (path == NULL || strlen(path) == 0)
  ------------------
  |  Branch (425:9): [True: 0, False: 117]
  |  Branch (425:25): [True: 0, False: 117]
  ------------------
  426|      0|        return path;
  427|    117|    if (STREQ(path, "/"))
  ------------------
  |  |  224|    117|#define STREQ(a,b) (strcmp((a),(b)) == 0)
  |  |  ------------------
  |  |  |  Branch (224:20): [True: 0, False: 117]
  |  |  ------------------
  ------------------
  428|      0|        return path;
  429|    117|    return cleanstr(path, SEP);
  ------------------
  |  |  241|    117|#define SEP '/'
  ------------------
  430|    117|}
internal.c:cleanstr:
  415|    117|static char *cleanstr(char *path, const char sep) {
  416|    117|    if (path == NULL || strlen(path) == 0)
  ------------------
  |  Branch (416:9): [True: 0, False: 117]
  |  Branch (416:25): [True: 0, False: 117]
  ------------------
  417|      0|        return path;
  418|    117|    char *e = path + strlen(path) - 1;
  419|    117|    while (e >= path && (*e == sep || isspace((unsigned char) *e)))
  ------------------
  |  Branch (419:12): [True: 117, False: 0]
  |  Branch (419:26): [True: 0, False: 117]
  |  Branch (419:39): [True: 0, False: 117]
  ------------------
  420|      0|        *e-- = '\0';
  421|    117|    return path;
  422|    117|}

augeas.c:streqv:
  233|    546|static inline int streqv(const char *a, const char *b) {
  234|    546|    if (a == NULL || b == NULL)
  ------------------
  |  Branch (234:9): [True: 165, False: 381]
  |  Branch (234:22): [True: 0, False: 381]
  ------------------
  235|    165|        return a == b;
  236|    381|    return STREQ(a,b);
  ------------------
  |  |  224|    381|#define STREQ(a,b) (strcmp((a),(b)) == 0)
  ------------------
  237|    546|}
augeas.c:err_of_aug:
  390|    366|static inline struct error *err_of_aug(const struct augeas *aug) {
  391|    366|    return ((struct augeas *) aug)->error;
  392|    366|}

mem_alloc_n:
   60|  25.9k|{
   61|  25.9k|    if (AUGEAS_UNLIKELY(size == 0 || count == 0)) {
  ------------------
  |  |  154|  51.9k|#   define AUGEAS_UNLIKELY(x)      (__builtin_expect(!!(x), 0))
  |  |  ------------------
  |  |  |  Branch (154:36): [True: 316, False: 25.6k]
  |  |  |  Branch (154:57): [True: 0, False: 25.9k]
  |  |  |  Branch (154:57): [True: 316, False: 25.6k]
  |  |  ------------------
  ------------------
   62|    316|        *(void **)ptrptr = NULL;
   63|    316|        return 0;
   64|    316|    }
   65|       |
   66|  25.6k|    *(void**)ptrptr = calloc(count, size);
   67|  25.6k|    if (AUGEAS_UNLIKELY(*(void**)ptrptr == NULL))
  ------------------
  |  |  154|  25.6k|#   define AUGEAS_UNLIKELY(x)      (__builtin_expect(!!(x), 0))
  |  |  ------------------
  |  |  |  Branch (154:36): [True: 0, False: 25.6k]
  |  |  ------------------
  ------------------
   68|      0|        return -1;
   69|  25.6k|    return 0;
   70|  25.6k|}
mem_realloc_n:
   87|  3.00k|{
   88|  3.00k|    void *tmp;
   89|  3.00k|    if (AUGEAS_UNLIKELY(size == 0 || count == 0)) {
  ------------------
  |  |  154|  6.00k|#   define AUGEAS_UNLIKELY(x)      (__builtin_expect(!!(x), 0))
  |  |  ------------------
  |  |  |  Branch (154:36): [True: 0, False: 3.00k]
  |  |  |  Branch (154:57): [True: 0, False: 3.00k]
  |  |  |  Branch (154:57): [True: 0, False: 3.00k]
  |  |  ------------------
  ------------------
   90|      0|        free(*(void **)ptrptr);
   91|      0|        *(void **)ptrptr = NULL;
   92|      0|        return 0;
   93|      0|    }
   94|  3.00k|    if (AUGEAS_UNLIKELY(xalloc_oversized(count, size))) {
  ------------------
  |  |  154|  6.00k|#   define AUGEAS_UNLIKELY(x)      (__builtin_expect(!!(x), 0))
  |  |  ------------------
  |  |  |  Branch (154:36): [True: 0, False: 3.00k]
  |  |  |  Branch (154:57): [True: 3.00k, Folded]
  |  |  ------------------
  ------------------
   95|      0|        errno = ENOMEM;
   96|      0|        return -1;
   97|      0|    }
   98|  3.00k|    tmp = realloc(*(void**)ptrptr, size * count);
   99|  3.00k|    if (AUGEAS_UNLIKELY(!tmp))
  ------------------
  |  |  154|  3.00k|#   define AUGEAS_UNLIKELY(x)      (__builtin_expect(!!(x), 0))
  |  |  ------------------
  |  |  |  Branch (154:36): [True: 0, False: 3.00k]
  |  |  ------------------
  ------------------
  100|      0|        return -1;
  101|  3.00k|    *(void**)ptrptr = tmp;
  102|  3.00k|    return 0;
  103|  3.00k|}

free_pathx:
  512|    374|void free_pathx(struct pathx *pathx) {
  513|    374|    if (pathx == NULL)
  ------------------
  |  Branch (513:9): [True: 8, False: 366]
  ------------------
  514|      8|        return;
  515|    366|    free_state(pathx->state);
  516|    366|    free(pathx);
  517|    366|}
pathx_parse:
 2760|    366|                struct pathx **pathx) {
 2761|    366|    struct state *state = NULL;
 2762|       |
 2763|    366|    *pathx = NULL;
 2764|       |
 2765|    366|    if (ALLOC(*pathx) < 0)
  ------------------
  |  |   43|    366|#define ALLOC(ptr) mem_alloc_n(&(ptr), sizeof(*(ptr)), 1)
  ------------------
  |  Branch (2765:9): [True: 0, False: 366]
  ------------------
 2766|      0|        goto oom;
 2767|       |
 2768|    366|    (*pathx)->origin = (struct tree *) tree;
 2769|       |
 2770|       |    /* Set up state */
 2771|    366|    if (ALLOC((*pathx)->state) < 0)
  ------------------
  |  |   43|    366|#define ALLOC(ptr) mem_alloc_n(&(ptr), sizeof(*(ptr)), 1)
  ------------------
  |  Branch (2771:9): [True: 0, False: 366]
  ------------------
 2772|      0|        goto oom;
 2773|    366|    state = (*pathx)->state;
 2774|       |
 2775|    366|    state->errcode = PATHX_NOERROR;
 2776|    366|    state->errmsg = NULL;
 2777|    366|    state->txt = txt;
 2778|    366|    state->pos = txt;
 2779|    366|    state->symtab = symtab;
 2780|    366|    state->root_ctx = root_ctx;
 2781|    366|    state->error = err;
 2782|    366|    state->expr_depth = 0;
 2783|       |
 2784|    366|    if (ALLOC_N(state->value_pool, 8) < 0) {
  ------------------
  |  |   56|    366|#define ALLOC_N(ptr, count) mem_alloc_n(&(ptr), sizeof(*(ptr)), (count))
  ------------------
  |  Branch (2784:9): [True: 0, False: 366]
  ------------------
 2785|      0|        STATE_ENOMEM;
  ------------------
  |  |  396|      0|#define STATE_ENOMEM STATE_ERROR(state, PATHX_ENOMEM)
  |  |  ------------------
  |  |  |  |  388|      0|    do {                                                                \
  |  |  |  |  389|      0|        state->errcode = err;                                           \
  |  |  |  |  390|      0|        state->file = __FILE__;                                         \
  |  |  |  |  391|      0|        state->line = __LINE__;                                         \
  |  |  |  |  392|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (392:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2786|      0|        goto done;
 2787|      0|    }
 2788|    366|    state->value_pool_size = 8;
 2789|    366|    state->value_pool[0].tag = T_BOOLEAN;
 2790|    366|    state->value_pool[0].boolval = 0;
 2791|    366|    state->value_pool[1].tag = T_BOOLEAN;
 2792|    366|    state->value_pool[1].boolval = 1;
 2793|    366|    state->value_pool_used = 2;
 2794|       |
 2795|       |    /* Parse */
 2796|    366|    parse_expr(state);
 2797|    366|    if (HAS_ERROR(state))
  ------------------
  |  |  394|    366|#define HAS_ERROR(state) (state->errcode != PATHX_NOERROR)
  |  |  ------------------
  |  |  |  Branch (394:26): [True: 23, False: 343]
  |  |  ------------------
  ------------------
 2798|     23|        goto done;
 2799|    343|    if (state->pos != state->txt + strlen(state->txt)) {
  ------------------
  |  Branch (2799:9): [True: 4, False: 339]
  ------------------
 2800|      4|        STATE_ERROR(state, PATHX_EEND);
  ------------------
  |  |  388|      4|    do {                                                                \
  |  |  389|      4|        state->errcode = err;                                           \
  |  |  390|      4|        state->file = __FILE__;                                         \
  |  |  391|      4|        state->line = __LINE__;                                         \
  |  |  392|      4|    } while (0)
  |  |  ------------------
  |  |  |  Branch (392:14): [Folded, False: 4]
  |  |  ------------------
  ------------------
 2801|      4|        goto done;
 2802|      4|    }
 2803|       |
 2804|    339|    if (state->exprs_used != 1) {
  ------------------
  |  Branch (2804:9): [True: 0, False: 339]
  ------------------
 2805|      0|        STATE_ERROR(state, PATHX_EINTERNAL);
  ------------------
  |  |  388|      0|    do {                                                                \
  |  |  389|      0|        state->errcode = err;                                           \
  |  |  390|      0|        state->file = __FILE__;                                         \
  |  |  391|      0|        state->line = __LINE__;                                         \
  |  |  392|      0|    } while (0)
  |  |  ------------------
  |  |  |  Branch (392:14): [Folded, False: 0]
  |  |  ------------------
  ------------------
 2806|      0|        goto done;
 2807|      0|    }
 2808|       |
 2809|       |    /* Typecheck */
 2810|    339|    check_expr(state->exprs[0], state);
 2811|    339|    if (HAS_ERROR(state))
  ------------------
  |  |  394|    339|#define HAS_ERROR(state) (state->errcode != PATHX_NOERROR)
  |  |  ------------------
  |  |  |  Branch (394:26): [True: 0, False: 339]
  |  |  ------------------
  ------------------
 2812|      0|        goto done;
 2813|       |
 2814|    339|    if (need_nodeset && state->exprs[0]->type != T_NODESET) {
  ------------------
  |  Branch (2814:9): [True: 338, False: 1]
  |  Branch (2814:25): [True: 0, False: 338]
  ------------------
 2815|      0|        STATE_ERROR(state, PATHX_ETYPE);
  ------------------
  |  |  388|      0|    do {                                                                \
  |  |  389|      0|        state->errcode = err;                                           \
  |  |  390|      0|        state->file = __FILE__;                                         \
  |  |  391|      0|        state->line = __LINE__;                                         \
  |  |  392|      0|    } while (0)
  |  |  ------------------
  |  |  |  Branch (392:14): [Folded, False: 0]
  |  |  ------------------
  ------------------
 2816|      0|        goto done;
 2817|      0|    }
 2818|       |
 2819|    366| done:
 2820|    366|    store_error(*pathx);
 2821|    366|    return state->errcode;
 2822|      0| oom:
 2823|      0|    free_pathx(*pathx);
 2824|      0|    *pathx = NULL;
 2825|      0|    if (err != NULL)
  ------------------
  |  Branch (2825:9): [True: 0, False: 0]
  ------------------
 2826|      0|        err->code = AUG_ENOMEM;
 2827|      0|    return PATHX_ENOMEM;
 2828|    339|}
pathx_first:
 3006|    355|struct tree *pathx_first(struct pathx *pathx) {
 3007|    355|    if (pathx->nodeset == NULL) {
  ------------------
  |  Branch (3007:9): [True: 243, False: 112]
  ------------------
 3008|    243|        struct value *v = pathx_eval(pathx);
 3009|       |
 3010|    243|        if (HAS_ERROR(pathx->state))
  ------------------
  |  |  394|    243|#define HAS_ERROR(state) (state->errcode != PATHX_NOERROR)
  |  |  ------------------
  |  |  |  Branch (394:26): [True: 4, False: 239]
  |  |  ------------------
  ------------------
 3011|      4|            goto error;
 3012|    243|        assert(v->tag == T_NODESET);
  ------------------
  |  Branch (3012:9): [True: 0, False: 239]
  |  Branch (3012:9): [True: 239, False: 0]
  ------------------
 3013|    239|        pathx->nodeset = v->nodeset;
 3014|    239|    }
 3015|    351|    pathx->node = 0;
 3016|    351|    if (pathx->nodeset->used == 0)
  ------------------
  |  Branch (3016:9): [True: 10, False: 341]
  ------------------
 3017|     10|        return NULL;
 3018|    341|    else
 3019|    341|        return pathx->nodeset->nodes[0];
 3020|      4| error:
 3021|      4|    store_error(pathx);
 3022|       |    return NULL;
 3023|    351|}
pathx_expand_tree:
 3070|    100|int pathx_expand_tree(struct pathx *path, struct tree **tree) {
 3071|    100|    int r;
 3072|    100|    struct step *step = NULL;
 3073|    100|    struct locpath_trace lpt;
 3074|    100|    struct tree *first_child = NULL;
 3075|    100|    struct value *v = NULL;
 3076|       |
 3077|    100|    MEMZERO(&lpt, 1);
  ------------------
  |  |  275|    100|#define MEMZERO(ptr, n) memset((ptr), 0, (n) * sizeof(*(ptr)));
  ------------------
 3078|    100|    path->state->locpath_trace = &lpt;
 3079|    100|    v = pathx_eval(path);
 3080|    100|    path->state->locpath_trace = NULL;
 3081|    100|    if (HAS_ERROR(path->state))
  ------------------
  |  |  394|    100|#define HAS_ERROR(state) (state->errcode != PATHX_NOERROR)
  |  |  ------------------
  |  |  |  Branch (394:26): [True: 0, False: 100]
  |  |  ------------------
  ------------------
 3082|      0|        goto error;
 3083|       |
 3084|    100|    if (lpt.maxns == 0) {
  ------------------
  |  Branch (3084:9): [True: 0, False: 100]
  ------------------
 3085|      0|        if (v->tag != T_NODESET || v->nodeset->used == 0) {
  ------------------
  |  Branch (3085:13): [True: 0, False: 0]
  |  Branch (3085:36): [True: 0, False: 0]
  ------------------
 3086|      0|            STATE_ERROR(path->state, PATHX_ENOMATCH);
  ------------------
  |  |  388|      0|    do {                                                                \
  |  |  389|      0|        state->errcode = err;                                           \
  |  |  390|      0|        state->file = __FILE__;                                         \
  |  |  391|      0|        state->line = __LINE__;                                         \
  |  |  392|      0|    } while (0)
  |  |  ------------------
  |  |  |  Branch (392:14): [Folded, False: 0]
  |  |  ------------------
  ------------------
 3087|      0|            goto error;
 3088|      0|        }
 3089|      0|        if (v->nodeset->used > 1)
  ------------------
  |  Branch (3089:13): [True: 0, False: 0]
  ------------------
 3090|      0|            goto error;
 3091|      0|        *tree = v->nodeset->nodes[0];
 3092|      0|        return 0;
 3093|      0|    }
 3094|       |
 3095|    100|    *tree = path->origin;
 3096|    100|    r = locpath_search(&lpt, tree, &step);
 3097|    100|    if (r == -1) {
  ------------------
  |  Branch (3097:9): [True: 0, False: 100]
  ------------------
 3098|      0|        STATE_ERROR(path->state, PATHX_EMMATCH);
  ------------------
  |  |  388|      0|    do {                                                                \
  |  |  389|      0|        state->errcode = err;                                           \
  |  |  390|      0|        state->file = __FILE__;                                         \
  |  |  391|      0|        state->line = __LINE__;                                         \
  |  |  392|      0|    } while (0)
  |  |  ------------------
  |  |  |  Branch (392:14): [Folded, False: 0]
  |  |  ------------------
  ------------------
 3099|      0|        goto error;
 3100|      0|    }
 3101|       |
 3102|    100|    if (step == NULL)
  ------------------
  |  Branch (3102:9): [True: 5, False: 95]
  ------------------
 3103|      5|        return 0;
 3104|       |
 3105|     95|    struct tree *parent = *tree;
 3106|     95|    if (parent == NULL)
  ------------------
  |  Branch (3106:9): [True: 0, False: 95]
  ------------------
 3107|      0|        parent = path->origin;
 3108|       |
 3109|    115|    list_for_each(s, step) {
  ------------------
  |  |   38|    210|    for (typeof(list) (iter) = list; (iter) != NULL; (iter) = (iter)->next)
  |  |  ------------------
  |  |  |  Branch (38:38): [True: 115, False: 95]
  |  |  ------------------
  ------------------
 3110|    115|        if (s->axis != CHILD && s->axis != SEQ)
  ------------------
  |  Branch (3110:13): [True: 0, False: 115]
  |  Branch (3110:33): [True: 0, False: 0]
  ------------------
 3111|      0|            goto error;
 3112|    115|        if (s->axis==SEQ && s->name == NULL) {
  ------------------
  |  Branch (3112:13): [True: 0, False: 115]
  |  Branch (3112:29): [True: 0, False: 0]
  ------------------
 3113|      0|            s->name = step_seq_choose_name(path, parent);
 3114|      0|        }
 3115|    115|        if (s->name == NULL )
  ------------------
  |  Branch (3115:13): [True: 0, False: 115]
  ------------------
 3116|      0|            goto error;
 3117|    115|        struct tree *t = make_tree(strdup(s->name), NULL, parent, NULL);
 3118|    115|        if (first_child == NULL)
  ------------------
  |  Branch (3118:13): [True: 95, False: 20]
  ------------------
 3119|     95|            first_child = t;
 3120|    115|        if (t == NULL || t->label == NULL)
  ------------------
  |  Branch (3120:13): [True: 0, False: 115]
  |  Branch (3120:26): [True: 0, False: 115]
  ------------------
 3121|      0|            goto error;
 3122|    115|        list_append(parent->children, t);
  ------------------
  |  |   27|    115|    do {                                                                \
  |  |   28|    115|        if ((head) == NULL) {                                           \
  |  |  ------------------
  |  |  |  Branch (28:13): [True: 30, False: 85]
  |  |  ------------------
  |  |   29|     30|            head = tail;                                                \
  |  |   30|     30|            break;                                                      \
  |  |   31|     30|        }                                                               \
  |  |   32|    115|        typeof(head) _p;                                                \
  |  |   33|    230|        for (_p = (head); _p->next != NULL; _p = _p->next);             \
  |  |  ------------------
  |  |  |  Branch (33:27): [True: 145, False: 85]
  |  |  ------------------
  |  |   34|     85|        _p->next = (tail);                                              \
  |  |   35|     85|    } while (0)
  |  |  ------------------
  |  |  |  Branch (35:14): [Folded, False: 85]
  |  |  ------------------
  ------------------
 3123|    115|        parent = t;
 3124|    115|    }
 3125|       |
 3126|    115|    while (first_child->children != NULL)
  ------------------
  |  Branch (3126:12): [True: 20, False: 95]
  ------------------
 3127|     20|        first_child = first_child->children;
 3128|       |
 3129|     95|    *tree = first_child;
 3130|     95|    return 1;
 3131|       |
 3132|      0| error:
 3133|      0|    if (first_child != NULL) {
  ------------------
  |  Branch (3133:9): [True: 0, False: 0]
  ------------------
 3134|      0|        list_remove(first_child, first_child->parent->children);
  ------------------
  |  |   41|      0|    do {                                                                \
  |  |   42|      0|        typeof(elt) _e = (elt);                                         \
  |  |   43|      0|        if (_e == (list)) {                                             \
  |  |  ------------------
  |  |  |  Branch (43:13): [True: 0, False: 0]
  |  |  ------------------
  |  |   44|      0|            (list) = _e->next;                                          \
  |  |   45|      0|        } else {                                                        \
  |  |   46|      0|            typeof(_e) _p;                                              \
  |  |   47|      0|            for (_p = (list); _p != NULL && _p->next != _e; _p = _p->next); \
  |  |  ------------------
  |  |  |  Branch (47:31): [True: 0, False: 0]
  |  |  |  Branch (47:45): [True: 0, False: 0]
  |  |  ------------------
  |  |   48|      0|            if (_p != NULL)                                             \
  |  |  ------------------
  |  |  |  Branch (48:17): [True: 0, False: 0]
  |  |  ------------------
  |  |   49|      0|                _p->next = _e->next;                                    \
  |  |   50|      0|        }                                                               \
  |  |   51|      0|        _e->next = NULL;                                                \
  |  |   52|      0|    } while(0)
  |  |  ------------------
  |  |  |  Branch (52:13): [Folded, False: 0]
  |  |  ------------------
  ------------------
 3135|      0|        free_tree(first_child);
 3136|      0|    }
 3137|       |    *tree = NULL;
 3138|      0|    store_error(path);
 3139|      0|    return -1;
 3140|     95|}
pathx_find_one:
 3171|    236|int pathx_find_one(struct pathx *path, struct tree **tree) {
 3172|    236|    *tree = pathx_first(path);
 3173|    236|    if (HAS_ERROR(path->state))
  ------------------
  |  |  394|    236|#define HAS_ERROR(state) (state->errcode != PATHX_NOERROR)
  |  |  ------------------
  |  |  |  Branch (394:26): [True: 2, False: 234]
  |  |  ------------------
  ------------------
 3174|      2|        return -1;
 3175|    234|    return path->nodeset->used;
 3176|    236|}
pathx_error:
 3182|     32|const char *pathx_error(struct pathx *path, const char **txt, int *pos) {
 3183|     32|    int errcode = PATHX_ENOMEM;
 3184|       |
 3185|     32|    if (path != NULL) {
  ------------------
  |  Branch (3185:9): [True: 32, False: 0]
  ------------------
 3186|     32|        if (path->state->errcode < ARRAY_CARDINALITY(errcodes))
  ------------------
  |  |  221|     32|#define ARRAY_CARDINALITY(array) (sizeof (array) / sizeof *(array))
  ------------------
  |  Branch (3186:13): [True: 32, False: 0]
  ------------------
 3187|     32|            errcode = path->state->errcode;
 3188|      0|        else
 3189|      0|            errcode = PATHX_EINTERNAL;
 3190|       |
 3191|     32|        if (txt)
  ------------------
  |  Branch (3191:13): [True: 0, False: 32]
  ------------------
 3192|      0|            *txt = path->state->txt;
 3193|       |
 3194|     32|        if (pos)
  ------------------
  |  Branch (3194:13): [True: 32, False: 0]
  ------------------
 3195|     32|            *pos = path->state->pos - path->state->txt;
 3196|     32|    }
 3197|     32|    return errcodes[errcode];
 3198|     32|}
free_symtab:
 3229|      5|void free_symtab(struct pathx_symtab *symtab) {
 3230|       |
 3231|      5|    while (symtab != NULL) {
  ------------------
  |  Branch (3231:12): [True: 0, False: 5]
  ------------------
 3232|      0|        struct pathx_symtab *del = symtab;
 3233|      0|        symtab = del->next;
 3234|      0|        free(del->name);
 3235|      0|        release_value(del->value);
 3236|      0|        free(del->value);
 3237|      0|        free(del);
 3238|      0|    }
 3239|      5|}
pathx_symtab_define:
 3273|      1|                        const char *name, struct pathx *px) {
 3274|      1|    int r;
 3275|      1|    struct value *value = NULL, *v = NULL;
 3276|      1|    struct state *state = px->state;
 3277|       |
 3278|      1|    value = pathx_eval(px);
 3279|      1|    if (HAS_ERROR(px->state))
  ------------------
  |  |  394|      1|#define HAS_ERROR(state) (state->errcode != PATHX_NOERROR)
  |  |  ------------------
  |  |  |  Branch (394:26): [True: 1, False: 0]
  |  |  ------------------
  ------------------
 3280|      1|        goto error;
 3281|       |
 3282|      0|    if (ALLOC(v) < 0) {
  ------------------
  |  |   43|      0|#define ALLOC(ptr) mem_alloc_n(&(ptr), sizeof(*(ptr)), 1)
  ------------------
  |  Branch (3282:9): [True: 0, False: 0]
  ------------------
 3283|      0|        STATE_ENOMEM;
  ------------------
  |  |  396|      0|#define STATE_ENOMEM STATE_ERROR(state, PATHX_ENOMEM)
  |  |  ------------------
  |  |  |  |  388|      0|    do {                                                                \
  |  |  |  |  389|      0|        state->errcode = err;                                           \
  |  |  |  |  390|      0|        state->file = __FILE__;                                         \
  |  |  |  |  391|      0|        state->line = __LINE__;                                         \
  |  |  |  |  392|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (392:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 3284|      0|        goto error;
 3285|      0|    }
 3286|       |
 3287|      0|    *v = *value;
 3288|      0|    value->tag = T_BOOLEAN;
 3289|       |
 3290|      0|    r = pathx_symtab_set(symtab, name, v);
 3291|      0|    if (r < 0) {
  ------------------
  |  Branch (3291:9): [True: 0, False: 0]
  ------------------
 3292|      0|        STATE_ENOMEM;
  ------------------
  |  |  396|      0|#define STATE_ENOMEM STATE_ERROR(state, PATHX_ENOMEM)
  |  |  ------------------
  |  |  |  |  388|      0|    do {                                                                \
  |  |  |  |  389|      0|        state->errcode = err;                                           \
  |  |  |  |  390|      0|        state->file = __FILE__;                                         \
  |  |  |  |  391|      0|        state->line = __LINE__;                                         \
  |  |  |  |  392|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (392:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 3293|      0|        goto error;
 3294|      0|    }
 3295|       |
 3296|      0|    if (v->tag == T_NODESET)
  ------------------
  |  Branch (3296:9): [True: 0, False: 0]
  ------------------
 3297|      0|        return v->nodeset->used;
 3298|      0|    else
 3299|      0|        return 0;
 3300|      1| error:
 3301|      1|    release_value(value);
 3302|      1|    free(value);
 3303|      1|    release_value(v);
 3304|      1|    free(v);
 3305|      1|    store_error(px);
 3306|      1|    return -1;
 3307|      0|}
pathx.c:free_state:
  497|    366|static void free_state(struct state *state) {
  498|    366|    if (state == NULL)
  ------------------
  |  Branch (498:9): [True: 0, False: 366]
  ------------------
  499|      0|        return;
  500|       |
  501|  4.51k|    for(int i=0; i < state->exprs_used; i++)
  ------------------
  |  Branch (501:18): [True: 4.14k, False: 366]
  ------------------
  502|  4.14k|        free_expr(state->exprs[i]);
  503|    366|    free(state->exprs);
  504|       |
  505|  1.72k|    for(int i=0; i < state->value_pool_used; i++)
  ------------------
  |  Branch (505:18): [True: 1.35k, False: 366]
  ------------------
  506|  1.35k|        release_value(state->value_pool + i);
  507|    366|    free(state->value_pool);
  508|    366|    free(state->values);
  509|    366|    free(state);
  510|    366|}
pathx.c:free_expr:
  438|  11.6k|static void free_expr(struct expr *expr) {
  439|  11.6k|    if (expr == NULL)
  ------------------
  |  Branch (439:9): [True: 5.21k, False: 6.43k]
  ------------------
  440|  5.21k|        return;
  441|  6.43k|    switch (expr->tag) {
  442|  5.21k|    case E_FILTER:
  ------------------
  |  Branch (442:5): [True: 5.21k, False: 1.21k]
  ------------------
  443|  5.21k|        free_expr(expr->primary);
  444|  5.21k|        free_pred(expr->predicates);
  445|  5.21k|        free_locpath(expr->locpath);
  446|  5.21k|        break;
  447|  1.11k|    case E_BINARY:
  ------------------
  |  Branch (447:5): [True: 1.11k, False: 5.31k]
  ------------------
  448|  1.11k|        free_expr(expr->left);
  449|  1.11k|        free_expr(expr->right);
  450|  1.11k|        break;
  451|     91|    case E_VALUE:
  ------------------
  |  Branch (451:5): [True: 91, False: 6.34k]
  ------------------
  452|     91|        break;
  453|      0|    case E_VAR:
  ------------------
  |  Branch (453:5): [True: 0, False: 6.43k]
  ------------------
  454|      0|        free(expr->ident);
  455|      0|        break;
  456|     10|    case E_APP:
  ------------------
  |  Branch (456:5): [True: 10, False: 6.42k]
  ------------------
  457|     20|        for (int i=0; i < expr->func->arity; i++)
  ------------------
  |  Branch (457:23): [True: 10, False: 10]
  ------------------
  458|     10|            free_expr(expr->args[i]);
  459|     10|        free(expr->args);
  460|     10|        break;
  461|      0|    default:
  ------------------
  |  Branch (461:5): [True: 0, False: 6.43k]
  ------------------
  462|      0|        assert(0);
  ------------------
  |  Branch (462:9): [Folded, False: 0]
  |  Branch (462:9): [Folded, False: 0]
  ------------------
  463|  6.43k|    }
  464|  6.43k|    free(expr);
  465|  6.43k|}
pathx.c:free_pred:
  404|  13.8k|static void free_pred(struct pred *pred) {
  405|  13.8k|    if (pred == NULL)
  ------------------
  |  Branch (405:9): [True: 13.8k, False: 40]
  ------------------
  406|  13.8k|        return;
  407|       |
  408|     80|    for (int i=0; i < pred->nexpr; i++) {
  ------------------
  |  Branch (408:19): [True: 40, False: 40]
  ------------------
  409|     40|        free_expr(pred->exprs[i]);
  410|     40|    }
  411|     40|    free(pred->exprs);
  412|     40|    free(pred);
  413|     40|}
pathx.c:free_locpath:
  425|  6.62k|static void free_locpath(struct locpath *locpath) {
  426|  6.62k|    if (locpath == NULL)
  ------------------
  |  Branch (426:9): [True: 2.80k, False: 3.81k]
  ------------------
  427|  2.80k|        return;
  428|  11.0k|    while (locpath->steps != NULL) {
  ------------------
  |  Branch (428:12): [True: 7.27k, False: 3.81k]
  ------------------
  429|  7.27k|        struct step *step = locpath->steps;
  430|  7.27k|        locpath->steps = step->next;
  431|  7.27k|        free(step->name);
  432|  7.27k|        free_pred(step->predicates);
  433|  7.27k|        free(step);
  434|  7.27k|    }
  435|  3.81k|    free(locpath);
  436|  3.81k|}
pathx.c:parse_expr:
 2688|  1.91k|static void parse_expr(struct state *state) {
 2689|  1.91k|    skipws(state);
 2690|  1.91k|    if (state->expr_depth >= MAX_EXPR_DEPTH) {
  ------------------
  |  |   68|  1.91k|#define MAX_EXPR_DEPTH 100
  ------------------
  |  Branch (2690:9): [True: 15, False: 1.90k]
  ------------------
 2691|     15|        STATE_ERROR(state, PATHX_EDEPTH);
  ------------------
  |  |  388|     15|    do {                                                                \
  |  |  389|     15|        state->errcode = err;                                           \
  |  |  390|     15|        state->file = __FILE__;                                         \
  |  |  391|     15|        state->line = __LINE__;                                         \
  |  |  392|     15|    } while (0)
  |  |  ------------------
  |  |  |  Branch (392:14): [Folded, False: 15]
  |  |  ------------------
  ------------------
 2692|     15|        return;
 2693|     15|    }
 2694|  1.90k|    state->expr_depth += 1;
 2695|  1.90k|    parse_else_expr(state);
 2696|  1.90k|    state->expr_depth -= 1;
 2697|  1.90k|}
pathx.c:skipws:
 1808|  35.1k|static void skipws(struct state *state) {
 1809|  35.1k|    while (isspace((unsigned char) *state->pos)) state->pos += 1;
  ------------------
  |  Branch (1809:12): [True: 302, False: 35.1k]
  ------------------
 1810|  35.1k|}
pathx.c:parse_else_expr:
 2671|  1.90k|static void parse_else_expr(struct state *state) {
 2672|  1.90k|    parse_or_expr(state);
 2673|  1.90k|    RET_ON_ERROR;
  ------------------
  |  |  382|  1.90k|    if (state->errcode != PATHX_NOERROR) return
  |  |  ------------------
  |  |  |  Branch (382:9): [True: 1.50k, False: 393]
  |  |  ------------------
  ------------------
 2674|    393|    while (*state->pos == 'e' && state->pos[1] == 'l'
  ------------------
  |  Branch (2674:12): [True: 0, False: 393]
  |  Branch (2674:34): [True: 0, False: 0]
  ------------------
 2675|      0|        && state->pos[2] == 's' && state->pos[3] == 'e' ) {
  ------------------
  |  Branch (2675:12): [True: 0, False: 0]
  |  Branch (2675:36): [True: 0, False: 0]
  ------------------
 2676|      0|        state->pos += 4;
 2677|      0|        skipws(state);
 2678|      0|        parse_or_expr(state);
 2679|      0|        RET_ON_ERROR;
  ------------------
  |  |  382|      0|    if (state->errcode != PATHX_NOERROR) return
  |  |  ------------------
  |  |  |  Branch (382:9): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 2680|      0|        push_new_binary_op(OP_ELSE, state);
 2681|      0|        state->has_else = 1;
 2682|      0|    }
 2683|    393|}
pathx.c:parse_or_expr:
 2656|  1.90k|static void parse_or_expr(struct state *state) {
 2657|  1.90k|    parse_and_expr(state);
 2658|  1.90k|    RET_ON_ERROR;
  ------------------
  |  |  382|  1.90k|    if (state->errcode != PATHX_NOERROR) return
  |  |  ------------------
  |  |  |  Branch (382:9): [True: 1.50k, False: 393]
  |  |  ------------------
  ------------------
 2659|    393|    while (*state->pos == 'o' && state->pos[1] == 'r') {
  ------------------
  |  Branch (2659:12): [True: 0, False: 393]
  |  Branch (2659:34): [True: 0, False: 0]
  ------------------
 2660|      0|        state->pos += 2;
 2661|      0|        skipws(state);
 2662|      0|        parse_and_expr(state);
 2663|      0|        RET_ON_ERROR;
  ------------------
  |  |  382|      0|    if (state->errcode != PATHX_NOERROR) return
  |  |  ------------------
  |  |  |  Branch (382:9): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 2664|      0|        push_new_binary_op(OP_OR, state);
 2665|      0|    }
 2666|    393|}
pathx.c:parse_and_expr:
 2640|  1.90k|static void parse_and_expr(struct state *state) {
 2641|  1.90k|    parse_equality_expr(state);
 2642|  1.90k|    RET_ON_ERROR;
  ------------------
  |  |  382|  1.90k|    if (state->errcode != PATHX_NOERROR) return
  |  |  ------------------
  |  |  |  Branch (382:9): [True: 1.50k, False: 400]
  |  |  ------------------
  ------------------
 2643|    402|    while (*state->pos == 'a' && state->pos[1] == 'n'
  ------------------
  |  Branch (2643:12): [True: 9, False: 393]
  |  Branch (2643:34): [True: 9, False: 0]
  ------------------
 2644|      9|        && state->pos[2] == 'd') {
  ------------------
  |  Branch (2644:12): [True: 9, False: 0]
  ------------------
 2645|      9|        state->pos += 3;
 2646|      9|        skipws(state);
 2647|      9|        parse_equality_expr(state);
 2648|      9|        RET_ON_ERROR;
  ------------------
  |  |  382|      9|    if (state->errcode != PATHX_NOERROR) return
  |  |  ------------------
  |  |  |  Branch (382:9): [True: 7, False: 2]
  |  |  ------------------
  ------------------
 2649|      2|        push_new_binary_op(OP_AND, state);
 2650|      2|    }
 2651|    400|}
pathx.c:parse_equality_expr:
 2616|  1.91k|static void parse_equality_expr(struct state *state) {
 2617|  1.91k|    parse_relational_expr(state);
 2618|  1.91k|    RET_ON_ERROR;
  ------------------
  |  |  382|  1.91k|    if (state->errcode != PATHX_NOERROR) return
  |  |  ------------------
  |  |  |  Branch (382:9): [True: 885, False: 1.02k]
  |  |  ------------------
  ------------------
 2619|  1.02k|    if ((*state->pos == '=' || *state->pos == '!') && state->pos[1] == '~') {
  ------------------
  |  Branch (2619:10): [True: 1, False: 1.02k]
  |  Branch (2619:32): [True: 633, False: 391]
  |  Branch (2619:55): [True: 633, False: 1]
  ------------------
 2620|    633|        enum binary_op op = (*state->pos == '=') ? OP_RE_MATCH : OP_RE_NOMATCH;
  ------------------
  |  Branch (2620:29): [True: 0, False: 633]
  ------------------
 2621|    633|        state->pos += 2;
 2622|    633|        skipws(state);
 2623|    633|        parse_relational_expr(state);
 2624|    633|        RET_ON_ERROR;
  ------------------
  |  |  382|    633|    if (state->errcode != PATHX_NOERROR) return
  |  |  ------------------
  |  |  |  Branch (382:9): [True: 623, False: 10]
  |  |  ------------------
  ------------------
 2625|     10|        push_new_binary_op(op, state);
 2626|    392|    } else if (*state->pos == '=' ||
  ------------------
  |  Branch (2626:16): [True: 1, False: 391]
  ------------------
 2627|    391|        (*state->pos == '!' && state->pos[1] == '=')) {
  ------------------
  |  Branch (2627:10): [True: 0, False: 391]
  |  Branch (2627:32): [True: 0, False: 0]
  ------------------
 2628|      1|        enum binary_op op = (*state->pos == '=') ? OP_EQ : OP_NEQ;
  ------------------
  |  Branch (2628:29): [True: 1, False: 0]
  ------------------
 2629|      1|        state->pos += (op == OP_EQ) ? 1 : 2;
  ------------------
  |  Branch (2629:23): [True: 1, False: 0]
  ------------------
 2630|      1|        skipws(state);
 2631|      1|        parse_relational_expr(state);
 2632|      1|        RET_ON_ERROR;
  ------------------
  |  |  382|      1|    if (state->errcode != PATHX_NOERROR) return
  |  |  ------------------
  |  |  |  Branch (382:9): [True: 0, False: 1]
  |  |  ------------------
  ------------------
 2633|      1|        push_new_binary_op(op, state);
 2634|      1|    }
 2635|  1.02k|}
pathx.c:parse_relational_expr:
 2593|  2.54k|static void parse_relational_expr(struct state *state) {
 2594|  2.54k|    parse_additive_expr(state);
 2595|  2.54k|    RET_ON_ERROR;
  ------------------
  |  |  382|  2.54k|    if (state->errcode != PATHX_NOERROR) return
  |  |  ------------------
  |  |  |  Branch (382:9): [True: 885, False: 1.65k]
  |  |  ------------------
  ------------------
 2596|  1.65k|    if (*state->pos == '<' || *state->pos == '>') {
  ------------------
  |  Branch (2596:9): [True: 623, False: 1.03k]
  |  Branch (2596:31): [True: 0, False: 1.03k]
  ------------------
 2597|    623|        enum binary_op op = (*state->pos == '<') ? OP_LT : OP_GT;
  ------------------
  |  Branch (2597:29): [True: 623, False: 0]
  ------------------
 2598|    623|        state->pos += 1;
 2599|    623|        if (*state->pos == '=') {
  ------------------
  |  Branch (2599:13): [True: 0, False: 623]
  ------------------
 2600|      0|            op = (op == OP_LT) ? OP_LE : OP_GE;
  ------------------
  |  Branch (2600:18): [True: 0, False: 0]
  ------------------
 2601|      0|            state->pos += 1;
 2602|      0|        }
 2603|    623|        skipws(state);
 2604|    623|        parse_additive_expr(state);
 2605|    623|        RET_ON_ERROR;
  ------------------
  |  |  382|    623|    if (state->errcode != PATHX_NOERROR) return
  |  |  ------------------
  |  |  |  Branch (382:9): [True: 623, False: 0]
  |  |  ------------------
  ------------------
 2606|      0|        push_new_binary_op(op, state);
 2607|      0|    }
 2608|  1.65k|}
pathx.c:parse_additive_expr:
 2576|  3.16k|static void parse_additive_expr(struct state *state) {
 2577|  3.16k|    parse_multiplicative_expr(state);
 2578|  3.16k|    RET_ON_ERROR;
  ------------------
  |  |  382|  3.16k|    if (state->errcode != PATHX_NOERROR) return
  |  |  ------------------
  |  |  |  Branch (382:9): [True: 1.01k, False: 2.14k]
  |  |  ------------------
  ------------------
 2579|  2.14k|    while (*state->pos == '+' || *state->pos == '-') {
  ------------------
  |  Branch (2579:12): [True: 0, False: 2.14k]
  |  Branch (2579:34): [True: 490, False: 1.65k]
  ------------------
 2580|    490|        enum binary_op op = (*state->pos == '+') ? OP_PLUS : OP_MINUS;
  ------------------
  |  Branch (2580:29): [True: 0, False: 490]
  ------------------
 2581|    490|        state->pos += 1;
 2582|    490|        skipws(state);
 2583|    490|        parse_multiplicative_expr(state);
 2584|    490|        RET_ON_ERROR;
  ------------------
  |  |  382|    490|    if (state->errcode != PATHX_NOERROR) return
  |  |  ------------------
  |  |  |  Branch (382:9): [True: 490, False: 0]
  |  |  ------------------
  ------------------
 2585|      0|        push_new_binary_op(op, state);
 2586|      0|    }
 2587|  2.14k|}
pathx.c:parse_multiplicative_expr:
 2562|  3.65k|static void parse_multiplicative_expr(struct state *state) {
 2563|  3.65k|    parse_union_expr(state);
 2564|  3.65k|    RET_ON_ERROR;
  ------------------
  |  |  382|  3.65k|    if (state->errcode != PATHX_NOERROR) return
  |  |  ------------------
  |  |  |  Branch (382:9): [True: 1.50k, False: 2.14k]
  |  |  ------------------
  ------------------
 2565|  2.14k|    while (match(state, '*')) {
  ------------------
  |  Branch (2565:12): [True: 0, False: 2.14k]
  ------------------
 2566|      0|        parse_union_expr(state);
 2567|      0|        RET_ON_ERROR;
  ------------------
  |  |  382|      0|    if (state->errcode != PATHX_NOERROR) return
  |  |  ------------------
  |  |  |  Branch (382:9): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 2568|      0|        push_new_binary_op(OP_STAR, state);
 2569|      0|    }
 2570|  2.14k|}
pathx.c:parse_union_expr:
 2549|  3.65k|static void parse_union_expr(struct state *state) {
 2550|  3.65k|    parse_path_expr(state);
 2551|  3.65k|    RET_ON_ERROR;
  ------------------
  |  |  382|  3.65k|    if (state->errcode != PATHX_NOERROR) return
  |  |  ------------------
  |  |  |  Branch (382:9): [True: 849, False: 2.80k]
  |  |  ------------------
  ------------------
 2552|  3.91k|    while (match(state, '|')) {
  ------------------
  |  Branch (2552:12): [True: 1.76k, False: 2.14k]
  ------------------
 2553|  1.76k|        parse_path_expr(state);
 2554|  1.76k|        RET_ON_ERROR;
  ------------------
  |  |  382|  1.76k|    if (state->errcode != PATHX_NOERROR) return
  |  |  ------------------
  |  |  |  Branch (382:9): [True: 659, False: 1.10k]
  |  |  ------------------
  ------------------
 2555|  1.10k|        push_new_binary_op(OP_UNION, state);
 2556|  1.10k|    }
 2557|  2.80k|}
pathx.c:parse_path_expr:
 2485|  5.42k|static void parse_path_expr(struct state *state) {
 2486|  5.42k|    struct expr *expr = NULL;
 2487|  5.42k|    struct pred *predicates = NULL;
 2488|  5.42k|    struct locpath *locpath = NULL;
 2489|       |
 2490|  5.42k|    if (looking_at_primary_expr(state)) {
  ------------------
  |  Branch (2490:9): [True: 205, False: 5.21k]
  ------------------
 2491|    205|        parse_primary_expr(state);
 2492|    205|        RET_ON_ERROR;
  ------------------
  |  |  382|    205|    if (state->errcode != PATHX_NOERROR) return
  |  |  ------------------
  |  |  |  Branch (382:9): [True: 104, False: 101]
  |  |  ------------------
  ------------------
 2493|    101|        predicates = parse_predicates(state);
 2494|    101|        RET_ON_ERROR;
  ------------------
  |  |  382|    101|    if (state->errcode != PATHX_NOERROR) return
  |  |  ------------------
  |  |  |  Branch (382:9): [True: 0, False: 101]
  |  |  ------------------
  ------------------
 2495|    101|        if (match(state, '/')) {
  ------------------
  |  Branch (2495:13): [True: 0, False: 101]
  ------------------
 2496|      0|            if (match(state, '/')) {
  ------------------
  |  Branch (2496:17): [True: 0, False: 0]
  ------------------
 2497|      0|                locpath = parse_relative_location_path(state);
 2498|      0|                if (HAS_ERROR(state))
  ------------------
  |  |  394|      0|#define HAS_ERROR(state) (state->errcode != PATHX_NOERROR)
  |  |  ------------------
  |  |  |  Branch (394:26): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 2499|      0|                    goto error;
 2500|       |
 2501|      0|                struct step *step = make_step(DESCENDANT_OR_SELF, state);
 2502|      0|                if (HAS_ERROR(state))
  ------------------
  |  |  394|      0|#define HAS_ERROR(state) (state->errcode != PATHX_NOERROR)
  |  |  ------------------
  |  |  |  Branch (394:26): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 2503|      0|                    return;
 2504|      0|                list_cons(locpath->steps, step);
  ------------------
  |  |   91|      0|    do {                                                                \
  |  |   92|      0|        typeof(elt) _e = (elt);                                         \
  |  |   93|      0|        _e->next = (list);                                              \
  |  |   94|      0|        (list) = _e;                                                    \
  |  |   95|      0|    } while(0)
  |  |  ------------------
  |  |  |  Branch (95:13): [Folded, False: 0]
  |  |  ------------------
  ------------------
 2505|      0|            } else {
 2506|      0|                if (*state->pos == '\0') {
  ------------------
  |  Branch (2506:21): [True: 0, False: 0]
  ------------------
 2507|      0|                    STATE_ERROR(state, PATHX_EEND);
  ------------------
  |  |  388|      0|    do {                                                                \
  |  |  389|      0|        state->errcode = err;                                           \
  |  |  390|      0|        state->file = __FILE__;                                         \
  |  |  391|      0|        state->line = __LINE__;                                         \
  |  |  392|      0|    } while (0)
  |  |  ------------------
  |  |  |  Branch (392:14): [Folded, False: 0]
  |  |  ------------------
  ------------------
 2508|      0|                    goto error;
 2509|      0|                }
 2510|      0|                locpath = parse_relative_location_path(state);
 2511|      0|            }
 2512|      0|        }
 2513|       |        /* A PathExpr without predicates and locpath is
 2514|       |         * just a PrimaryExpr
 2515|       |         */
 2516|    101|        if (predicates == NULL && locpath == NULL)
  ------------------
  |  Branch (2516:13): [True: 101, False: 0]
  |  Branch (2516:35): [True: 101, False: 0]
  ------------------
 2517|    101|            return;
 2518|       |        /* To make evaluation easier, we parse something like
 2519|       |         *   $var[pred] as $var[pred]/.
 2520|       |         */
 2521|      0|        if (locpath == NULL) {
  ------------------
  |  Branch (2521:13): [True: 0, False: 0]
  ------------------
 2522|      0|            if (ALLOC(locpath) < 0)
  ------------------
  |  |   43|      0|#define ALLOC(ptr) mem_alloc_n(&(ptr), sizeof(*(ptr)), 1)
  ------------------
  |  Branch (2522:17): [True: 0, False: 0]
  ------------------
 2523|      0|                goto error;
 2524|      0|            if (ALLOC(locpath->steps) < 0)
  ------------------
  |  |   43|      0|#define ALLOC(ptr) mem_alloc_n(&(ptr), sizeof(*(ptr)), 1)
  ------------------
  |  Branch (2524:17): [True: 0, False: 0]
  ------------------
 2525|      0|                goto error;
 2526|      0|            locpath->steps->axis = SELF;
 2527|      0|        }
 2528|      0|        if (ALLOC(expr) < 0)
  ------------------
  |  |   43|      0|#define ALLOC(ptr) mem_alloc_n(&(ptr), sizeof(*(ptr)), 1)
  ------------------
  |  Branch (2528:13): [True: 0, False: 0]
  ------------------
 2529|      0|            goto error;
 2530|      0|        expr->tag = E_FILTER;
 2531|      0|        expr->predicates = predicates;
 2532|      0|        expr->primary    = pop_expr(state);
 2533|      0|        expr->locpath    = locpath;
 2534|      0|        push_expr(expr, state);
 2535|  5.21k|    } else {
 2536|  5.21k|        parse_location_path(state);
 2537|  5.21k|    }
 2538|  5.21k|    return;
 2539|  5.21k| error:
 2540|      0|    free_expr(expr);
 2541|      0|    free_pred(predicates);
 2542|      0|    free_locpath(locpath);
 2543|      0|    return;
 2544|  5.42k|}
pathx.c:looking_at_primary_expr:
 2456|  5.42k|static int looking_at_primary_expr(struct state *state) {
 2457|  5.42k|    const char *s = state->pos;
 2458|       |    /* Is it a Number, Literal or VariableReference ? */
 2459|  5.42k|    if (peek(state, "$'\"0123456789"))
  ------------------
  |  Branch (2459:9): [True: 93, False: 5.32k]
  ------------------
 2460|     93|        return 1;
 2461|       |
 2462|       |    /* Or maybe a function call, i.e. a word followed by a '(' ?
 2463|       |     * Note that our function names are only [a-zA-Z]+
 2464|       |     */
 2465|  7.52k|    while (*s != '\0' && isalpha((unsigned char) *s)) s++;
  ------------------
  |  Branch (2465:12): [True: 7.52k, False: 0]
  |  Branch (2465:26): [True: 2.20k, False: 5.32k]
  ------------------
 2466|  5.47k|    while (*s != '\0' && isspace((unsigned char) *s)) s++;
  ------------------
  |  Branch (2466:12): [True: 5.47k, False: 0]
  |  Branch (2466:26): [True: 143, False: 5.32k]
  ------------------
 2467|  5.32k|    return *s == '(';
 2468|  5.42k|}
pathx.c:peek:
 1824|  5.83k|static int peek(struct state *state, const char *chars) {
 1825|       |    return strchr(chars, *state->pos) != NULL;
 1826|  5.83k|}
pathx.c:parse_primary_expr:
 2437|    205|static void parse_primary_expr(struct state *state) {
 2438|    205|    if (peek(state, "'\"")) {
  ------------------
  |  Branch (2438:9): [True: 1, False: 204]
  ------------------
 2439|      1|        parse_literal(state);
 2440|    204|    } else if (peek(state, "0123456789")) {
  ------------------
  |  Branch (2440:16): [True: 90, False: 114]
  ------------------
 2441|     90|        parse_number(state);
 2442|    114|    } else if (match(state, '(')) {
  ------------------
  |  Branch (2442:16): [True: 0, False: 114]
  ------------------
 2443|      0|        parse_expr(state);
 2444|      0|        RET_ON_ERROR;
  ------------------
  |  |  382|      0|    if (state->errcode != PATHX_NOERROR) return
  |  |  ------------------
  |  |  |  Branch (382:9): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 2445|      0|        if (! match(state, ')')) {
  ------------------
  |  Branch (2445:13): [True: 0, False: 0]
  ------------------
 2446|      0|            STATE_ERROR(state, PATHX_EPAREN);
  ------------------
  |  |  388|      0|    do {                                                                \
  |  |  389|      0|        state->errcode = err;                                           \
  |  |  390|      0|        state->file = __FILE__;                                         \
  |  |  391|      0|        state->line = __LINE__;                                         \
  |  |  392|      0|    } while (0)
  |  |  ------------------
  |  |  |  Branch (392:14): [Folded, False: 0]
  |  |  ------------------
  ------------------
 2447|      0|            return;
 2448|      0|        }
 2449|    114|    } else if (match(state, '$')) {
  ------------------
  |  Branch (2449:16): [True: 2, False: 112]
  ------------------
 2450|      2|        parse_var(state);
 2451|    112|    } else {
 2452|    112|        parse_function_call(state);
 2453|    112|    }
 2454|    205|}
pathx.c:parse_literal:
 2287|      1|static void parse_literal(struct state *state) {
 2288|      1|    char delim;
 2289|      1|    const char *s;
 2290|      1|    struct expr *expr = NULL;
 2291|       |
 2292|      1|    if (*state->pos == '"')
  ------------------
  |  Branch (2292:9): [True: 1, False: 0]
  ------------------
 2293|      1|        delim = '"';
 2294|      0|    else if (*state->pos == '\'')
  ------------------
  |  Branch (2294:14): [True: 0, False: 0]
  ------------------
 2295|      0|        delim = '\'';
 2296|      0|    else {
 2297|      0|        STATE_ERROR(state, PATHX_ESTRING);
  ------------------
  |  |  388|      0|    do {                                                                \
  |  |  389|      0|        state->errcode = err;                                           \
  |  |  390|      0|        state->file = __FILE__;                                         \
  |  |  391|      0|        state->line = __LINE__;                                         \
  |  |  392|      0|    } while (0)
  |  |  ------------------
  |  |  |  Branch (392:14): [Folded, False: 0]
  |  |  ------------------
  ------------------
 2298|      0|        return;
 2299|      0|    }
 2300|      1|    state->pos += 1;
 2301|       |
 2302|      1|    s = state->pos;
 2303|     65|    while (*state->pos != '\0' && *state->pos != delim) state->pos += 1;
  ------------------
  |  Branch (2303:12): [True: 65, False: 0]
  |  Branch (2303:35): [True: 64, False: 1]
  ------------------
 2304|       |
 2305|      1|    if (*state->pos != delim) {
  ------------------
  |  Branch (2305:9): [True: 0, False: 1]
  ------------------
 2306|      0|        STATE_ERROR(state, PATHX_EDELIM);
  ------------------
  |  |  388|      0|    do {                                                                \
  |  |  389|      0|        state->errcode = err;                                           \
  |  |  390|      0|        state->file = __FILE__;                                         \
  |  |  391|      0|        state->line = __LINE__;                                         \
  |  |  392|      0|    } while (0)
  |  |  ------------------
  |  |  |  Branch (392:14): [Folded, False: 0]
  |  |  ------------------
  ------------------
 2307|      0|        return;
 2308|      0|    }
 2309|      1|    state->pos += 1;
 2310|       |
 2311|      1|    if (ALLOC(expr) < 0)
  ------------------
  |  |   43|      1|#define ALLOC(ptr) mem_alloc_n(&(ptr), sizeof(*(ptr)), 1)
  ------------------
  |  Branch (2311:9): [True: 0, False: 1]
  ------------------
 2312|      0|        goto err_nomem;
 2313|      1|    expr->tag = E_VALUE;
 2314|      1|    expr->value_ind = make_value(T_STRING, state);
 2315|      1|    if (HAS_ERROR(state))
  ------------------
  |  |  394|      1|#define HAS_ERROR(state) (state->errcode != PATHX_NOERROR)
  |  |  ------------------
  |  |  |  Branch (394:26): [True: 0, False: 1]
  |  |  ------------------
  ------------------
 2316|      0|        goto error;
 2317|      1|    expr_value(expr, state)->string = strndup(s, state->pos - s - 1);
 2318|      1|    if (expr_value(expr, state)->string == NULL)
  ------------------
  |  Branch (2318:9): [True: 0, False: 1]
  ------------------
 2319|      0|        goto err_nomem;
 2320|       |
 2321|      1|    push_expr(expr, state);
 2322|      1|    return;
 2323|       |
 2324|      0| err_nomem:
 2325|      0|    STATE_ENOMEM;
  ------------------
  |  |  396|      0|#define STATE_ENOMEM STATE_ERROR(state, PATHX_ENOMEM)
  |  |  ------------------
  |  |  |  |  388|      0|    do {                                                                \
  |  |  |  |  389|      0|        state->errcode = err;                                           \
  |  |  |  |  390|      0|        state->file = __FILE__;                                         \
  |  |  |  |  391|      0|        state->line = __LINE__;                                         \
  |  |  |  |  392|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (392:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2326|      0| error:
 2327|      0|    free_expr(expr);
 2328|      0|    return;
 2329|      0|}
pathx.c:make_value:
  579|  1.64k|static value_ind_t make_value(enum type tag, struct state *state) {
  580|  1.64k|    assert(tag != T_BOOLEAN);
  ------------------
  |  Branch (580:5): [True: 0, False: 1.64k]
  |  Branch (580:5): [True: 1.64k, False: 0]
  ------------------
  581|       |
  582|  1.64k|    if (state->value_pool_used >= state->value_pool_size) {
  ------------------
  |  Branch (582:9): [True: 16, False: 1.62k]
  ------------------
  583|     16|        value_ind_t new_size = 2*state->value_pool_size;
  584|     16|        if (new_size <= state->value_pool_size) {
  ------------------
  |  Branch (584:13): [True: 0, False: 16]
  ------------------
  585|      0|            STATE_ENOMEM;
  ------------------
  |  |  396|      0|#define STATE_ENOMEM STATE_ERROR(state, PATHX_ENOMEM)
  |  |  ------------------
  |  |  |  |  388|      0|    do {                                                                \
  |  |  |  |  389|      0|        state->errcode = err;                                           \
  |  |  |  |  390|      0|        state->file = __FILE__;                                         \
  |  |  |  |  391|      0|        state->line = __LINE__;                                         \
  |  |  |  |  392|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (392:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  586|      0|            return 0;
  587|      0|        }
  588|     16|        if (REALLOC_N(state->value_pool, new_size) < 0) {
  ------------------
  |  |   69|     16|#define REALLOC_N(ptr, count) mem_realloc_n(&(ptr), sizeof(*(ptr)), (count))
  ------------------
  |  Branch (588:13): [True: 0, False: 16]
  ------------------
  589|      0|            STATE_ENOMEM;
  ------------------
  |  |  396|      0|#define STATE_ENOMEM STATE_ERROR(state, PATHX_ENOMEM)
  |  |  ------------------
  |  |  |  |  388|      0|    do {                                                                \
  |  |  |  |  389|      0|        state->errcode = err;                                           \
  |  |  |  |  390|      0|        state->file = __FILE__;                                         \
  |  |  |  |  391|      0|        state->line = __LINE__;                                         \
  |  |  |  |  392|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (392:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  590|      0|            return 0;
  591|      0|        }
  592|     16|        state->value_pool_size = new_size;
  593|     16|    }
  594|  1.64k|    state->value_pool[state->value_pool_used].tag = tag;
  595|       |    state->value_pool[state->value_pool_used].nodeset = NULL;
  596|  1.64k|    return state->value_pool_used++;
  597|  1.64k|}
pathx.c:expr_value:
  665|    113|static struct value *expr_value(struct expr *expr, struct state *state) {
  666|    113|    return state->value_pool + expr->value_ind;
  667|    113|}
pathx.c:parse_number:
 2252|     90|static void parse_number(struct state *state) {
 2253|     90|    struct expr *expr = NULL;
 2254|     90|    unsigned long val;
 2255|     90|    char *end;
 2256|       |
 2257|     90|    errno = 0;
 2258|     90|    val = strtoul(state->pos, &end, 10);
 2259|     90|    if (errno || end == state->pos || (int) val != val) {
  ------------------
  |  Branch (2259:9): [True: 0, False: 90]
  |  Branch (2259:18): [True: 0, False: 90]
  |  Branch (2259:39): [True: 0, False: 90]
  ------------------
 2260|      0|        STATE_ERROR(state, PATHX_ENUMBER);
  ------------------
  |  |  388|      0|    do {                                                                \
  |  |  389|      0|        state->errcode = err;                                           \
  |  |  390|      0|        state->file = __FILE__;                                         \
  |  |  391|      0|        state->line = __LINE__;                                         \
  |  |  392|      0|    } while (0)
  |  |  ------------------
  |  |  |  Branch (392:14): [Folded, False: 0]
  |  |  ------------------
  ------------------
 2261|      0|        return;
 2262|      0|    }
 2263|       |
 2264|     90|    state->pos = end;
 2265|       |
 2266|     90|    if (ALLOC(expr) < 0)
  ------------------
  |  |   43|     90|#define ALLOC(ptr) mem_alloc_n(&(ptr), sizeof(*(ptr)), 1)
  ------------------
  |  Branch (2266:9): [True: 0, False: 90]
  ------------------
 2267|      0|        goto err_nomem;
 2268|     90|    expr->tag = E_VALUE;
 2269|     90|    expr->value_ind = make_value(T_NUMBER, state);
 2270|     90|    if (HAS_ERROR(state))
  ------------------
  |  |  394|     90|#define HAS_ERROR(state) (state->errcode != PATHX_NOERROR)
  |  |  ------------------
  |  |  |  Branch (394:26): [True: 0, False: 90]
  |  |  ------------------
  ------------------
 2271|      0|        goto error;
 2272|     90|    expr_value(expr, state)->number = val;
 2273|       |
 2274|     90|    push_expr(expr, state);
 2275|     90|    return;
 2276|       |
 2277|      0| err_nomem:
 2278|      0|    STATE_ENOMEM;
  ------------------
  |  |  396|      0|#define STATE_ENOMEM STATE_ERROR(state, PATHX_ENOMEM)
  |  |  ------------------
  |  |  |  |  388|      0|    do {                                                                \
  |  |  |  |  389|      0|        state->errcode = err;                                           \
  |  |  |  |  390|      0|        state->file = __FILE__;                                         \
  |  |  |  |  391|      0|        state->line = __LINE__;                                         \
  |  |  |  |  392|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (392:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2279|      0| error:
 2280|      0|    free_expr(expr);
 2281|      0|    return;
 2282|      0|}
pathx.c:parse_var:
 2401|      2|static void parse_var(struct state *state) {
 2402|      2|    const char *id = state->pos;
 2403|      2|    struct expr *expr = NULL;
 2404|       |
 2405|      2|    if (!isalpha((unsigned char) *id) && *id != '_') {
  ------------------
  |  Branch (2405:9): [True: 2, False: 0]
  |  Branch (2405:42): [True: 2, False: 0]
  ------------------
 2406|      2|        STATE_ERROR(state, PATHX_ENAME);
  ------------------
  |  |  388|      2|    do {                                                                \
  |  |  389|      2|        state->errcode = err;                                           \
  |  |  390|      2|        state->file = __FILE__;                                         \
  |  |  391|      2|        state->line = __LINE__;                                         \
  |  |  392|      2|    } while (0)
  |  |  ------------------
  |  |  |  Branch (392:14): [Folded, False: 2]
  |  |  ------------------
  ------------------
 2407|      2|        return;
 2408|      2|    }
 2409|      0|    id++;
 2410|      0|    while (isalpha((unsigned char) *id) || isdigit((unsigned char) *id) || *id == '_')
  ------------------
  |  Branch (2410:12): [True: 0, False: 0]
  |  Branch (2410:44): [True: 0, False: 0]
  |  Branch (2410:76): [True: 0, False: 0]
  ------------------
 2411|      0|        id += 1;
 2412|       |
 2413|      0|    if (ALLOC(expr) < 0)
  ------------------
  |  |   43|      0|#define ALLOC(ptr) mem_alloc_n(&(ptr), sizeof(*(ptr)), 1)
  ------------------
  |  Branch (2413:9): [True: 0, False: 0]
  ------------------
 2414|      0|        goto err_nomem;
 2415|      0|    expr->tag = E_VAR;
 2416|      0|    expr->ident = strndup(state->pos, id - state->pos);
 2417|      0|    if (expr->ident == NULL)
  ------------------
  |  Branch (2417:9): [True: 0, False: 0]
  ------------------
 2418|      0|        goto err_nomem;
 2419|       |
 2420|      0|    push_expr(expr, state);
 2421|      0|    state->pos = id;
 2422|      0|    return;
 2423|      0| err_nomem:
 2424|      0|    STATE_ENOMEM;
  ------------------
  |  |  396|      0|#define STATE_ENOMEM STATE_ERROR(state, PATHX_ENOMEM)
  |  |  ------------------
  |  |  |  |  388|      0|    do {                                                                \
  |  |  |  |  389|      0|        state->errcode = err;                                           \
  |  |  |  |  390|      0|        state->file = __FILE__;                                         \
  |  |  |  |  391|      0|        state->line = __LINE__;                                         \
  |  |  |  |  392|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (392:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2425|      0|    free_expr(expr);
 2426|      0|    return;
 2427|      0|}
pathx.c:parse_function_call:
 2334|    112|static void parse_function_call(struct state *state) {
 2335|    112|    const struct func *func = NULL;
 2336|    112|    struct expr *expr = NULL;
 2337|    112|    int nargs = 0, find = 0;
 2338|       |
 2339|    582|    for (; find < ARRAY_CARDINALITY(builtin_funcs); find++) {
  ------------------
  |  |  221|    582|#define ARRAY_CARDINALITY(array) (sizeof (array) / sizeof *(array))
  ------------------
  |  Branch (2339:12): [True: 580, False: 2]
  ------------------
 2340|    580|        if (looking_at(state, builtin_funcs[find].name, "(")) {
  ------------------
  |  Branch (2340:13): [True: 110, False: 470]
  ------------------
 2341|    110|            func = builtin_funcs + find;
 2342|    110|            break;
 2343|    110|        }
 2344|    580|    }
 2345|    112|    if (func == NULL) {
  ------------------
  |  Branch (2345:9): [True: 2, False: 110]
  ------------------
 2346|      2|        STATE_ERROR(state, PATHX_ENAME);
  ------------------
  |  |  388|      2|    do {                                                                \
  |  |  389|      2|        state->errcode = err;                                           \
  |  |  390|      2|        state->file = __FILE__;                                         \
  |  |  391|      2|        state->line = __LINE__;                                         \
  |  |  392|      2|    } while (0)
  |  |  ------------------
  |  |  |  Branch (392:14): [Folded, False: 2]
  |  |  ------------------
  ------------------
 2347|      2|        return;
 2348|      2|    }
 2349|       |
 2350|    110|    if (! match(state, ')')) {
  ------------------
  |  Branch (2350:9): [True: 110, False: 0]
  ------------------
 2351|    110|        do {
 2352|    110|            nargs += 1;
 2353|    110|            parse_expr(state);
 2354|    110|            RET_ON_ERROR;
  ------------------
  |  |  382|    110|    if (state->errcode != PATHX_NOERROR) return
  |  |  ------------------
  |  |  |  Branch (382:9): [True: 100, False: 10]
  |  |  ------------------
  ------------------
 2355|    110|        } while (match(state, ','));
  ------------------
  |  Branch (2355:18): [True: 0, False: 10]
  ------------------
 2356|       |
 2357|     10|        if (! match(state, ')')) {
  ------------------
  |  Branch (2357:13): [True: 0, False: 10]
  ------------------
 2358|      0|            STATE_ERROR(state, PATHX_EPAREN);
  ------------------
  |  |  388|      0|    do {                                                                \
  |  |  389|      0|        state->errcode = err;                                           \
  |  |  390|      0|        state->file = __FILE__;                                         \
  |  |  391|      0|        state->line = __LINE__;                                         \
  |  |  392|      0|    } while (0)
  |  |  ------------------
  |  |  |  Branch (392:14): [Folded, False: 0]
  |  |  ------------------
  ------------------
 2359|      0|            return;
 2360|      0|        }
 2361|     10|    }
 2362|       |
 2363|     10|    int found = 0; /* Whether there is a builtin matching in name and arity */
 2364|     10|    for (int i=find; i < ARRAY_CARDINALITY(builtin_funcs); i++) {
  ------------------
  |  |  221|     10|#define ARRAY_CARDINALITY(array) (sizeof (array) / sizeof *(array))
  ------------------
  |  Branch (2364:22): [True: 10, False: 0]
  ------------------
 2365|     10|        if (STRNEQ(func->name, builtin_funcs[i].name))
  ------------------
  |  |  227|     10|#define STRNEQ(a,b) (strcmp((a),(b)) != 0)
  |  |  ------------------
  |  |  |  Branch (227:21): [True: 0, False: 10]
  |  |  ------------------
  ------------------
 2366|      0|            break;
 2367|     10|        if (builtin_funcs[i].arity == nargs) {
  ------------------
  |  Branch (2367:13): [True: 10, False: 0]
  ------------------
 2368|     10|            func = builtin_funcs + i;
 2369|     10|            found = 1;
 2370|     10|            break;
 2371|     10|        }
 2372|     10|    }
 2373|       |
 2374|     10|    if (! found) {
  ------------------
  |  Branch (2374:9): [True: 0, False: 10]
  ------------------
 2375|      0|        STATE_ERROR(state, PATHX_EARITY);
  ------------------
  |  |  388|      0|    do {                                                                \
  |  |  389|      0|        state->errcode = err;                                           \
  |  |  390|      0|        state->file = __FILE__;                                         \
  |  |  391|      0|        state->line = __LINE__;                                         \
  |  |  392|      0|    } while (0)
  |  |  ------------------
  |  |  |  Branch (392:14): [Folded, False: 0]
  |  |  ------------------
  ------------------
 2376|      0|        return;
 2377|      0|    }
 2378|       |
 2379|     10|    if (ALLOC(expr) < 0) {
  ------------------
  |  |   43|     10|#define ALLOC(ptr) mem_alloc_n(&(ptr), sizeof(*(ptr)), 1)
  ------------------
  |  Branch (2379:9): [True: 0, False: 10]
  ------------------
 2380|      0|        STATE_ENOMEM;
  ------------------
  |  |  396|      0|#define STATE_ENOMEM STATE_ERROR(state, PATHX_ENOMEM)
  |  |  ------------------
  |  |  |  |  388|      0|    do {                                                                \
  |  |  |  |  389|      0|        state->errcode = err;                                           \
  |  |  |  |  390|      0|        state->file = __FILE__;                                         \
  |  |  |  |  391|      0|        state->line = __LINE__;                                         \
  |  |  |  |  392|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (392:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2381|      0|        return;
 2382|      0|    }
 2383|     10|    expr->tag = E_APP;
 2384|     10|    if (ALLOC_N(expr->args, nargs) < 0) {
  ------------------
  |  |   56|     10|#define ALLOC_N(ptr, count) mem_alloc_n(&(ptr), sizeof(*(ptr)), (count))
  ------------------
  |  Branch (2384:9): [True: 0, False: 10]
  ------------------
 2385|      0|        free_expr(expr);
 2386|      0|        STATE_ENOMEM;
  ------------------
  |  |  396|      0|#define STATE_ENOMEM STATE_ERROR(state, PATHX_ENOMEM)
  |  |  ------------------
  |  |  |  |  388|      0|    do {                                                                \
  |  |  |  |  389|      0|        state->errcode = err;                                           \
  |  |  |  |  390|      0|        state->file = __FILE__;                                         \
  |  |  |  |  391|      0|        state->line = __LINE__;                                         \
  |  |  |  |  392|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (392:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2387|      0|        return;
 2388|      0|    }
 2389|     10|    expr->func = func;
 2390|     20|    for (int i = nargs - 1; i >= 0; i--)
  ------------------
  |  Branch (2390:29): [True: 10, False: 10]
  ------------------
 2391|     10|        expr->args[i] = pop_expr(state);
 2392|       |
 2393|     10|    push_expr(expr, state);
 2394|     10|}
pathx.c:looking_at:
 1834|  72.3k|                      const char *follow) {
 1835|  72.3k|    if (STREQLEN(state->pos, token, strlen(token))) {
  ------------------
  |  |  229|  72.3k|#define STREQLEN(a,b,n) (strncmp((a),(b),(n)) == 0)
  |  |  ------------------
  |  |  |  Branch (229:25): [True: 161, False: 72.1k]
  |  |  ------------------
  ------------------
 1836|    161|        const char *p = state->pos + strlen(token);
 1837|    161|        while (isspace((unsigned char) *p)) p++;
  ------------------
  |  Branch (1837:16): [True: 0, False: 161]
  ------------------
 1838|    161|        if (STREQLEN(p, follow, strlen(follow))) {
  ------------------
  |  |  229|    161|#define STREQLEN(a,b,n) (strncmp((a),(b),(n)) == 0)
  |  |  ------------------
  |  |  |  Branch (229:25): [True: 110, False: 51]
  |  |  ------------------
  ------------------
 1839|    110|            state->pos = p + strlen(follow);
 1840|    110|            return 1;
 1841|    110|        }
 1842|    161|    }
 1843|  72.2k|    return 0;
 1844|  72.3k|}
pathx.c:push_value:
  647|  1.63k|static void push_value(value_ind_t vind, struct state *state) {
  648|  1.63k|    if (state->values_used >= state->values_size) {
  ------------------
  |  Branch (648:9): [True: 339, False: 1.30k]
  ------------------
  649|    339|        size_t new_size = 2*state->values_size;
  650|    339|        if (new_size == 0) new_size = 8;
  ------------------
  |  Branch (650:13): [True: 339, False: 0]
  ------------------
  651|    339|        if (REALLOC_N(state->values, new_size) < 0) {
  ------------------
  |  |   69|    339|#define REALLOC_N(ptr, count) mem_realloc_n(&(ptr), sizeof(*(ptr)), (count))
  ------------------
  |  Branch (651:13): [True: 0, False: 339]
  ------------------
  652|      0|            STATE_ENOMEM;
  ------------------
  |  |  396|      0|#define STATE_ENOMEM STATE_ERROR(state, PATHX_ENOMEM)
  |  |  ------------------
  |  |  |  |  388|      0|    do {                                                                \
  |  |  |  |  389|      0|        state->errcode = err;                                           \
  |  |  |  |  390|      0|        state->file = __FILE__;                                         \
  |  |  |  |  391|      0|        state->line = __LINE__;                                         \
  |  |  |  |  392|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (392:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  653|      0|            return;
  654|      0|        }
  655|    339|        state->values_size = new_size;
  656|    339|    }
  657|  1.63k|    state->values[state->values_used++] = vind;
  658|  1.63k|}
pathx.c:pop_value:
  640|  1.62k|static struct value *pop_value(struct state *state) {
  641|  1.62k|    value_ind_t vind = pop_value_ind(state);
  642|  1.62k|    if (HAS_ERROR(state))
  ------------------
  |  |  394|  1.62k|#define HAS_ERROR(state) (state->errcode != PATHX_NOERROR)
  |  |  ------------------
  |  |  |  Branch (394:26): [True: 0, False: 1.62k]
  |  |  ------------------
  ------------------
  643|      0|        return NULL;
  644|  1.62k|    return state->value_pool + vind;
  645|  1.62k|}
pathx.c:pop_value_ind:
  629|  1.62k|static value_ind_t pop_value_ind(struct state *state) {
  630|  1.62k|    if (state->values_used > 0) {
  ------------------
  |  Branch (630:9): [True: 1.62k, False: 0]
  ------------------
  631|  1.62k|        state->values_used -= 1;
  632|  1.62k|        return state->values[state->values_used];
  633|  1.62k|    } else {
  634|      0|        STATE_ERROR(state, PATHX_EINTERNAL);
  ------------------
  |  |  388|      0|    do {                                                                \
  |  |  389|      0|        state->errcode = err;                                           \
  |  |  390|      0|        state->file = __FILE__;                                         \
  |  |  391|      0|        state->line = __LINE__;                                         \
  |  |  392|      0|    } while (0)
  |  |  ------------------
  |  |  |  Branch (392:14): [Folded, False: 0]
  |  |  ------------------
  ------------------
  635|      0|        assert(0);
  ------------------
  |  Branch (635:9): [Folded, False: 0]
  |  Branch (635:9): [Folded, False: 0]
  ------------------
  636|      0|        return 0;
  637|      0|    }
  638|  1.62k|}
pathx.c:func_regexp:
  856|     98|static void func_regexp(struct state *state, int nargs) {
  857|     98|    ensure_arity(1, 1);
  ------------------
  |  |  676|     98|    if (nargs < min || nargs > max) {                                   \
  |  |  ------------------
  |  |  |  Branch (676:9): [True: 0, False: 98]
  |  |  |  Branch (676:24): [True: 0, False: 98]
  |  |  ------------------
  |  |  677|      0|        STATE_ERROR(state, PATHX_EINTERNAL);                            \
  |  |  ------------------
  |  |  |  |  388|      0|    do {                                                                \
  |  |  |  |  389|      0|        state->errcode = err;                                           \
  |  |  |  |  390|      0|        state->file = __FILE__;                                         \
  |  |  |  |  391|      0|        state->line = __LINE__;                                         \
  |  |  |  |  392|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (392:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  678|      0|        return;                                                         \
  |  |  679|      0|    }
  ------------------
  858|     98|    func_regexp_or_glob(state, 0, 0);
  859|     98|}
pathx.c:func_regexp_or_glob:
  819|     98|static void func_regexp_or_glob(struct state *state, int glob, int nocase) {
  820|     98|    value_ind_t vind = make_value(T_REGEXP, state);
  821|     98|    int r;
  822|       |
  823|     98|    RET_ON_ERROR;
  ------------------
  |  |  382|     98|    if (state->errcode != PATHX_NOERROR) return
  |  |  ------------------
  |  |  |  Branch (382:9): [True: 0, False: 98]
  |  |  ------------------
  ------------------
  824|       |
  825|     98|    struct value *v = pop_value(state);
  826|     98|    struct regexp *rx = NULL;
  827|       |
  828|     98|    if (v->tag == T_STRING) {
  ------------------
  |  Branch (828:9): [True: 0, False: 98]
  ------------------
  829|      0|        if (glob)
  ------------------
  |  Branch (829:13): [True: 0, False: 0]
  ------------------
  830|      0|            rx = make_regexp_from_glob(state->error->info, v->string);
  831|      0|        else
  832|      0|            rx = make_regexp_unescape(state->error->info, v->string, nocase);
  833|     98|    } else if (v->tag == T_NODESET) {
  ------------------
  |  Branch (833:16): [True: 98, False: 0]
  ------------------
  834|     98|        rx = nodeset_as_regexp(state->error->info, v->nodeset, glob, nocase);
  835|     98|    } else {
  836|      0|        assert(0);
  ------------------
  |  Branch (836:9): [Folded, False: 0]
  |  Branch (836:9): [Folded, False: 0]
  ------------------
  837|      0|    }
  838|       |
  839|     98|    if (rx == NULL) {
  ------------------
  |  Branch (839:9): [True: 0, False: 98]
  ------------------
  840|      0|        STATE_ENOMEM;
  ------------------
  |  |  396|      0|#define STATE_ENOMEM STATE_ERROR(state, PATHX_ENOMEM)
  |  |  ------------------
  |  |  |  |  388|      0|    do {                                                                \
  |  |  |  |  389|      0|        state->errcode = err;                                           \
  |  |  |  |  390|      0|        state->file = __FILE__;                                         \
  |  |  |  |  391|      0|        state->line = __LINE__;                                         \
  |  |  |  |  392|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (392:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  841|      0|        return;
  842|      0|    }
  843|       |
  844|     98|    state->value_pool[vind].regexp = rx;
  845|     98|    r = regexp_compile(rx);
  846|     98|    if (r < 0) {
  ------------------
  |  Branch (846:9): [True: 5, False: 93]
  ------------------
  847|      5|        const char *msg;
  848|      5|        regexp_check(rx, &msg);
  849|      5|        state->errmsg = strdup(msg);
  850|      5|        STATE_ERROR(state, PATHX_EREGEXP);
  ------------------
  |  |  388|      5|    do {                                                                \
  |  |  389|      5|        state->errcode = err;                                           \
  |  |  390|      5|        state->file = __FILE__;                                         \
  |  |  391|      5|        state->line = __LINE__;                                         \
  |  |  392|      5|    } while (0)
  |  |  ------------------
  |  |  |  Branch (392:14): [Folded, False: 5]
  |  |  ------------------
  ------------------
  851|      5|        return;
  852|      5|    }
  853|     93|    push_value(vind, state);
  854|     93|}
pathx.c:nodeset_as_regexp:
  779|     98|nodeset_as_regexp(struct info *info, struct nodeset *ns, int glob, int nocase) {
  780|     98|    struct regexp *result = NULL;
  781|     98|    struct regexp **rx = NULL;
  782|     98|    int used = 0;
  783|       |
  784|    192|    for (int i = 0; i < ns->used; i++) {
  ------------------
  |  Branch (784:21): [True: 94, False: 98]
  ------------------
  785|     94|        if (ns->nodes[i]->value != NULL)
  ------------------
  |  Branch (785:13): [True: 33, False: 61]
  ------------------
  786|     33|            used += 1;
  787|     94|    }
  788|       |
  789|     98|    if (used == 0) {
  ------------------
  |  Branch (789:9): [True: 85, False: 13]
  ------------------
  790|       |        /* If the nodeset is empty, make sure we produce a regexp
  791|       |         * that never matches anything */
  792|     85|        result = make_regexp_unescape(info, "[^\001-\7ff]", nocase);
  793|     85|    } else {
  794|     13|        if (ALLOC_N(rx, ns->used) < 0)
  ------------------
  |  |   56|     13|#define ALLOC_N(ptr, count) mem_alloc_n(&(ptr), sizeof(*(ptr)), (count))
  ------------------
  |  Branch (794:13): [True: 0, False: 13]
  ------------------
  795|      0|            goto error;
  796|     59|        for (int i=0; i < ns->used; i++) {
  ------------------
  |  Branch (796:23): [True: 46, False: 13]
  ------------------
  797|     46|            if (ns->nodes[i]->value == NULL)
  ------------------
  |  Branch (797:17): [True: 13, False: 33]
  ------------------
  798|     13|                continue;
  799|       |
  800|     33|            if (glob)
  ------------------
  |  Branch (800:17): [True: 0, False: 33]
  ------------------
  801|      0|                rx[i] = make_regexp_from_glob(info, ns->nodes[i]->value);
  802|     33|            else
  803|     33|                rx[i] = make_regexp_unescape(info, ns->nodes[i]->value, 0);
  804|     33|            if (rx[i] == NULL)
  ------------------
  |  Branch (804:17): [True: 0, False: 33]
  ------------------
  805|      0|                goto error;
  806|     33|        }
  807|     13|        result = regexp_union_n(info, ns->used, rx);
  808|     13|    }
  809|       |
  810|     98| error:
  811|     98|    if (rx != NULL) {
  ------------------
  |  Branch (811:9): [True: 13, False: 85]
  ------------------
  812|     59|        for (int i=0; i < ns->used; i++)
  ------------------
  |  Branch (812:23): [True: 46, False: 13]
  ------------------
  813|     46|            unref(rx[i], regexp);
  ------------------
  |  |   55|     46|    do {                                                                \
  |  |   56|     46|        if ((s) != NULL && (s)->ref != REF_MAX) {                       \
  |  |  ------------------
  |  |  |  |   41|     33|#define REF_MAX UINT_MAX
  |  |  ------------------
  |  |  |  Branch (56:13): [True: 33, False: 13]
  |  |  |  Branch (56:28): [True: 33, False: 0]
  |  |  ------------------
  |  |   57|     33|            assert((s)->ref > 0);                                       \
  |  |   58|     33|            if (--(s)->ref == 0) {                                      \
  |  |  ------------------
  |  |  |  Branch (58:17): [True: 33, False: 0]
  |  |  ------------------
  |  |   59|     33|                /*memset(s, 255, sizeof(*s));*/                         \
  |  |   60|     33|                free_##t(s);                                            \
  |  |   61|     33|            }                                                           \
  |  |   62|     33|        }                                                               \
  |  |   63|     46|        (s) = NULL;                                                     \
  |  |   64|     46|    } while(0)
  |  |  ------------------
  |  |  |  Branch (64:13): [Folded, False: 46]
  |  |  ------------------
  ------------------
  |  Branch (813:13): [True: 0, False: 33]
  |  Branch (813:13): [True: 33, False: 0]
  ------------------
  814|     13|        free(rx);
  815|     13|    }
  816|     98|    return result;
  817|     98|}
pathx.c:push_boolean_value:
  660|     93|static void push_boolean_value(int b, struct state *state) {
  661|     93|    push_value(b != 0, state);
  662|     93|}
pathx.c:parse_predicates:
 2042|  6.62k|static struct pred *parse_predicates(struct state *state) {
 2043|  6.62k|    struct pred *pred = NULL;
 2044|  6.62k|    int nexpr = 0;
 2045|       |
 2046|  6.66k|    while (match(state, L_BRACK)) {
  ------------------
  |  |  184|  6.66k|#define L_BRACK '['
  ------------------
  |  Branch (2046:12): [True: 1.44k, False: 5.22k]
  ------------------
 2047|  1.44k|        parse_expr(state);
 2048|  1.44k|        nexpr += 1;
 2049|  1.44k|        RET0_ON_ERROR;
  ------------------
  |  |  385|  1.44k|    if (state->errcode != PATHX_NOERROR) return 0
  |  |  ------------------
  |  |  |  Branch (385:9): [True: 1.40k, False: 40]
  |  |  ------------------
  ------------------
 2050|       |
 2051|     40|        if (! match(state, R_BRACK)) {
  ------------------
  |  |  185|     40|#define R_BRACK ']'
  ------------------
  |  Branch (2051:13): [True: 0, False: 40]
  ------------------
 2052|      0|            STATE_ERROR(state, PATHX_EPRED);
  ------------------
  |  |  388|      0|    do {                                                                \
  |  |  389|      0|        state->errcode = err;                                           \
  |  |  390|      0|        state->file = __FILE__;                                         \
  |  |  391|      0|        state->line = __LINE__;                                         \
  |  |  392|      0|    } while (0)
  |  |  ------------------
  |  |  |  Branch (392:14): [Folded, False: 0]
  |  |  ------------------
  ------------------
 2053|      0|            return NULL;
 2054|      0|        }
 2055|     40|        skipws(state);
 2056|     40|    }
 2057|       |
 2058|  5.22k|    if (nexpr == 0)
  ------------------
  |  Branch (2058:9): [True: 5.18k, False: 40]
  ------------------
 2059|  5.18k|        return NULL;
 2060|       |
 2061|     40|    if (ALLOC(pred) < 0) {
  ------------------
  |  |   43|     40|#define ALLOC(ptr) mem_alloc_n(&(ptr), sizeof(*(ptr)), 1)
  ------------------
  |  Branch (2061:9): [True: 0, False: 40]
  ------------------
 2062|      0|        STATE_ENOMEM;
  ------------------
  |  |  396|      0|#define STATE_ENOMEM STATE_ERROR(state, PATHX_ENOMEM)
  |  |  ------------------
  |  |  |  |  388|      0|    do {                                                                \
  |  |  |  |  389|      0|        state->errcode = err;                                           \
  |  |  |  |  390|      0|        state->file = __FILE__;                                         \
  |  |  |  |  391|      0|        state->line = __LINE__;                                         \
  |  |  |  |  392|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (392:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2063|      0|        return NULL;
 2064|      0|    }
 2065|     40|    pred->nexpr = nexpr;
 2066|       |
 2067|     40|    if (ALLOC_N(pred->exprs, nexpr) < 0) {
  ------------------
  |  |   56|     40|#define ALLOC_N(ptr, count) mem_alloc_n(&(ptr), sizeof(*(ptr)), (count))
  ------------------
  |  Branch (2067:9): [True: 0, False: 40]
  ------------------
 2068|      0|        free_pred(pred);
 2069|      0|        STATE_ENOMEM;
  ------------------
  |  |  396|      0|#define STATE_ENOMEM STATE_ERROR(state, PATHX_ENOMEM)
  |  |  ------------------
  |  |  |  |  388|      0|    do {                                                                \
  |  |  |  |  389|      0|        state->errcode = err;                                           \
  |  |  |  |  390|      0|        state->file = __FILE__;                                         \
  |  |  |  |  391|      0|        state->line = __LINE__;                                         \
  |  |  |  |  392|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (392:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2070|      0|        return NULL;
 2071|      0|    }
 2072|       |
 2073|     80|    for (int i = nexpr - 1; i >= 0; i--)
  ------------------
  |  Branch (2073:29): [True: 40, False: 40]
  ------------------
 2074|     40|        pred->exprs[i] = pop_expr(state);
 2075|       |
 2076|     40|    return pred;
 2077|     40|}
pathx.c:parse_relative_location_path:
 2156|  5.21k|parse_relative_location_path(struct state *state) {
 2157|  5.21k|    struct step *step = NULL;
 2158|  5.21k|    struct locpath *locpath = NULL;
 2159|       |
 2160|  5.21k|    step = parse_step(state);
 2161|  5.21k|    if (HAS_ERROR(state))
  ------------------
  |  |  394|  5.21k|#define HAS_ERROR(state) (state->errcode != PATHX_NOERROR)
  |  |  ------------------
  |  |  |  Branch (394:26): [True: 1.40k, False: 3.81k]
  |  |  ------------------
  ------------------
 2162|  1.40k|        goto error;
 2163|       |
 2164|  3.81k|    if (ALLOC(locpath) < 0) {
  ------------------
  |  |   43|  3.81k|#define ALLOC(ptr) mem_alloc_n(&(ptr), sizeof(*(ptr)), 1)
  ------------------
  |  Branch (2164:9): [True: 0, False: 3.81k]
  ------------------
 2165|      0|        STATE_ENOMEM;
  ------------------
  |  |  396|      0|#define STATE_ENOMEM STATE_ERROR(state, PATHX_ENOMEM)
  |  |  ------------------
  |  |  |  |  388|      0|    do {                                                                \
  |  |  |  |  389|      0|        state->errcode = err;                                           \
  |  |  |  |  390|      0|        state->file = __FILE__;                                         \
  |  |  |  |  391|      0|        state->line = __LINE__;                                         \
  |  |  |  |  392|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (392:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2166|      0|        goto error;
 2167|      0|    }
 2168|  3.81k|    list_append(locpath->steps, step);
  ------------------
  |  |   27|  3.81k|    do {                                                                \
  |  |   28|  3.81k|        if ((head) == NULL) {                                           \
  |  |  ------------------
  |  |  |  Branch (28:13): [True: 3.81k, False: 0]
  |  |  ------------------
  |  |   29|  3.81k|            head = tail;                                                \
  |  |   30|  3.81k|            break;                                                      \
  |  |   31|  3.81k|        }                                                               \
  |  |   32|  3.81k|        typeof(head) _p;                                                \
  |  |   33|      0|        for (_p = (head); _p->next != NULL; _p = _p->next);             \
  |  |  ------------------
  |  |  |  Branch (33:27): [True: 0, False: 0]
  |  |  ------------------
  |  |   34|      0|        _p->next = (tail);                                              \
  |  |   35|      0|    } while (0)
  |  |  ------------------
  |  |  |  Branch (35:14): [Folded, False: 0]
  |  |  ------------------
  ------------------
 2169|  3.81k|    step = NULL;
 2170|       |
 2171|  5.77k|    while (match(state, '/')) {
  ------------------
  |  Branch (2171:12): [True: 1.96k, False: 3.81k]
  ------------------
 2172|  1.96k|        if (*state->pos == '/') {
  ------------------
  |  Branch (2172:13): [True: 849, False: 1.11k]
  ------------------
 2173|    849|            state->pos += 1;
 2174|    849|            step = make_step(DESCENDANT_OR_SELF, state);
 2175|    849|            if (step == NULL) {
  ------------------
  |  Branch (2175:17): [True: 0, False: 849]
  ------------------
 2176|      0|                STATE_ENOMEM;
  ------------------
  |  |  396|      0|#define STATE_ENOMEM STATE_ERROR(state, PATHX_ENOMEM)
  |  |  ------------------
  |  |  |  |  388|      0|    do {                                                                \
  |  |  |  |  389|      0|        state->errcode = err;                                           \
  |  |  |  |  390|      0|        state->file = __FILE__;                                         \
  |  |  |  |  391|      0|        state->line = __LINE__;                                         \
  |  |  |  |  392|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (392:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2177|      0|                goto error;
 2178|      0|            }
 2179|    849|            list_append(locpath->steps, step);
  ------------------
  |  |   27|    849|    do {                                                                \
  |  |   28|    849|        if ((head) == NULL) {                                           \
  |  |  ------------------
  |  |  |  Branch (28:13): [True: 0, False: 849]
  |  |  ------------------
  |  |   29|      0|            head = tail;                                                \
  |  |   30|      0|            break;                                                      \
  |  |   31|      0|        }                                                               \
  |  |   32|    849|        typeof(head) _p;                                                \
  |  |   33|  19.8k|        for (_p = (head); _p->next != NULL; _p = _p->next);             \
  |  |  ------------------
  |  |  |  Branch (33:27): [True: 18.9k, False: 849]
  |  |  ------------------
  |  |   34|    849|        _p->next = (tail);                                              \
  |  |   35|    849|    } while (0)
  |  |  ------------------
  |  |  |  Branch (35:14): [Folded, False: 849]
  |  |  ------------------
  ------------------
 2180|    849|        }
 2181|  1.96k|        step = parse_step(state);
 2182|  1.96k|        if (HAS_ERROR(state))
  ------------------
  |  |  394|  1.96k|#define HAS_ERROR(state) (state->errcode != PATHX_NOERROR)
  |  |  ------------------
  |  |  |  Branch (394:26): [True: 0, False: 1.96k]
  |  |  ------------------
  ------------------
 2183|      0|            goto error;
 2184|  1.96k|        list_append(locpath->steps, step);
  ------------------
  |  |   27|  1.96k|    do {                                                                \
  |  |   28|  1.96k|        if ((head) == NULL) {                                           \
  |  |  ------------------
  |  |  |  Branch (28:13): [True: 0, False: 1.96k]
  |  |  ------------------
  |  |   29|      0|            head = tail;                                                \
  |  |   30|      0|            break;                                                      \
  |  |   31|      0|        }                                                               \
  |  |   32|  1.96k|        typeof(head) _p;                                                \
  |  |   33|  48.7k|        for (_p = (head); _p->next != NULL; _p = _p->next);             \
  |  |  ------------------
  |  |  |  Branch (33:27): [True: 46.8k, False: 1.96k]
  |  |  ------------------
  |  |   34|  1.96k|        _p->next = (tail);                                              \
  |  |   35|  1.96k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (35:14): [Folded, False: 1.96k]
  |  |  ------------------
  ------------------
 2185|  1.96k|        step = NULL;
 2186|  1.96k|    }
 2187|  3.81k|    return locpath;
 2188|       |
 2189|  1.40k| error:
 2190|  1.40k|    free_step(step);
 2191|  1.40k|    free_locpath(locpath);
 2192|       |    return NULL;
 2193|  3.81k|}
pathx.c:parse_step:
 2091|  7.17k|static struct step *parse_step(struct state *state) {
 2092|  7.17k|    struct step *step;
 2093|  7.17k|    int explicit_axis = 0, allow_predicates = 1;
 2094|       |
 2095|  7.17k|    if (ALLOC(step) < 0) {
  ------------------
  |  |   43|  7.17k|#define ALLOC(ptr) mem_alloc_n(&(ptr), sizeof(*(ptr)), 1)
  ------------------
  |  Branch (2095:9): [True: 0, False: 7.17k]
  ------------------
 2096|      0|        STATE_ENOMEM;
  ------------------
  |  |  396|      0|#define STATE_ENOMEM STATE_ERROR(state, PATHX_ENOMEM)
  |  |  ------------------
  |  |  |  |  388|      0|    do {                                                                \
  |  |  |  |  389|      0|        state->errcode = err;                                           \
  |  |  |  |  390|      0|        state->file = __FILE__;                                         \
  |  |  |  |  391|      0|        state->line = __LINE__;                                         \
  |  |  |  |  392|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (392:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2097|      0|        return NULL;
 2098|      0|    }
 2099|       |
 2100|  7.17k|    step->axis = CHILD;
 2101|  78.9k|    for (int i = 0; i < ARRAY_CARDINALITY(axis_names); i++) {
  ------------------
  |  |  221|  78.9k|#define ARRAY_CARDINALITY(array) (sizeof (array) / sizeof *(array))
  ------------------
  |  Branch (2101:21): [True: 71.7k, False: 7.17k]
  ------------------
 2102|  71.7k|        if (looking_at(state, axis_names[i], "::")) {
  ------------------
  |  Branch (2102:13): [True: 0, False: 71.7k]
  ------------------
 2103|      0|            step->axis = i;
 2104|      0|            explicit_axis = 1;
 2105|      0|            break;
 2106|      0|        }
 2107|  71.7k|    }
 2108|       |
 2109|  7.17k|    if (! match(state, '*')) {
  ------------------
  |  Branch (2109:9): [True: 5.92k, False: 1.24k]
  ------------------
 2110|  5.92k|        step->name = parse_name(state);
 2111|  5.92k|        if (HAS_ERROR(state))
  ------------------
  |  |  394|  5.92k|#define HAS_ERROR(state) (state->errcode != PATHX_NOERROR)
  |  |  ------------------
  |  |  |  Branch (394:26): [True: 4, False: 5.92k]
  |  |  ------------------
  ------------------
 2112|      4|            goto error;
 2113|  5.92k|        if (! explicit_axis) {
  ------------------
  |  Branch (2113:13): [True: 5.92k, False: 0]
  ------------------
 2114|  5.92k|            if (STREQ(step->name, ".") || STREQ(step->name, "..")) {
  ------------------
  |  |  224|  11.8k|#define STREQ(a,b) (strcmp((a),(b)) == 0)
  |  |  ------------------
  |  |  |  Branch (224:20): [True: 594, False: 5.33k]
  |  |  ------------------
  ------------------
                          if (STREQ(step->name, ".") || STREQ(step->name, "..")) {
  ------------------
  |  |  224|  5.33k|#define STREQ(a,b) (strcmp((a),(b)) == 0)
  |  |  ------------------
  |  |  |  Branch (224:20): [True: 53, False: 5.27k]
  |  |  ------------------
  ------------------
 2115|    647|                step->axis = STREQ(step->name, ".") ? SELF : PARENT;
  ------------------
  |  |  224|    647|#define STREQ(a,b) (strcmp((a),(b)) == 0)
  |  |  ------------------
  |  |  |  Branch (224:20): [True: 594, False: 53]
  |  |  ------------------
  ------------------
 2116|    647|                FREE(step->name);
  ------------------
  |  |   79|    647|  do {                                          \
  |  |   80|    647|    free(ptr);                                  \
  |  |   81|    647|    (ptr) = NULL;                               \
  |  |   82|    647|  } while(0)
  |  |  ------------------
  |  |  |  Branch (82:11): [Folded, False: 647]
  |  |  ------------------
  ------------------
 2117|    647|                allow_predicates = 0;
 2118|    647|            }
 2119|  5.92k|        }
 2120|  5.92k|    }
 2121|       |
 2122|  7.17k|    if (allow_predicates) {
  ------------------
  |  Branch (2122:9): [True: 6.52k, False: 647]
  ------------------
 2123|  6.52k|        step->predicates = parse_predicates(state);
 2124|  6.52k|        if (HAS_ERROR(state))
  ------------------
  |  |  394|  6.52k|#define HAS_ERROR(state) (state->errcode != PATHX_NOERROR)
  |  |  ------------------
  |  |  |  Branch (394:26): [True: 1.40k, False: 5.12k]
  |  |  ------------------
  ------------------
 2125|  1.40k|            goto error;
 2126|  6.52k|    }
 2127|       |
 2128|  5.77k|    return step;
 2129|       |
 2130|  1.40k| error:
 2131|  1.40k|    free_step(step);
 2132|       |    return NULL;
 2133|  7.17k|}
pathx.c:parse_name:
 1980|  5.92k|static char *parse_name(struct state *state) {
 1981|  5.92k|    const char *s = state->pos;
 1982|  5.92k|    char *result;
 1983|       |
 1984|       |    /* Advance state->pos until it points to the first character that is
 1985|       |     * not part of a name. */
 1986|   750k|    while (*state->pos != '\0' && strchr(name_follow, *state->pos) == NULL) {
  ------------------
  |  Branch (1986:12): [True: 750k, False: 319]
  |  Branch (1986:35): [True: 745k, False: 5.60k]
  ------------------
 1987|       |        /* Since we allow spaces in names, we need to avoid gobbling up
 1988|       |         * stuff that is in follow(Name), e.g. 'or' so that things like
 1989|       |         * [name1 or name2] still work. In other words, we'll parse 'x frob
 1990|       |         * y' as one name, but for 'x or y', we consider 'x' a name in its
 1991|       |         * own right. */
 1992|   745k|        if (STREQLEN(state->pos, " or ", strlen(" or ")) ||
  ------------------
  |  |  229|  1.49M|#define STREQLEN(a,b,n) (strncmp((a),(b),(n)) == 0)
  |  |  ------------------
  |  |  |  Branch (229:25): [True: 0, False: 745k]
  |  |  ------------------
  ------------------
 1993|   745k|            STREQLEN(state->pos, " and ", strlen(" and ")) ||
  ------------------
  |  |  229|  1.49M|#define STREQLEN(a,b,n) (strncmp((a),(b),(n)) == 0)
  |  |  ------------------
  |  |  |  Branch (229:25): [True: 7, False: 745k]
  |  |  ------------------
  ------------------
 1994|   745k|            STREQLEN(state->pos, " else ", strlen(" else ")))
  ------------------
  |  |  229|   745k|#define STREQLEN(a,b,n) (strncmp((a),(b),(n)) == 0)
  |  |  ------------------
  |  |  |  Branch (229:25): [True: 0, False: 745k]
  |  |  ------------------
  ------------------
 1995|      7|            break;
 1996|       |
 1997|   745k|        if (*state->pos == '\\') {
  ------------------
  |  Branch (1997:13): [True: 650, False: 744k]
  ------------------
 1998|    650|            state->pos += 1;
 1999|    650|            if (*state->pos == '\0') {
  ------------------
  |  Branch (1999:17): [True: 0, False: 650]
  ------------------
 2000|      0|                STATE_ERROR(state, PATHX_ENAME);
  ------------------
  |  |  388|      0|    do {                                                                \
  |  |  389|      0|        state->errcode = err;                                           \
  |  |  390|      0|        state->file = __FILE__;                                         \
  |  |  391|      0|        state->line = __LINE__;                                         \
  |  |  392|      0|    } while (0)
  |  |  ------------------
  |  |  |  Branch (392:14): [Folded, False: 0]
  |  |  ------------------
  ------------------
 2001|      0|                return NULL;
 2002|      0|            }
 2003|    650|        }
 2004|   745k|        state->pos += 1;
 2005|   745k|    }
 2006|       |
 2007|       |    /* Strip trailing white space. Make sure we respect escaped whitespace
 2008|       |     * and don't strip it as in "x\\ " */
 2009|  5.92k|    if (state->pos > s) {
  ------------------
  |  Branch (2009:9): [True: 5.92k, False: 4]
  ------------------
 2010|  5.92k|        state->pos -= 1;
 2011|  6.17k|        while (isspace((unsigned char) *state->pos) && state->pos > s
  ------------------
  |  Branch (2011:16): [True: 253, False: 5.92k]
  |  Branch (2011:56): [True: 253, False: 0]
  ------------------
 2012|    253|               && !backslash_escaped(state->pos, s))
  ------------------
  |  Branch (2012:19): [True: 253, False: 0]
  ------------------
 2013|    253|            state->pos -= 1;
 2014|  5.92k|        state->pos += 1;
 2015|  5.92k|    }
 2016|       |
 2017|  5.92k|    if (state->pos == s) {
  ------------------
  |  Branch (2017:9): [True: 4, False: 5.92k]
  ------------------
 2018|      4|        STATE_ERROR(state, PATHX_ENAME);
  ------------------
  |  |  388|      4|    do {                                                                \
  |  |  389|      4|        state->errcode = err;                                           \
  |  |  390|      4|        state->file = __FILE__;                                         \
  |  |  391|      4|        state->line = __LINE__;                                         \
  |  |  392|      4|    } while (0)
  |  |  ------------------
  |  |  |  Branch (392:14): [Folded, False: 4]
  |  |  ------------------
  ------------------
 2019|      4|        return NULL;
 2020|      4|    }
 2021|       |
 2022|  5.92k|    result = strndup(s, state->pos - s);
 2023|  5.92k|    if (result == NULL) {
  ------------------
  |  Branch (2023:9): [True: 0, False: 5.92k]
  ------------------
 2024|      0|        STATE_ENOMEM;
  ------------------
  |  |  396|      0|#define STATE_ENOMEM STATE_ERROR(state, PATHX_ENOMEM)
  |  |  ------------------
  |  |  |  |  388|      0|    do {                                                                \
  |  |  |  |  389|      0|        state->errcode = err;                                           \
  |  |  |  |  390|      0|        state->file = __FILE__;                                         \
  |  |  |  |  391|      0|        state->line = __LINE__;                                         \
  |  |  |  |  392|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (392:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2025|      0|        return NULL;
 2026|      0|    }
 2027|       |
 2028|  5.92k|    char *p = result;
 2029|   750k|    for (char *t = result; *t != '\0'; t++, p++) {
  ------------------
  |  Branch (2029:28): [True: 744k, False: 5.92k]
  ------------------
 2030|   744k|        if (*t == '\\')
  ------------------
  |  Branch (2030:13): [True: 650, False: 744k]
  ------------------
 2031|    650|            t += 1;
 2032|   744k|        *p = *t;
 2033|   744k|    }
 2034|  5.92k|    *p = '\0';
 2035|       |
 2036|  5.92k|    return result;
 2037|  5.92k|}
pathx.c:backslash_escaped:
 1967|    253|static bool backslash_escaped(const char *pos, const char *start) {
 1968|    253|    bool result=false;
 1969|    253|    while (pos-- > start && *pos == '\\') {
  ------------------
  |  Branch (1969:12): [True: 253, False: 0]
  |  Branch (1969:29): [True: 0, False: 253]
  ------------------
 1970|      0|        result = !result;
 1971|      0|    }
 1972|    253|    return result;
 1973|    253|}
pathx.c:free_step:
  415|  2.80k|static void free_step(struct step *step) {
  416|  4.21k|    while (step != NULL) {
  ------------------
  |  Branch (416:12): [True: 1.40k, False: 2.80k]
  ------------------
  417|  1.40k|        struct step *del = step;
  418|  1.40k|        step = del->next;
  419|  1.40k|        free(del->name);
  420|  1.40k|        free_pred(del->predicates);
  421|  1.40k|        free(del);
  422|  1.40k|    }
  423|  2.80k|}
pathx.c:make_step:
 2135|  1.49k|static struct step *make_step(enum axis axis, struct state *state) {
 2136|  1.49k|    struct step *result = NULL;
 2137|       |
 2138|  1.49k|    if (ALLOC(result) < 0) {
  ------------------
  |  |   43|  1.49k|#define ALLOC(ptr) mem_alloc_n(&(ptr), sizeof(*(ptr)), 1)
  ------------------
  |  Branch (2138:9): [True: 0, False: 1.49k]
  ------------------
 2139|      0|        STATE_ENOMEM;
  ------------------
  |  |  396|      0|#define STATE_ENOMEM STATE_ERROR(state, PATHX_ENOMEM)
  |  |  ------------------
  |  |  |  |  388|      0|    do {                                                                \
  |  |  |  |  389|      0|        state->errcode = err;                                           \
  |  |  |  |  390|      0|        state->file = __FILE__;                                         \
  |  |  |  |  391|      0|        state->line = __LINE__;                                         \
  |  |  |  |  392|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (392:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2140|      0|        return NULL;
 2141|      0|    }
 2142|  1.49k|    result->axis = axis;
 2143|  1.49k|    return result;
 2144|  1.49k|}
pathx.c:pop_expr:
 1852|  2.28k|static struct expr* pop_expr(struct state *state) {
 1853|  2.28k|    if (state->exprs_used > 0) {
  ------------------
  |  Branch (1853:9): [True: 2.28k, False: 0]
  ------------------
 1854|  2.28k|        state->exprs_used -= 1;
 1855|  2.28k|        return state->exprs[state->exprs_used];
 1856|  2.28k|    } else {
 1857|      0|        STATE_ERROR(state, PATHX_EINTERNAL);
  ------------------
  |  |  388|      0|    do {                                                                \
  |  |  389|      0|        state->errcode = err;                                           \
  |  |  390|      0|        state->file = __FILE__;                                         \
  |  |  391|      0|        state->line = __LINE__;                                         \
  |  |  392|      0|    } while (0)
  |  |  ------------------
  |  |  |  Branch (392:14): [Folded, False: 0]
  |  |  ------------------
  ------------------
 1858|      0|        assert(0);
  ------------------
  |  Branch (1858:9): [Folded, False: 0]
  |  Branch (1858:9): [Folded, False: 0]
  ------------------
 1859|      0|        return NULL;
 1860|      0|    }
 1861|  2.28k|}
pathx.c:push_expr:
 1909|  6.43k|static void push_expr(struct expr *expr, struct state *state) {
 1910|  6.43k|    set_height(expr, state);
 1911|  6.43k|    if (state->exprs_used >= state->exprs_size) {
  ------------------
  |  Branch (1911:9): [True: 436, False: 5.99k]
  ------------------
 1912|    436|        size_t new_size = 2*state->exprs_size;
 1913|    436|        if (new_size == 0) new_size = 8;
  ------------------
  |  Branch (1913:13): [True: 362, False: 74]
  ------------------
 1914|    436|        if (REALLOC_N(state->exprs, new_size) < 0) {
  ------------------
  |  |   69|    436|#define REALLOC_N(ptr, count) mem_realloc_n(&(ptr), sizeof(*(ptr)), (count))
  ------------------
  |  Branch (1914:13): [True: 0, False: 436]
  ------------------
 1915|      0|            STATE_ENOMEM;
  ------------------
  |  |  396|      0|#define STATE_ENOMEM STATE_ERROR(state, PATHX_ENOMEM)
  |  |  ------------------
  |  |  |  |  388|      0|    do {                                                                \
  |  |  |  |  389|      0|        state->errcode = err;                                           \
  |  |  |  |  390|      0|        state->file = __FILE__;                                         \
  |  |  |  |  391|      0|        state->line = __LINE__;                                         \
  |  |  |  |  392|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (392:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1916|      0|            return;
 1917|      0|        }
 1918|    436|        state->exprs_size = new_size;
 1919|    436|    }
 1920|  6.43k|    state->exprs[state->exprs_used++] = expr;
 1921|  6.43k|}
pathx.c:set_height:
 1878|  6.43k|static void set_height(struct expr *expr, struct state *state) {
 1879|  6.43k|    unsigned int h = 0;
 1880|       |
 1881|  6.43k|    switch (expr->tag) {
 1882|  5.21k|    case E_FILTER:
  ------------------
  |  Branch (1882:5): [True: 5.21k, False: 1.21k]
  ------------------
 1883|  5.21k|        if (expr->primary != NULL)
  ------------------
  |  Branch (1883:13): [True: 0, False: 5.21k]
  ------------------
 1884|      0|            h = expr->primary->height;
 1885|  5.21k|        h = max_height(h, pred_height(expr->predicates));
 1886|  5.21k|        if (expr->locpath != NULL) {
  ------------------
  |  Branch (1886:13): [True: 3.81k, False: 1.40k]
  ------------------
 1887|  3.81k|            list_for_each(step, expr->locpath->steps)
  ------------------
  |  |   38|  11.0k|    for (typeof(list) (iter) = list; (iter) != NULL; (iter) = (iter)->next)
  |  |  ------------------
  |  |  |  Branch (38:38): [True: 7.27k, False: 3.81k]
  |  |  ------------------
  ------------------
 1888|  7.27k|                h = max_height(h, pred_height(step->predicates));
 1889|  3.81k|        }
 1890|  5.21k|        break;
 1891|  1.11k|    case E_BINARY:
  ------------------
  |  Branch (1891:5): [True: 1.11k, False: 5.31k]
  ------------------
 1892|  1.11k|        h = max_height(expr->left->height, expr->right->height);
 1893|  1.11k|        break;
 1894|     91|    case E_VALUE:
  ------------------
  |  Branch (1894:5): [True: 91, False: 6.34k]
  ------------------
 1895|     91|    case E_VAR:
  ------------------
  |  Branch (1895:5): [True: 0, False: 6.43k]
  ------------------
 1896|     91|        break;
 1897|     10|    case E_APP:
  ------------------
  |  Branch (1897:5): [True: 10, False: 6.42k]
  ------------------
 1898|     20|        for (int i=0; i < expr->func->arity; i++)
  ------------------
  |  Branch (1898:23): [True: 10, False: 10]
  ------------------
 1899|     10|            h = max_height(h, expr->args[i]->height);
 1900|     10|        break;
 1901|      0|    default:
  ------------------
  |  Branch (1901:5): [True: 0, False: 6.43k]
  ------------------
 1902|      0|        assert(0);
  ------------------
  |  Branch (1902:9): [Folded, False: 0]
  |  Branch (1902:9): [Folded, False: 0]
  ------------------
 1903|  6.43k|    }
 1904|  6.43k|    expr->height = h + 1;
 1905|  6.43k|    if (expr->height > MAX_HEIGHT)
  ------------------
  |  |   69|  6.43k|#define MAX_HEIGHT 1000
  ------------------
  |  Branch (1905:9): [True: 0, False: 6.43k]
  ------------------
 1906|      0|        STATE_ERROR(state, PATHX_EDEPTH);
  ------------------
  |  |  388|      0|    do {                                                                \
  |  |  389|      0|        state->errcode = err;                                           \
  |  |  390|      0|        state->file = __FILE__;                                         \
  |  |  391|      0|        state->line = __LINE__;                                         \
  |  |  392|      0|    } while (0)
  |  |  ------------------
  |  |  |  Branch (392:14): [Folded, False: 0]
  |  |  ------------------
  ------------------
 1907|  6.43k|}
pathx.c:max_height:
 1863|  13.6k|static unsigned int max_height(unsigned int h1, unsigned int h2) {
 1864|  13.6k|    return h1 > h2 ? h1 : h2;
  ------------------
  |  Branch (1864:12): [True: 638, False: 13.0k]
  ------------------
 1865|  13.6k|}
pathx.c:pred_height:
 1867|  12.4k|static unsigned int pred_height(const struct pred *pred) {
 1868|  12.4k|    unsigned int h = 0;
 1869|  12.4k|    if (pred == NULL)
  ------------------
  |  Branch (1869:9): [True: 12.4k, False: 40]
  ------------------
 1870|  12.4k|        return 0;
 1871|     80|    for (int i=0; i < pred->nexpr; i++)
  ------------------
  |  Branch (1871:19): [True: 40, False: 40]
  ------------------
 1872|     40|        h = max_height(h, pred->exprs[i]->height);
 1873|     40|    return h;
 1874|  12.4k|}
pathx.c:parse_location_path:
 2202|  5.21k|static void parse_location_path(struct state *state) {
 2203|  5.21k|    struct expr *expr = NULL;
 2204|  5.21k|    struct locpath *locpath = NULL;
 2205|       |
 2206|  5.21k|    if (match(state, '/')) {
  ------------------
  |  Branch (2206:9): [True: 650, False: 4.56k]
  ------------------
 2207|    650|        if (*state->pos == '/') {
  ------------------
  |  Branch (2207:13): [True: 184, False: 466]
  ------------------
 2208|    184|            state->pos += 1;
 2209|    184|            locpath = parse_relative_location_path(state);
 2210|    184|            if (HAS_ERROR(state))
  ------------------
  |  |  394|    184|#define HAS_ERROR(state) (state->errcode != PATHX_NOERROR)
  |  |  ------------------
  |  |  |  Branch (394:26): [True: 0, False: 184]
  |  |  ------------------
  ------------------
 2211|      0|                goto error;
 2212|    184|            struct step *step = make_step(DESCENDANT_OR_SELF, state);
 2213|    184|            if (HAS_ERROR(state))
  ------------------
  |  |  394|    184|#define HAS_ERROR(state) (state->errcode != PATHX_NOERROR)
  |  |  ------------------
  |  |  |  Branch (394:26): [True: 0, False: 184]
  |  |  ------------------
  ------------------
 2214|      0|                goto error;
 2215|    184|            list_cons(locpath->steps, step);
  ------------------
  |  |   91|    184|    do {                                                                \
  |  |   92|    184|        typeof(elt) _e = (elt);                                         \
  |  |   93|    184|        _e->next = (list);                                              \
  |  |   94|    184|        (list) = _e;                                                    \
  |  |   95|    184|    } while(0)
  |  |  ------------------
  |  |  |  Branch (95:13): [Folded, False: 184]
  |  |  ------------------
  ------------------
 2216|    466|        } else {
 2217|    466|            if (*state->pos != '\0') {
  ------------------
  |  Branch (2217:17): [True: 466, False: 0]
  ------------------
 2218|    466|                locpath = parse_relative_location_path(state);
 2219|    466|            } else {
 2220|      0|                if (ALLOC(locpath) < 0)
  ------------------
  |  |   43|      0|#define ALLOC(ptr) mem_alloc_n(&(ptr), sizeof(*(ptr)), 1)
  ------------------
  |  Branch (2220:21): [True: 0, False: 0]
  ------------------
 2221|      0|                    goto err_nomem;
 2222|      0|            }
 2223|    466|            struct step *step = make_step(ROOT, state);
 2224|    466|            if (HAS_ERROR(state)) {
  ------------------
  |  |  394|    466|#define HAS_ERROR(state) (state->errcode != PATHX_NOERROR)
  |  |  ------------------
  |  |  |  Branch (394:26): [True: 0, False: 466]
  |  |  ------------------
  ------------------
 2225|      0|                free_step(step);
 2226|      0|                goto error;
 2227|      0|            }
 2228|    466|            list_cons(locpath->steps, step);
  ------------------
  |  |   91|    466|    do {                                                                \
  |  |   92|    466|        typeof(elt) _e = (elt);                                         \
  |  |   93|    466|        _e->next = (list);                                              \
  |  |   94|    466|        (list) = _e;                                                    \
  |  |   95|    466|    } while(0)
  |  |  ------------------
  |  |  |  Branch (95:13): [Folded, False: 466]
  |  |  ------------------
  ------------------
 2229|    466|        }
 2230|  4.56k|    } else {
 2231|  4.56k|        locpath = parse_relative_location_path(state);
 2232|  4.56k|    }
 2233|       |
 2234|  5.21k|    if (ALLOC(expr) < 0)
  ------------------
  |  |   43|  5.21k|#define ALLOC(ptr) mem_alloc_n(&(ptr), sizeof(*(ptr)), 1)
  ------------------
  |  Branch (2234:9): [True: 0, False: 5.21k]
  ------------------
 2235|      0|        goto err_nomem;
 2236|  5.21k|    expr->tag = E_FILTER;
 2237|  5.21k|    expr->locpath = locpath;
 2238|  5.21k|    push_expr(expr, state);
 2239|  5.21k|    return;
 2240|       |
 2241|      0| err_nomem:
 2242|      0|    STATE_ENOMEM;
  ------------------
  |  |  396|      0|#define STATE_ENOMEM STATE_ERROR(state, PATHX_ENOMEM)
  |  |  ------------------
  |  |  |  |  388|      0|    do {                                                                \
  |  |  |  |  389|      0|        state->errcode = err;                                           \
  |  |  |  |  390|      0|        state->file = __FILE__;                                         \
  |  |  |  |  391|      0|        state->line = __LINE__;                                         \
  |  |  |  |  392|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (392:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2243|      0| error:
 2244|      0|    free_expr(expr);
 2245|      0|    free_locpath(locpath);
 2246|      0|    return;
 2247|      0|}
pathx.c:match:
 1812|  31.3k|static int match(struct state *state, char m) {
 1813|  31.3k|    skipws(state);
 1814|       |
 1815|  31.3k|    if (*state->pos == '\0')
  ------------------
  |  Branch (1815:9): [True: 1.35k, False: 30.0k]
  ------------------
 1816|  1.35k|        return 0;
 1817|  30.0k|    if (*state->pos == m) {
  ------------------
  |  Branch (1817:9): [True: 7.11k, False: 22.9k]
  ------------------
 1818|  7.11k|        state->pos += 1;
 1819|  7.11k|        return 1;
 1820|  7.11k|    }
 1821|  22.9k|    return 0;
 1822|  30.0k|}
pathx.c:push_new_binary_op:
 1923|  1.11k|static void push_new_binary_op(enum binary_op op, struct state *state) {
 1924|  1.11k|    struct expr *expr = NULL;
 1925|  1.11k|    if (ALLOC(expr) < 0) {
  ------------------
  |  |   43|  1.11k|#define ALLOC(ptr) mem_alloc_n(&(ptr), sizeof(*(ptr)), 1)
  ------------------
  |  Branch (1925:9): [True: 0, False: 1.11k]
  ------------------
 1926|      0|        STATE_ENOMEM;
  ------------------
  |  |  396|      0|#define STATE_ENOMEM STATE_ERROR(state, PATHX_ENOMEM)
  |  |  ------------------
  |  |  |  |  388|      0|    do {                                                                \
  |  |  |  |  389|      0|        state->errcode = err;                                           \
  |  |  |  |  390|      0|        state->file = __FILE__;                                         \
  |  |  |  |  391|      0|        state->line = __LINE__;                                         \
  |  |  |  |  392|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (392:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1927|      0|        return;
 1928|      0|    }
 1929|       |
 1930|  1.11k|    expr->tag = E_BINARY;
 1931|  1.11k|    expr->op  = op;
 1932|  1.11k|    expr->right = pop_expr(state);
 1933|  1.11k|    expr->left = pop_expr(state);
 1934|       |    expr->left_matched = false;  /* for 'else' operator only, true if any matches on LHS */
 1935|  1.11k|    push_expr(expr, state);
 1936|  1.11k|}
pathx.c:check_expr:
 1781|    977|static void check_expr(struct expr *expr, struct state *state) {
 1782|    977|    RET_ON_ERROR;
  ------------------
  |  |  382|    977|    if (state->errcode != PATHX_NOERROR) return
  |  |  ------------------
  |  |  |  Branch (382:9): [True: 0, False: 977]
  |  |  ------------------
  ------------------
 1783|    977|    switch(expr->tag) {
 1784|    652|    case E_FILTER:
  ------------------
  |  Branch (1784:5): [True: 652, False: 325]
  ------------------
 1785|    652|        check_filter(expr, state);
 1786|    652|        break;
 1787|    294|    case E_BINARY:
  ------------------
  |  Branch (1787:5): [True: 294, False: 683]
  ------------------
 1788|    294|        check_binary(expr, state);
 1789|    294|        break;
 1790|     21|    case E_VALUE:
  ------------------
  |  Branch (1790:5): [True: 21, False: 956]
  ------------------
 1791|     21|        expr->type = expr_value(expr, state)->tag;
 1792|     21|        break;
 1793|      0|    case E_VAR:
  ------------------
  |  Branch (1793:5): [True: 0, False: 977]
  ------------------
 1794|      0|        check_var(expr, state);
 1795|      0|        break;
 1796|     10|    case E_APP:
  ------------------
  |  Branch (1796:5): [True: 10, False: 967]
  ------------------
 1797|     10|        check_app(expr, state);
 1798|     10|        break;
 1799|      0|    default:
  ------------------
  |  Branch (1799:5): [True: 0, False: 977]
  ------------------
 1800|       |        assert(0);
  ------------------
  |  Branch (1800:9): [Folded, False: 0]
  |  Branch (1800:9): [Folded, False: 0]
  ------------------
 1801|    977|    }
 1802|    977|}
pathx.c:check_filter:
 1614|    652|static void check_filter(struct expr *expr, struct state *state) {
 1615|    652|    assert(expr->tag == E_FILTER);
  ------------------
  |  Branch (1615:5): [True: 0, False: 652]
  |  Branch (1615:5): [True: 652, False: 0]
  ------------------
 1616|    652|    struct locpath *locpath = expr->locpath;
 1617|       |
 1618|    652|    if (expr->primary != NULL) {
  ------------------
  |  Branch (1618:9): [True: 0, False: 652]
  ------------------
 1619|      0|        check_expr(expr->primary, state);
 1620|      0|        if (expr->primary->type != T_NODESET) {
  ------------------
  |  Branch (1620:13): [True: 0, False: 0]
  ------------------
 1621|      0|            STATE_ERROR(state, PATHX_ETYPE);
  ------------------
  |  |  388|      0|    do {                                                                \
  |  |  389|      0|        state->errcode = err;                                           \
  |  |  390|      0|        state->file = __FILE__;                                         \
  |  |  391|      0|        state->line = __LINE__;                                         \
  |  |  392|      0|    } while (0)
  |  |  ------------------
  |  |  |  Branch (392:14): [Folded, False: 0]
  |  |  ------------------
  ------------------
 1622|      0|            return;
 1623|      0|        }
 1624|      0|        check_preds(expr->predicates, state);
 1625|      0|        RET_ON_ERROR;
  ------------------
  |  |  382|      0|    if (state->errcode != PATHX_NOERROR) return
  |  |  ------------------
  |  |  |  Branch (382:9): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 1626|      0|    }
 1627|  4.01k|    list_for_each(s, locpath->steps) {
  ------------------
  |  |   38|  4.66k|    for (typeof(list) (iter) = list; (iter) != NULL; (iter) = (iter)->next)
  |  |  ------------------
  |  |  |  Branch (38:38): [True: 4.01k, False: 652]
  |  |  ------------------
  ------------------
 1628|  4.01k|        check_preds(s->predicates, state);
 1629|  4.01k|        RET_ON_ERROR;
  ------------------
  |  |  382|  4.01k|    if (state->errcode != PATHX_NOERROR) return
  |  |  ------------------
  |  |  |  Branch (382:9): [True: 0, False: 4.01k]
  |  |  ------------------
  ------------------
 1630|  4.01k|    }
 1631|    652|    expr->type = T_NODESET;
 1632|    652|}
pathx.c:check_preds:
 1599|  4.01k|static void check_preds(struct pred *pred, struct state *state) {
 1600|  4.01k|    if (pred == NULL)
  ------------------
  |  Branch (1600:9): [True: 3.97k, False: 40]
  ------------------
 1601|  3.97k|        return;
 1602|     80|    for (int i=0; i < pred->nexpr; i++) {
  ------------------
  |  Branch (1602:19): [True: 40, False: 40]
  ------------------
 1603|     40|        struct expr *e = pred->exprs[i];
 1604|     40|        check_expr(e, state);
 1605|     40|        RET_ON_ERROR;
  ------------------
  |  |  382|     40|    if (state->errcode != PATHX_NOERROR) return
  |  |  ------------------
  |  |  |  Branch (382:9): [True: 0, False: 40]
  |  |  ------------------
  ------------------
 1606|     40|        if (e->type != T_NODESET && e->type != T_NUMBER &&
  ------------------
  |  Branch (1606:13): [True: 28, False: 12]
  |  Branch (1606:37): [True: 8, False: 20]
  ------------------
 1607|      8|            e->type != T_BOOLEAN && e->type != T_STRING) {
  ------------------
  |  Branch (1607:13): [True: 0, False: 8]
  |  Branch (1607:37): [True: 0, False: 0]
  ------------------
 1608|      0|            STATE_ERROR(state, PATHX_ETYPE);
  ------------------
  |  |  388|      0|    do {                                                                \
  |  |  389|      0|        state->errcode = err;                                           \
  |  |  390|      0|        state->file = __FILE__;                                         \
  |  |  391|      0|        state->line = __LINE__;                                         \
  |  |  392|      0|    } while (0)
  |  |  ------------------
  |  |  |  Branch (392:14): [Folded, False: 0]
  |  |  ------------------
  ------------------
 1609|      0|            return;
 1610|      0|        }
 1611|     40|    }
 1612|     40|}
pathx.c:check_binary:
 1704|    294|static void check_binary(struct expr *expr, struct state *state) {
 1705|    294|    check_expr(expr->left, state);
 1706|    294|    check_expr(expr->right, state);
 1707|    294|    RET_ON_ERROR;
  ------------------
  |  |  382|    294|    if (state->errcode != PATHX_NOERROR) return
  |  |  ------------------
  |  |  |  Branch (382:9): [True: 0, False: 294]
  |  |  ------------------
  ------------------
 1708|       |
 1709|    294|    enum type l = expr->left->type;
 1710|    294|    enum type r = expr->right->type;
 1711|    294|    int  ok = 1;
 1712|    294|    enum type res;
 1713|       |
 1714|    294|    switch(expr->op) {
 1715|      1|    case OP_EQ:
  ------------------
  |  Branch (1715:5): [True: 1, False: 293]
  ------------------
 1716|      1|    case OP_NEQ:
  ------------------
  |  Branch (1716:5): [True: 0, False: 294]
  ------------------
 1717|      1|        ok = ((l == T_NODESET || l == T_STRING)
  ------------------
  |  Branch (1717:16): [True: 1, False: 0]
  |  Branch (1717:34): [True: 0, False: 0]
  ------------------
 1718|      1|              && (r == T_NODESET || r == T_STRING))
  ------------------
  |  Branch (1718:19): [True: 1, False: 0]
  |  Branch (1718:37): [True: 0, False: 0]
  ------------------
 1719|      0|            || (l == T_NUMBER && r == T_NUMBER);;
  ------------------
  |  Branch (1719:17): [True: 0, False: 0]
  |  Branch (1719:34): [True: 0, False: 0]
  ------------------
 1720|      1|        res = T_BOOLEAN;
 1721|      1|        break;
 1722|      0|    case OP_LT:
  ------------------
  |  Branch (1722:5): [True: 0, False: 294]
  ------------------
 1723|      0|    case OP_LE:
  ------------------
  |  Branch (1723:5): [True: 0, False: 294]
  ------------------
 1724|      0|    case OP_GT:
  ------------------
  |  Branch (1724:5): [True: 0, False: 294]
  ------------------
 1725|      0|    case OP_GE:
  ------------------
  |  Branch (1725:5): [True: 0, False: 294]
  ------------------
 1726|      0|        ok = (l == T_NUMBER && r == T_NUMBER)
  ------------------
  |  Branch (1726:15): [True: 0, False: 0]
  |  Branch (1726:32): [True: 0, False: 0]
  ------------------
 1727|      0|            || (l == T_STRING && r == T_STRING);
  ------------------
  |  Branch (1727:17): [True: 0, False: 0]
  |  Branch (1727:34): [True: 0, False: 0]
  ------------------
 1728|      0|        res = T_BOOLEAN;
 1729|      0|        break;
 1730|      0|    case OP_PLUS:
  ------------------
  |  Branch (1730:5): [True: 0, False: 294]
  ------------------
 1731|      0|        ok = (l == r && (l == T_NUMBER || l == T_STRING || l == T_REGEXP));
  ------------------
  |  Branch (1731:15): [True: 0, False: 0]
  |  Branch (1731:26): [True: 0, False: 0]
  |  Branch (1731:43): [True: 0, False: 0]
  |  Branch (1731:60): [True: 0, False: 0]
  ------------------
 1732|      0|        res = l;
 1733|      0|        break;
 1734|      0|    case OP_MINUS:
  ------------------
  |  Branch (1734:5): [True: 0, False: 294]
  ------------------
 1735|      0|    case OP_STAR:
  ------------------
  |  Branch (1735:5): [True: 0, False: 294]
  ------------------
 1736|      0|        ok =  (l == T_NUMBER && r == T_NUMBER);
  ------------------
  |  Branch (1736:16): [True: 0, False: 0]
  |  Branch (1736:33): [True: 0, False: 0]
  ------------------
 1737|      0|        res = T_NUMBER;
 1738|      0|        break;
 1739|    281|    case OP_UNION:
  ------------------
  |  Branch (1739:5): [True: 281, False: 13]
  ------------------
 1740|    281|        ok = (l == T_NODESET && r == T_NODESET);
  ------------------
  |  Branch (1740:15): [True: 281, False: 0]
  |  Branch (1740:33): [True: 281, False: 0]
  ------------------
 1741|    281|        res = T_NODESET;
 1742|    281|        break;
 1743|      2|    case OP_AND:
  ------------------
  |  Branch (1743:5): [True: 2, False: 292]
  ------------------
 1744|      2|    case OP_OR:
  ------------------
  |  Branch (1744:5): [True: 0, False: 294]
  ------------------
 1745|      2|        ok = 1;
 1746|      2|        res = T_BOOLEAN;
 1747|      2|        break;
 1748|      0|    case OP_ELSE:
  ------------------
  |  Branch (1748:5): [True: 0, False: 294]
  ------------------
 1749|      0|        if (l == T_NODESET && r == T_NODESET) {
  ------------------
  |  Branch (1749:13): [True: 0, False: 0]
  |  Branch (1749:31): [True: 0, False: 0]
  ------------------
 1750|      0|            res = T_NODESET;
 1751|      0|        } else {
 1752|      0|            res = T_BOOLEAN;
 1753|      0|        }
 1754|      0|        ok = 1;
 1755|      0|        break;
 1756|      0|    case OP_RE_MATCH:
  ------------------
  |  Branch (1756:5): [True: 0, False: 294]
  ------------------
 1757|     10|    case OP_RE_NOMATCH:
  ------------------
  |  Branch (1757:5): [True: 10, False: 284]
  ------------------
 1758|     10|        ok = ((l == T_STRING || l == T_NODESET) && r == T_REGEXP);
  ------------------
  |  Branch (1758:16): [True: 1, False: 9]
  |  Branch (1758:33): [True: 9, False: 0]
  |  Branch (1758:52): [True: 10, False: 0]
  ------------------
 1759|     10|        res = T_BOOLEAN;
 1760|     10|        break;
 1761|      0|    default:
  ------------------
  |  Branch (1761:5): [True: 0, False: 294]
  ------------------
 1762|      0|        assert(0);
  ------------------
  |  Branch (1762:9): [Folded, False: 0]
  |  Branch (1762:9): [Folded, False: 0]
  ------------------
 1763|    294|    }
 1764|    294|    if (! ok) {
  ------------------
  |  Branch (1764:9): [True: 0, False: 294]
  ------------------
 1765|      0|        STATE_ERROR(state, PATHX_ETYPE);
  ------------------
  |  |  388|      0|    do {                                                                \
  |  |  389|      0|        state->errcode = err;                                           \
  |  |  390|      0|        state->file = __FILE__;                                         \
  |  |  391|      0|        state->line = __LINE__;                                         \
  |  |  392|      0|    } while (0)
  |  |  ------------------
  |  |  |  Branch (392:14): [Folded, False: 0]
  |  |  ------------------
  ------------------
 1766|    294|    } else {
 1767|    294|        expr->type = res;
 1768|    294|    }
 1769|    294|}
pathx.c:check_app:
 1634|     10|static void check_app(struct expr *expr, struct state *state) {
 1635|     10|    assert(expr->tag == E_APP);
  ------------------
  |  Branch (1635:5): [True: 0, False: 10]
  |  Branch (1635:5): [True: 10, False: 0]
  ------------------
 1636|       |
 1637|     20|    for (int i=0; i < expr->func->arity; i++) {
  ------------------
  |  Branch (1637:19): [True: 10, False: 10]
  ------------------
 1638|     10|        check_expr(expr->args[i], state);
 1639|     10|        RET_ON_ERROR;
  ------------------
  |  |  382|     10|    if (state->errcode != PATHX_NOERROR) return
  |  |  ------------------
  |  |  |  Branch (382:9): [True: 0, False: 10]
  |  |  ------------------
  ------------------
 1640|     10|    }
 1641|       |
 1642|     10|    int f;
 1643|     60|    for (f=0; f < ARRAY_CARDINALITY(builtin_funcs); f++) {
  ------------------
  |  |  221|     60|#define ARRAY_CARDINALITY(array) (sizeof (array) / sizeof *(array))
  ------------------
  |  Branch (1643:15): [True: 60, False: 0]
  ------------------
 1644|     60|        const struct func *fn = builtin_funcs + f;
 1645|     60|        if (STRNEQ(expr->func->name, fn->name))
  ------------------
  |  |  227|     60|#define STRNEQ(a,b) (strcmp((a),(b)) != 0)
  |  |  ------------------
  |  |  |  Branch (227:21): [True: 40, False: 20]
  |  |  ------------------
  ------------------
 1646|     40|            continue;
 1647|     20|        if (expr->func->arity != fn->arity)
  ------------------
  |  Branch (1647:13): [True: 0, False: 20]
  ------------------
 1648|      0|            continue;
 1649|       |
 1650|     20|        int match = 1;
 1651|     30|        for (int i=0; i < expr->func->arity; i++) {
  ------------------
  |  Branch (1651:23): [True: 20, False: 10]
  ------------------
 1652|     20|            if (expr->args[i]->type != fn->arg_types[i]) {
  ------------------
  |  Branch (1652:17): [True: 10, False: 10]
  ------------------
 1653|     10|                match = 0;
 1654|     10|                break;
 1655|     10|            }
 1656|     20|        }
 1657|     20|        if (match)
  ------------------
  |  Branch (1657:13): [True: 10, False: 10]
  ------------------
 1658|     10|            break;
 1659|     20|    }
 1660|       |
 1661|     10|    if (f < ARRAY_CARDINALITY(builtin_funcs)) {
  ------------------
  |  |  221|     10|#define ARRAY_CARDINALITY(array) (sizeof (array) / sizeof *(array))
  ------------------
  |  Branch (1661:9): [True: 10, False: 0]
  ------------------
 1662|     10|        expr->func = builtin_funcs + f;
 1663|     10|        expr->type = expr->func->type;
 1664|     10|        expr->fold = expr->func->pure;
 1665|     10|        if (expr->fold) {
  ------------------
  |  Branch (1665:13): [True: 10, False: 0]
  ------------------
 1666|       |            /* We only do constant folding for invocations of pure functions
 1667|       |             * whose arguments are literal values. That misses opportunities
 1668|       |             * for constant folding, e.g., "regexp('foo' + 'bar')" but is
 1669|       |             * a bit simpler than doing full tracking of constants
 1670|       |             */
 1671|     20|            for (int i=0; i < expr->func->arity; i++) {
  ------------------
  |  Branch (1671:27): [True: 10, False: 10]
  ------------------
 1672|     10|                if (expr->args[i]->tag != E_VALUE)
  ------------------
  |  Branch (1672:21): [True: 10, False: 0]
  ------------------
 1673|     10|                    expr->fold = false;
 1674|     10|            }
 1675|     10|        }
 1676|     10|    } else {
 1677|      0|        STATE_ERROR(state, PATHX_ETYPE);
  ------------------
  |  |  388|      0|    do {                                                                \
  |  |  389|      0|        state->errcode = err;                                           \
  |  |  390|      0|        state->file = __FILE__;                                         \
  |  |  391|      0|        state->line = __LINE__;                                         \
  |  |  392|      0|    } while (0)
  |  |  ------------------
  |  |  |  Branch (392:14): [Folded, False: 0]
  |  |  ------------------
  ------------------
 1678|      0|    }
 1679|     10|}
pathx.c:store_error:
 2699|    371|static void store_error(struct pathx *pathx) {
 2700|    371|    const char *pathx_msg = NULL;
 2701|    371|    const char *path = pathx->state->txt;
 2702|    371|    const pathx_errcode_t errcode = pathx->state->errcode;
 2703|    371|    struct error *err = pathx->state->error;
 2704|       |
 2705|    371|    char *pos_str = pathx->state->errmsg;
 2706|    371|    pathx->state->errmsg = NULL;
 2707|       |
 2708|    371|    if (err == NULL || errcode == PATHX_NOERROR || err->code != AUG_NOERROR)
  ------------------
  |  Branch (2708:9): [True: 0, False: 371]
  |  Branch (2708:24): [True: 339, False: 32]
  |  Branch (2708:52): [True: 0, False: 32]
  ------------------
 2709|    339|        return;
 2710|       |
 2711|     32|    switch (errcode) {
 2712|      0|    case PATHX_ENOMEM:
  ------------------
  |  Branch (2712:5): [True: 0, False: 32]
  ------------------
 2713|      0|        err->code = AUG_ENOMEM;
 2714|      0|        break;
 2715|      0|    case PATHX_EMMATCH:
  ------------------
  |  Branch (2715:5): [True: 0, False: 32]
  ------------------
 2716|      0|        err->code = AUG_EMMATCH;
 2717|      0|        break;
 2718|      0|    case PATHX_ENOMATCH:
  ------------------
  |  Branch (2718:5): [True: 0, False: 32]
  ------------------
 2719|      0|        err->code = AUG_ENOMATCH;
 2720|      0|        break;
 2721|     32|    default:
  ------------------
  |  Branch (2721:5): [True: 32, False: 0]
  ------------------
 2722|     32|        err->code = AUG_EPATHX;
 2723|     32|        break;
 2724|     32|    }
 2725|       |
 2726|       |    /* We only need details for pathx syntax errors */
 2727|     32|    if (err->code != AUG_EPATHX)
  ------------------
  |  Branch (2727:9): [True: 0, False: 32]
  ------------------
 2728|      0|        return;
 2729|       |
 2730|     32|    int pos;
 2731|     32|    pathx_msg = pathx_error(pathx, NULL, &pos);
 2732|       |
 2733|     32|    bool has_msg = pos_str != NULL;
 2734|     32|    int pos_str_len = pos_str == NULL ? 0 : strlen(pos_str);
  ------------------
  |  Branch (2734:23): [True: 27, False: 5]
  ------------------
 2735|     32|    if (REALLOC_N(pos_str, pos_str_len + strlen(path) + 8) >= 0) {
  ------------------
  |  |   69|     32|#define REALLOC_N(ptr, count) mem_realloc_n(&(ptr), sizeof(*(ptr)), (count))
  ------------------
  |  Branch (2735:9): [True: 32, False: 0]
  ------------------
 2736|     32|        if (has_msg) {
  ------------------
  |  Branch (2736:13): [True: 5, False: 27]
  ------------------
 2737|      5|            strcat(pos_str, " in ");
 2738|      5|            strncat(pos_str, path, pos);
 2739|     27|        } else {
 2740|       |            /* initialize pos_str explicitly, path might be "" */
 2741|     27|            pos_str[0] = '\0';
 2742|     27|            strncat(pos_str, path, pos);
 2743|     27|        }
 2744|     32|        strcat(pos_str, "|=|");
 2745|     32|        strcat(pos_str, path + pos);
 2746|     32|    }
 2747|       |
 2748|     32|    err->minor = errcode;
 2749|     32|    err->details = pos_str;
 2750|       |    pos_str = NULL;
 2751|     32|    err->minor_details = pathx_msg;
 2752|     32|}
pathx.c:pathx_eval:
 2983|    344|static struct value *pathx_eval(struct pathx *pathx) {
 2984|    344|    struct state *state = pathx->state;
 2985|    344|    state->ctx = pathx->origin;
 2986|    344|    state->ctx_pos = 1;
 2987|    344|    state->ctx_len = 1;
 2988|    344|    eval_expr(state->exprs[0], state);
 2989|    344|    if (HAS_ERROR(state))
  ------------------
  |  |  394|    344|#define HAS_ERROR(state) (state->errcode != PATHX_NOERROR)
  |  |  ------------------
  |  |  |  Branch (394:26): [True: 5, False: 339]
  |  |  ------------------
  ------------------
 2990|      5|        return NULL;
 2991|       |
 2992|    339|    if (state->values_used != 1) {
  ------------------
  |  Branch (2992:9): [True: 0, False: 339]
  ------------------
 2993|      0|        STATE_ERROR(state, PATHX_EINTERNAL);
  ------------------
  |  |  388|      0|    do {                                                                \
  |  |  389|      0|        state->errcode = err;                                           \
  |  |  390|      0|        state->file = __FILE__;                                         \
  |  |  391|      0|        state->line = __LINE__;                                         \
  |  |  392|      0|    } while (0)
  |  |  ------------------
  |  |  |  Branch (392:14): [Folded, False: 0]
  |  |  ------------------
  ------------------
 2994|      0|        return NULL;
 2995|      0|    }
 2996|    339|    return pop_value(state);
 2997|    339|}
pathx.c:eval_expr:
 1550|  1.67k|static void eval_expr(struct expr *expr, struct state *state) {
 1551|  1.67k|    RET_ON_ERROR;
  ------------------
  |  |  382|  1.67k|    if (state->errcode != PATHX_NOERROR) return
  |  |  ------------------
  |  |  |  Branch (382:9): [True: 9, False: 1.66k]
  |  |  ------------------
  ------------------
 1552|  1.66k|    switch (expr->tag) {
 1553|  1.00k|    case E_FILTER:
  ------------------
  |  Branch (1553:5): [True: 1.00k, False: 667]
  ------------------
 1554|  1.00k|        eval_filter(expr, state);
 1555|  1.00k|        break;
 1556|    568|    case E_BINARY:
  ------------------
  |  Branch (1556:5): [True: 568, False: 1.09k]
  ------------------
 1557|    568|        eval_binary(expr, state);
 1558|    568|        break;
 1559|      1|    case E_VALUE:
  ------------------
  |  Branch (1559:5): [True: 1, False: 1.66k]
  ------------------
 1560|      1|        push_value(expr->value_ind, state);
 1561|      1|        break;
 1562|      0|    case E_VAR:
  ------------------
  |  Branch (1562:5): [True: 0, False: 1.66k]
  ------------------
 1563|      0|        eval_var(expr, state);
 1564|      0|        break;
 1565|     98|    case E_APP:
  ------------------
  |  Branch (1565:5): [True: 98, False: 1.56k]
  ------------------
 1566|     98|        eval_app(expr, state);
 1567|     98|        RET_ON_ERROR;
  ------------------
  |  |  382|     98|    if (state->errcode != PATHX_NOERROR) return
  |  |  ------------------
  |  |  |  Branch (382:9): [True: 5, False: 93]
  |  |  ------------------
  ------------------
 1568|     93|        if (expr->fold) {
  ------------------
  |  Branch (1568:13): [True: 0, False: 93]
  ------------------
 1569|       |            /* Do constant folding: replace the function application with
 1570|       |             * a reference to the value that resulted from evaluating it */
 1571|      0|            for (int i=0; i < expr->func->arity; i++)
  ------------------
  |  Branch (1571:27): [True: 0, False: 0]
  ------------------
 1572|      0|                free_expr(expr->args[i]);
 1573|      0|            free(expr->args);
 1574|      0|            value_ind_t vind = state->values_used - 1;
 1575|      0|            expr->tag = E_VALUE;
 1576|      0|            expr->value_ind = state->values[vind];
 1577|      0|            if (expr->value_ind >= state->value_pool_pinned)
  ------------------
  |  Branch (1577:17): [True: 0, False: 0]
  ------------------
 1578|      0|                state->value_pool_pinned = expr->value_ind + 1;
 1579|      0|        }
 1580|     93|        break;
 1581|      0|    default:
  ------------------
  |  Branch (1581:5): [True: 0, False: 1.66k]
  ------------------
 1582|       |        assert(0);
  ------------------
  |  Branch (1582:9): [Folded, False: 0]
  |  Branch (1582:9): [Folded, False: 0]
  ------------------
 1583|  1.66k|    }
 1584|  1.66k|}
pathx.c:eval_filter:
 1493|  1.00k|static void eval_filter(struct expr *expr, struct state *state) {
 1494|  1.00k|    struct locpath *lp = expr->locpath;
 1495|  1.00k|    struct nodeset **ns = NULL;
 1496|  1.00k|    struct locpath_trace *lpt = state->locpath_trace;
 1497|  1.00k|    uint maxns;
 1498|       |
 1499|  1.00k|    state->locpath_trace = NULL;
 1500|  1.00k|    if (expr->primary == NULL) {
  ------------------
  |  Branch (1500:9): [True: 1.00k, False: 0]
  ------------------
 1501|  1.00k|        ns_from_locpath(lp, &maxns, &ns, NULL, state);
 1502|  1.00k|    } else {
 1503|      0|        eval_expr(expr->primary, state);
 1504|      0|        RET_ON_ERROR;
  ------------------
  |  |  382|      0|    if (state->errcode != PATHX_NOERROR) return
  |  |  ------------------
  |  |  |  Branch (382:9): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 1505|      0|        value_ind_t primary_ind = pop_value_ind(state);
 1506|      0|        struct value *primary = state->value_pool + primary_ind;
 1507|      0|        assert(primary->tag == T_NODESET);
  ------------------
  |  Branch (1507:9): [True: 0, False: 0]
  |  Branch (1507:9): [True: 0, False: 0]
  ------------------
 1508|      0|        ns_filter(primary->nodeset, expr->predicates, state);
 1509|       |        /* Evaluating predicates might have reallocated the value_pool */
 1510|      0|        primary = state->value_pool + primary_ind;
 1511|      0|        ns_from_locpath(lp, &maxns, &ns, primary->nodeset, state);
 1512|      0|    }
 1513|  1.00k|    RET_ON_ERROR;
  ------------------
  |  |  382|  1.00k|    if (state->errcode != PATHX_NOERROR) return
  |  |  ------------------
  |  |  |  Branch (382:9): [True: 4, False: 996]
  |  |  ------------------
  ------------------
 1514|       |
 1515|    996|    value_ind_t vind = make_value(T_NODESET, state);
 1516|    996|    RET_ON_ERROR;
  ------------------
  |  |  382|    996|    if (state->errcode != PATHX_NOERROR) return
  |  |  ------------------
  |  |  |  Branch (382:9): [True: 0, False: 996]
  |  |  ------------------
  ------------------
 1517|    996|    state->value_pool[vind].nodeset = ns[maxns];
 1518|    996|    push_value(vind, state);
 1519|       |
 1520|    996|    if (lpt != NULL) {
  ------------------
  |  Branch (1520:9): [True: 100, False: 896]
  ------------------
 1521|    100|        assert(lpt->ns == NULL);
  ------------------
  |  Branch (1521:9): [True: 0, False: 100]
  |  Branch (1521:9): [True: 100, False: 0]
  ------------------
 1522|    100|        assert(lpt->lp == NULL);
  ------------------
  |  Branch (1522:9): [True: 0, False: 100]
  |  Branch (1522:9): [True: 100, False: 0]
  ------------------
 1523|    100|        lpt->maxns = maxns;
 1524|    100|        lpt->ns = ns;
 1525|    100|        lpt->lp = lp;
 1526|    100|        state->locpath_trace = lpt;
 1527|    896|    } else {
 1528|  2.82k|        for (int i=0; i < maxns; i++)
  ------------------
  |  Branch (1528:23): [True: 1.93k, False: 896]
  ------------------
 1529|  1.93k|            free_nodeset(ns[i]);
 1530|       |        FREE(ns);
  ------------------
  |  |   79|    896|  do {                                          \
  |  |   80|    896|    free(ptr);                                  \
  |  |   81|    896|    (ptr) = NULL;                               \
  |  |   82|    896|  } while(0)
  |  |  ------------------
  |  |  |  Branch (82:11): [Folded, False: 896]
  |  |  ------------------
  ------------------
 1531|    896|    }
 1532|    996|}
pathx.c:ns_from_locpath:
 1419|  1.00k|                            struct state *state) {
 1420|  1.00k|    struct tree *old_ctx = state->ctx;
 1421|  1.00k|    *maxns = 0;
 1422|       |
 1423|  1.00k|    ensure(lp != NULL, state);
  ------------------
  |  |   98|  1.00k|    if (!(cond)) {                                                   \
  |  |  ------------------
  |  |  |  Branch (98:9): [True: 0, False: 1.00k]
  |  |  ------------------
  |  |   99|      0|        bug_on((obj)->error, __FILE__, __LINE__, NULL);              \
  |  |  100|      0|        goto error;                                                  \
  |  |  101|      0|    }
  ------------------
 1424|       |
 1425|  1.00k|    *ns = NULL;
 1426|  1.00k|    list_for_each(step, lp->steps)
  ------------------
  |  |   38|  3.38k|    for (typeof(list) (iter) = list; (iter) != NULL; (iter) = (iter)->next)
  |  |  ------------------
  |  |  |  Branch (38:38): [True: 2.38k, False: 1.00k]
  |  |  ------------------
  ------------------
 1427|  2.38k|        *maxns += 1;
 1428|  1.00k|    if (ALLOC_N(*ns, *maxns+1) < 0) {
  ------------------
  |  |   56|  1.00k|#define ALLOC_N(ptr, count) mem_alloc_n(&(ptr), sizeof(*(ptr)), (count))
  ------------------
  |  Branch (1428:9): [True: 0, False: 1.00k]
  ------------------
 1429|      0|        STATE_ERROR(state, PATHX_ENOMEM);
  ------------------
  |  |  388|      0|    do {                                                                \
  |  |  389|      0|        state->errcode = err;                                           \
  |  |  390|      0|        state->file = __FILE__;                                         \
  |  |  391|      0|        state->line = __LINE__;                                         \
  |  |  392|      0|    } while (0)
  |  |  ------------------
  |  |  |  Branch (392:14): [Folded, False: 0]
  |  |  ------------------
  ------------------
 1430|      0|        goto error;
 1431|      0|    }
 1432|  4.38k|    for (int i=0; i <= *maxns; i++) {
  ------------------
  |  Branch (1432:19): [True: 3.38k, False: 1.00k]
  ------------------
 1433|  3.38k|        (*ns)[i] = make_nodeset(state);
 1434|  3.38k|        if (HAS_ERROR(state))
  ------------------
  |  |  394|  3.38k|#define HAS_ERROR(state) (state->errcode != PATHX_NOERROR)
  |  |  ------------------
  |  |  |  Branch (394:26): [True: 0, False: 3.38k]
  |  |  ------------------
  ------------------
 1435|      0|            goto error;
 1436|  3.38k|    }
 1437|       |
 1438|  1.00k|    if (root == NULL) {
  ------------------
  |  Branch (1438:9): [True: 1.00k, False: 0]
  ------------------
 1439|  1.00k|        struct step *first_step = NULL;
 1440|  1.00k|        first_step = lp->steps;
 1441|       |
 1442|  1.00k|        struct tree *root_tree;
 1443|  1.00k|        root_tree = step_root(first_step, state->ctx, state->root_ctx);
 1444|  1.00k|        ns_add((*ns)[0], root_tree, state);
 1445|  1.00k|        ns_clear_added((*ns)[0]);
 1446|  1.00k|    } else {
 1447|      0|        for (int i=0; i < root->used; i++)
  ------------------
  |  Branch (1447:23): [True: 0, False: 0]
  ------------------
 1448|      0|            ns_add((*ns)[0], root->nodes[i], state);
 1449|      0|        ns_clear_added((*ns)[0]);
 1450|      0|    }
 1451|       |
 1452|  1.00k|    if (HAS_ERROR(state))
  ------------------
  |  |  394|  1.00k|#define HAS_ERROR(state) (state->errcode != PATHX_NOERROR)
  |  |  ------------------
  |  |  |  Branch (394:26): [True: 0, False: 1.00k]
  |  |  ------------------
  ------------------
 1453|      0|        goto error;
 1454|       |
 1455|  1.00k|    uint cur_ns = 0;
 1456|  2.38k|    list_for_each(step, lp->steps) {
  ------------------
  |  |   38|  3.38k|    for (typeof(list) (iter) = list; (iter) != NULL; (iter) = (iter)->next)
  |  |  ------------------
  |  |  |  Branch (38:38): [True: 2.38k, False: 996]
  |  |  ------------------
  ------------------
 1457|  2.38k|        struct nodeset *work = (*ns)[cur_ns];
 1458|  2.38k|        struct nodeset *next = (*ns)[cur_ns + 1];
 1459|  2.38k|        if (position_pred(step->predicates)) {
  ------------------
  |  Branch (1459:13): [True: 20, False: 2.36k]
  ------------------
 1460|     20|            struct tree *node = position_filter(work, step, state);
 1461|     20|            if (node) {
  ------------------
  |  Branch (1461:17): [True: 0, False: 20]
  ------------------
 1462|      0|                ns_add(next, node, state);
 1463|      0|                ns_clear_added(next);
 1464|      0|            }
 1465|  2.36k|        } else {
 1466|  4.75k|            for (int i=0; i < work->used; i++) {
  ------------------
  |  Branch (1466:27): [True: 2.39k, False: 2.36k]
  ------------------
 1467|  2.39k|                for (struct tree *node = step_first(step, work->nodes[i]);
 1468|  4.34k|                     node != NULL;
  ------------------
  |  Branch (1468:22): [True: 1.95k, False: 2.39k]
  ------------------
 1469|  2.39k|                     node = step_next(step, work->nodes[i], node)) {
 1470|  1.95k|                    ns_add(next, node, state);
 1471|  1.95k|                }
 1472|  2.39k|            }
 1473|  2.36k|            ns_clear_added(next);
 1474|  2.36k|            ns_filter(next, step->predicates, state);
 1475|  2.36k|            if (HAS_ERROR(state))
  ------------------
  |  |  394|  2.36k|#define HAS_ERROR(state) (state->errcode != PATHX_NOERROR)
  |  |  ------------------
  |  |  |  Branch (394:26): [True: 4, False: 2.36k]
  |  |  ------------------
  ------------------
 1476|      4|                goto error;
 1477|  2.36k|        }
 1478|  2.38k|        cur_ns += 1;
 1479|  2.38k|    }
 1480|       |
 1481|    996|    state->ctx = old_ctx;
 1482|    996|    return;
 1483|      4| error:
 1484|      4|    if (*ns != NULL) {
  ------------------
  |  Branch (1484:9): [True: 4, False: 0]
  ------------------
 1485|     16|        for (int i=0; i <= *maxns; i++)
  ------------------
  |  Branch (1485:23): [True: 12, False: 4]
  ------------------
 1486|     12|            free_nodeset((*ns)[i]);
 1487|       |        FREE(*ns);
  ------------------
  |  |   79|      4|  do {                                          \
  |  |   80|      4|    free(ptr);                                  \
  |  |   81|      4|    (ptr) = NULL;                               \
  |  |   82|      4|  } while(0)
  |  |  ------------------
  |  |  |  Branch (82:11): [Folded, False: 4]
  |  |  ------------------
  ------------------
 1488|      4|    }
 1489|      4|    state->ctx = old_ctx;
 1490|      4|    return;
 1491|  1.00k|}
pathx.c:make_nodeset:
  522|  3.38k|static struct nodeset *make_nodeset(struct state *state) {
  523|  3.38k|    struct nodeset *result;
  524|  3.38k|    if (ALLOC(result) < 0)
  ------------------
  |  |   43|  3.38k|#define ALLOC(ptr) mem_alloc_n(&(ptr), sizeof(*(ptr)), 1)
  ------------------
  |  Branch (524:9): [True: 0, False: 3.38k]
  ------------------
  525|  3.38k|        STATE_ENOMEM;
  ------------------
  |  |  396|      0|#define STATE_ENOMEM STATE_ERROR(state, PATHX_ENOMEM)
  |  |  ------------------
  |  |  |  |  388|      0|    do {                                                                \
  |  |  |  |  389|      0|        state->errcode = err;                                           \
  |  |  |  |  390|      0|        state->file = __FILE__;                                         \
  |  |  |  |  391|      0|        state->line = __LINE__;                                         \
  |  |  |  |  392|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (392:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  526|  3.38k|    return result;
  527|  3.38k|}
pathx.c:step_root:
 2868|  1.00k|                              struct tree *root_ctx) {
 2869|  1.00k|    struct tree *node = NULL;
 2870|  1.00k|    switch (step->axis) {
 2871|      0|    case SELF:
  ------------------
  |  Branch (2871:5): [True: 0, False: 1.00k]
  ------------------
 2872|    598|    case CHILD:
  ------------------
  |  Branch (2872:5): [True: 598, False: 402]
  ------------------
 2873|    598|    case SEQ:
  ------------------
  |  Branch (2873:5): [True: 0, False: 1.00k]
  ------------------
 2874|    598|    case DESCENDANT:
  ------------------
  |  Branch (2874:5): [True: 0, False: 1.00k]
  ------------------
 2875|    598|    case PARENT:
  ------------------
  |  Branch (2875:5): [True: 0, False: 1.00k]
  ------------------
 2876|    598|    case ANCESTOR:
  ------------------
  |  Branch (2876:5): [True: 0, False: 1.00k]
  ------------------
 2877|    598|    case PRECEDING_SIBLING:
  ------------------
  |  Branch (2877:5): [True: 0, False: 1.00k]
  ------------------
 2878|    598|    case FOLLOWING_SIBLING:
  ------------------
  |  Branch (2878:5): [True: 0, False: 1.00k]
  ------------------
 2879|       |        /* only use root_ctx when ctx is the absolute tree root */
 2880|    598|        if (ctx == ctx->parent && root_ctx != NULL)
  ------------------
  |  Branch (2880:13): [True: 20, False: 578]
  |  Branch (2880:35): [True: 20, False: 0]
  ------------------
 2881|     20|            node = root_ctx;
 2882|    578|        else
 2883|    578|            node = ctx;
 2884|    598|        break;
 2885|    375|    case ROOT:
  ------------------
  |  Branch (2885:5): [True: 375, False: 625]
  ------------------
 2886|    402|    case DESCENDANT_OR_SELF:
  ------------------
  |  Branch (2886:5): [True: 27, False: 973]
  ------------------
 2887|    402|        node = ctx;
 2888|    402|        break;
 2889|      0|    default:
  ------------------
  |  Branch (2889:5): [True: 0, False: 1.00k]
  ------------------
 2890|      0|        assert(0);
  ------------------
  |  Branch (2890:9): [Folded, False: 0]
  |  Branch (2890:9): [Folded, False: 0]
  ------------------
 2891|  1.00k|    }
 2892|  1.00k|    if (node == NULL)
  ------------------
  |  Branch (2892:9): [True: 0, False: 1.00k]
  ------------------
 2893|      0|        return NULL;
 2894|  1.00k|    return node;
 2895|  1.00k|}
pathx.c:ns_add:
  534|  3.09k|                   struct state *state) {
  535|  3.09k|    if (node->added)
  ------------------
  |  Branch (535:9): [True: 22, False: 3.06k]
  ------------------
  536|     22|        return;
  537|  3.06k|    if (ns->used >= ns->size) {
  ------------------
  |  Branch (537:9): [True: 2.17k, False: 895]
  ------------------
  538|  2.17k|        size_t size = 2 * ns->size;
  539|  2.17k|        if (size < 10) size = 10;
  ------------------
  |  Branch (539:13): [True: 2.10k, False: 72]
  ------------------
  540|  2.17k|        if (REALLOC_N(ns->nodes, size) < 0) {
  ------------------
  |  |   69|  2.17k|#define REALLOC_N(ptr, count) mem_realloc_n(&(ptr), sizeof(*(ptr)), (count))
  ------------------
  |  Branch (540:13): [True: 0, False: 2.17k]
  ------------------
  541|      0|            STATE_ENOMEM;
  ------------------
  |  |  396|      0|#define STATE_ENOMEM STATE_ERROR(state, PATHX_ENOMEM)
  |  |  ------------------
  |  |  |  |  388|      0|    do {                                                                \
  |  |  |  |  389|      0|        state->errcode = err;                                           \
  |  |  |  |  390|      0|        state->file = __FILE__;                                         \
  |  |  |  |  391|      0|        state->line = __LINE__;                                         \
  |  |  |  |  392|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (392:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  542|      0|            return;
  543|      0|        }
  544|  2.17k|        ns->size = size;
  545|  2.17k|    }
  546|  3.06k|    ns->nodes[ns->used] = node;
  547|  3.06k|    node->added = 1;
  548|  3.06k|    ns->used += 1;
  549|  3.06k|}
pathx.c:ns_clear_added:
  551|  3.82k|static void ns_clear_added(struct nodeset *ns) {
  552|  8.33k|    for (int i=0; i < ns->used; i++)
  ------------------
  |  Branch (552:19): [True: 4.51k, False: 3.82k]
  ------------------
  553|  4.51k|        ns->nodes[i]->added = 0;
  554|  3.82k|}
pathx.c:position_pred:
 1378|  2.38k|static bool position_pred(struct pred *pred) {
 1379|  2.38k|    return pred != NULL &&
  ------------------
  |  Branch (1379:12): [True: 123, False: 2.26k]
  ------------------
 1380|    123|        pred->nexpr == 1 &&
  ------------------
  |  Branch (1380:9): [True: 123, False: 0]
  ------------------
 1381|    123|        pred->exprs[0]->tag == E_VALUE &&
  ------------------
  |  Branch (1381:9): [True: 20, False: 103]
  ------------------
 1382|     20|        pred->exprs[0]->type == T_NUMBER;
  ------------------
  |  Branch (1382:9): [True: 20, False: 0]
  ------------------
 1383|  2.38k|}
pathx.c:position_filter:
 1394|     20|                                    struct state *state) {
 1395|     20|    int value_ind = step->predicates->exprs[0]->value_ind;
 1396|     20|    int number = state->value_pool[value_ind].number;
 1397|       |
 1398|     20|    int pos = 1;
 1399|     35|    for (int i=0; i < ns->used; i++) {
  ------------------
  |  Branch (1399:19): [True: 15, False: 20]
  ------------------
 1400|     15|        for (struct tree *node = step_first(step, ns->nodes[i]);
 1401|     45|             node != NULL;
  ------------------
  |  Branch (1401:14): [True: 30, False: 15]
  ------------------
 1402|     30|             node = step_next(step, ns->nodes[i], node), pos++) {
 1403|     30|            if (pos == number)
  ------------------
  |  Branch (1403:17): [True: 0, False: 30]
  ------------------
 1404|      0|                return node;
 1405|     30|        }
 1406|     15|    }
 1407|       |
 1408|     20|    return NULL;
 1409|     20|}
pathx.c:step_first:
 2897|  2.40k|static struct tree *step_first(struct step *step, struct tree *ctx) {
 2898|  2.40k|    struct tree *node = NULL;
 2899|  2.40k|    switch (step->axis) {
 2900|      0|    case SELF:
  ------------------
  |  Branch (2900:5): [True: 0, False: 2.40k]
  ------------------
 2901|     39|    case DESCENDANT_OR_SELF:
  ------------------
  |  Branch (2901:5): [True: 39, False: 2.36k]
  ------------------
 2902|     39|        node = ctx;
 2903|     39|        break;
 2904|  1.99k|    case CHILD:
  ------------------
  |  Branch (2904:5): [True: 1.99k, False: 414]
  ------------------
 2905|  1.99k|    case SEQ:
  ------------------
  |  Branch (2905:5): [True: 0, False: 2.40k]
  ------------------
 2906|  1.99k|    case DESCENDANT:
  ------------------
  |  Branch (2906:5): [True: 0, False: 2.40k]
  ------------------
 2907|  1.99k|        node = ctx->children;
 2908|  1.99k|        break;
 2909|      0|    case PARENT:
  ------------------
  |  Branch (2909:5): [True: 0, False: 2.40k]
  ------------------
 2910|      0|    case ANCESTOR:
  ------------------
  |  Branch (2910:5): [True: 0, False: 2.40k]
  ------------------
 2911|      0|        node = ctx->parent;
 2912|      0|        break;
 2913|    375|    case ROOT:
  ------------------
  |  Branch (2913:5): [True: 375, False: 2.03k]
  ------------------
 2914|    377|        while (ctx->parent != ctx)
  ------------------
  |  Branch (2914:16): [True: 2, False: 375]
  ------------------
 2915|      2|            ctx = ctx->parent;
 2916|    375|        node = ctx;
 2917|    375|        break;
 2918|      0|    case PRECEDING_SIBLING:
  ------------------
  |  Branch (2918:5): [True: 0, False: 2.40k]
  ------------------
 2919|      0|        node = tree_prev(ctx);
 2920|      0|        break;
 2921|      0|    case FOLLOWING_SIBLING:
  ------------------
  |  Branch (2921:5): [True: 0, False: 2.40k]
  ------------------
 2922|      0|        node = ctx->next;
 2923|      0|        break;
 2924|      0|    default:
  ------------------
  |  Branch (2924:5): [True: 0, False: 2.40k]
  ------------------
 2925|      0|        assert(0);
  ------------------
  |  Branch (2925:9): [Folded, False: 0]
  |  Branch (2925:9): [Folded, False: 0]
  ------------------
 2926|  2.40k|    }
 2927|  2.40k|    if (node == NULL)
  ------------------
  |  Branch (2927:9): [True: 946, False: 1.46k]
  ------------------
 2928|    946|        return NULL;
 2929|  1.46k|    if (step_matches(step, node))
  ------------------
  |  Branch (2929:9): [True: 778, False: 682]
  ------------------
 2930|    778|        return node;
 2931|    682|    return step_next(step, ctx, node);
 2932|  1.46k|}
pathx.c:step_matches:
 2834|  3.97k|static bool step_matches(struct step *step, struct tree *tree) {
 2835|  3.97k|    if ( step->axis == SEQ && step->name == NULL ) {
  ------------------
  |  Branch (2835:10): [True: 0, False: 3.97k]
  |  Branch (2835:31): [True: 0, False: 0]
  ------------------
 2836|      0|        if ( tree->label == NULL )
  ------------------
  |  Branch (2836:14): [True: 0, False: 0]
  ------------------
 2837|      0|            return false;
 2838|       |        /* label matches if it consists of numeric digits only */
 2839|      0|        for( char *s = tree->label; *s ; s++) {
  ------------------
  |  Branch (2839:37): [True: 0, False: 0]
  ------------------
 2840|      0|            if ( ! isdigit((unsigned char) *s) )
  ------------------
  |  Branch (2840:18): [True: 0, False: 0]
  ------------------
 2841|      0|                return false;
 2842|      0|        }
 2843|      0|        return true;
 2844|  3.97k|    } else if (step->name == NULL) {
  ------------------
  |  Branch (2844:16): [True: 1.38k, False: 2.59k]
  ------------------
 2845|  1.38k|        return step->axis == ROOT || tree->label != NULL;
  ------------------
  |  Branch (2845:16): [True: 375, False: 1.01k]
  |  Branch (2845:38): [True: 984, False: 27]
  ------------------
 2846|  2.59k|    } else {
 2847|  2.59k|        return streqx(step->name, tree->label);
 2848|  2.59k|    }
 2849|  3.97k|}
pathx.c:streqx:
  303|  2.59k|static inline int streqx(const char *s1, const char *s2) {
  304|  2.59k|    if (s1 == NULL)
  ------------------
  |  Branch (304:9): [True: 0, False: 2.59k]
  ------------------
  305|      0|        return (s2 == NULL || strlen(s2) == 0);
  ------------------
  |  Branch (305:17): [True: 0, False: 0]
  |  Branch (305:31): [True: 0, False: 0]
  ------------------
  306|  2.59k|    if (s2 == NULL)
  ------------------
  |  Branch (306:9): [True: 0, False: 2.59k]
  ------------------
  307|      0|        return strlen(s1) == 0;
  308|  2.59k|    return STREQ(s1, s2);
  ------------------
  |  |  224|  2.59k|#define STREQ(a,b) (strcmp((a),(b)) == 0)
  ------------------
  309|  2.59k|}
pathx.c:step_next:
 2935|  2.66k|                              struct tree *node) {
 2936|  5.43k|    while (node != NULL) {
  ------------------
  |  Branch (2936:12): [True: 3.97k, False: 1.46k]
  ------------------
 2937|  3.97k|        switch (step->axis) {
 2938|      0|        case SELF:
  ------------------
  |  Branch (2938:9): [True: 0, False: 3.97k]
  ------------------
 2939|      0|            node = NULL;
 2940|      0|            break;
 2941|      0|        case SEQ:
  ------------------
  |  Branch (2941:9): [True: 0, False: 3.97k]
  ------------------
 2942|  2.90k|        case CHILD:
  ------------------
  |  Branch (2942:9): [True: 2.90k, False: 1.07k]
  ------------------
 2943|  2.90k|            node = node->next;
 2944|  2.90k|            break;
 2945|      0|        case DESCENDANT:
  ------------------
  |  Branch (2945:9): [True: 0, False: 3.97k]
  ------------------
 2946|    699|        case DESCENDANT_OR_SELF:
  ------------------
  |  Branch (2946:9): [True: 699, False: 3.27k]
  ------------------
 2947|    699|            if (node->children != NULL) {
  ------------------
  |  Branch (2947:17): [True: 197, False: 502]
  ------------------
 2948|    197|                node = node->children;
 2949|    502|            } else {
 2950|    699|                while (node->next == NULL && node != ctx)
  ------------------
  |  Branch (2950:24): [True: 224, False: 475]
  |  Branch (2950:46): [True: 197, False: 27]
  ------------------
 2951|    197|                    node = node->parent;
 2952|    502|                if (node == ctx)
  ------------------
  |  Branch (2952:21): [True: 39, False: 463]
  ------------------
 2953|     39|                    node = NULL;
 2954|    463|                else
 2955|    463|                    node = node->next;
 2956|    502|            }
 2957|    699|            break;
 2958|      0|        case PARENT:
  ------------------
  |  Branch (2958:9): [True: 0, False: 3.97k]
  ------------------
 2959|    375|        case ROOT:
  ------------------
  |  Branch (2959:9): [True: 375, False: 3.60k]
  ------------------
 2960|    375|            node = NULL;
 2961|    375|            break;
 2962|      0|        case ANCESTOR:
  ------------------
  |  Branch (2962:9): [True: 0, False: 3.97k]
  ------------------
 2963|      0|            if (node->parent == node)
  ------------------
  |  Branch (2963:17): [True: 0, False: 0]
  ------------------
 2964|      0|                node = NULL;
 2965|      0|            else
 2966|      0|                node = node->parent;
 2967|      0|            break;
 2968|      0|        case PRECEDING_SIBLING:
  ------------------
  |  Branch (2968:9): [True: 0, False: 3.97k]
  ------------------
 2969|      0|            node = tree_prev(node);
 2970|      0|            break;
 2971|      0|        case FOLLOWING_SIBLING:
  ------------------
  |  Branch (2971:9): [True: 0, False: 3.97k]
  ------------------
 2972|      0|            node = node->next;
 2973|      0|            break;
 2974|      0|        default:
  ------------------
  |  Branch (2974:9): [True: 0, False: 3.97k]
  ------------------
 2975|      0|            assert(0);
  ------------------
  |  Branch (2975:13): [Folded, False: 0]
  |  Branch (2975:13): [Folded, False: 0]
  ------------------
 2976|  3.97k|        }
 2977|  3.97k|        if (node != NULL && step_matches(step, node))
  ------------------
  |  Branch (2977:13): [True: 2.51k, False: 1.46k]
  |  Branch (2977:29): [True: 1.20k, False: 1.31k]
  ------------------
 2978|  1.20k|            break;
 2979|  3.97k|    }
 2980|  2.66k|    return node;
 2981|  2.66k|}
pathx.c:ns_filter:
 1325|  2.36k|                      struct state *state) {
 1326|  2.36k|    if (predicates == NULL)
  ------------------
  |  Branch (1326:9): [True: 2.26k, False: 103]
  ------------------
 1327|  2.26k|        return;
 1328|       |
 1329|    103|    struct tree *old_ctx = state->ctx;
 1330|    103|    uint old_ctx_len = state->ctx_len;
 1331|    103|    uint old_ctx_pos = state->ctx_pos;
 1332|       |
 1333|    202|    for (int p=0; p < predicates->nexpr; p++) {
  ------------------
  |  Branch (1333:19): [True: 103, False: 99]
  ------------------
 1334|    103|        if ( state->has_else) {
  ------------------
  |  Branch (1334:14): [True: 0, False: 103]
  ------------------
 1335|      0|            for (int i=0; i < ns->used; i++) {
  ------------------
  |  Branch (1335:27): [True: 0, False: 0]
  ------------------
 1336|       |                /* 1st pass, check if any else statements have match on the left */
 1337|       |                /* Don't delete any nodes (yet) */
 1338|      0|                state->ctx = ns->nodes[i];
 1339|      0|                eval_pred(predicates->exprs[p], state);
 1340|      0|            }
 1341|      0|        }
 1342|    103|        int first_bad = -1;  /* The index of the first non-matching node */
 1343|    103|        state->ctx_len = ns->used;
 1344|    103|        state->ctx_pos = 1;
 1345|    197|        for (int i=0; i < ns->used; state->ctx_pos++) {
  ------------------
  |  Branch (1345:23): [True: 98, False: 99]
  ------------------
 1346|     98|            state->ctx = ns->nodes[i];
 1347|     98|            bool match = eval_pred(predicates->exprs[p], state);
 1348|     98|            RET_ON_ERROR;
  ------------------
  |  |  382|     98|    if (state->errcode != PATHX_NOERROR) return
  |  |  ------------------
  |  |  |  Branch (382:9): [True: 4, False: 94]
  |  |  ------------------
  ------------------
 1349|       |            /* We remove non-matching nodes from NS in batches; this logic
 1350|       |             * makes sure that we only call ns_remove at the end of a run
 1351|       |             * of non-matching nodes
 1352|       |             */
 1353|     94|            if (match) {
  ------------------
  |  Branch (1353:17): [True: 84, False: 10]
  ------------------
 1354|     84|                if (first_bad >= 0) {
  ------------------
  |  Branch (1354:21): [True: 4, False: 80]
  ------------------
 1355|      4|                    ns_remove(ns, first_bad, i - first_bad);
 1356|      4|                    i = first_bad + 1;
 1357|     80|                } else {
 1358|     80|                    i += 1;
 1359|     80|                }
 1360|     84|                first_bad = -1;
 1361|     84|            } else {
 1362|     10|                if (first_bad == -1)
  ------------------
  |  Branch (1362:21): [True: 5, False: 5]
  ------------------
 1363|      5|                    first_bad = i;
 1364|     10|                i += 1;
 1365|     10|            }
 1366|     94|        }
 1367|     99|        if (first_bad >= 0) {
  ------------------
  |  Branch (1367:13): [True: 1, False: 98]
  ------------------
 1368|      1|            ns_remove(ns, first_bad, ns->used - first_bad);
 1369|      1|        }
 1370|     99|    }
 1371|       |
 1372|     99|    state->ctx = old_ctx;
 1373|     99|    state->ctx_pos = old_ctx_pos;
 1374|     99|    state->ctx_len = old_ctx_len;
 1375|     99|}
pathx.c:eval_pred:
 1279|     98|static bool eval_pred(struct expr *expr, struct state *state) {
 1280|     98|    value_ind_t mark = state->value_pool_used;
 1281|     98|    bool result;
 1282|       |
 1283|     98|    eval_expr(expr, state);
 1284|     98|    RET0_ON_ERROR;
  ------------------
  |  |  385|     98|    if (state->errcode != PATHX_NOERROR) return 0
  |  |  ------------------
  |  |  |  Branch (385:9): [True: 4, False: 94]
  |  |  ------------------
  ------------------
 1285|       |
 1286|     94|    struct value *v = pop_value(state);
 1287|     94|    switch(v->tag) {
 1288|     92|    case T_BOOLEAN:
  ------------------
  |  Branch (1288:5): [True: 92, False: 2]
  ------------------
 1289|     92|        result = v->boolval;
 1290|     92|        break;
 1291|      0|    case T_NUMBER:
  ------------------
  |  Branch (1291:5): [True: 0, False: 94]
  ------------------
 1292|      0|        result = (state->ctx_pos == v->number);
 1293|      0|        break;
 1294|      2|    case T_NODESET:
  ------------------
  |  Branch (1294:5): [True: 2, False: 92]
  ------------------
 1295|      2|        result = v->nodeset->used > 0;
 1296|      2|        break;
 1297|      0|    case T_STRING:
  ------------------
  |  Branch (1297:5): [True: 0, False: 94]
  ------------------
 1298|      0|        result = streqv(state->ctx->value, v->string);
 1299|      0|        break;
 1300|      0|    default:
  ------------------
  |  Branch (1300:5): [True: 0, False: 94]
  ------------------
 1301|      0|        assert(0);
  ------------------
  |  Branch (1301:9): [Folded, False: 0]
  |  Branch (1301:9): [Folded, False: 0]
  ------------------
 1302|      0|        return false;
 1303|     94|    }
 1304|       |    /* The predicate is evaluated once for every node it is applied to;
 1305|       |     * without releasing the values it produced, the value pool would grow
 1306|       |     * with the number of times it is evaluated */
 1307|     94|    release_values(state, mark);
 1308|     94|    return result;
 1309|     94|}
pathx.c:release_values:
 1269|     94|static void release_values(struct state *state, value_ind_t mark) {
 1270|     94|    if (mark < state->value_pool_pinned)
  ------------------
  |  Branch (1270:9): [True: 0, False: 94]
  ------------------
 1271|      0|        mark = state->value_pool_pinned;
 1272|     94|    if (mark >= state->value_pool_used)
  ------------------
  |  Branch (1272:9): [True: 0, False: 94]
  ------------------
 1273|      0|        return;
 1274|  1.11k|    for (value_ind_t i = mark; i < state->value_pool_used; i++)
  ------------------
  |  Branch (1274:32): [True: 1.01k, False: 94]
  ------------------
 1275|  1.01k|        release_value(state->value_pool + i);
 1276|     94|    state->value_pool_used = mark;
 1277|     94|}
pathx.c:free_nodeset:
  467|  3.84k|static void free_nodeset(struct nodeset *ns) {
  468|  3.84k|    if (ns != NULL) {
  ------------------
  |  Branch (468:9): [True: 3.84k, False: 0]
  ------------------
  469|  3.84k|        free(ns->nodes);
  470|  3.84k|        free(ns);
  471|  3.84k|    }
  472|  3.84k|}
pathx.c:eval_binary:
 1193|    568|static void eval_binary(struct expr *expr, struct state *state) {
 1194|    568|    struct locpath_trace *lpt = state->locpath_trace;
 1195|    568|    struct locpath_trace lpt_right;
 1196|       |
 1197|    568|    eval_expr(expr->left, state);
 1198|    568|    if ( lpt != NULL && expr->type == T_NODESET ) {
  ------------------
  |  Branch (1198:10): [True: 0, False: 568]
  |  Branch (1198:25): [True: 0, False: 0]
  ------------------
 1199|      0|       MEMZERO(&lpt_right, 1);
  ------------------
  |  |  275|      0|#define MEMZERO(ptr, n) memset((ptr), 0, (n) * sizeof(*(ptr)));
  ------------------
 1200|      0|       state->locpath_trace = &lpt_right;
 1201|      0|    }
 1202|    568|    eval_expr(expr->right, state);
 1203|    568|    state->locpath_trace = lpt;
 1204|    568|    RET_ON_ERROR;
  ------------------
  |  |  382|    568|    if (state->errcode != PATHX_NOERROR) return
  |  |  ------------------
  |  |  |  Branch (382:9): [True: 19, False: 549]
  |  |  ------------------
  ------------------
 1205|       |
 1206|    549|    switch (expr->op) {
 1207|      0|    case OP_EQ:
  ------------------
  |  Branch (1207:5): [True: 0, False: 549]
  ------------------
 1208|      0|        eval_eq(state, 0);
 1209|      0|        break;
 1210|      0|    case OP_NEQ:
  ------------------
  |  Branch (1210:5): [True: 0, False: 549]
  ------------------
 1211|      0|        eval_eq(state, 1);
 1212|      0|        break;
 1213|      0|    case OP_LT:
  ------------------
  |  Branch (1213:5): [True: 0, False: 549]
  ------------------
 1214|      0|        eval_rel(state, false, false);
 1215|      0|        break;
 1216|      0|    case OP_LE:
  ------------------
  |  Branch (1216:5): [True: 0, False: 549]
  ------------------
 1217|      0|        eval_rel(state, false, true);
 1218|      0|        break;
 1219|      0|    case OP_GT:
  ------------------
  |  Branch (1219:5): [True: 0, False: 549]
  ------------------
 1220|      0|        eval_rel(state, true, false);
 1221|      0|        break;
 1222|      0|    case OP_GE:
  ------------------
  |  Branch (1222:5): [True: 0, False: 549]
  ------------------
 1223|      0|        eval_rel(state, true, true);
 1224|      0|        break;
 1225|      0|    case OP_PLUS:
  ------------------
  |  Branch (1225:5): [True: 0, False: 549]
  ------------------
 1226|      0|        if (expr->type == T_NUMBER)
  ------------------
  |  Branch (1226:13): [True: 0, False: 0]
  ------------------
 1227|      0|            eval_arith(state, expr->op);
 1228|      0|        else if (expr->type == T_STRING)
  ------------------
  |  Branch (1228:18): [True: 0, False: 0]
  ------------------
 1229|      0|            eval_concat_string(state);
 1230|      0|        else if (expr->type == T_REGEXP)
  ------------------
  |  Branch (1230:18): [True: 0, False: 0]
  ------------------
 1231|      0|            eval_concat_regexp(state);
 1232|      0|        break;
 1233|      0|    case OP_MINUS:
  ------------------
  |  Branch (1233:5): [True: 0, False: 549]
  ------------------
 1234|      0|    case OP_STAR:
  ------------------
  |  Branch (1234:5): [True: 0, False: 549]
  ------------------
 1235|      0|        eval_arith(state, expr->op);
 1236|      0|        break;
 1237|      0|    case OP_AND:
  ------------------
  |  Branch (1237:5): [True: 0, False: 549]
  ------------------
 1238|      0|    case OP_OR:
  ------------------
  |  Branch (1238:5): [True: 0, False: 549]
  ------------------
 1239|      0|        eval_and_or(state, expr->op);
 1240|      0|        break;
 1241|      0|    case OP_ELSE:
  ------------------
  |  Branch (1241:5): [True: 0, False: 549]
  ------------------
 1242|      0|        eval_else(state, expr, &lpt_right);
 1243|      0|        break;
 1244|    456|    case OP_UNION:
  ------------------
  |  Branch (1244:5): [True: 456, False: 93]
  ------------------
 1245|    456|        eval_union(state, &lpt_right);
 1246|    456|        break;
 1247|      0|    case OP_RE_MATCH:
  ------------------
  |  Branch (1247:5): [True: 0, False: 549]
  ------------------
 1248|     93|    case OP_RE_NOMATCH:
  ------------------
  |  Branch (1248:5): [True: 93, False: 456]
  ------------------
 1249|     93|        eval_re_match(state, expr->op);
 1250|     93|        break;
 1251|      0|    default:
  ------------------
  |  Branch (1251:5): [True: 0, False: 549]
  ------------------
 1252|       |        assert(0);
  ------------------
  |  Branch (1252:9): [Folded, False: 0]
  |  Branch (1252:9): [Folded, False: 0]
  ------------------
 1253|    549|    }
 1254|    549|}
pathx.c:eval_union:
 1101|    456|static void eval_union(struct state *state, struct locpath_trace *lpt_right) {
 1102|    456|    value_ind_t vind = make_value(T_NODESET, state);
 1103|    456|    struct value *r = pop_value(state);
 1104|    456|    struct value *l = pop_value(state);
 1105|    456|    struct nodeset *res = NULL;
 1106|    456|    struct locpath_trace *lpt = state->locpath_trace;
 1107|       |
 1108|    456|    assert(l->tag == T_NODESET);
  ------------------
  |  Branch (1108:5): [True: 0, False: 456]
  |  Branch (1108:5): [True: 456, False: 0]
  ------------------
 1109|    456|    assert(r->tag == T_NODESET);
  ------------------
  |  Branch (1109:5): [True: 0, False: 456]
  |  Branch (1109:5): [True: 456, False: 0]
  ------------------
 1110|       |
 1111|    456|    RET_ON_ERROR;
  ------------------
  |  |  382|    456|    if (state->errcode != PATHX_NOERROR) return
  |  |  ------------------
  |  |  |  Branch (382:9): [True: 0, False: 456]
  |  |  ------------------
  ------------------
 1112|       |
 1113|    456|    res = clone_nodeset(l->nodeset, state);
 1114|    456|    RET_ON_ERROR;
  ------------------
  |  |  382|    456|    if (state->errcode != PATHX_NOERROR) return
  |  |  ------------------
  |  |  |  Branch (382:9): [True: 0, False: 456]
  |  |  ------------------
  ------------------
 1115|       |    /* Mark the nodes from L so that ns_add does not add them again */
 1116|  1.90k|    for (int i=0; i < res->used; i++)
  ------------------
  |  Branch (1116:19): [True: 1.44k, False: 456]
  ------------------
 1117|  1.44k|        res->nodes[i]->added = 1;
 1118|    594|    for (int i=0; i < r->nodeset->used; i++) {
  ------------------
  |  Branch (1118:19): [True: 138, False: 456]
  ------------------
 1119|    138|        ns_add(res, r->nodeset->nodes[i], state);
 1120|    138|        if (HAS_ERROR(state))
  ------------------
  |  |  394|    138|#define HAS_ERROR(state) (state->errcode != PATHX_NOERROR)
  |  |  ------------------
  |  |  |  Branch (394:26): [True: 0, False: 138]
  |  |  ------------------
  ------------------
 1121|      0|            goto error;
 1122|    138|    }
 1123|    456|    state->value_pool[vind].nodeset = res;
 1124|    456|    push_value(vind, state);
 1125|       |
 1126|    456|    if( lpt != NULL && lpt_right != NULL ) {
  ------------------
  |  Branch (1126:9): [True: 0, False: 456]
  |  Branch (1126:24): [True: 0, False: 0]
  ------------------
 1127|      0|        STATE_ERROR(state, PATHX_EMMATCH);
  ------------------
  |  |  388|      0|    do {                                                                \
  |  |  389|      0|        state->errcode = err;                                           \
  |  |  390|      0|        state->file = __FILE__;                                         \
  |  |  391|      0|        state->line = __LINE__;                                         \
  |  |  392|      0|    } while (0)
  |  |  ------------------
  |  |  |  Branch (392:14): [Folded, False: 0]
  |  |  ------------------
  ------------------
 1128|      0|        for (int i=0; i < lpt_right->maxns; i++)
  ------------------
  |  Branch (1128:23): [True: 0, False: 0]
  ------------------
 1129|      0|            free_nodeset(lpt_right->ns[i]);
 1130|      0|        FREE(lpt_right->ns);
  ------------------
  |  |   79|      0|  do {                                          \
  |  |   80|      0|    free(ptr);                                  \
  |  |   81|      0|    (ptr) = NULL;                               \
  |  |   82|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (82:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
 1131|      0|    }
 1132|    456| error:
 1133|    456|    ns_clear_added(res);
 1134|    456|}
pathx.c:clone_nodeset:
  558|    456|{
  559|    456|    struct nodeset *clone;
  560|    456|    if (ALLOC(clone) < 0) {
  ------------------
  |  |   43|    456|#define ALLOC(ptr) mem_alloc_n(&(ptr), sizeof(*(ptr)), 1)
  ------------------
  |  Branch (560:9): [True: 0, False: 456]
  ------------------
  561|      0|        STATE_ENOMEM;
  ------------------
  |  |  396|      0|#define STATE_ENOMEM STATE_ERROR(state, PATHX_ENOMEM)
  |  |  ------------------
  |  |  |  |  388|      0|    do {                                                                \
  |  |  |  |  389|      0|        state->errcode = err;                                           \
  |  |  |  |  390|      0|        state->file = __FILE__;                                         \
  |  |  |  |  391|      0|        state->line = __LINE__;                                         \
  |  |  |  |  392|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (392:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  562|      0|        return NULL;
  563|      0|    }
  564|    456|    if (ALLOC_N(clone->nodes, ns->used) < 0) {
  ------------------
  |  |   56|    456|#define ALLOC_N(ptr, count) mem_alloc_n(&(ptr), sizeof(*(ptr)), (count))
  ------------------
  |  Branch (564:9): [True: 0, False: 456]
  ------------------
  565|      0|        free(clone);
  566|      0|        STATE_ENOMEM;
  ------------------
  |  |  396|      0|#define STATE_ENOMEM STATE_ERROR(state, PATHX_ENOMEM)
  |  |  ------------------
  |  |  |  |  388|      0|    do {                                                                \
  |  |  |  |  389|      0|        state->errcode = err;                                           \
  |  |  |  |  390|      0|        state->file = __FILE__;                                         \
  |  |  |  |  391|      0|        state->line = __LINE__;                                         \
  |  |  |  |  392|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (392:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  567|      0|        return NULL;
  568|      0|    }
  569|    456|    clone->used = ns->used;
  570|    456|    clone->size = ns->used;
  571|  1.90k|    for (int i=0; i < ns->used; i++)
  ------------------
  |  Branch (571:19): [True: 1.44k, False: 456]
  ------------------
  572|  1.44k|        clone->nodes[i] = ns->nodes[i];
  573|    456|    return clone;
  574|    456|}
pathx.c:eval_re_match:
 1172|     93|static void eval_re_match(struct state *state, enum binary_op op) {
 1173|     93|    struct value *rx  = pop_value(state);
 1174|     93|    struct value *v = pop_value(state);
 1175|       |
 1176|     93|    bool result = false;
 1177|       |
 1178|     93|    if (v->tag == T_STRING) {
  ------------------
  |  Branch (1178:9): [True: 1, False: 92]
  ------------------
 1179|      1|        result = eval_re_match_str(state, rx->regexp, v->string);
 1180|      1|        RET_ON_ERROR;
  ------------------
  |  |  382|      1|    if (state->errcode != PATHX_NOERROR) return
  |  |  ------------------
  |  |  |  Branch (382:9): [True: 0, False: 1]
  |  |  ------------------
  ------------------
 1181|     92|    } else if (v->tag == T_NODESET) {
  ------------------
  |  Branch (1181:16): [True: 92, False: 0]
  ------------------
 1182|    148|        for (int i=0; i < v->nodeset->used && result == false; i++) {
  ------------------
  |  Branch (1182:23): [True: 60, False: 88]
  |  Branch (1182:47): [True: 56, False: 4]
  ------------------
 1183|     56|            struct tree *t = v->nodeset->nodes[i];
 1184|     56|            result = eval_re_match_str(state, rx->regexp, t->value);
 1185|     56|            RET_ON_ERROR;
  ------------------
  |  |  382|     56|    if (state->errcode != PATHX_NOERROR) return
  |  |  ------------------
  |  |  |  Branch (382:9): [True: 0, False: 56]
  |  |  ------------------
  ------------------
 1186|     56|        }
 1187|     92|    }
 1188|     93|    if (op == OP_RE_NOMATCH)
  ------------------
  |  Branch (1188:9): [True: 93, False: 0]
  ------------------
 1189|     93|        result = !result;
 1190|     93|    push_boolean_value(result, state);
 1191|     93|}
pathx.c:eval_re_match_str:
 1084|     57|                              const char *str) {
 1085|     57|    int r;
 1086|       |
 1087|     57|    if (str == NULL)
  ------------------
  |  Branch (1087:9): [True: 48, False: 9]
  ------------------
 1088|     48|        str = "";
 1089|       |
 1090|     57|    r = regexp_match(rx, str, strlen(str), 0, NULL);
 1091|     57|    if (r == -2) {
  ------------------
  |  Branch (1091:9): [True: 0, False: 57]
  ------------------
 1092|      0|        STATE_ERROR(state, PATHX_EINTERNAL);
  ------------------
  |  |  388|      0|    do {                                                                \
  |  |  389|      0|        state->errcode = err;                                           \
  |  |  390|      0|        state->file = __FILE__;                                         \
  |  |  391|      0|        state->line = __LINE__;                                         \
  |  |  392|      0|    } while (0)
  |  |  ------------------
  |  |  |  Branch (392:14): [Folded, False: 0]
  |  |  ------------------
  ------------------
 1093|     57|    } else if (r == -3) {
  ------------------
  |  Branch (1093:16): [True: 0, False: 57]
  ------------------
 1094|       |        /* We should never get this far; func_regexp should catch
 1095|       |         * invalid regexps */
 1096|      0|        assert(false);
  ------------------
  |  Branch (1096:9): [Folded, False: 0]
  |  Branch (1096:9): [Folded, False: 0]
  ------------------
 1097|      0|    }
 1098|     57|    return r == strlen(str);
 1099|     57|}
pathx.c:eval_app:
 1256|     98|static void eval_app(struct expr *expr, struct state *state) {
 1257|     98|    assert(expr->tag == E_APP);
  ------------------
  |  Branch (1257:5): [True: 0, False: 98]
  |  Branch (1257:5): [True: 98, False: 0]
  ------------------
 1258|       |
 1259|    196|    for (int i=0; i < expr->func->arity; i++) {
  ------------------
  |  Branch (1259:19): [True: 98, False: 98]
  ------------------
 1260|     98|        eval_expr(expr->args[i], state);
 1261|     98|        RET_ON_ERROR;
  ------------------
  |  |  382|     98|    if (state->errcode != PATHX_NOERROR) return
  |  |  ------------------
  |  |  |  Branch (382:9): [True: 0, False: 98]
  |  |  ------------------
  ------------------
 1262|     98|    }
 1263|     98|    expr->func->impl(state, expr->func->arity);
 1264|     98|}
pathx.c:locpath_search:
 3036|    100|                          struct tree **tmatch, struct step **smatch) {
 3037|    100|    int last;
 3038|    100|    int result = -1;
 3039|       |
 3040|    215|    for (last=lpt->maxns; last >= 0 && lpt->ns[last]->used == 0; last--);
  ------------------
  |  Branch (3040:27): [True: 215, False: 0]
  |  Branch (3040:40): [True: 115, False: 100]
  ------------------
 3041|    100|    if (last < 0) {
  ------------------
  |  Branch (3041:9): [True: 0, False: 100]
  ------------------
 3042|      0|        *smatch = lpt->lp->steps;
 3043|      0|        result = 1;
 3044|      0|        goto done;
 3045|      0|    }
 3046|    100|    if (lpt->ns[last]->used > 1) {
  ------------------
  |  Branch (3046:9): [True: 0, False: 100]
  ------------------
 3047|      0|        result = -1;
 3048|      0|        goto done;
 3049|      0|    }
 3050|    100|    result = 0;
 3051|    100|    *tmatch = lpt->ns[last]->nodes[0];
 3052|    100|    *smatch = lpt->lp->steps;
 3053|    430|    for (int i=0; i < last; i++)
  ------------------
  |  Branch (3053:19): [True: 330, False: 100]
  ------------------
 3054|    330|        *smatch = (*smatch)->next;
 3055|    100| done:
 3056|    545|    for (int i=0; i < lpt->maxns; i++)
  ------------------
  |  Branch (3056:19): [True: 445, False: 100]
  ------------------
 3057|    445|        free_nodeset(lpt->ns[i]);
 3058|       |    FREE(lpt->ns);
  ------------------
  |  |   79|    100|  do {                                          \
  |  |   80|    100|    free(ptr);                                  \
  |  |   81|    100|    (ptr) = NULL;                               \
  |  |   82|    100|  } while(0)
  |  |  ------------------
  |  |  |  Branch (82:11): [Folded, False: 100]
  |  |  ------------------
  ------------------
 3059|    100|    return result;
 3060|    100|}
pathx.c:release_value:
  475|  2.37k|static void release_value(struct value *v) {
  476|  2.37k|    if (v == NULL)
  ------------------
  |  Branch (476:9): [True: 2, False: 2.37k]
  ------------------
  477|      2|        return;
  478|       |
  479|  2.37k|    switch (v->tag) {
  480|  1.45k|    case T_NODESET:
  ------------------
  |  Branch (480:5): [True: 1.45k, False: 921]
  ------------------
  481|  1.45k|        free_nodeset(v->nodeset);
  482|  1.45k|        break;
  483|      1|    case T_STRING:
  ------------------
  |  Branch (483:5): [True: 1, False: 2.37k]
  ------------------
  484|      1|        free(v->string);
  485|      1|        break;
  486|    732|    case T_BOOLEAN:
  ------------------
  |  Branch (486:5): [True: 732, False: 1.64k]
  ------------------
  487|    822|    case T_NUMBER:
  ------------------
  |  Branch (487:5): [True: 90, False: 2.28k]
  ------------------
  488|    822|        break;
  489|     98|    case T_REGEXP:
  ------------------
  |  Branch (489:5): [True: 98, False: 2.27k]
  ------------------
  490|     98|        unref(v->regexp, regexp);
  ------------------
  |  |   55|     98|    do {                                                                \
  |  |   56|     98|        if ((s) != NULL && (s)->ref != REF_MAX) {                       \
  |  |  ------------------
  |  |  |  |   41|     98|#define REF_MAX UINT_MAX
  |  |  ------------------
  |  |  |  Branch (56:13): [True: 98, False: 0]
  |  |  |  Branch (56:28): [True: 98, False: 0]
  |  |  ------------------
  |  |   57|     98|            assert((s)->ref > 0);                                       \
  |  |   58|     98|            if (--(s)->ref == 0) {                                      \
  |  |  ------------------
  |  |  |  Branch (58:17): [True: 98, False: 0]
  |  |  ------------------
  |  |   59|     98|                /*memset(s, 255, sizeof(*s));*/                         \
  |  |   60|     98|                free_##t(s);                                            \
  |  |   61|     98|            }                                                           \
  |  |   62|     98|        }                                                               \
  |  |   63|     98|        (s) = NULL;                                                     \
  |  |   64|     98|    } while(0)
  |  |  ------------------
  |  |  |  Branch (64:13): [Folded, False: 98]
  |  |  ------------------
  ------------------
  |  Branch (490:9): [True: 0, False: 98]
  |  Branch (490:9): [True: 98, False: 0]
  ------------------
  491|     98|        break;
  492|     98|    default:
  ------------------
  |  Branch (492:5): [True: 0, False: 2.37k]
  ------------------
  493|       |        assert(0);
  ------------------
  |  Branch (493:9): [Folded, False: 0]
  |  Branch (493:9): [Folded, False: 0]
  ------------------
  494|  2.37k|    }
  495|  2.37k|}
pathx.c:ns_remove:
 1313|      5|static void ns_remove(struct nodeset *ns, int ind, int count) {
 1314|      5|    if (count < 1)
  ------------------
  |  Branch (1314:9): [True: 0, False: 5]
  ------------------
 1315|      0|        return;
 1316|      5|    memmove(ns->nodes + ind, ns->nodes + ind+count,
 1317|      5|            sizeof(ns->nodes[0]) * (ns->used - (ind+count)));
 1318|      5|    ns->used -= count;
 1319|      5|}

ref_make_ref:
   28|  2.63k|int ref_make_ref(void *ptrptr, size_t size, size_t ref_ofs) {
   29|  2.63k|    *(void**) ptrptr = calloc(1, size);
   30|  2.63k|    if (*(void **)ptrptr == NULL) {
  ------------------
  |  Branch (30:9): [True: 0, False: 2.63k]
  ------------------
   31|      0|        return -1;
   32|  2.63k|    } else {
   33|  2.63k|        void *ptr = *(void **)ptrptr;
   34|  2.63k|        *((ref_t *) ((char*) ptr + ref_ofs)) = 1;
   35|  2.63k|        return 0;
   36|  2.63k|    }
   37|  2.63k|}

make_regexp_unescape:
  142|    118|make_regexp_unescape(struct info *info, const char *pat, int nocase) {
  143|    118|    char *p = unescape(pat, strlen(pat), NULL);
  144|       |
  145|    118|    if (p == NULL)
  ------------------
  |  Branch (145:9): [True: 0, False: 118]
  ------------------
  146|      0|        return NULL;
  147|    118|    return make_regexp(info, p, nocase);
  148|    118|}
make_regexp:
  150|    131|struct regexp *make_regexp(struct info *info, char *pat, int nocase) {
  151|    131|    struct regexp *regexp;
  152|       |
  153|    131|    make_ref(regexp);
  ------------------
  |  |   48|    131|    ref_make_ref(&(var), sizeof(*(var)), offsetof(typeof(*(var)), ref))
  ------------------
  154|    131|    regexp->info = ref(info);
  ------------------
  |  |   52|    131|#define ref(s) (((s) == NULL || (s)->ref == REF_MAX) ? (s) : ((s)->ref++, (s)))
  |  |  ------------------
  |  |  |  |   41|    131|#define REF_MAX UINT_MAX
  |  |  ------------------
  |  |  |  Branch (52:18): [True: 0, False: 131]
  |  |  |  Branch (52:33): [True: 0, False: 131]
  |  |  ------------------
  ------------------
  155|       |
  156|       |    make_ref(regexp->pattern);
  ------------------
  |  |   48|    131|    ref_make_ref(&(var), sizeof(*(var)), offsetof(typeof(*(var)), ref))
  ------------------
  157|    131|    regexp->pattern->str = pat;
  158|    131|    regexp->nocase = nocase;
  159|    131|    return regexp;
  160|    131|}
free_regexp:
  213|    131|void free_regexp(struct regexp *regexp) {
  214|    131|    if (regexp == NULL)
  ------------------
  |  Branch (214:9): [True: 0, False: 131]
  ------------------
  215|      0|        return;
  216|    131|    assert(regexp->ref == 0);
  ------------------
  |  Branch (216:5): [True: 0, False: 131]
  |  Branch (216:5): [True: 131, False: 0]
  ------------------
  217|    131|    unref(regexp->info, info);
  ------------------
  |  |   55|    131|    do {                                                                \
  |  |   56|    131|        if ((s) != NULL && (s)->ref != REF_MAX) {                       \
  |  |  ------------------
  |  |  |  |   41|    131|#define REF_MAX UINT_MAX
  |  |  ------------------
  |  |  |  Branch (56:13): [True: 131, False: 0]
  |  |  |  Branch (56:28): [True: 131, False: 0]
  |  |  ------------------
  |  |   57|    131|            assert((s)->ref > 0);                                       \
  |  |   58|    131|            if (--(s)->ref == 0) {                                      \
  |  |  ------------------
  |  |  |  Branch (58:17): [True: 0, False: 131]
  |  |  ------------------
  |  |   59|      0|                /*memset(s, 255, sizeof(*s));*/                         \
  |  |   60|      0|                free_##t(s);                                            \
  |  |   61|      0|            }                                                           \
  |  |   62|    131|        }                                                               \
  |  |   63|    131|        (s) = NULL;                                                     \
  |  |   64|    131|    } while(0)
  |  |  ------------------
  |  |  |  Branch (64:13): [Folded, False: 131]
  |  |  ------------------
  ------------------
  |  Branch (217:5): [True: 0, False: 131]
  |  Branch (217:5): [True: 131, False: 0]
  ------------------
  218|    131|    unref(regexp->pattern, string);
  ------------------
  |  |   55|    131|    do {                                                                \
  |  |   56|    131|        if ((s) != NULL && (s)->ref != REF_MAX) {                       \
  |  |  ------------------
  |  |  |  |   41|    131|#define REF_MAX UINT_MAX
  |  |  ------------------
  |  |  |  Branch (56:13): [True: 131, False: 0]
  |  |  |  Branch (56:28): [True: 131, False: 0]
  |  |  ------------------
  |  |   57|    131|            assert((s)->ref > 0);                                       \
  |  |   58|    131|            if (--(s)->ref == 0) {                                      \
  |  |  ------------------
  |  |  |  Branch (58:17): [True: 131, False: 0]
  |  |  ------------------
  |  |   59|    131|                /*memset(s, 255, sizeof(*s));*/                         \
  |  |   60|    131|                free_##t(s);                                            \
  |  |   61|    131|            }                                                           \
  |  |   62|    131|        }                                                               \
  |  |   63|    131|        (s) = NULL;                                                     \
  |  |   64|    131|    } while(0)
  |  |  ------------------
  |  |  |  Branch (64:13): [Folded, False: 131]
  |  |  ------------------
  ------------------
  |  Branch (218:5): [True: 0, False: 131]
  |  Branch (218:5): [True: 131, False: 0]
  ------------------
  219|    131|    if (regexp->re != NULL) {
  ------------------
  |  Branch (219:9): [True: 93, False: 38]
  ------------------
  220|     93|        regfree(regexp->re);
  ------------------
  |  | 2565|     93|#define regfree rpl_regfree
  ------------------
  221|     93|        free(regexp->re);
  222|     93|    }
  223|    131|    free(regexp);
  224|    131|}
regexp_union_n:
  328|     13|regexp_union_n(struct info *info, int n, struct regexp **r) {
  329|     13|    size_t len = 0;
  330|     13|    char *pat = NULL, *p, *expanded = NULL;
  331|     13|    int nnocase = 0, npresent = 0;
  332|       |
  333|     59|    for (int i=0; i < n; i++)
  ------------------
  |  Branch (333:19): [True: 46, False: 13]
  ------------------
  334|     46|        if (r[i] != NULL) {
  ------------------
  |  Branch (334:13): [True: 33, False: 13]
  ------------------
  335|     33|            len += strlen(r[i]->pattern->str) + strlen("()|");
  336|     33|            npresent += 1;
  337|     33|            if (r[i]->nocase)
  ------------------
  |  Branch (337:17): [True: 0, False: 33]
  ------------------
  338|      0|                nnocase += 1;
  339|     33|        }
  340|       |
  341|     13|    bool mixedcase = nnocase > 0 && nnocase < npresent;
  ------------------
  |  Branch (341:22): [True: 0, False: 13]
  |  Branch (341:37): [True: 0, False: 0]
  ------------------
  342|       |
  343|     13|    if (len == 0)
  ------------------
  |  Branch (343:9): [True: 0, False: 13]
  ------------------
  344|      0|        return NULL;
  345|       |
  346|     13|    if (ALLOC_N(pat, len) < 0)
  ------------------
  |  |   56|     13|#define ALLOC_N(ptr, count) mem_alloc_n(&(ptr), sizeof(*(ptr)), (count))
  ------------------
  |  Branch (346:9): [True: 0, False: 13]
  ------------------
  347|      0|        return NULL;
  348|       |
  349|     13|    p = pat;
  350|     13|    int added = 0;
  351|     59|    for (int i=0; i < n; i++) {
  ------------------
  |  Branch (351:19): [True: 46, False: 13]
  ------------------
  352|     46|        if (r[i] == NULL)
  ------------------
  |  Branch (352:13): [True: 13, False: 33]
  ------------------
  353|     13|            continue;
  354|     33|        if (added > 0)
  ------------------
  |  Branch (354:13): [True: 20, False: 13]
  ------------------
  355|     20|            *p++ = '|';
  356|     33|        *p++ = '(';
  357|     33|        if (mixedcase && r[i]->nocase) {
  ------------------
  |  Branch (357:13): [True: 0, False: 33]
  |  Branch (357:26): [True: 0, False: 0]
  ------------------
  358|      0|            p = append_expanded(r[i], &pat, p, &len);
  359|      0|            ERR_BAIL(r[i]->info);
  ------------------
  |  |   65|      0|#define ERR_BAIL(obj) if ((obj)->error->code != AUG_NOERROR) goto error;
  |  |  ------------------
  |  |  |  Branch (65:27): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  360|     33|        } else {
  361|     33|            p = stpcpy(p, r[i]->pattern->str);
  362|     33|        }
  363|     33|        *p++ = ')';
  364|     33|        added += 1;
  365|     33|    }
  366|     13|    *p = '\0';
  367|     13|    return make_regexp(info, pat, nnocase == npresent);
  368|      0| error:
  369|      0|    FREE(expanded);
  ------------------
  |  |   79|      0|  do {                                          \
  |  |   80|      0|    free(ptr);                                  \
  |  |   81|      0|    (ptr) = NULL;                               \
  |  |   82|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (82:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
  370|      0|    FREE(pat);
  ------------------
  |  |   79|      0|  do {                                          \
  |  |   80|      0|    free(ptr);                                  \
  |  |   81|      0|    (ptr) = NULL;                               \
  |  |   82|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (82:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
  371|       |    return NULL;
  372|     13|}
regexp_compile:
  579|     98|int regexp_compile(struct regexp *r) {
  580|     98|    const char *c;
  581|       |
  582|     98|    return regexp_compile_internal(r, &c);
  583|     98|}
regexp_check:
  585|      5|int regexp_check(struct regexp *r, const char **msg) {
  586|      5|    return regexp_compile_internal(r, msg);
  587|      5|}
regexp_match:
  591|     57|                 const int start, struct re_registers *regs) {
  592|     57|    if (r->re == NULL) {
  ------------------
  |  Branch (592:9): [True: 0, False: 57]
  ------------------
  593|      0|        if (regexp_compile(r) == -1)
  ------------------
  |  Branch (593:13): [True: 0, False: 0]
  ------------------
  594|      0|            return -3;
  595|      0|    }
  596|     57|    return re_match(r->re, string, size, start, regs);
  ------------------
  |  | 2535|     57|#define re_match rpl_re_match
  ------------------
  597|     57|}
regexp.c:regexp_compile_internal:
  540|    103|static int regexp_compile_internal(struct regexp *r, const char **c) {
  541|       |    /* See the GNU regex manual or regex.h in gnulib for
  542|       |     * an explanation of these flags. They are set so that the regex
  543|       |     * matcher interprets regular expressions the same way that libfa
  544|       |     * does
  545|       |     */
  546|    103|    static const reg_syntax_t syntax =
  547|    103|        RE_CONTEXT_INDEP_OPS|RE_CONTEXT_INVALID_OPS|RE_DOT_NOT_NULL
  ------------------
  |  |  109|    103|# define RE_CONTEXT_INDEP_OPS (RE_CONTEXT_INDEP_ANCHORS << 1)
  |  |  ------------------
  |  |  |  |  101|    103|# define RE_CONTEXT_INDEP_ANCHORS (RE_CHAR_CLASSES << 1)
  |  |  |  |  ------------------
  |  |  |  |  |  |   87|    103|# define RE_CHAR_CLASSES (RE_BK_PLUS_QM << 1)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   81|    103|# define RE_BK_PLUS_QM (RE_BACKSLASH_ESCAPE_IN_LISTS << 1)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   76|    103|# define RE_BACKSLASH_ESCAPE_IN_LISTS 1ul
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
                      RE_CONTEXT_INDEP_OPS|RE_CONTEXT_INVALID_OPS|RE_DOT_NOT_NULL
  ------------------
  |  |  113|    103|# define RE_CONTEXT_INVALID_OPS (RE_CONTEXT_INDEP_OPS << 1)
  |  |  ------------------
  |  |  |  |  109|    103|# define RE_CONTEXT_INDEP_OPS (RE_CONTEXT_INDEP_ANCHORS << 1)
  |  |  |  |  ------------------
  |  |  |  |  |  |  101|    103|# define RE_CONTEXT_INDEP_ANCHORS (RE_CHAR_CLASSES << 1)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   87|    103|# define RE_CHAR_CLASSES (RE_BK_PLUS_QM << 1)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   81|    103|# define RE_BK_PLUS_QM (RE_BACKSLASH_ESCAPE_IN_LISTS << 1)
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |   76|    103|# define RE_BACKSLASH_ESCAPE_IN_LISTS 1ul
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
                      RE_CONTEXT_INDEP_OPS|RE_CONTEXT_INVALID_OPS|RE_DOT_NOT_NULL
  ------------------
  |  |  121|    103|# define RE_DOT_NOT_NULL (RE_DOT_NEWLINE << 1)
  |  |  ------------------
  |  |  |  |  117|    103|# define RE_DOT_NEWLINE (RE_CONTEXT_INVALID_OPS << 1)
  |  |  |  |  ------------------
  |  |  |  |  |  |  113|    103|# define RE_CONTEXT_INVALID_OPS (RE_CONTEXT_INDEP_OPS << 1)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  109|    103|# define RE_CONTEXT_INDEP_OPS (RE_CONTEXT_INDEP_ANCHORS << 1)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  101|    103|# define RE_CONTEXT_INDEP_ANCHORS (RE_CHAR_CLASSES << 1)
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |   87|    103|# define RE_CHAR_CLASSES (RE_BK_PLUS_QM << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |   81|    103|# define RE_BK_PLUS_QM (RE_BACKSLASH_ESCAPE_IN_LISTS << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |   76|    103|# define RE_BACKSLASH_ESCAPE_IN_LISTS 1ul
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  548|    103|        |RE_INTERVALS|RE_NO_BK_BRACES|RE_NO_BK_PARENS|RE_NO_BK_REFS
  ------------------
  |  |  130|    103|# define RE_INTERVALS (RE_HAT_LISTS_NOT_NEWLINE << 1)
  |  |  ------------------
  |  |  |  |  125|    103|# define RE_HAT_LISTS_NOT_NEWLINE (RE_DOT_NOT_NULL << 1)
  |  |  |  |  ------------------
  |  |  |  |  |  |  121|    103|# define RE_DOT_NOT_NULL (RE_DOT_NEWLINE << 1)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  117|    103|# define RE_DOT_NEWLINE (RE_CONTEXT_INVALID_OPS << 1)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  113|    103|# define RE_CONTEXT_INVALID_OPS (RE_CONTEXT_INDEP_OPS << 1)
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  109|    103|# define RE_CONTEXT_INDEP_OPS (RE_CONTEXT_INDEP_ANCHORS << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  101|    103|# define RE_CONTEXT_INDEP_ANCHORS (RE_CHAR_CLASSES << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |   87|    103|# define RE_CHAR_CLASSES (RE_BK_PLUS_QM << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |   81|    103|# define RE_BK_PLUS_QM (RE_BACKSLASH_ESCAPE_IN_LISTS << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |   76|    103|# define RE_BACKSLASH_ESCAPE_IN_LISTS 1ul
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
                      |RE_INTERVALS|RE_NO_BK_BRACES|RE_NO_BK_PARENS|RE_NO_BK_REFS
  ------------------
  |  |  143|    103|# define RE_NO_BK_BRACES (RE_NEWLINE_ALT << 1)
  |  |  ------------------
  |  |  |  |  138|    103|# define RE_NEWLINE_ALT (RE_LIMITED_OPS << 1)
  |  |  |  |  ------------------
  |  |  |  |  |  |  134|    103|# define RE_LIMITED_OPS (RE_INTERVALS << 1)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  130|    103|# define RE_INTERVALS (RE_HAT_LISTS_NOT_NEWLINE << 1)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  125|    103|# define RE_HAT_LISTS_NOT_NEWLINE (RE_DOT_NOT_NULL << 1)
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  121|    103|# define RE_DOT_NOT_NULL (RE_DOT_NEWLINE << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  117|    103|# define RE_DOT_NEWLINE (RE_CONTEXT_INVALID_OPS << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  113|    103|# define RE_CONTEXT_INVALID_OPS (RE_CONTEXT_INDEP_OPS << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  109|    103|# define RE_CONTEXT_INDEP_OPS (RE_CONTEXT_INDEP_ANCHORS << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  101|    103|# define RE_CONTEXT_INDEP_ANCHORS (RE_CHAR_CLASSES << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |   87|    103|# define RE_CHAR_CLASSES (RE_BK_PLUS_QM << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |   81|    103|# define RE_BK_PLUS_QM (RE_BACKSLASH_ESCAPE_IN_LISTS << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |   76|    103|# define RE_BACKSLASH_ESCAPE_IN_LISTS 1ul
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
                      |RE_INTERVALS|RE_NO_BK_BRACES|RE_NO_BK_PARENS|RE_NO_BK_REFS
  ------------------
  |  |  147|    103|# define RE_NO_BK_PARENS (RE_NO_BK_BRACES << 1)
  |  |  ------------------
  |  |  |  |  143|    103|# define RE_NO_BK_BRACES (RE_NEWLINE_ALT << 1)
  |  |  |  |  ------------------
  |  |  |  |  |  |  138|    103|# define RE_NEWLINE_ALT (RE_LIMITED_OPS << 1)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  134|    103|# define RE_LIMITED_OPS (RE_INTERVALS << 1)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  130|    103|# define RE_INTERVALS (RE_HAT_LISTS_NOT_NEWLINE << 1)
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  125|    103|# define RE_HAT_LISTS_NOT_NEWLINE (RE_DOT_NOT_NULL << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  121|    103|# define RE_DOT_NOT_NULL (RE_DOT_NEWLINE << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  117|    103|# define RE_DOT_NEWLINE (RE_CONTEXT_INVALID_OPS << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  113|    103|# define RE_CONTEXT_INVALID_OPS (RE_CONTEXT_INDEP_OPS << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  109|    103|# define RE_CONTEXT_INDEP_OPS (RE_CONTEXT_INDEP_ANCHORS << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  101|    103|# define RE_CONTEXT_INDEP_ANCHORS (RE_CHAR_CLASSES << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |   87|    103|# define RE_CHAR_CLASSES (RE_BK_PLUS_QM << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |   81|    103|# define RE_BK_PLUS_QM (RE_BACKSLASH_ESCAPE_IN_LISTS << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |   76|    103|# define RE_BACKSLASH_ESCAPE_IN_LISTS 1ul
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
                      |RE_INTERVALS|RE_NO_BK_BRACES|RE_NO_BK_PARENS|RE_NO_BK_REFS
  ------------------
  |  |  151|    103|# define RE_NO_BK_REFS (RE_NO_BK_PARENS << 1)
  |  |  ------------------
  |  |  |  |  147|    103|# define RE_NO_BK_PARENS (RE_NO_BK_BRACES << 1)
  |  |  |  |  ------------------
  |  |  |  |  |  |  143|    103|# define RE_NO_BK_BRACES (RE_NEWLINE_ALT << 1)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  138|    103|# define RE_NEWLINE_ALT (RE_LIMITED_OPS << 1)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  134|    103|# define RE_LIMITED_OPS (RE_INTERVALS << 1)
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  130|    103|# define RE_INTERVALS (RE_HAT_LISTS_NOT_NEWLINE << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  125|    103|# define RE_HAT_LISTS_NOT_NEWLINE (RE_DOT_NOT_NULL << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  121|    103|# define RE_DOT_NOT_NULL (RE_DOT_NEWLINE << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  117|    103|# define RE_DOT_NEWLINE (RE_CONTEXT_INVALID_OPS << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  113|    103|# define RE_CONTEXT_INVALID_OPS (RE_CONTEXT_INDEP_OPS << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  109|    103|# define RE_CONTEXT_INDEP_OPS (RE_CONTEXT_INDEP_ANCHORS << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  101|    103|# define RE_CONTEXT_INDEP_ANCHORS (RE_CHAR_CLASSES << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |   87|    103|# define RE_CHAR_CLASSES (RE_BK_PLUS_QM << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |   81|    103|# define RE_BK_PLUS_QM (RE_BACKSLASH_ESCAPE_IN_LISTS << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |   76|    103|# define RE_BACKSLASH_ESCAPE_IN_LISTS 1ul
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  549|    103|        |RE_NO_BK_VBAR|RE_NO_EMPTY_RANGES
  ------------------
  |  |  155|    103|# define RE_NO_BK_VBAR (RE_NO_BK_REFS << 1)
  |  |  ------------------
  |  |  |  |  151|    103|# define RE_NO_BK_REFS (RE_NO_BK_PARENS << 1)
  |  |  |  |  ------------------
  |  |  |  |  |  |  147|    103|# define RE_NO_BK_PARENS (RE_NO_BK_BRACES << 1)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  143|    103|# define RE_NO_BK_BRACES (RE_NEWLINE_ALT << 1)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  138|    103|# define RE_NEWLINE_ALT (RE_LIMITED_OPS << 1)
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  134|    103|# define RE_LIMITED_OPS (RE_INTERVALS << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  130|    103|# define RE_INTERVALS (RE_HAT_LISTS_NOT_NEWLINE << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  125|    103|# define RE_HAT_LISTS_NOT_NEWLINE (RE_DOT_NOT_NULL << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  121|    103|# define RE_DOT_NOT_NULL (RE_DOT_NEWLINE << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  117|    103|# define RE_DOT_NEWLINE (RE_CONTEXT_INVALID_OPS << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  113|    103|# define RE_CONTEXT_INVALID_OPS (RE_CONTEXT_INDEP_OPS << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  109|    103|# define RE_CONTEXT_INDEP_OPS (RE_CONTEXT_INDEP_ANCHORS << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  101|    103|# define RE_CONTEXT_INDEP_ANCHORS (RE_CHAR_CLASSES << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |   87|    103|# define RE_CHAR_CLASSES (RE_BK_PLUS_QM << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |   81|    103|# define RE_BK_PLUS_QM (RE_BACKSLASH_ESCAPE_IN_LISTS << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |   76|    103|# define RE_BACKSLASH_ESCAPE_IN_LISTS 1ul
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
                      |RE_NO_BK_VBAR|RE_NO_EMPTY_RANGES
  ------------------
  |  |  161|    103|# define RE_NO_EMPTY_RANGES (RE_NO_BK_VBAR << 1)
  |  |  ------------------
  |  |  |  |  155|    103|# define RE_NO_BK_VBAR (RE_NO_BK_REFS << 1)
  |  |  |  |  ------------------
  |  |  |  |  |  |  151|    103|# define RE_NO_BK_REFS (RE_NO_BK_PARENS << 1)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  147|    103|# define RE_NO_BK_PARENS (RE_NO_BK_BRACES << 1)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  143|    103|# define RE_NO_BK_BRACES (RE_NEWLINE_ALT << 1)
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  138|    103|# define RE_NEWLINE_ALT (RE_LIMITED_OPS << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  134|    103|# define RE_LIMITED_OPS (RE_INTERVALS << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  130|    103|# define RE_INTERVALS (RE_HAT_LISTS_NOT_NEWLINE << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  125|    103|# define RE_HAT_LISTS_NOT_NEWLINE (RE_DOT_NOT_NULL << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  121|    103|# define RE_DOT_NOT_NULL (RE_DOT_NEWLINE << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  117|    103|# define RE_DOT_NEWLINE (RE_CONTEXT_INVALID_OPS << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  113|    103|# define RE_CONTEXT_INVALID_OPS (RE_CONTEXT_INDEP_OPS << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  109|    103|# define RE_CONTEXT_INDEP_OPS (RE_CONTEXT_INDEP_ANCHORS << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  101|    103|# define RE_CONTEXT_INDEP_ANCHORS (RE_CHAR_CLASSES << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |   87|    103|# define RE_CHAR_CLASSES (RE_BK_PLUS_QM << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |   81|    103|# define RE_BK_PLUS_QM (RE_BACKSLASH_ESCAPE_IN_LISTS << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |   76|    103|# define RE_BACKSLASH_ESCAPE_IN_LISTS 1ul
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  550|    103|        |RE_NO_POSIX_BACKTRACKING|RE_CONTEXT_INVALID_DUP|RE_NO_GNU_OPS;
  ------------------
  |  |  169|    103|# define RE_NO_POSIX_BACKTRACKING (RE_UNMATCHED_RIGHT_PAREN_ORD << 1)
  |  |  ------------------
  |  |  |  |  165|    103|# define RE_UNMATCHED_RIGHT_PAREN_ORD (RE_NO_EMPTY_RANGES << 1)
  |  |  |  |  ------------------
  |  |  |  |  |  |  161|    103|# define RE_NO_EMPTY_RANGES (RE_NO_BK_VBAR << 1)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  155|    103|# define RE_NO_BK_VBAR (RE_NO_BK_REFS << 1)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  151|    103|# define RE_NO_BK_REFS (RE_NO_BK_PARENS << 1)
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  147|    103|# define RE_NO_BK_PARENS (RE_NO_BK_BRACES << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  143|    103|# define RE_NO_BK_BRACES (RE_NEWLINE_ALT << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  138|    103|# define RE_NEWLINE_ALT (RE_LIMITED_OPS << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  134|    103|# define RE_LIMITED_OPS (RE_INTERVALS << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  130|    103|# define RE_INTERVALS (RE_HAT_LISTS_NOT_NEWLINE << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  125|    103|# define RE_HAT_LISTS_NOT_NEWLINE (RE_DOT_NOT_NULL << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  121|    103|# define RE_DOT_NOT_NULL (RE_DOT_NEWLINE << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  117|    103|# define RE_DOT_NEWLINE (RE_CONTEXT_INVALID_OPS << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  113|    103|# define RE_CONTEXT_INVALID_OPS (RE_CONTEXT_INDEP_OPS << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  109|    103|# define RE_CONTEXT_INDEP_OPS (RE_CONTEXT_INDEP_ANCHORS << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  101|    103|# define RE_CONTEXT_INDEP_ANCHORS (RE_CHAR_CLASSES << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |   87|    103|# define RE_CHAR_CLASSES (RE_BK_PLUS_QM << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |   81|    103|# define RE_BK_PLUS_QM (RE_BACKSLASH_ESCAPE_IN_LISTS << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |   76|    103|# define RE_BACKSLASH_ESCAPE_IN_LISTS 1ul
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
                      |RE_NO_POSIX_BACKTRACKING|RE_CONTEXT_INVALID_DUP|RE_NO_GNU_OPS;
  ------------------
  |  |  199|    103|# define RE_CONTEXT_INVALID_DUP (RE_CARET_ANCHORS_HERE << 1)
  |  |  ------------------
  |  |  |  |  195|    103|# define RE_CARET_ANCHORS_HERE (RE_ICASE << 1)
  |  |  |  |  ------------------
  |  |  |  |  |  |  190|    103|# define RE_ICASE (RE_INVALID_INTERVAL_ORD << 1)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  186|    103|# define RE_INVALID_INTERVAL_ORD (RE_DEBUG << 1)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  181|    103|# define RE_DEBUG (RE_NO_GNU_OPS << 1)
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  173|    103|# define RE_NO_GNU_OPS (RE_NO_POSIX_BACKTRACKING << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  169|    103|# define RE_NO_POSIX_BACKTRACKING (RE_UNMATCHED_RIGHT_PAREN_ORD << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  165|    103|# define RE_UNMATCHED_RIGHT_PAREN_ORD (RE_NO_EMPTY_RANGES << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  161|    103|# define RE_NO_EMPTY_RANGES (RE_NO_BK_VBAR << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  155|    103|# define RE_NO_BK_VBAR (RE_NO_BK_REFS << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  151|    103|# define RE_NO_BK_REFS (RE_NO_BK_PARENS << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  147|    103|# define RE_NO_BK_PARENS (RE_NO_BK_BRACES << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  143|    103|# define RE_NO_BK_BRACES (RE_NEWLINE_ALT << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  138|    103|# define RE_NEWLINE_ALT (RE_LIMITED_OPS << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  134|    103|# define RE_LIMITED_OPS (RE_INTERVALS << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  130|    103|# define RE_INTERVALS (RE_HAT_LISTS_NOT_NEWLINE << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  125|    103|# define RE_HAT_LISTS_NOT_NEWLINE (RE_DOT_NOT_NULL << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  121|    103|# define RE_DOT_NOT_NULL (RE_DOT_NEWLINE << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  117|    103|# define RE_DOT_NEWLINE (RE_CONTEXT_INVALID_OPS << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  113|    103|# define RE_CONTEXT_INVALID_OPS (RE_CONTEXT_INDEP_OPS << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  109|    103|# define RE_CONTEXT_INDEP_OPS (RE_CONTEXT_INDEP_ANCHORS << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  101|    103|# define RE_CONTEXT_INDEP_ANCHORS (RE_CHAR_CLASSES << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |   87|    103|# define RE_CHAR_CLASSES (RE_BK_PLUS_QM << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |   81|    103|# define RE_BK_PLUS_QM (RE_BACKSLASH_ESCAPE_IN_LISTS << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |   76|    103|# define RE_BACKSLASH_ESCAPE_IN_LISTS 1ul
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
                      |RE_NO_POSIX_BACKTRACKING|RE_CONTEXT_INVALID_DUP|RE_NO_GNU_OPS;
  ------------------
  |  |  173|    103|# define RE_NO_GNU_OPS (RE_NO_POSIX_BACKTRACKING << 1)
  |  |  ------------------
  |  |  |  |  169|    103|# define RE_NO_POSIX_BACKTRACKING (RE_UNMATCHED_RIGHT_PAREN_ORD << 1)
  |  |  |  |  ------------------
  |  |  |  |  |  |  165|    103|# define RE_UNMATCHED_RIGHT_PAREN_ORD (RE_NO_EMPTY_RANGES << 1)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  161|    103|# define RE_NO_EMPTY_RANGES (RE_NO_BK_VBAR << 1)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  155|    103|# define RE_NO_BK_VBAR (RE_NO_BK_REFS << 1)
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  151|    103|# define RE_NO_BK_REFS (RE_NO_BK_PARENS << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  147|    103|# define RE_NO_BK_PARENS (RE_NO_BK_BRACES << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  143|    103|# define RE_NO_BK_BRACES (RE_NEWLINE_ALT << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  138|    103|# define RE_NEWLINE_ALT (RE_LIMITED_OPS << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  134|    103|# define RE_LIMITED_OPS (RE_INTERVALS << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  130|    103|# define RE_INTERVALS (RE_HAT_LISTS_NOT_NEWLINE << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  125|    103|# define RE_HAT_LISTS_NOT_NEWLINE (RE_DOT_NOT_NULL << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  121|    103|# define RE_DOT_NOT_NULL (RE_DOT_NEWLINE << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  117|    103|# define RE_DOT_NEWLINE (RE_CONTEXT_INVALID_OPS << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  113|    103|# define RE_CONTEXT_INVALID_OPS (RE_CONTEXT_INDEP_OPS << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  109|    103|# define RE_CONTEXT_INDEP_OPS (RE_CONTEXT_INDEP_ANCHORS << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  101|    103|# define RE_CONTEXT_INDEP_ANCHORS (RE_CHAR_CLASSES << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |   87|    103|# define RE_CHAR_CLASSES (RE_BK_PLUS_QM << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |   81|    103|# define RE_BK_PLUS_QM (RE_BACKSLASH_ESCAPE_IN_LISTS << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |   76|    103|# define RE_BACKSLASH_ESCAPE_IN_LISTS 1ul
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  551|    103|    reg_syntax_t old_syntax = re_syntax_options;
  ------------------
  |  | 2553|    103|#define re_syntax_options rpl_re_syntax_options
  ------------------
  552|       |
  553|    103|    *c = NULL;
  554|       |
  555|    103|    if (r->re == NULL) {
  ------------------
  |  Branch (555:9): [True: 103, False: 0]
  ------------------
  556|    103|        if (ALLOC(r->re) < 0)
  ------------------
  |  |   43|    103|#define ALLOC(ptr) mem_alloc_n(&(ptr), sizeof(*(ptr)), 1)
  ------------------
  |  Branch (556:13): [True: 0, False: 103]
  ------------------
  557|      0|            return -1;
  558|    103|    }
  559|       |
  560|    103|    re_syntax_options = syntax;
  ------------------
  |  | 2553|    103|#define re_syntax_options rpl_re_syntax_options
  ------------------
  561|    103|    if (r->nocase)
  ------------------
  |  Branch (561:9): [True: 0, False: 103]
  ------------------
  562|      0|        re_syntax_options |= RE_ICASE;
  ------------------
  |  | 2553|      0|#define re_syntax_options rpl_re_syntax_options
  ------------------
                      re_syntax_options |= RE_ICASE;
  ------------------
  |  |  190|      0|# define RE_ICASE (RE_INVALID_INTERVAL_ORD << 1)
  |  |  ------------------
  |  |  |  |  186|      0|# define RE_INVALID_INTERVAL_ORD (RE_DEBUG << 1)
  |  |  |  |  ------------------
  |  |  |  |  |  |  181|      0|# define RE_DEBUG (RE_NO_GNU_OPS << 1)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  173|      0|# define RE_NO_GNU_OPS (RE_NO_POSIX_BACKTRACKING << 1)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  169|      0|# define RE_NO_POSIX_BACKTRACKING (RE_UNMATCHED_RIGHT_PAREN_ORD << 1)
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  165|      0|# define RE_UNMATCHED_RIGHT_PAREN_ORD (RE_NO_EMPTY_RANGES << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  161|      0|# define RE_NO_EMPTY_RANGES (RE_NO_BK_VBAR << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  155|      0|# define RE_NO_BK_VBAR (RE_NO_BK_REFS << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  151|      0|# define RE_NO_BK_REFS (RE_NO_BK_PARENS << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  147|      0|# define RE_NO_BK_PARENS (RE_NO_BK_BRACES << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  143|      0|# define RE_NO_BK_BRACES (RE_NEWLINE_ALT << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  138|      0|# define RE_NEWLINE_ALT (RE_LIMITED_OPS << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  134|      0|# define RE_LIMITED_OPS (RE_INTERVALS << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  130|      0|# define RE_INTERVALS (RE_HAT_LISTS_NOT_NEWLINE << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  125|      0|# define RE_HAT_LISTS_NOT_NEWLINE (RE_DOT_NOT_NULL << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  121|      0|# define RE_DOT_NOT_NULL (RE_DOT_NEWLINE << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  117|      0|# define RE_DOT_NEWLINE (RE_CONTEXT_INVALID_OPS << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  113|      0|# define RE_CONTEXT_INVALID_OPS (RE_CONTEXT_INDEP_OPS << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  109|      0|# define RE_CONTEXT_INDEP_OPS (RE_CONTEXT_INDEP_ANCHORS << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  101|      0|# define RE_CONTEXT_INDEP_ANCHORS (RE_CHAR_CLASSES << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |   87|      0|# define RE_CHAR_CLASSES (RE_BK_PLUS_QM << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |   81|      0|# define RE_BK_PLUS_QM (RE_BACKSLASH_ESCAPE_IN_LISTS << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |   76|      0|# define RE_BACKSLASH_ESCAPE_IN_LISTS 1ul
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  563|    103|    *c = re_compile_pattern(r->pattern->str, strlen(r->pattern->str), r->re);
  ------------------
  |  | 2529|    103|#define re_compile_pattern rpl_re_compile_pattern
  ------------------
  564|    103|    re_syntax_options = old_syntax;
  ------------------
  |  | 2553|    103|#define re_syntax_options rpl_re_syntax_options
  ------------------
  565|       |
  566|    103|    if (*c != NULL) {
  ------------------
  |  Branch (566:9): [True: 10, False: 93]
  ------------------
  567|       |        /* Do not keep the pattern buffer around after a failed compile:
  568|       |         * regexp_match only compiles R when R->RE is NULL, and would
  569|       |         * otherwise match against this unusable buffer the next time
  570|       |         * around */
  571|     10|        regfree(r->re);
  ------------------
  |  | 2565|     10|#define regfree rpl_regfree
  ------------------
  572|     10|        FREE(r->re);
  ------------------
  |  |   79|     10|  do {                                          \
  |  |   80|     10|    free(ptr);                                  \
  |  |   81|     10|    (ptr) = NULL;                               \
  |  |   82|     10|  } while(0)
  |  |  ------------------
  |  |  |  Branch (82:11): [Folded, False: 10]
  |  |  ------------------
  ------------------
  573|     10|        return -1;
  574|     10|    }
  575|     93|    r->re->regs_allocated = REGS_REALLOCATE;
  ------------------
  |  |  454|     93|# define REGS_REALLOCATE 1
  ------------------
  576|     93|    return 0;
  577|    103|}

free_term:
  164|    405|void free_term(struct term *term) {
  165|    405|    if (term == NULL)
  ------------------
  |  Branch (165:9): [True: 0, False: 405]
  ------------------
  166|      0|        return;
  167|    405|    assert(term->ref == 0);
  ------------------
  |  Branch (167:5): [True: 0, False: 405]
  |  Branch (167:5): [True: 405, False: 0]
  ------------------
  168|    405|    switch(term->tag) {
  169|      0|    case A_MODULE:
  ------------------
  |  Branch (169:5): [True: 0, False: 405]
  ------------------
  170|      0|        free(term->mname);
  171|      0|        free(term->autoload);
  172|      0|        unref(term->decls, term);
  ------------------
  |  |   55|      0|    do {                                                                \
  |  |   56|      0|        if ((s) != NULL && (s)->ref != REF_MAX) {                       \
  |  |  ------------------
  |  |  |  |   41|      0|#define REF_MAX UINT_MAX
  |  |  ------------------
  |  |  |  Branch (56:13): [True: 0, False: 0]
  |  |  |  Branch (56:28): [True: 0, False: 0]
  |  |  ------------------
  |  |   57|      0|            assert((s)->ref > 0);                                       \
  |  |   58|      0|            if (--(s)->ref == 0) {                                      \
  |  |  ------------------
  |  |  |  Branch (58:17): [True: 0, False: 0]
  |  |  ------------------
  |  |   59|      0|                /*memset(s, 255, sizeof(*s));*/                         \
  |  |   60|      0|                free_##t(s);                                            \
  |  |   61|      0|            }                                                           \
  |  |   62|      0|        }                                                               \
  |  |   63|      0|        (s) = NULL;                                                     \
  |  |   64|      0|    } while(0)
  |  |  ------------------
  |  |  |  Branch (64:13): [Folded, False: 0]
  |  |  ------------------
  ------------------
  |  Branch (172:9): [True: 0, False: 0]
  |  Branch (172:9): [True: 0, False: 0]
  ------------------
  173|      0|        break;
  174|      0|    case A_BIND:
  ------------------
  |  Branch (174:5): [True: 0, False: 405]
  ------------------
  175|      0|        free(term->bname);
  176|      0|        unref(term->exp, term);
  ------------------
  |  |   55|      0|    do {                                                                \
  |  |   56|      0|        if ((s) != NULL && (s)->ref != REF_MAX) {                       \
  |  |  ------------------
  |  |  |  |   41|      0|#define REF_MAX UINT_MAX
  |  |  ------------------
  |  |  |  Branch (56:13): [True: 0, False: 0]
  |  |  |  Branch (56:28): [True: 0, False: 0]
  |  |  ------------------
  |  |   57|      0|            assert((s)->ref > 0);                                       \
  |  |   58|      0|            if (--(s)->ref == 0) {                                      \
  |  |  ------------------
  |  |  |  Branch (58:17): [True: 0, False: 0]
  |  |  ------------------
  |  |   59|      0|                /*memset(s, 255, sizeof(*s));*/                         \
  |  |   60|      0|                free_##t(s);                                            \
  |  |   61|      0|            }                                                           \
  |  |   62|      0|        }                                                               \
  |  |   63|      0|        (s) = NULL;                                                     \
  |  |   64|      0|    } while(0)
  |  |  ------------------
  |  |  |  Branch (64:13): [Folded, False: 0]
  |  |  ------------------
  ------------------
  |  Branch (176:9): [True: 0, False: 0]
  |  Branch (176:9): [True: 0, False: 0]
  ------------------
  177|      0|        break;
  178|      0|    case A_COMPOSE:
  ------------------
  |  Branch (178:5): [True: 0, False: 405]
  ------------------
  179|      0|    case A_UNION:
  ------------------
  |  Branch (179:5): [True: 0, False: 405]
  ------------------
  180|      0|    case A_MINUS:
  ------------------
  |  Branch (180:5): [True: 0, False: 405]
  ------------------
  181|      0|    case A_CONCAT:
  ------------------
  |  Branch (181:5): [True: 0, False: 405]
  ------------------
  182|      0|    case A_APP:
  ------------------
  |  Branch (182:5): [True: 0, False: 405]
  ------------------
  183|      0|    case A_LET:
  ------------------
  |  Branch (183:5): [True: 0, False: 405]
  ------------------
  184|      0|        unref(term->left, term);
  ------------------
  |  |   55|      0|    do {                                                                \
  |  |   56|      0|        if ((s) != NULL && (s)->ref != REF_MAX) {                       \
  |  |  ------------------
  |  |  |  |   41|      0|#define REF_MAX UINT_MAX
  |  |  ------------------
  |  |  |  Branch (56:13): [True: 0, False: 0]
  |  |  |  Branch (56:28): [True: 0, False: 0]
  |  |  ------------------
  |  |   57|      0|            assert((s)->ref > 0);                                       \
  |  |   58|      0|            if (--(s)->ref == 0) {                                      \
  |  |  ------------------
  |  |  |  Branch (58:17): [True: 0, False: 0]
  |  |  ------------------
  |  |   59|      0|                /*memset(s, 255, sizeof(*s));*/                         \
  |  |   60|      0|                free_##t(s);                                            \
  |  |   61|      0|            }                                                           \
  |  |   62|      0|        }                                                               \
  |  |   63|      0|        (s) = NULL;                                                     \
  |  |   64|      0|    } while(0)
  |  |  ------------------
  |  |  |  Branch (64:13): [Folded, False: 0]
  |  |  ------------------
  ------------------
  |  Branch (184:9): [True: 0, False: 0]
  |  Branch (184:9): [True: 0, False: 0]
  ------------------
  185|      0|        unref(term->right, term);
  ------------------
  |  |   55|      0|    do {                                                                \
  |  |   56|      0|        if ((s) != NULL && (s)->ref != REF_MAX) {                       \
  |  |  ------------------
  |  |  |  |   41|      0|#define REF_MAX UINT_MAX
  |  |  ------------------
  |  |  |  Branch (56:13): [True: 0, False: 0]
  |  |  |  Branch (56:28): [True: 0, False: 0]
  |  |  ------------------
  |  |   57|      0|            assert((s)->ref > 0);                                       \
  |  |   58|      0|            if (--(s)->ref == 0) {                                      \
  |  |  ------------------
  |  |  |  Branch (58:17): [True: 0, False: 0]
  |  |  ------------------
  |  |   59|      0|                /*memset(s, 255, sizeof(*s));*/                         \
  |  |   60|      0|                free_##t(s);                                            \
  |  |   61|      0|            }                                                           \
  |  |   62|      0|        }                                                               \
  |  |   63|      0|        (s) = NULL;                                                     \
  |  |   64|      0|    } while(0)
  |  |  ------------------
  |  |  |  Branch (64:13): [Folded, False: 0]
  |  |  ------------------
  ------------------
  |  Branch (185:9): [True: 0, False: 0]
  |  Branch (185:9): [True: 0, False: 0]
  ------------------
  186|      0|        break;
  187|    160|    case A_VALUE:
  ------------------
  |  Branch (187:5): [True: 160, False: 245]
  ------------------
  188|    160|        unref(term->value, value);
  ------------------
  |  |   55|    160|    do {                                                                \
  |  |   56|    160|        if ((s) != NULL && (s)->ref != REF_MAX) {                       \
  |  |  ------------------
  |  |  |  |   41|    160|#define REF_MAX UINT_MAX
  |  |  ------------------
  |  |  |  Branch (56:13): [True: 160, False: 0]
  |  |  |  Branch (56:28): [True: 160, False: 0]
  |  |  ------------------
  |  |   57|    160|            assert((s)->ref > 0);                                       \
  |  |   58|    160|            if (--(s)->ref == 0) {                                      \
  |  |  ------------------
  |  |  |  Branch (58:17): [True: 160, False: 0]
  |  |  ------------------
  |  |   59|    160|                /*memset(s, 255, sizeof(*s));*/                         \
  |  |   60|    160|                free_##t(s);                                            \
  |  |   61|    160|            }                                                           \
  |  |   62|    160|        }                                                               \
  |  |   63|    160|        (s) = NULL;                                                     \
  |  |   64|    160|    } while(0)
  |  |  ------------------
  |  |  |  Branch (64:13): [Folded, False: 160]
  |  |  ------------------
  ------------------
  |  Branch (188:9): [True: 0, False: 160]
  |  Branch (188:9): [True: 160, False: 0]
  ------------------
  189|    160|        break;
  190|    160|    case A_IDENT:
  ------------------
  |  Branch (190:5): [True: 0, False: 405]
  ------------------
  191|      0|        unref(term->ident, string);
  ------------------
  |  |   55|      0|    do {                                                                \
  |  |   56|      0|        if ((s) != NULL && (s)->ref != REF_MAX) {                       \
  |  |  ------------------
  |  |  |  |   41|      0|#define REF_MAX UINT_MAX
  |  |  ------------------
  |  |  |  Branch (56:13): [True: 0, False: 0]
  |  |  |  Branch (56:28): [True: 0, False: 0]
  |  |  ------------------
  |  |   57|      0|            assert((s)->ref > 0);                                       \
  |  |   58|      0|            if (--(s)->ref == 0) {                                      \
  |  |  ------------------
  |  |  |  Branch (58:17): [True: 0, False: 0]
  |  |  ------------------
  |  |   59|      0|                /*memset(s, 255, sizeof(*s));*/                         \
  |  |   60|      0|                free_##t(s);                                            \
  |  |   61|      0|            }                                                           \
  |  |   62|      0|        }                                                               \
  |  |   63|      0|        (s) = NULL;                                                     \
  |  |   64|      0|    } while(0)
  |  |  ------------------
  |  |  |  Branch (64:13): [Folded, False: 0]
  |  |  ------------------
  ------------------
  |  Branch (191:9): [True: 0, False: 0]
  |  Branch (191:9): [True: 0, False: 0]
  ------------------
  192|      0|        break;
  193|      0|    case A_BRACKET:
  ------------------
  |  Branch (193:5): [True: 0, False: 405]
  ------------------
  194|      0|        unref(term->brexp, term);
  ------------------
  |  |   55|      0|    do {                                                                \
  |  |   56|      0|        if ((s) != NULL && (s)->ref != REF_MAX) {                       \
  |  |  ------------------
  |  |  |  |   41|      0|#define REF_MAX UINT_MAX
  |  |  ------------------
  |  |  |  Branch (56:13): [True: 0, False: 0]
  |  |  |  Branch (56:28): [True: 0, False: 0]
  |  |  ------------------
  |  |   57|      0|            assert((s)->ref > 0);                                       \
  |  |   58|      0|            if (--(s)->ref == 0) {                                      \
  |  |  ------------------
  |  |  |  Branch (58:17): [True: 0, False: 0]
  |  |  ------------------
  |  |   59|      0|                /*memset(s, 255, sizeof(*s));*/                         \
  |  |   60|      0|                free_##t(s);                                            \
  |  |   61|      0|            }                                                           \
  |  |   62|      0|        }                                                               \
  |  |   63|      0|        (s) = NULL;                                                     \
  |  |   64|      0|    } while(0)
  |  |  ------------------
  |  |  |  Branch (64:13): [Folded, False: 0]
  |  |  ------------------
  ------------------
  |  Branch (194:9): [True: 0, False: 0]
  |  Branch (194:9): [True: 0, False: 0]
  ------------------
  195|      0|        break;
  196|    245|    case A_FUNC:
  ------------------
  |  Branch (196:5): [True: 245, False: 160]
  ------------------
  197|    245|        unref(term->param, param);
  ------------------
  |  |   55|    245|    do {                                                                \
  |  |   56|    245|        if ((s) != NULL && (s)->ref != REF_MAX) {                       \
  |  |  ------------------
  |  |  |  |   41|    245|#define REF_MAX UINT_MAX
  |  |  ------------------
  |  |  |  Branch (56:13): [True: 245, False: 0]
  |  |  |  Branch (56:28): [True: 245, False: 0]
  |  |  ------------------
  |  |   57|    245|            assert((s)->ref > 0);                                       \
  |  |   58|    245|            if (--(s)->ref == 0) {                                      \
  |  |  ------------------
  |  |  |  Branch (58:17): [True: 245, False: 0]
  |  |  ------------------
  |  |   59|    245|                /*memset(s, 255, sizeof(*s));*/                         \
  |  |   60|    245|                free_##t(s);                                            \
  |  |   61|    245|            }                                                           \
  |  |   62|    245|        }                                                               \
  |  |   63|    245|        (s) = NULL;                                                     \
  |  |   64|    245|    } while(0)
  |  |  ------------------
  |  |  |  Branch (64:13): [Folded, False: 245]
  |  |  ------------------
  ------------------
  |  Branch (197:9): [True: 0, False: 245]
  |  Branch (197:9): [True: 245, False: 0]
  ------------------
  198|    245|        unref(term->body, term);
  ------------------
  |  |   55|    245|    do {                                                                \
  |  |   56|    245|        if ((s) != NULL && (s)->ref != REF_MAX) {                       \
  |  |  ------------------
  |  |  |  |   41|    245|#define REF_MAX UINT_MAX
  |  |  ------------------
  |  |  |  Branch (56:13): [True: 245, False: 0]
  |  |  |  Branch (56:28): [True: 245, False: 0]
  |  |  ------------------
  |  |   57|    245|            assert((s)->ref > 0);                                       \
  |  |   58|    245|            if (--(s)->ref == 0) {                                      \
  |  |  ------------------
  |  |  |  Branch (58:17): [True: 245, False: 0]
  |  |  ------------------
  |  |   59|    245|                /*memset(s, 255, sizeof(*s));*/                         \
  |  |   60|    245|                free_##t(s);                                            \
  |  |   61|    245|            }                                                           \
  |  |   62|    245|        }                                                               \
  |  |   63|    245|        (s) = NULL;                                                     \
  |  |   64|    245|    } while(0)
  |  |  ------------------
  |  |  |  Branch (64:13): [Folded, False: 245]
  |  |  ------------------
  ------------------
  |  Branch (198:9): [True: 0, False: 245]
  |  Branch (198:9): [True: 245, False: 0]
  ------------------
  199|    245|        break;
  200|    245|    case A_REP:
  ------------------
  |  Branch (200:5): [True: 0, False: 405]
  ------------------
  201|      0|        unref(term->rexp, term);
  ------------------
  |  |   55|      0|    do {                                                                \
  |  |   56|      0|        if ((s) != NULL && (s)->ref != REF_MAX) {                       \
  |  |  ------------------
  |  |  |  |   41|      0|#define REF_MAX UINT_MAX
  |  |  ------------------
  |  |  |  Branch (56:13): [True: 0, False: 0]
  |  |  |  Branch (56:28): [True: 0, False: 0]
  |  |  ------------------
  |  |   57|      0|            assert((s)->ref > 0);                                       \
  |  |   58|      0|            if (--(s)->ref == 0) {                                      \
  |  |  ------------------
  |  |  |  Branch (58:17): [True: 0, False: 0]
  |  |  ------------------
  |  |   59|      0|                /*memset(s, 255, sizeof(*s));*/                         \
  |  |   60|      0|                free_##t(s);                                            \
  |  |   61|      0|            }                                                           \
  |  |   62|      0|        }                                                               \
  |  |   63|      0|        (s) = NULL;                                                     \
  |  |   64|      0|    } while(0)
  |  |  ------------------
  |  |  |  Branch (64:13): [Folded, False: 0]
  |  |  ------------------
  ------------------
  |  Branch (201:9): [True: 0, False: 0]
  |  Branch (201:9): [True: 0, False: 0]
  ------------------
  202|      0|        break;
  203|      0|    case A_TEST:
  ------------------
  |  Branch (203:5): [True: 0, False: 405]
  ------------------
  204|      0|        unref(term->test, term);
  ------------------
  |  |   55|      0|    do {                                                                \
  |  |   56|      0|        if ((s) != NULL && (s)->ref != REF_MAX) {                       \
  |  |  ------------------
  |  |  |  |   41|      0|#define REF_MAX UINT_MAX
  |  |  ------------------
  |  |  |  Branch (56:13): [True: 0, False: 0]
  |  |  |  Branch (56:28): [True: 0, False: 0]
  |  |  ------------------
  |  |   57|      0|            assert((s)->ref > 0);                                       \
  |  |   58|      0|            if (--(s)->ref == 0) {                                      \
  |  |  ------------------
  |  |  |  Branch (58:17): [True: 0, False: 0]
  |  |  ------------------
  |  |   59|      0|                /*memset(s, 255, sizeof(*s));*/                         \
  |  |   60|      0|                free_##t(s);                                            \
  |  |   61|      0|            }                                                           \
  |  |   62|      0|        }                                                               \
  |  |   63|      0|        (s) = NULL;                                                     \
  |  |   64|      0|    } while(0)
  |  |  ------------------
  |  |  |  Branch (64:13): [Folded, False: 0]
  |  |  ------------------
  ------------------
  |  Branch (204:9): [True: 0, False: 0]
  |  Branch (204:9): [True: 0, False: 0]
  ------------------
  205|      0|        unref(term->result, term);
  ------------------
  |  |   55|      0|    do {                                                                \
  |  |   56|      0|        if ((s) != NULL && (s)->ref != REF_MAX) {                       \
  |  |  ------------------
  |  |  |  |   41|      0|#define REF_MAX UINT_MAX
  |  |  ------------------
  |  |  |  Branch (56:13): [True: 0, False: 0]
  |  |  |  Branch (56:28): [True: 0, False: 0]
  |  |  ------------------
  |  |   57|      0|            assert((s)->ref > 0);                                       \
  |  |   58|      0|            if (--(s)->ref == 0) {                                      \
  |  |  ------------------
  |  |  |  Branch (58:17): [True: 0, False: 0]
  |  |  ------------------
  |  |   59|      0|                /*memset(s, 255, sizeof(*s));*/                         \
  |  |   60|      0|                free_##t(s);                                            \
  |  |   61|      0|            }                                                           \
  |  |   62|      0|        }                                                               \
  |  |   63|      0|        (s) = NULL;                                                     \
  |  |   64|      0|    } while(0)
  |  |  ------------------
  |  |  |  Branch (64:13): [Folded, False: 0]
  |  |  ------------------
  ------------------
  |  Branch (205:9): [True: 0, False: 0]
  |  Branch (205:9): [True: 0, False: 0]
  ------------------
  206|      0|        break;
  207|      0|    default:
  ------------------
  |  Branch (207:5): [True: 0, False: 405]
  ------------------
  208|      0|        assert(0);
  ------------------
  |  Branch (208:9): [Folded, False: 0]
  |  Branch (208:9): [Folded, False: 0]
  ------------------
  209|      0|        break;
  210|    405|    }
  211|    405|    unref(term->next, term);
  ------------------
  |  |   55|    405|    do {                                                                \
  |  |   56|    405|        if ((s) != NULL && (s)->ref != REF_MAX) {                       \
  |  |  ------------------
  |  |  |  |   41|      0|#define REF_MAX UINT_MAX
  |  |  ------------------
  |  |  |  Branch (56:13): [True: 0, False: 405]
  |  |  |  Branch (56:28): [True: 0, False: 0]
  |  |  ------------------
  |  |   57|      0|            assert((s)->ref > 0);                                       \
  |  |   58|      0|            if (--(s)->ref == 0) {                                      \
  |  |  ------------------
  |  |  |  Branch (58:17): [True: 0, False: 0]
  |  |  ------------------
  |  |   59|      0|                /*memset(s, 255, sizeof(*s));*/                         \
  |  |   60|      0|                free_##t(s);                                            \
  |  |   61|      0|            }                                                           \
  |  |   62|      0|        }                                                               \
  |  |   63|    405|        (s) = NULL;                                                     \
  |  |   64|    405|    } while(0)
  |  |  ------------------
  |  |  |  Branch (64:13): [Folded, False: 405]
  |  |  ------------------
  ------------------
  |  Branch (211:5): [True: 0, False: 0]
  |  Branch (211:5): [True: 0, False: 0]
  ------------------
  212|    405|    unref(term->info, info);
  ------------------
  |  |   55|    405|    do {                                                                \
  |  |   56|    405|        if ((s) != NULL && (s)->ref != REF_MAX) {                       \
  |  |  ------------------
  |  |  |  |   41|    245|#define REF_MAX UINT_MAX
  |  |  ------------------
  |  |  |  Branch (56:13): [True: 245, False: 160]
  |  |  |  Branch (56:28): [True: 245, False: 0]
  |  |  ------------------
  |  |   57|    245|            assert((s)->ref > 0);                                       \
  |  |   58|    245|            if (--(s)->ref == 0) {                                      \
  |  |  ------------------
  |  |  |  Branch (58:17): [True: 0, False: 245]
  |  |  ------------------
  |  |   59|      0|                /*memset(s, 255, sizeof(*s));*/                         \
  |  |   60|      0|                free_##t(s);                                            \
  |  |   61|      0|            }                                                           \
  |  |   62|    245|        }                                                               \
  |  |   63|    405|        (s) = NULL;                                                     \
  |  |   64|    405|    } while(0)
  |  |  ------------------
  |  |  |  Branch (64:13): [Folded, False: 405]
  |  |  ------------------
  ------------------
  |  Branch (212:5): [True: 0, False: 245]
  |  Branch (212:5): [True: 245, False: 0]
  ------------------
  213|    405|    unref(term->type, type);
  ------------------
  |  |   55|    405|    do {                                                                \
  |  |   56|    405|        if ((s) != NULL && (s)->ref != REF_MAX) {                       \
  |  |  ------------------
  |  |  |  |   41|    405|#define REF_MAX UINT_MAX
  |  |  ------------------
  |  |  |  Branch (56:13): [True: 405, False: 0]
  |  |  |  Branch (56:28): [True: 245, False: 160]
  |  |  ------------------
  |  |   57|    245|            assert((s)->ref > 0);                                       \
  |  |   58|    245|            if (--(s)->ref == 0) {                                      \
  |  |  ------------------
  |  |  |  Branch (58:17): [True: 160, False: 85]
  |  |  ------------------
  |  |   59|    160|                /*memset(s, 255, sizeof(*s));*/                         \
  |  |   60|    160|                free_##t(s);                                            \
  |  |   61|    160|            }                                                           \
  |  |   62|    245|        }                                                               \
  |  |   63|    405|        (s) = NULL;                                                     \
  |  |   64|    405|    } while(0)
  |  |  ------------------
  |  |  |  Branch (64:13): [Folded, False: 405]
  |  |  ------------------
  ------------------
  |  Branch (213:5): [True: 0, False: 245]
  |  Branch (213:5): [True: 245, False: 0]
  ------------------
  214|    405|    free(term);
  215|    405|}
free_module:
  228|     10|void free_module(struct module *module) {
  229|     10|    if (module == NULL)
  ------------------
  |  Branch (229:9): [True: 0, False: 10]
  ------------------
  230|      0|        return;
  231|     10|    assert(module->ref == 0);
  ------------------
  |  Branch (231:5): [True: 0, False: 10]
  |  Branch (231:5): [True: 10, False: 0]
  ------------------
  232|     10|    free(module->name);
  233|     10|    unref(module->next, module);
  ------------------
  |  |   55|     10|    do {                                                                \
  |  |   56|     10|        if ((s) != NULL && (s)->ref != REF_MAX) {                       \
  |  |  ------------------
  |  |  |  |   41|      5|#define REF_MAX UINT_MAX
  |  |  ------------------
  |  |  |  Branch (56:13): [True: 5, False: 5]
  |  |  |  Branch (56:28): [True: 5, False: 0]
  |  |  ------------------
  |  |   57|      5|            assert((s)->ref > 0);                                       \
  |  |   58|      5|            if (--(s)->ref == 0) {                                      \
  |  |  ------------------
  |  |  |  Branch (58:17): [True: 5, False: 0]
  |  |  ------------------
  |  |   59|      5|                /*memset(s, 255, sizeof(*s));*/                         \
  |  |   60|      5|                free_##t(s);                                            \
  |  |   61|      5|            }                                                           \
  |  |   62|      5|        }                                                               \
  |  |   63|     10|        (s) = NULL;                                                     \
  |  |   64|     10|    } while(0)
  |  |  ------------------
  |  |  |  Branch (64:13): [Folded, False: 10]
  |  |  ------------------
  ------------------
  |  Branch (233:5): [True: 0, False: 5]
  |  Branch (233:5): [True: 5, False: 0]
  ------------------
  234|     10|    unref(module->bindings, binding);
  ------------------
  |  |   55|     10|    do {                                                                \
  |  |   56|     10|        if ((s) != NULL && (s)->ref != REF_MAX) {                       \
  |  |  ------------------
  |  |  |  |   41|     10|#define REF_MAX UINT_MAX
  |  |  ------------------
  |  |  |  Branch (56:13): [True: 10, False: 0]
  |  |  |  Branch (56:28): [True: 10, False: 0]
  |  |  ------------------
  |  |   57|     10|            assert((s)->ref > 0);                                       \
  |  |   58|     10|            if (--(s)->ref == 0) {                                      \
  |  |  ------------------
  |  |  |  Branch (58:17): [True: 10, False: 0]
  |  |  ------------------
  |  |   59|     10|                /*memset(s, 255, sizeof(*s));*/                         \
  |  |   60|     10|                free_##t(s);                                            \
  |  |   61|     10|            }                                                           \
  |  |   62|     10|        }                                                               \
  |  |   63|     10|        (s) = NULL;                                                     \
  |  |   64|     10|    } while(0)
  |  |  ------------------
  |  |  |  Branch (64:13): [Folded, False: 10]
  |  |  ------------------
  ------------------
  |  Branch (234:5): [True: 0, False: 10]
  |  Branch (234:5): [True: 10, False: 0]
  ------------------
  235|     10|    unref(module->autoload, transform);
  ------------------
  |  |   55|     10|    do {                                                                \
  |  |   56|     10|        if ((s) != NULL && (s)->ref != REF_MAX) {                       \
  |  |  ------------------
  |  |  |  |   41|      0|#define REF_MAX UINT_MAX
  |  |  ------------------
  |  |  |  Branch (56:13): [True: 0, False: 10]
  |  |  |  Branch (56:28): [True: 0, False: 0]
  |  |  ------------------
  |  |   57|      0|            assert((s)->ref > 0);                                       \
  |  |   58|      0|            if (--(s)->ref == 0) {                                      \
  |  |  ------------------
  |  |  |  Branch (58:17): [True: 0, False: 0]
  |  |  ------------------
  |  |   59|      0|                /*memset(s, 255, sizeof(*s));*/                         \
  |  |   60|      0|                free_##t(s);                                            \
  |  |   61|      0|            }                                                           \
  |  |   62|      0|        }                                                               \
  |  |   63|     10|        (s) = NULL;                                                     \
  |  |   64|     10|    } while(0)
  |  |  ------------------
  |  |  |  Branch (64:13): [Folded, False: 10]
  |  |  ------------------
  ------------------
  |  Branch (235:5): [True: 0, False: 0]
  |  Branch (235:5): [True: 0, False: 0]
  ------------------
  236|     10|    free(module);
  237|     10|}
free_type:
  239|    245|void free_type(struct type *type) {
  240|    245|    if (type == NULL)
  ------------------
  |  Branch (240:9): [True: 0, False: 245]
  ------------------
  241|      0|        return;
  242|    245|    assert(type->ref == 0);
  ------------------
  |  Branch (242:5): [True: 0, False: 245]
  |  Branch (242:5): [True: 245, False: 0]
  ------------------
  243|       |
  244|    245|    if (type->tag == T_ARROW) {
  ------------------
  |  Branch (244:9): [True: 245, False: 0]
  ------------------
  245|    245|        unref(type->dom, type);
  ------------------
  |  |   55|    245|    do {                                                                \
  |  |   56|    245|        if ((s) != NULL && (s)->ref != REF_MAX) {                       \
  |  |  ------------------
  |  |  |  |   41|    245|#define REF_MAX UINT_MAX
  |  |  ------------------
  |  |  |  Branch (56:13): [True: 245, False: 0]
  |  |  |  Branch (56:28): [True: 0, False: 245]
  |  |  ------------------
  |  |   57|      0|            assert((s)->ref > 0);                                       \
  |  |   58|      0|            if (--(s)->ref == 0) {                                      \
  |  |  ------------------
  |  |  |  Branch (58:17): [True: 0, False: 0]
  |  |  ------------------
  |  |   59|      0|                /*memset(s, 255, sizeof(*s));*/                         \
  |  |   60|      0|                free_##t(s);                                            \
  |  |   61|      0|            }                                                           \
  |  |   62|      0|        }                                                               \
  |  |   63|    245|        (s) = NULL;                                                     \
  |  |   64|    245|    } while(0)
  |  |  ------------------
  |  |  |  Branch (64:13): [Folded, False: 245]
  |  |  ------------------
  ------------------
  |  Branch (245:9): [True: 0, False: 0]
  |  Branch (245:9): [True: 0, False: 0]
  ------------------
  246|    245|        unref(type->img, type);
  ------------------
  |  |   55|    245|    do {                                                                \
  |  |   56|    245|        if ((s) != NULL && (s)->ref != REF_MAX) {                       \
  |  |  ------------------
  |  |  |  |   41|    245|#define REF_MAX UINT_MAX
  |  |  ------------------
  |  |  |  Branch (56:13): [True: 245, False: 0]
  |  |  |  Branch (56:28): [True: 85, False: 160]
  |  |  ------------------
  |  |   57|     85|            assert((s)->ref > 0);                                       \
  |  |   58|     85|            if (--(s)->ref == 0) {                                      \
  |  |  ------------------
  |  |  |  Branch (58:17): [True: 85, False: 0]
  |  |  ------------------
  |  |   59|     85|                /*memset(s, 255, sizeof(*s));*/                         \
  |  |   60|     85|                free_##t(s);                                            \
  |  |   61|     85|            }                                                           \
  |  |   62|     85|        }                                                               \
  |  |   63|    245|        (s) = NULL;                                                     \
  |  |   64|    245|    } while(0)
  |  |  ------------------
  |  |  |  Branch (64:13): [Folded, False: 245]
  |  |  ------------------
  ------------------
  |  Branch (246:9): [True: 0, False: 85]
  |  Branch (246:9): [True: 85, False: 0]
  ------------------
  247|    245|    }
  248|    245|    free(type);
  249|    245|}
free_value:
  264|    325|void free_value(struct value *v) {
  265|    325|    if (v == NULL)
  ------------------
  |  Branch (265:9): [True: 0, False: 325]
  ------------------
  266|      0|        return;
  267|    325|    assert(v->ref == 0);
  ------------------
  |  Branch (267:5): [True: 0, False: 325]
  |  Branch (267:5): [True: 325, False: 0]
  ------------------
  268|       |
  269|    325|    switch(v->tag) {
  270|      0|    case V_STRING:
  ------------------
  |  Branch (270:5): [True: 0, False: 325]
  ------------------
  271|      0|        unref(v->string, string);
  ------------------
  |  |   55|      0|    do {                                                                \
  |  |   56|      0|        if ((s) != NULL && (s)->ref != REF_MAX) {                       \
  |  |  ------------------
  |  |  |  |   41|      0|#define REF_MAX UINT_MAX
  |  |  ------------------
  |  |  |  Branch (56:13): [True: 0, False: 0]
  |  |  |  Branch (56:28): [True: 0, False: 0]
  |  |  ------------------
  |  |   57|      0|            assert((s)->ref > 0);                                       \
  |  |   58|      0|            if (--(s)->ref == 0) {                                      \
  |  |  ------------------
  |  |  |  Branch (58:17): [True: 0, False: 0]
  |  |  ------------------
  |  |   59|      0|                /*memset(s, 255, sizeof(*s));*/                         \
  |  |   60|      0|                free_##t(s);                                            \
  |  |   61|      0|            }                                                           \
  |  |   62|      0|        }                                                               \
  |  |   63|      0|        (s) = NULL;                                                     \
  |  |   64|      0|    } while(0)
  |  |  ------------------
  |  |  |  Branch (64:13): [Folded, False: 0]
  |  |  ------------------
  ------------------
  |  Branch (271:9): [True: 0, False: 0]
  |  Branch (271:9): [True: 0, False: 0]
  ------------------
  272|      0|        break;
  273|      0|    case V_REGEXP:
  ------------------
  |  Branch (273:5): [True: 0, False: 325]
  ------------------
  274|      0|        unref(v->regexp, regexp);
  ------------------
  |  |   55|      0|    do {                                                                \
  |  |   56|      0|        if ((s) != NULL && (s)->ref != REF_MAX) {                       \
  |  |  ------------------
  |  |  |  |   41|      0|#define REF_MAX UINT_MAX
  |  |  ------------------
  |  |  |  Branch (56:13): [True: 0, False: 0]
  |  |  |  Branch (56:28): [True: 0, False: 0]
  |  |  ------------------
  |  |   57|      0|            assert((s)->ref > 0);                                       \
  |  |   58|      0|            if (--(s)->ref == 0) {                                      \
  |  |  ------------------
  |  |  |  Branch (58:17): [True: 0, False: 0]
  |  |  ------------------
  |  |   59|      0|                /*memset(s, 255, sizeof(*s));*/                         \
  |  |   60|      0|                free_##t(s);                                            \
  |  |   61|      0|            }                                                           \
  |  |   62|      0|        }                                                               \
  |  |   63|      0|        (s) = NULL;                                                     \
  |  |   64|      0|    } while(0)
  |  |  ------------------
  |  |  |  Branch (64:13): [Folded, False: 0]
  |  |  ------------------
  ------------------
  |  Branch (274:9): [True: 0, False: 0]
  |  Branch (274:9): [True: 0, False: 0]
  ------------------
  275|      0|        break;
  276|      0|    case V_LENS:
  ------------------
  |  Branch (276:5): [True: 0, False: 325]
  ------------------
  277|      0|        unref(v->lens, lens);
  ------------------
  |  |   55|      0|    do {                                                                \
  |  |   56|      0|        if ((s) != NULL && (s)->ref != REF_MAX) {                       \
  |  |  ------------------
  |  |  |  |   41|      0|#define REF_MAX UINT_MAX
  |  |  ------------------
  |  |  |  Branch (56:13): [True: 0, False: 0]
  |  |  |  Branch (56:28): [True: 0, False: 0]
  |  |  ------------------
  |  |   57|      0|            assert((s)->ref > 0);                                       \
  |  |   58|      0|            if (--(s)->ref == 0) {                                      \
  |  |  ------------------
  |  |  |  Branch (58:17): [True: 0, False: 0]
  |  |  ------------------
  |  |   59|      0|                /*memset(s, 255, sizeof(*s));*/                         \
  |  |   60|      0|                free_##t(s);                                            \
  |  |   61|      0|            }                                                           \
  |  |   62|      0|        }                                                               \
  |  |   63|      0|        (s) = NULL;                                                     \
  |  |   64|      0|    } while(0)
  |  |  ------------------
  |  |  |  Branch (64:13): [Folded, False: 0]
  |  |  ------------------
  ------------------
  |  Branch (277:9): [True: 0, False: 0]
  |  Branch (277:9): [True: 0, False: 0]
  ------------------
  278|      0|        break;
  279|      0|    case V_TREE:
  ------------------
  |  Branch (279:5): [True: 0, False: 325]
  ------------------
  280|      0|        free_tree(v->origin);
  281|      0|        break;
  282|      0|    case V_FILTER:
  ------------------
  |  Branch (282:5): [True: 0, False: 325]
  ------------------
  283|      0|        unref(v->filter, filter);
  ------------------
  |  |   55|      0|    do {                                                                \
  |  |   56|      0|        if ((s) != NULL && (s)->ref != REF_MAX) {                       \
  |  |  ------------------
  |  |  |  |   41|      0|#define REF_MAX UINT_MAX
  |  |  ------------------
  |  |  |  Branch (56:13): [True: 0, False: 0]
  |  |  |  Branch (56:28): [True: 0, False: 0]
  |  |  ------------------
  |  |   57|      0|            assert((s)->ref > 0);                                       \
  |  |   58|      0|            if (--(s)->ref == 0) {                                      \
  |  |  ------------------
  |  |  |  Branch (58:17): [True: 0, False: 0]
  |  |  ------------------
  |  |   59|      0|                /*memset(s, 255, sizeof(*s));*/                         \
  |  |   60|      0|                free_##t(s);                                            \
  |  |   61|      0|            }                                                           \
  |  |   62|      0|        }                                                               \
  |  |   63|      0|        (s) = NULL;                                                     \
  |  |   64|      0|    } while(0)
  |  |  ------------------
  |  |  |  Branch (64:13): [Folded, False: 0]
  |  |  ------------------
  ------------------
  |  Branch (283:9): [True: 0, False: 0]
  |  Branch (283:9): [True: 0, False: 0]
  ------------------
  284|      0|        break;
  285|      0|    case V_TRANSFORM:
  ------------------
  |  Branch (285:5): [True: 0, False: 325]
  ------------------
  286|      0|        unref(v->transform, transform);
  ------------------
  |  |   55|      0|    do {                                                                \
  |  |   56|      0|        if ((s) != NULL && (s)->ref != REF_MAX) {                       \
  |  |  ------------------
  |  |  |  |   41|      0|#define REF_MAX UINT_MAX
  |  |  ------------------
  |  |  |  Branch (56:13): [True: 0, False: 0]
  |  |  |  Branch (56:28): [True: 0, False: 0]
  |  |  ------------------
  |  |   57|      0|            assert((s)->ref > 0);                                       \
  |  |   58|      0|            if (--(s)->ref == 0) {                                      \
  |  |  ------------------
  |  |  |  Branch (58:17): [True: 0, False: 0]
  |  |  ------------------
  |  |   59|      0|                /*memset(s, 255, sizeof(*s));*/                         \
  |  |   60|      0|                free_##t(s);                                            \
  |  |   61|      0|            }                                                           \
  |  |   62|      0|        }                                                               \
  |  |   63|      0|        (s) = NULL;                                                     \
  |  |   64|      0|    } while(0)
  |  |  ------------------
  |  |  |  Branch (64:13): [Folded, False: 0]
  |  |  ------------------
  ------------------
  |  Branch (286:9): [True: 0, False: 0]
  |  Branch (286:9): [True: 0, False: 0]
  ------------------
  287|      0|        break;
  288|    160|    case V_NATIVE:
  ------------------
  |  Branch (288:5): [True: 160, False: 165]
  ------------------
  289|    160|        if (v->native)
  ------------------
  |  Branch (289:13): [True: 160, False: 0]
  ------------------
  290|    160|            unref(v->native->type, type);
  ------------------
  |  |   55|    160|    do {                                                                \
  |  |   56|    160|        if ((s) != NULL && (s)->ref != REF_MAX) {                       \
  |  |  ------------------
  |  |  |  |   41|    160|#define REF_MAX UINT_MAX
  |  |  ------------------
  |  |  |  Branch (56:13): [True: 160, False: 0]
  |  |  |  Branch (56:28): [True: 0, False: 160]
  |  |  ------------------
  |  |   57|      0|            assert((s)->ref > 0);                                       \
  |  |   58|      0|            if (--(s)->ref == 0) {                                      \
  |  |  ------------------
  |  |  |  Branch (58:17): [True: 0, False: 0]
  |  |  ------------------
  |  |   59|      0|                /*memset(s, 255, sizeof(*s));*/                         \
  |  |   60|      0|                free_##t(s);                                            \
  |  |   61|      0|            }                                                           \
  |  |   62|      0|        }                                                               \
  |  |   63|    160|        (s) = NULL;                                                     \
  |  |   64|    160|    } while(0)
  |  |  ------------------
  |  |  |  Branch (64:13): [Folded, False: 160]
  |  |  ------------------
  ------------------
  |  Branch (290:13): [True: 0, False: 0]
  |  Branch (290:13): [True: 0, False: 0]
  ------------------
  291|    160|        free(v->native);
  292|    160|        break;
  293|    160|    case V_CLOS:
  ------------------
  |  Branch (293:5): [True: 160, False: 165]
  ------------------
  294|    160|        unref(v->func, term);
  ------------------
  |  |   55|    160|    do {                                                                \
  |  |   56|    160|        if ((s) != NULL && (s)->ref != REF_MAX) {                       \
  |  |  ------------------
  |  |  |  |   41|    160|#define REF_MAX UINT_MAX
  |  |  ------------------
  |  |  |  Branch (56:13): [True: 160, False: 0]
  |  |  |  Branch (56:28): [True: 160, False: 0]
  |  |  ------------------
  |  |   57|    160|            assert((s)->ref > 0);                                       \
  |  |   58|    160|            if (--(s)->ref == 0) {                                      \
  |  |  ------------------
  |  |  |  Branch (58:17): [True: 160, False: 0]
  |  |  ------------------
  |  |   59|    160|                /*memset(s, 255, sizeof(*s));*/                         \
  |  |   60|    160|                free_##t(s);                                            \
  |  |   61|    160|            }                                                           \
  |  |   62|    160|        }                                                               \
  |  |   63|    160|        (s) = NULL;                                                     \
  |  |   64|    160|    } while(0)
  |  |  ------------------
  |  |  |  Branch (64:13): [Folded, False: 160]
  |  |  ------------------
  ------------------
  |  Branch (294:9): [True: 0, False: 160]
  |  Branch (294:9): [True: 160, False: 0]
  ------------------
  295|    160|        unref(v->bindings, binding);
  ------------------
  |  |   55|    160|    do {                                                                \
  |  |   56|    160|        if ((s) != NULL && (s)->ref != REF_MAX) {                       \
  |  |  ------------------
  |  |  |  |   41|    150|#define REF_MAX UINT_MAX
  |  |  ------------------
  |  |  |  Branch (56:13): [True: 150, False: 10]
  |  |  |  Branch (56:28): [True: 150, False: 0]
  |  |  ------------------
  |  |   57|    150|            assert((s)->ref > 0);                                       \
  |  |   58|    150|            if (--(s)->ref == 0) {                                      \
  |  |  ------------------
  |  |  |  Branch (58:17): [True: 150, False: 0]
  |  |  ------------------
  |  |   59|    150|                /*memset(s, 255, sizeof(*s));*/                         \
  |  |   60|    150|                free_##t(s);                                            \
  |  |   61|    150|            }                                                           \
  |  |   62|    150|        }                                                               \
  |  |   63|    160|        (s) = NULL;                                                     \
  |  |   64|    160|    } while(0)
  |  |  ------------------
  |  |  |  Branch (64:13): [Folded, False: 160]
  |  |  ------------------
  ------------------
  |  Branch (295:9): [True: 0, False: 150]
  |  Branch (295:9): [True: 150, False: 0]
  ------------------
  296|    160|        break;
  297|    160|    case V_EXN:
  ------------------
  |  Branch (297:5): [True: 5, False: 320]
  ------------------
  298|      5|        free_exn(v->exn);
  299|      5|        break;
  300|      0|    case V_UNIT:
  ------------------
  |  Branch (300:5): [True: 0, False: 325]
  ------------------
  301|      0|        break;
  302|      0|    default:
  ------------------
  |  Branch (302:5): [True: 0, False: 325]
  ------------------
  303|      0|        assert(0);
  ------------------
  |  Branch (303:9): [Folded, False: 0]
  |  Branch (303:9): [Folded, False: 0]
  ------------------
  304|    325|    }
  305|    325|    unref(v->info, info);
  ------------------
  |  |   55|    325|    do {                                                                \
  |  |   56|    325|        if ((s) != NULL && (s)->ref != REF_MAX) {                       \
  |  |  ------------------
  |  |  |  |   41|    325|#define REF_MAX UINT_MAX
  |  |  ------------------
  |  |  |  Branch (56:13): [True: 325, False: 0]
  |  |  |  Branch (56:28): [True: 325, False: 0]
  |  |  ------------------
  |  |   57|    325|            assert((s)->ref > 0);                                       \
  |  |   58|    325|            if (--(s)->ref == 0) {                                      \
  |  |  ------------------
  |  |  |  Branch (58:17): [True: 160, False: 165]
  |  |  ------------------
  |  |   59|    160|                /*memset(s, 255, sizeof(*s));*/                         \
  |  |   60|    160|                free_##t(s);                                            \
  |  |   61|    160|            }                                                           \
  |  |   62|    325|        }                                                               \
  |  |   63|    325|        (s) = NULL;                                                     \
  |  |   64|    325|    } while(0)
  |  |  ------------------
  |  |  |  Branch (64:13): [Folded, False: 325]
  |  |  ------------------
  ------------------
  |  Branch (305:5): [True: 0, False: 325]
  |  Branch (305:5): [True: 325, False: 0]
  ------------------
  306|    325|    free(v);
  307|    325|}
make_term:
  315|    245|struct term *make_term(enum term_tag tag, struct info *info) {
  316|    245|  struct term *term;
  317|    245|  if (make_ref(term) < 0) {
  ------------------
  |  |   48|    245|    ref_make_ref(&(var), sizeof(*(var)), offsetof(typeof(*(var)), ref))
  ------------------
  |  Branch (317:7): [True: 0, False: 245]
  ------------------
  318|      0|      unref(info, info);
  ------------------
  |  |   55|      0|    do {                                                                \
  |  |   56|      0|        if ((s) != NULL && (s)->ref != REF_MAX) {                       \
  |  |  ------------------
  |  |  |  |   41|      0|#define REF_MAX UINT_MAX
  |  |  ------------------
  |  |  |  Branch (56:13): [True: 0, False: 0]
  |  |  |  Branch (56:28): [True: 0, False: 0]
  |  |  ------------------
  |  |   57|      0|            assert((s)->ref > 0);                                       \
  |  |   58|      0|            if (--(s)->ref == 0) {                                      \
  |  |  ------------------
  |  |  |  Branch (58:17): [True: 0, False: 0]
  |  |  ------------------
  |  |   59|      0|                /*memset(s, 255, sizeof(*s));*/                         \
  |  |   60|      0|                free_##t(s);                                            \
  |  |   61|      0|            }                                                           \
  |  |   62|      0|        }                                                               \
  |  |   63|      0|        (s) = NULL;                                                     \
  |  |   64|      0|    } while(0)
  |  |  ------------------
  |  |  |  Branch (64:13): [Folded, False: 0]
  |  |  ------------------
  ------------------
  |  Branch (318:7): [True: 0, False: 0]
  |  Branch (318:7): [True: 0, False: 0]
  ------------------
  319|    245|  } else {
  320|    245|      term->tag = tag;
  321|    245|      term->info = info;
  322|    245|  }
  323|    245|  return term;
  324|    245|}
make_param:
  326|    245|struct term *make_param(char *name, struct type *type, struct info *info) {
  327|    245|  struct term *term = make_term(A_FUNC, info);
  328|    245|  if (term == NULL)
  ------------------
  |  Branch (328:7): [True: 0, False: 245]
  ------------------
  329|      0|      goto error;
  330|    245|  make_ref_err(term->param);
  ------------------
  |  |   50|    245|#define make_ref_err(var) if (make_ref(var) < 0) goto error
  |  |  ------------------
  |  |  |  |   48|    245|    ref_make_ref(&(var), sizeof(*(var)), offsetof(typeof(*(var)), ref))
  |  |  ------------------
  |  |  |  Branch (50:31): [True: 0, False: 245]
  |  |  ------------------
  ------------------
  331|    245|  term->param->info = ref(term->info);
  ------------------
  |  |   52|    245|#define ref(s) (((s) == NULL || (s)->ref == REF_MAX) ? (s) : ((s)->ref++, (s)))
  |  |  ------------------
  |  |  |  |   41|    245|#define REF_MAX UINT_MAX
  |  |  ------------------
  |  |  |  Branch (52:18): [True: 0, False: 245]
  |  |  |  Branch (52:33): [True: 0, False: 245]
  |  |  ------------------
  ------------------
  332|    245|  make_ref_err(term->param->name);
  ------------------
  |  |   50|    245|#define make_ref_err(var) if (make_ref(var) < 0) goto error
  |  |  ------------------
  |  |  |  |   48|    245|    ref_make_ref(&(var), sizeof(*(var)), offsetof(typeof(*(var)), ref))
  |  |  ------------------
  |  |  |  Branch (50:31): [True: 0, False: 245]
  |  |  ------------------
  ------------------
  333|    245|  term->param->name->str = name;
  334|    245|  term->param->type = type;
  335|    245|  return term;
  336|      0| error:
  337|      0|  unref(term, term);
  ------------------
  |  |   55|      0|    do {                                                                \
  |  |   56|      0|        if ((s) != NULL && (s)->ref != REF_MAX) {                       \
  |  |  ------------------
  |  |  |  |   41|      0|#define REF_MAX UINT_MAX
  |  |  ------------------
  |  |  |  Branch (56:13): [True: 0, False: 0]
  |  |  |  Branch (56:28): [True: 0, False: 0]
  |  |  ------------------
  |  |   57|      0|            assert((s)->ref > 0);                                       \
  |  |   58|      0|            if (--(s)->ref == 0) {                                      \
  |  |  ------------------
  |  |  |  Branch (58:17): [True: 0, False: 0]
  |  |  ------------------
  |  |   59|      0|                /*memset(s, 255, sizeof(*s));*/                         \
  |  |   60|      0|                free_##t(s);                                            \
  |  |   61|      0|            }                                                           \
  |  |   62|      0|        }                                                               \
  |  |   63|      0|        (s) = NULL;                                                     \
  |  |   64|      0|    } while(0)
  |  |  ------------------
  |  |  |  Branch (64:13): [Folded, False: 0]
  |  |  ------------------
  ------------------
  |  Branch (337:3): [True: 0, False: 0]
  |  Branch (337:3): [True: 0, False: 0]
  ------------------
  338|      0|  return NULL;
  339|      0|}
make_value:
  341|      5|struct value *make_value(enum value_tag tag, struct info *info) {
  342|      5|    struct value *value = NULL;
  343|      5|    if (make_ref(value) < 0) {
  ------------------
  |  |   48|      5|    ref_make_ref(&(var), sizeof(*(var)), offsetof(typeof(*(var)), ref))
  ------------------
  |  Branch (343:9): [True: 0, False: 5]
  ------------------
  344|      0|        unref(info, info);
  ------------------
  |  |   55|      0|    do {                                                                \
  |  |   56|      0|        if ((s) != NULL && (s)->ref != REF_MAX) {                       \
  |  |  ------------------
  |  |  |  |   41|      0|#define REF_MAX UINT_MAX
  |  |  ------------------
  |  |  |  Branch (56:13): [True: 0, False: 0]
  |  |  |  Branch (56:28): [True: 0, False: 0]
  |  |  ------------------
  |  |   57|      0|            assert((s)->ref > 0);                                       \
  |  |   58|      0|            if (--(s)->ref == 0) {                                      \
  |  |  ------------------
  |  |  |  Branch (58:17): [True: 0, False: 0]
  |  |  ------------------
  |  |   59|      0|                /*memset(s, 255, sizeof(*s));*/                         \
  |  |   60|      0|                free_##t(s);                                            \
  |  |   61|      0|            }                                                           \
  |  |   62|      0|        }                                                               \
  |  |   63|      0|        (s) = NULL;                                                     \
  |  |   64|      0|    } while(0)
  |  |  ------------------
  |  |  |  Branch (64:13): [Folded, False: 0]
  |  |  ------------------
  ------------------
  |  Branch (344:9): [True: 0, False: 0]
  |  Branch (344:9): [True: 0, False: 0]
  ------------------
  345|      5|    } else {
  346|      5|        value->tag = tag;
  347|      5|        value->info = info;
  348|      5|    }
  349|      5|    return value;
  350|      5|}
build_func:
  381|    245|struct term *build_func(struct term *params, struct term *exp) {
  382|    245|  assert(params->tag == A_FUNC);
  ------------------
  |  Branch (382:3): [True: 0, False: 245]
  |  Branch (382:3): [True: 245, False: 0]
  ------------------
  383|    245|  if (params->next != NULL)
  ------------------
  |  Branch (383:7): [True: 85, False: 160]
  ------------------
  384|     85|    exp = build_func(params->next, exp);
  385|       |
  386|    245|  params->body = exp;
  387|       |  params->next = NULL;
  388|    245|  return params;
  389|    245|}
make_exn_value:
  404|      5|                             const char *format, ...) {
  405|      5|    va_list ap;
  406|      5|    int r;
  407|      5|    struct value *v;
  408|      5|    char *message;
  409|       |
  410|      5|    va_start(ap, format);
  411|      5|    r = vasprintf(&message, format, ap);
  412|      5|    va_end(ap);
  413|      5|    if (r == -1)
  ------------------
  |  Branch (413:9): [True: 0, False: 5]
  ------------------
  414|      0|        return NULL;
  415|       |
  416|      5|    v = make_value(V_EXN, ref(info));
  ------------------
  |  |   52|      5|#define ref(s) (((s) == NULL || (s)->ref == REF_MAX) ? (s) : ((s)->ref++, (s)))
  |  |  ------------------
  |  |  |  |   41|      5|#define REF_MAX UINT_MAX
  |  |  ------------------
  |  |  |  Branch (52:18): [True: 0, False: 5]
  |  |  |  Branch (52:33): [True: 0, False: 5]
  |  |  ------------------
  ------------------
  417|      5|    if (ALLOC(v->exn) < 0)
  ------------------
  |  |   43|      5|#define ALLOC(ptr) mem_alloc_n(&(ptr), sizeof(*(ptr)), 1)
  ------------------
  |  Branch (417:9): [True: 0, False: 5]
  ------------------
  418|      0|        return info->error->exn;
  419|      5|    v->exn->info = info;
  420|      5|    v->exn->message = message;
  421|       |
  422|      5|    return v;
  423|      5|}
module_create:
  458|     10|struct module *module_create(const char *name) {
  459|     10|    struct module *module;
  460|       |    make_ref(module);
  ------------------
  |  |   48|     10|    ref_make_ref(&(var), sizeof(*(var)), offsetof(typeof(*(var)), ref))
  ------------------
  461|     10|    module->name = strdup(name);
  462|     10|    return module;
  463|     10|}
make_arrow_type:
  787|    245|struct type *make_arrow_type(struct type *dom, struct type *img) {
  788|    245|  struct type *type;
  789|    245|  make_ref(type);
  ------------------
  |  |   48|    245|    ref_make_ref(&(var), sizeof(*(var)), offsetof(typeof(*(var)), ref))
  ------------------
  790|    245|  type->tag = T_ARROW;
  791|    245|  type->dom = ref(dom);
  ------------------
  |  |   52|    245|#define ref(s) (((s) == NULL || (s)->ref == REF_MAX) ? (s) : ((s)->ref++, (s)))
  |  |  ------------------
  |  |  |  |   41|    245|#define REF_MAX UINT_MAX
  |  |  ------------------
  |  |  |  Branch (52:18): [True: 0, False: 245]
  |  |  |  Branch (52:33): [True: 245, False: 0]
  |  |  ------------------
  ------------------
  792|       |  type->img = ref(img);
  ------------------
  |  |   52|    245|#define ref(s) (((s) == NULL || (s)->ref == REF_MAX) ? (s) : ((s)->ref++, (s)))
  |  |  ------------------
  |  |  |  |   41|    245|#define REF_MAX UINT_MAX
  |  |  ------------------
  |  |  |  Branch (52:18): [True: 0, False: 245]
  |  |  |  Branch (52:33): [True: 160, False: 85]
  |  |  ------------------
  ------------------
  793|    245|  return type;
  794|    245|}
make_base_type:
  796|    405|struct type *make_base_type(enum type_tag tag) {
  797|    405|    if (tag == T_STRING)
  ------------------
  |  Branch (797:9): [True: 145, False: 260]
  ------------------
  798|    145|        return (struct type *) t_string;
  799|    260|    else if (tag == T_REGEXP)
  ------------------
  |  Branch (799:14): [True: 45, False: 215]
  ------------------
  800|     45|        return (struct type *) t_regexp;
  801|    215|    else if (tag == T_LENS)
  ------------------
  |  Branch (801:14): [True: 110, False: 105]
  ------------------
  802|    110|        return (struct type *) t_lens;
  803|    105|    else if (tag == T_TREE)
  ------------------
  |  Branch (803:14): [True: 70, False: 35]
  ------------------
  804|     70|        return (struct type *) t_tree;
  805|     35|    else if (tag == T_FILTER)
  ------------------
  |  Branch (805:14): [True: 15, False: 20]
  ------------------
  806|     15|        return (struct type *) t_filter;
  807|     20|    else if (tag == T_TRANSFORM)
  ------------------
  |  Branch (807:14): [True: 5, False: 15]
  ------------------
  808|      5|        return (struct type *) t_transform;
  809|     15|    else if (tag == T_UNIT)
  ------------------
  |  Branch (809:14): [True: 15, False: 0]
  ------------------
  810|     15|        return (struct type *) t_unit;
  811|    405|    assert(0);
  ------------------
  |  Branch (811:5): [Folded, False: 0]
  |  Branch (811:5): [Folded, False: 0]
  ------------------
  812|      0|    abort();
  813|      0|}
define_native_intl:
 1862|    160|                       int argc, func_impl impl, ...) {
 1863|    160|    assert(argc > 0);  /* We have no unit type */
  ------------------
  |  Branch (1863:5): [True: 0, False: 160]
  |  Branch (1863:5): [True: 160, False: 0]
  ------------------
 1864|    160|    assert(argc <= 5);
  ------------------
  |  Branch (1864:5): [True: 0, False: 160]
  |  Branch (1864:5): [True: 160, False: 0]
  ------------------
 1865|    160|    va_list ap;
 1866|    160|    enum type_tag tag;
 1867|    160|    struct term *params = NULL, *body = NULL, *func = NULL;
 1868|    160|    struct type *type;
 1869|    160|    struct value *v = NULL;
 1870|    160|    struct info *info = NULL;
 1871|    160|    struct ctx ctx;
 1872|       |
 1873|    160|    info = make_native_info(error, file, line);
 1874|    160|    if (info == NULL)
  ------------------
  |  Branch (1874:9): [True: 0, False: 160]
  ------------------
 1875|      0|        goto error;
 1876|       |
 1877|    160|    va_start(ap, impl);
 1878|    405|    for (int i=0; i < argc; i++) {
  ------------------
  |  Branch (1878:19): [True: 245, False: 160]
  ------------------
 1879|    245|        struct term *pterm;
 1880|    245|        char ident[10];
 1881|    245|        tag = va_arg(ap, enum type_tag);
 1882|    245|        type = make_base_type(tag);
 1883|    245|        snprintf(ident, 10, "@%d", i);
 1884|    245|        pterm = make_param(strdup(ident), type, ref(info));
  ------------------
  |  |   52|    245|#define ref(s) (((s) == NULL || (s)->ref == REF_MAX) ? (s) : ((s)->ref++, (s)))
  |  |  ------------------
  |  |  |  |   41|    245|#define REF_MAX UINT_MAX
  |  |  ------------------
  |  |  |  Branch (52:18): [True: 0, False: 245]
  |  |  |  Branch (52:33): [True: 0, False: 245]
  |  |  ------------------
  ------------------
 1885|    245|        list_append(params, pterm);
  ------------------
  |  |   27|    245|    do {                                                                \
  |  |   28|    245|        if ((head) == NULL) {                                           \
  |  |  ------------------
  |  |  |  Branch (28:13): [True: 160, False: 85]
  |  |  ------------------
  |  |   29|    160|            head = tail;                                                \
  |  |   30|    160|            break;                                                      \
  |  |   31|    160|        }                                                               \
  |  |   32|    245|        typeof(head) _p;                                                \
  |  |   33|    110|        for (_p = (head); _p->next != NULL; _p = _p->next);             \
  |  |  ------------------
  |  |  |  Branch (33:27): [True: 25, False: 85]
  |  |  ------------------
  |  |   34|     85|        _p->next = (tail);                                              \
  |  |   35|     85|    } while (0)
  |  |  ------------------
  |  |  |  Branch (35:14): [Folded, False: 85]
  |  |  ------------------
  ------------------
 1886|    245|    }
 1887|    160|    tag = va_arg(ap, enum type_tag);
 1888|    160|    va_end(ap);
 1889|       |
 1890|    160|    type = make_base_type(tag);
 1891|       |
 1892|    160|    make_ref(v);
  ------------------
  |  |   48|    160|    ref_make_ref(&(var), sizeof(*(var)), offsetof(typeof(*(var)), ref))
  ------------------
 1893|    160|    if (v == NULL)
  ------------------
  |  Branch (1893:9): [True: 0, False: 160]
  ------------------
 1894|      0|        goto error;
 1895|    160|    v->tag = V_NATIVE;
 1896|    160|    v->info = info;
 1897|    160|    info = NULL;
 1898|       |
 1899|    160|    if (ALLOC(v->native) < 0)
  ------------------
  |  |   43|    160|#define ALLOC(ptr) mem_alloc_n(&(ptr), sizeof(*(ptr)), 1)
  ------------------
  |  Branch (1899:9): [True: 0, False: 160]
  ------------------
 1900|      0|        goto error;
 1901|    160|    v->native->argc = argc;
 1902|    160|    v->native->type = type;
 1903|    160|    v->native->impl = impl;
 1904|       |
 1905|    160|    make_ref(body);
  ------------------
  |  |   48|    160|    ref_make_ref(&(var), sizeof(*(var)), offsetof(typeof(*(var)), ref))
  ------------------
 1906|    160|    if (body == NULL)
  ------------------
  |  Branch (1906:9): [True: 0, False: 160]
  ------------------
 1907|      0|        goto error;
 1908|    160|    body->info = ref(info);
  ------------------
  |  |   52|    160|#define ref(s) (((s) == NULL || (s)->ref == REF_MAX) ? (s) : ((s)->ref++, (s)))
  |  |  ------------------
  |  |  |  |   41|      0|#define REF_MAX UINT_MAX
  |  |  ------------------
  |  |  |  Branch (52:18): [True: 160, False: 0]
  |  |  |  Branch (52:33): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 1909|    160|    body->type = ref(type);
  ------------------
  |  |   52|    160|#define ref(s) (((s) == NULL || (s)->ref == REF_MAX) ? (s) : ((s)->ref++, (s)))
  |  |  ------------------
  |  |  |  |   41|    160|#define REF_MAX UINT_MAX
  |  |  ------------------
  |  |  |  Branch (52:18): [True: 0, False: 160]
  |  |  |  Branch (52:33): [True: 160, False: 0]
  |  |  ------------------
  ------------------
 1910|    160|    body->tag = A_VALUE;
 1911|    160|    body->value = v;
 1912|    160|    v = NULL;
 1913|       |
 1914|    160|    func = build_func(params, body);
 1915|    160|    params = NULL;
 1916|    160|    body = NULL;
 1917|       |
 1918|    160|    ctx.aug = NULL;
 1919|    160|    ctx.local = ref(module->bindings);
  ------------------
  |  |   52|    160|#define ref(s) (((s) == NULL || (s)->ref == REF_MAX) ? (s) : ((s)->ref++, (s)))
  |  |  ------------------
  |  |  |  |   41|    150|#define REF_MAX UINT_MAX
  |  |  ------------------
  |  |  |  Branch (52:18): [True: 10, False: 150]
  |  |  |  Branch (52:33): [True: 0, False: 150]
  |  |  ------------------
  ------------------
 1920|    160|    ctx.name = module->name;
 1921|    160|    if (! check_exp(func, &ctx)) {
  ------------------
  |  Branch (1921:9): [True: 0, False: 160]
  ------------------
 1922|      0|        fatal_error(info, "Typechecking native %s failed",
 1923|      0|                    name);
 1924|      0|        abort();
 1925|      0|    }
 1926|    160|    v = make_closure(func, ctx.local);
 1927|    160|    if (v == NULL) {
  ------------------
  |  Branch (1927:9): [True: 0, False: 160]
  ------------------
 1928|      0|        unref(module->bindings, binding);
  ------------------
  |  |   55|      0|    do {                                                                \
  |  |   56|      0|        if ((s) != NULL && (s)->ref != REF_MAX) {                       \
  |  |  ------------------
  |  |  |  |   41|      0|#define REF_MAX UINT_MAX
  |  |  ------------------
  |  |  |  Branch (56:13): [True: 0, False: 0]
  |  |  |  Branch (56:28): [True: 0, False: 0]
  |  |  ------------------
  |  |   57|      0|            assert((s)->ref > 0);                                       \
  |  |   58|      0|            if (--(s)->ref == 0) {                                      \
  |  |  ------------------
  |  |  |  Branch (58:17): [True: 0, False: 0]
  |  |  ------------------
  |  |   59|      0|                /*memset(s, 255, sizeof(*s));*/                         \
  |  |   60|      0|                free_##t(s);                                            \
  |  |   61|      0|            }                                                           \
  |  |   62|      0|        }                                                               \
  |  |   63|      0|        (s) = NULL;                                                     \
  |  |   64|      0|    } while(0)
  |  |  ------------------
  |  |  |  Branch (64:13): [Folded, False: 0]
  |  |  ------------------
  ------------------
  |  Branch (1928:9): [True: 0, False: 0]
  |  Branch (1928:9): [True: 0, False: 0]
  ------------------
 1929|      0|        goto error;
 1930|      0|    }
 1931|    160|    bind(&ctx.local, name, func->type, v);
 1932|    160|    unref(v, value);
  ------------------
  |  |   55|    160|    do {                                                                \
  |  |   56|    160|        if ((s) != NULL && (s)->ref != REF_MAX) {                       \
  |  |  ------------------
  |  |  |  |   41|    160|#define REF_MAX UINT_MAX
  |  |  ------------------
  |  |  |  Branch (56:13): [True: 160, False: 0]
  |  |  |  Branch (56:28): [True: 160, False: 0]
  |  |  ------------------
  |  |   57|    160|            assert((s)->ref > 0);                                       \
  |  |   58|    160|            if (--(s)->ref == 0) {                                      \
  |  |  ------------------
  |  |  |  Branch (58:17): [True: 0, False: 160]
  |  |  ------------------
  |  |   59|      0|                /*memset(s, 255, sizeof(*s));*/                         \
  |  |   60|      0|                free_##t(s);                                            \
  |  |   61|      0|            }                                                           \
  |  |   62|    160|        }                                                               \
  |  |   63|    160|        (s) = NULL;                                                     \
  |  |   64|    160|    } while(0)
  |  |  ------------------
  |  |  |  Branch (64:13): [Folded, False: 160]
  |  |  ------------------
  ------------------
  |  Branch (1932:5): [True: 0, False: 160]
  |  Branch (1932:5): [True: 160, False: 0]
  ------------------
 1933|    160|    unref(func, term);
  ------------------
  |  |   55|    160|    do {                                                                \
  |  |   56|    160|        if ((s) != NULL && (s)->ref != REF_MAX) {                       \
  |  |  ------------------
  |  |  |  |   41|    160|#define REF_MAX UINT_MAX
  |  |  ------------------
  |  |  |  Branch (56:13): [True: 160, False: 0]
  |  |  |  Branch (56:28): [True: 160, False: 0]
  |  |  ------------------
  |  |   57|    160|            assert((s)->ref > 0);                                       \
  |  |   58|    160|            if (--(s)->ref == 0) {                                      \
  |  |  ------------------
  |  |  |  Branch (58:17): [True: 0, False: 160]
  |  |  ------------------
  |  |   59|      0|                /*memset(s, 255, sizeof(*s));*/                         \
  |  |   60|      0|                free_##t(s);                                            \
  |  |   61|      0|            }                                                           \
  |  |   62|    160|        }                                                               \
  |  |   63|    160|        (s) = NULL;                                                     \
  |  |   64|    160|    } while(0)
  |  |  ------------------
  |  |  |  Branch (64:13): [Folded, False: 160]
  |  |  ------------------
  ------------------
  |  Branch (1933:5): [True: 0, False: 160]
  |  Branch (1933:5): [True: 160, False: 0]
  ------------------
 1934|    160|    unref(module->bindings, binding);
  ------------------
  |  |   55|    160|    do {                                                                \
  |  |   56|    160|        if ((s) != NULL && (s)->ref != REF_MAX) {                       \
  |  |  ------------------
  |  |  |  |   41|    150|#define REF_MAX UINT_MAX
  |  |  ------------------
  |  |  |  Branch (56:13): [True: 150, False: 10]
  |  |  |  Branch (56:28): [True: 150, False: 0]
  |  |  ------------------
  |  |   57|    150|            assert((s)->ref > 0);                                       \
  |  |   58|    150|            if (--(s)->ref == 0) {                                      \
  |  |  ------------------
  |  |  |  Branch (58:17): [True: 0, False: 150]
  |  |  ------------------
  |  |   59|      0|                /*memset(s, 255, sizeof(*s));*/                         \
  |  |   60|      0|                free_##t(s);                                            \
  |  |   61|      0|            }                                                           \
  |  |   62|    150|        }                                                               \
  |  |   63|    160|        (s) = NULL;                                                     \
  |  |   64|    160|    } while(0)
  |  |  ------------------
  |  |  |  Branch (64:13): [Folded, False: 160]
  |  |  ------------------
  ------------------
  |  Branch (1934:5): [True: 0, False: 150]
  |  Branch (1934:5): [True: 150, False: 0]
  ------------------
 1935|       |
 1936|    160|    module->bindings = ctx.local;
 1937|    160|    return 0;
 1938|      0| error:
 1939|      0|    list_for_each(p, params) {
  ------------------
  |  |   38|      0|    for (typeof(list) (iter) = list; (iter) != NULL; (iter) = (iter)->next)
  |  |  ------------------
  |  |  |  Branch (38:38): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 1940|      0|        unref(p, term);
  ------------------
  |  |   55|      0|    do {                                                                \
  |  |   56|      0|        if ((s) != NULL && (s)->ref != REF_MAX) {                       \
  |  |  ------------------
  |  |  |  |   41|      0|#define REF_MAX UINT_MAX
  |  |  ------------------
  |  |  |  Branch (56:13): [True: 0, False: 0]
  |  |  |  Branch (56:28): [True: 0, False: 0]
  |  |  ------------------
  |  |   57|      0|            assert((s)->ref > 0);                                       \
  |  |   58|      0|            if (--(s)->ref == 0) {                                      \
  |  |  ------------------
  |  |  |  Branch (58:17): [True: 0, False: 0]
  |  |  ------------------
  |  |   59|      0|                /*memset(s, 255, sizeof(*s));*/                         \
  |  |   60|      0|                free_##t(s);                                            \
  |  |   61|      0|            }                                                           \
  |  |   62|      0|        }                                                               \
  |  |   63|      0|        (s) = NULL;                                                     \
  |  |   64|      0|    } while(0)
  |  |  ------------------
  |  |  |  Branch (64:13): [Folded, False: 0]
  |  |  ------------------
  ------------------
  |  Branch (1940:9): [True: 0, False: 0]
  |  Branch (1940:9): [True: 0, False: 0]
  ------------------
 1941|      0|    }
 1942|      0|    unref(v, value);
  ------------------
  |  |   55|      0|    do {                                                                \
  |  |   56|      0|        if ((s) != NULL && (s)->ref != REF_MAX) {                       \
  |  |  ------------------
  |  |  |  |   41|      0|#define REF_MAX UINT_MAX
  |  |  ------------------
  |  |  |  Branch (56:13): [True: 0, False: 0]
  |  |  |  Branch (56:28): [True: 0, False: 0]
  |  |  ------------------
  |  |   57|      0|            assert((s)->ref > 0);                                       \
  |  |   58|      0|            if (--(s)->ref == 0) {                                      \
  |  |  ------------------
  |  |  |  Branch (58:17): [True: 0, False: 0]
  |  |  ------------------
  |  |   59|      0|                /*memset(s, 255, sizeof(*s));*/                         \
  |  |   60|      0|                free_##t(s);                                            \
  |  |   61|      0|            }                                                           \
  |  |   62|      0|        }                                                               \
  |  |   63|      0|        (s) = NULL;                                                     \
  |  |   64|      0|    } while(0)
  |  |  ------------------
  |  |  |  Branch (64:13): [Folded, False: 0]
  |  |  ------------------
  ------------------
  |  Branch (1942:5): [True: 0, False: 0]
  |  Branch (1942:5): [True: 0, False: 0]
  ------------------
 1943|      0|    unref(body, term);
  ------------------
  |  |   55|      0|    do {                                                                \
  |  |   56|      0|        if ((s) != NULL && (s)->ref != REF_MAX) {                       \
  |  |  ------------------
  |  |  |  |   41|      0|#define REF_MAX UINT_MAX
  |  |  ------------------
  |  |  |  Branch (56:13): [True: 0, False: 0]
  |  |  |  Branch (56:28): [True: 0, False: 0]
  |  |  ------------------
  |  |   57|      0|            assert((s)->ref > 0);                                       \
  |  |   58|      0|            if (--(s)->ref == 0) {                                      \
  |  |  ------------------
  |  |  |  Branch (58:17): [True: 0, False: 0]
  |  |  ------------------
  |  |   59|      0|                /*memset(s, 255, sizeof(*s));*/                         \
  |  |   60|      0|                free_##t(s);                                            \
  |  |   61|      0|            }                                                           \
  |  |   62|      0|        }                                                               \
  |  |   63|      0|        (s) = NULL;                                                     \
  |  |   64|      0|    } while(0)
  |  |  ------------------
  |  |  |  Branch (64:13): [Folded, False: 0]
  |  |  ------------------
  ------------------
  |  Branch (1943:5): [True: 0, False: 0]
  |  Branch (1943:5): [True: 0, False: 0]
  ------------------
 1944|      0|    unref(func, term);
  ------------------
  |  |   55|      0|    do {                                                                \
  |  |   56|      0|        if ((s) != NULL && (s)->ref != REF_MAX) {                       \
  |  |  ------------------
  |  |  |  |   41|      0|#define REF_MAX UINT_MAX
  |  |  ------------------
  |  |  |  Branch (56:13): [True: 0, False: 0]
  |  |  |  Branch (56:28): [True: 0, False: 0]
  |  |  ------------------
  |  |   57|      0|            assert((s)->ref > 0);                                       \
  |  |   58|      0|            if (--(s)->ref == 0) {                                      \
  |  |  ------------------
  |  |  |  Branch (58:17): [True: 0, False: 0]
  |  |  ------------------
  |  |   59|      0|                /*memset(s, 255, sizeof(*s));*/                         \
  |  |   60|      0|                free_##t(s);                                            \
  |  |   61|      0|            }                                                           \
  |  |   62|      0|        }                                                               \
  |  |   63|      0|        (s) = NULL;                                                     \
  |  |   64|      0|    } while(0)
  |  |  ------------------
  |  |  |  Branch (64:13): [Folded, False: 0]
  |  |  ------------------
  ------------------
  |  Branch (1944:5): [True: 0, False: 0]
  |  Branch (1944:5): [True: 0, False: 0]
  ------------------
 1945|      0|    return -1;
 1946|      0|}
interpreter_init:
 2070|      5|int interpreter_init(struct augeas *aug) {
 2071|      5|    int r;
 2072|       |
 2073|      5|    r = init_fatal_exn(aug->error);
 2074|      5|    if (r < 0)
  ------------------
  |  Branch (2074:9): [True: 0, False: 5]
  ------------------
 2075|      0|        return -1;
 2076|       |
 2077|      5|    aug->modules = builtin_init(aug->error);
 2078|      5|    if (aug->flags & AUG_NO_MODL_AUTOLOAD)
  ------------------
  |  Branch (2078:9): [True: 0, False: 5]
  ------------------
 2079|      0|        return 0;
 2080|       |
 2081|       |    // For now, we just load every file on the search path
 2082|      5|    const char *dir = NULL;
 2083|      5|    glob_t globbuf;
 2084|      5|    int gl_flags = GLOB_NOSORT;
 2085|       |
 2086|      5|    MEMZERO(&globbuf, 1);
  ------------------
  |  |  275|      5|#define MEMZERO(ptr, n) memset((ptr), 0, (n) * sizeof(*(ptr)));
  ------------------
 2087|       |
 2088|      5|    while ((dir = argz_next(aug->modpathz, aug->nmodpath, dir)) != NULL) {
  ------------------
  |  Branch (2088:12): [True: 0, False: 5]
  ------------------
 2089|      0|        char *globpat;
 2090|      0|        r = asprintf(&globpat, "%s/*.aug", dir);
 2091|      0|        ERR_NOMEM(r < 0, aug);
  ------------------
  |  |   70|      0|    if (cond) {                                          \
  |  |  ------------------
  |  |  |  Branch (70:9): [True: 0, False: 0]
  |  |  ------------------
  |  |   71|      0|        report_error((obj)->error, AUG_ENOMEM, NULL);    \
  |  |   72|      0|        goto error;                                      \
  |  |   73|      0|    }
  ------------------
 2092|       |
 2093|      0|        r = glob(globpat, gl_flags, NULL, &globbuf);
 2094|      0|        if (r != 0 && r != GLOB_NOMATCH) {
  ------------------
  |  Branch (2094:13): [True: 0, False: 0]
  |  Branch (2094:23): [True: 0, False: 0]
  ------------------
 2095|       |            /* This really has to be an allocation failure; glob is not
 2096|       |             * supposed to return GLOB_ABORTED here */
 2097|      0|            aug_errcode_t code =
 2098|      0|                r == GLOB_NOSPACE ? AUG_ENOMEM : AUG_EINTERNAL;
  ------------------
  |  Branch (2098:17): [True: 0, False: 0]
  ------------------
 2099|      0|            ERR_REPORT(aug, code, "glob failure for %s", globpat);
  ------------------
  |  |   76|      0|    report_error((obj)->error, code, ## fmt)
  ------------------
 2100|      0|            free(globpat);
 2101|      0|            goto error;
 2102|      0|        }
 2103|      0|        gl_flags |= GLOB_APPEND;
 2104|      0|        free(globpat);
 2105|      0|    }
 2106|       |
 2107|      5|    for (int i=0; i < globbuf.gl_pathc; i++) {
  ------------------
  |  Branch (2107:19): [True: 0, False: 5]
  ------------------
 2108|      0|        char *name, *p, *q;
 2109|      0|        int res;
 2110|      0|        p = strrchr(globbuf.gl_pathv[i], SEP);
  ------------------
  |  |  241|      0|#define SEP '/'
  ------------------
 2111|      0|        if (p == NULL)
  ------------------
  |  Branch (2111:13): [True: 0, False: 0]
  ------------------
 2112|      0|            p = globbuf.gl_pathv[i];
 2113|      0|        else
 2114|      0|            p += 1;
 2115|      0|        q = strchr(p, '.');
 2116|      0|        name = strndup(p, q - p);
 2117|      0|        name[0] = toupper((unsigned char) name[0]);
  ------------------
  |  Branch (2117:19): [True: 0, False: 0]
  |  Branch (2117:19): [True: 0, False: 0]
  |  Branch (2117:19): [Folded, False: 0]
  ------------------
 2118|      0|        res = load_module(aug, name);
 2119|      0|        free(name);
 2120|      0|        if (res == -1)
  ------------------
  |  Branch (2120:13): [True: 0, False: 0]
  ------------------
 2121|      0|            goto error;
 2122|      0|    }
 2123|      5|    globfree(&globbuf);
 2124|      5|    return 0;
 2125|      0| error:
 2126|      0|    globfree(&globbuf);
 2127|      0|    return -1;
 2128|      5|}
syntax.c:free_param:
  154|    245|static void free_param(struct param *param) {
  155|    245|    if (param == NULL)
  ------------------
  |  Branch (155:9): [True: 0, False: 245]
  ------------------
  156|      0|        return;
  157|    245|    assert(param->ref == 0);
  ------------------
  |  Branch (157:5): [True: 0, False: 245]
  |  Branch (157:5): [True: 245, False: 0]
  ------------------
  158|    245|    unref(param->info, info);
  ------------------
  |  |   55|    245|    do {                                                                \
  |  |   56|    245|        if ((s) != NULL && (s)->ref != REF_MAX) {                       \
  |  |  ------------------
  |  |  |  |   41|    245|#define REF_MAX UINT_MAX
  |  |  ------------------
  |  |  |  Branch (56:13): [True: 245, False: 0]
  |  |  |  Branch (56:28): [True: 245, False: 0]
  |  |  ------------------
  |  |   57|    245|            assert((s)->ref > 0);                                       \
  |  |   58|    245|            if (--(s)->ref == 0) {                                      \
  |  |  ------------------
  |  |  |  Branch (58:17): [True: 0, False: 245]
  |  |  ------------------
  |  |   59|      0|                /*memset(s, 255, sizeof(*s));*/                         \
  |  |   60|      0|                free_##t(s);                                            \
  |  |   61|      0|            }                                                           \
  |  |   62|    245|        }                                                               \
  |  |   63|    245|        (s) = NULL;                                                     \
  |  |   64|    245|    } while(0)
  |  |  ------------------
  |  |  |  Branch (64:13): [Folded, False: 245]
  |  |  ------------------
  ------------------
  |  Branch (158:5): [True: 0, False: 245]
  |  Branch (158:5): [True: 245, False: 0]
  ------------------
  159|    245|    unref(param->name, string);
  ------------------
  |  |   55|    245|    do {                                                                \
  |  |   56|    245|        if ((s) != NULL && (s)->ref != REF_MAX) {                       \
  |  |  ------------------
  |  |  |  |   41|    245|#define REF_MAX UINT_MAX
  |  |  ------------------
  |  |  |  Branch (56:13): [True: 245, False: 0]
  |  |  |  Branch (56:28): [True: 245, False: 0]
  |  |  ------------------
  |  |   57|    245|            assert((s)->ref > 0);                                       \
  |  |   58|    245|            if (--(s)->ref == 0) {                                      \
  |  |  ------------------
  |  |  |  Branch (58:17): [True: 245, False: 0]
  |  |  ------------------
  |  |   59|    245|                /*memset(s, 255, sizeof(*s));*/                         \
  |  |   60|    245|                free_##t(s);                                            \
  |  |   61|    245|            }                                                           \
  |  |   62|    245|        }                                                               \
  |  |   63|    245|        (s) = NULL;                                                     \
  |  |   64|    245|    } while(0)
  |  |  ------------------
  |  |  |  Branch (64:13): [Folded, False: 245]
  |  |  ------------------
  ------------------
  |  Branch (159:5): [True: 0, False: 245]
  |  Branch (159:5): [True: 245, False: 0]
  ------------------
  160|    245|    unref(param->type, type);
  ------------------
  |  |   55|    245|    do {                                                                \
  |  |   56|    245|        if ((s) != NULL && (s)->ref != REF_MAX) {                       \
  |  |  ------------------
  |  |  |  |   41|    245|#define REF_MAX UINT_MAX
  |  |  ------------------
  |  |  |  Branch (56:13): [True: 245, False: 0]
  |  |  |  Branch (56:28): [True: 0, False: 245]
  |  |  ------------------
  |  |   57|      0|            assert((s)->ref > 0);                                       \
  |  |   58|      0|            if (--(s)->ref == 0) {                                      \
  |  |  ------------------
  |  |  |  Branch (58:17): [True: 0, False: 0]
  |  |  ------------------
  |  |   59|      0|                /*memset(s, 255, sizeof(*s));*/                         \
  |  |   60|      0|                free_##t(s);                                            \
  |  |   61|      0|            }                                                           \
  |  |   62|      0|        }                                                               \
  |  |   63|    245|        (s) = NULL;                                                     \
  |  |   64|    245|    } while(0)
  |  |  ------------------
  |  |  |  Branch (64:13): [Folded, False: 245]
  |  |  ------------------
  ------------------
  |  Branch (160:5): [True: 0, False: 0]
  |  Branch (160:5): [True: 0, False: 0]
  ------------------
  161|    245|    free(param);
  162|    245|}
syntax.c:free_binding:
  217|    405|static void free_binding(struct binding *binding) {
  218|    405|    if (binding == NULL)
  ------------------
  |  Branch (218:9): [True: 0, False: 405]
  ------------------
  219|      0|        return;
  220|    405|    assert(binding->ref == 0);
  ------------------
  |  Branch (220:5): [True: 0, False: 405]
  |  Branch (220:5): [True: 405, False: 0]
  ------------------
  221|    405|    unref(binding->next, binding);
  ------------------
  |  |   55|    405|    do {                                                                \
  |  |   56|    405|        if ((s) != NULL && (s)->ref != REF_MAX) {                       \
  |  |  ------------------
  |  |  |  |   41|    385|#define REF_MAX UINT_MAX
  |  |  ------------------
  |  |  |  Branch (56:13): [True: 385, False: 20]
  |  |  |  Branch (56:28): [True: 385, False: 0]
  |  |  ------------------
  |  |   57|    385|            assert((s)->ref > 0);                                       \
  |  |   58|    385|            if (--(s)->ref == 0) {                                      \
  |  |  ------------------
  |  |  |  Branch (58:17): [True: 0, False: 385]
  |  |  ------------------
  |  |   59|      0|                /*memset(s, 255, sizeof(*s));*/                         \
  |  |   60|      0|                free_##t(s);                                            \
  |  |   61|      0|            }                                                           \
  |  |   62|    385|        }                                                               \
  |  |   63|    405|        (s) = NULL;                                                     \
  |  |   64|    405|    } while(0)
  |  |  ------------------
  |  |  |  Branch (64:13): [Folded, False: 405]
  |  |  ------------------
  ------------------
  |  Branch (221:5): [True: 0, False: 385]
  |  Branch (221:5): [True: 385, False: 0]
  ------------------
  222|    405|    unref(binding->ident, string);
  ------------------
  |  |   55|    405|    do {                                                                \
  |  |   56|    405|        if ((s) != NULL && (s)->ref != REF_MAX) {                       \
  |  |  ------------------
  |  |  |  |   41|    405|#define REF_MAX UINT_MAX
  |  |  ------------------
  |  |  |  Branch (56:13): [True: 405, False: 0]
  |  |  |  Branch (56:28): [True: 405, False: 0]
  |  |  ------------------
  |  |   57|    405|            assert((s)->ref > 0);                                       \
  |  |   58|    405|            if (--(s)->ref == 0) {                                      \
  |  |  ------------------
  |  |  |  Branch (58:17): [True: 160, False: 245]
  |  |  ------------------
  |  |   59|    160|                /*memset(s, 255, sizeof(*s));*/                         \
  |  |   60|    160|                free_##t(s);                                            \
  |  |   61|    160|            }                                                           \
  |  |   62|    405|        }                                                               \
  |  |   63|    405|        (s) = NULL;                                                     \
  |  |   64|    405|    } while(0)
  |  |  ------------------
  |  |  |  Branch (64:13): [Folded, False: 405]
  |  |  ------------------
  ------------------
  |  Branch (222:5): [True: 0, False: 405]
  |  Branch (222:5): [True: 405, False: 0]
  ------------------
  223|    405|    unref(binding->type, type);
  ------------------
  |  |   55|    405|    do {                                                                \
  |  |   56|    405|        if ((s) != NULL && (s)->ref != REF_MAX) {                       \
  |  |  ------------------
  |  |  |  |   41|    405|#define REF_MAX UINT_MAX
  |  |  ------------------
  |  |  |  Branch (56:13): [True: 405, False: 0]
  |  |  |  Branch (56:28): [True: 160, False: 245]
  |  |  ------------------
  |  |   57|    160|            assert((s)->ref > 0);                                       \
  |  |   58|    160|            if (--(s)->ref == 0) {                                      \
  |  |  ------------------
  |  |  |  Branch (58:17): [True: 0, False: 160]
  |  |  ------------------
  |  |   59|      0|                /*memset(s, 255, sizeof(*s));*/                         \
  |  |   60|      0|                free_##t(s);                                            \
  |  |   61|      0|            }                                                           \
  |  |   62|    160|        }                                                               \
  |  |   63|    405|        (s) = NULL;                                                     \
  |  |   64|    405|    } while(0)
  |  |  ------------------
  |  |  |  Branch (64:13): [Folded, False: 405]
  |  |  ------------------
  ------------------
  |  Branch (223:5): [True: 0, False: 160]
  |  Branch (223:5): [True: 160, False: 0]
  ------------------
  224|    405|    unref(binding->value, value);
  ------------------
  |  |   55|    405|    do {                                                                \
  |  |   56|    405|        if ((s) != NULL && (s)->ref != REF_MAX) {                       \
  |  |  ------------------
  |  |  |  |   41|    160|#define REF_MAX UINT_MAX
  |  |  ------------------
  |  |  |  Branch (56:13): [True: 160, False: 245]
  |  |  |  Branch (56:28): [True: 160, False: 0]
  |  |  ------------------
  |  |   57|    160|            assert((s)->ref > 0);                                       \
  |  |   58|    160|            if (--(s)->ref == 0) {                                      \
  |  |  ------------------
  |  |  |  Branch (58:17): [True: 160, False: 0]
  |  |  ------------------
  |  |   59|    160|                /*memset(s, 255, sizeof(*s));*/                         \
  |  |   60|    160|                free_##t(s);                                            \
  |  |   61|    160|            }                                                           \
  |  |   62|    160|        }                                                               \
  |  |   63|    405|        (s) = NULL;                                                     \
  |  |   64|    405|    } while(0)
  |  |  ------------------
  |  |  |  Branch (64:13): [Folded, False: 405]
  |  |  ------------------
  ------------------
  |  Branch (224:5): [True: 0, False: 160]
  |  Branch (224:5): [True: 160, False: 0]
  ------------------
  225|    405|    free(binding);
  226|    405|}
syntax.c:free_exn:
  251|      5|static void free_exn(struct exn *exn) {
  252|      5|    if (exn == NULL)
  ------------------
  |  Branch (252:9): [True: 0, False: 5]
  ------------------
  253|      0|        return;
  254|       |
  255|      5|    unref(exn->info, info);
  ------------------
  |  |   55|      5|    do {                                                                \
  |  |   56|      5|        if ((s) != NULL && (s)->ref != REF_MAX) {                       \
  |  |  ------------------
  |  |  |  |   41|      5|#define REF_MAX UINT_MAX
  |  |  ------------------
  |  |  |  Branch (56:13): [True: 5, False: 0]
  |  |  |  Branch (56:28): [True: 5, False: 0]
  |  |  ------------------
  |  |   57|      5|            assert((s)->ref > 0);                                       \
  |  |   58|      5|            if (--(s)->ref == 0) {                                      \
  |  |  ------------------
  |  |  |  Branch (58:17): [True: 0, False: 5]
  |  |  ------------------
  |  |   59|      0|                /*memset(s, 255, sizeof(*s));*/                         \
  |  |   60|      0|                free_##t(s);                                            \
  |  |   61|      0|            }                                                           \
  |  |   62|      5|        }                                                               \
  |  |   63|      5|        (s) = NULL;                                                     \
  |  |   64|      5|    } while(0)
  |  |  ------------------
  |  |  |  Branch (64:13): [Folded, False: 5]
  |  |  ------------------
  ------------------
  |  Branch (255:5): [True: 0, False: 5]
  |  Branch (255:5): [True: 5, False: 0]
  ------------------
  256|      5|    free(exn->message);
  257|      5|    for (int i=0; i < exn->nlines; i++) {
  ------------------
  |  Branch (257:19): [True: 0, False: 5]
  ------------------
  258|      0|        free(exn->lines[i]);
  259|      0|    }
  260|      5|    free(exn->lines);
  261|      5|    free(exn);
  262|      5|}
syntax.c:make_native_info:
 1843|    160|make_native_info(struct error *error, const char *fname, int line) {
 1844|    160|    struct info *info;
 1845|    160|    if (make_ref(info) < 0)
  ------------------
  |  |   48|    160|    ref_make_ref(&(var), sizeof(*(var)), offsetof(typeof(*(var)), ref))
  ------------------
  |  Branch (1845:9): [True: 0, False: 160]
  ------------------
 1846|      0|        goto error;
 1847|    160|    info->first_line = info->last_line = line;
 1848|    160|    info->first_column = info->last_column = 0;
 1849|    160|    info->error = error;
 1850|    160|    if (make_ref(info->filename) < 0)
  ------------------
  |  |   48|    160|    ref_make_ref(&(var), sizeof(*(var)), offsetof(typeof(*(var)), ref))
  ------------------
  |  Branch (1850:9): [True: 0, False: 160]
  ------------------
 1851|      0|        goto error;
 1852|    160|    info->filename->str = strdup(fname);
 1853|    160|    return info;
 1854|      0| error:
 1855|      0|    unref(info, info);
  ------------------
  |  |   55|      0|    do {                                                                \
  |  |   56|      0|        if ((s) != NULL && (s)->ref != REF_MAX) {                       \
  |  |  ------------------
  |  |  |  |   41|      0|#define REF_MAX UINT_MAX
  |  |  ------------------
  |  |  |  Branch (56:13): [True: 0, False: 0]
  |  |  |  Branch (56:28): [True: 0, False: 0]
  |  |  ------------------
  |  |   57|      0|            assert((s)->ref > 0);                                       \
  |  |   58|      0|            if (--(s)->ref == 0) {                                      \
  |  |  ------------------
  |  |  |  Branch (58:17): [True: 0, False: 0]
  |  |  ------------------
  |  |   59|      0|                /*memset(s, 255, sizeof(*s));*/                         \
  |  |   60|      0|                free_##t(s);                                            \
  |  |   61|      0|            }                                                           \
  |  |   62|      0|        }                                                               \
  |  |   63|      0|        (s) = NULL;                                                     \
  |  |   64|      0|    } while(0)
  |  |  ------------------
  |  |  |  Branch (64:13): [Folded, False: 0]
  |  |  ------------------
  ------------------
  |  Branch (1855:5): [True: 0, False: 0]
  |  Branch (1855:5): [True: 0, False: 0]
  ------------------
 1856|      0|    return NULL;
 1857|      0|}
syntax.c:check_exp:
 1181|    405|static int check_exp(struct term *term, struct ctx *ctx) {
 1182|    405|    int result = 1;
 1183|    405|    assert(term->type == NULL || term->tag == A_VALUE || term->ref > 1);
  ------------------
  |  Branch (1183:5): [True: 405, False: 0]
  |  Branch (1183:5): [True: 0, False: 0]
  |  Branch (1183:5): [True: 0, False: 0]
  |  Branch (1183:5): [True: 245, False: 160]
  |  Branch (1183:5): [True: 160, False: 0]
  |  Branch (1183:5): [True: 0, False: 0]
  ------------------
 1184|    405|    if (term->type != NULL && term->tag != A_VALUE)
  ------------------
  |  Branch (1184:9): [True: 160, False: 245]
  |  Branch (1184:31): [True: 0, False: 160]
  ------------------
 1185|      0|        return 1;
 1186|       |
 1187|    405|    switch (term->tag) {
 1188|      0|    case A_UNION:
  ------------------
  |  Branch (1188:5): [True: 0, False: 405]
  ------------------
 1189|      0|        result = check_binop("union", term, ctx, 2, t_regexp, t_lens);
 1190|      0|        break;
 1191|      0|    case A_MINUS:
  ------------------
  |  Branch (1191:5): [True: 0, False: 405]
  ------------------
 1192|      0|        result = check_binop("minus", term, ctx, 1, t_regexp);
 1193|      0|        break;
 1194|      0|    case A_COMPOSE:
  ------------------
  |  Branch (1194:5): [True: 0, False: 405]
  ------------------
 1195|      0|        result = check_compose(term, ctx);
 1196|      0|        break;
 1197|      0|    case A_CONCAT:
  ------------------
  |  Branch (1197:5): [True: 0, False: 405]
  ------------------
 1198|      0|        result = check_binop("concatenation", term, ctx,
 1199|      0|                             4, t_string, t_regexp, t_lens, t_filter);
 1200|      0|        break;
 1201|      0|    case A_LET:
  ------------------
  |  Branch (1201:5): [True: 0, False: 405]
  ------------------
 1202|      0|        {
 1203|      0|            result = check_exp(term->right, ctx);
 1204|      0|            if (result) {
  ------------------
  |  Branch (1204:17): [True: 0, False: 0]
  ------------------
 1205|      0|                struct term *func = term->left;
 1206|      0|                assert(func->tag == A_FUNC);
  ------------------
  |  Branch (1206:17): [True: 0, False: 0]
  |  Branch (1206:17): [True: 0, False: 0]
  ------------------
 1207|      0|                assert(func->param->type == NULL);
  ------------------
  |  Branch (1207:17): [True: 0, False: 0]
  |  Branch (1207:17): [True: 0, False: 0]
  ------------------
 1208|      0|                func->param->type = ref(term->right->type);
  ------------------
  |  |   52|      0|#define ref(s) (((s) == NULL || (s)->ref == REF_MAX) ? (s) : ((s)->ref++, (s)))
  |  |  ------------------
  |  |  |  |   41|      0|#define REF_MAX UINT_MAX
  |  |  ------------------
  |  |  |  Branch (52:18): [True: 0, False: 0]
  |  |  |  Branch (52:33): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 1209|       |
 1210|      0|                result = check_exp(func, ctx);
 1211|      0|                if (result) {
  ------------------
  |  Branch (1211:21): [True: 0, False: 0]
  ------------------
 1212|      0|                    term->tag = A_APP;
 1213|      0|                    term->type = ref(func->type->img);
  ------------------
  |  |   52|      0|#define ref(s) (((s) == NULL || (s)->ref == REF_MAX) ? (s) : ((s)->ref++, (s)))
  |  |  ------------------
  |  |  |  |   41|      0|#define REF_MAX UINT_MAX
  |  |  ------------------
  |  |  |  Branch (52:18): [True: 0, False: 0]
  |  |  |  Branch (52:33): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 1214|      0|                }
 1215|      0|            }
 1216|      0|        }
 1217|      0|        break;
 1218|      0|    case A_APP:
  ------------------
  |  Branch (1218:5): [True: 0, False: 405]
  ------------------
 1219|      0|        result = check_exp(term->left, ctx) & check_exp(term->right, ctx);
 1220|      0|        if (result) {
  ------------------
  |  Branch (1220:13): [True: 0, False: 0]
  ------------------
 1221|      0|            if (term->left->type->tag != T_ARROW) {
  ------------------
  |  Branch (1221:17): [True: 0, False: 0]
  ------------------
 1222|      0|                type_error1(term->info,
 1223|      0|                            "expected function in application but found %s",
 1224|      0|                            term->left->type);
 1225|      0|                result = 0;
 1226|      0|            };
 1227|      0|        }
 1228|      0|        if (result) {
  ------------------
  |  Branch (1228:13): [True: 0, False: 0]
  ------------------
 1229|      0|            result = expect_types(term->info,
 1230|      0|                                  term->right->type,
 1231|      0|                                  1, term->left->type->dom) != NULL;
 1232|      0|            if (! result) {
  ------------------
  |  Branch (1232:17): [True: 0, False: 0]
  ------------------
 1233|      0|                type_error_binop(term->info, "application",
 1234|      0|                                 term->left->type, term->right->type);
 1235|      0|                result = 0;
 1236|      0|            }
 1237|      0|        }
 1238|      0|        if (result)
  ------------------
  |  Branch (1238:13): [True: 0, False: 0]
  ------------------
 1239|      0|            term->type = ref(term->left->type->img);
  ------------------
  |  |   52|      0|#define ref(s) (((s) == NULL || (s)->ref == REF_MAX) ? (s) : ((s)->ref++, (s)))
  |  |  ------------------
  |  |  |  |   41|      0|#define REF_MAX UINT_MAX
  |  |  ------------------
  |  |  |  Branch (52:18): [True: 0, False: 0]
  |  |  |  Branch (52:33): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 1240|      0|        break;
 1241|    160|    case A_VALUE:
  ------------------
  |  Branch (1241:5): [True: 160, False: 245]
  ------------------
 1242|    160|        result = check_value(term);
 1243|    160|        break;
 1244|      0|    case A_IDENT:
  ------------------
  |  Branch (1244:5): [True: 0, False: 405]
  ------------------
 1245|      0|        {
 1246|      0|            struct type *t = ctx_lookup_type(term->info, ctx, term->ident);
 1247|      0|            if (t == NULL) {
  ------------------
  |  Branch (1247:17): [True: 0, False: 0]
  ------------------
 1248|      0|                syntax_error(term->info, "Undefined variable %s",
 1249|      0|                             term->ident->str);
 1250|      0|                result = 0;
 1251|      0|            } else {
 1252|      0|                term->type = ref(t);
  ------------------
  |  |   52|      0|#define ref(s) (((s) == NULL || (s)->ref == REF_MAX) ? (s) : ((s)->ref++, (s)))
  |  |  ------------------
  |  |  |  |   41|      0|#define REF_MAX UINT_MAX
  |  |  ------------------
  |  |  |  Branch (52:18): [True: 0, False: 0]
  |  |  |  Branch (52:33): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 1253|      0|            }
 1254|      0|        }
 1255|      0|        break;
 1256|      0|    case A_BRACKET:
  ------------------
  |  Branch (1256:5): [True: 0, False: 405]
  ------------------
 1257|      0|        result = check_exp(term->brexp, ctx);
 1258|      0|        if (result) {
  ------------------
  |  Branch (1258:13): [True: 0, False: 0]
  ------------------
 1259|      0|            term->type = ref(expect_types(term->info, term->brexp->type,
  ------------------
  |  |   52|      0|#define ref(s) (((s) == NULL || (s)->ref == REF_MAX) ? (s) : ((s)->ref++, (s)))
  |  |  ------------------
  |  |  |  |   41|      0|#define REF_MAX UINT_MAX
  |  |  ------------------
  |  |  |  Branch (52:18): [True: 0, False: 0]
  |  |  |  Branch (52:33): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 1260|      0|                                          1, t_lens));
 1261|      0|            if (term->type == NULL) {
  ------------------
  |  Branch (1261:17): [True: 0, False: 0]
  ------------------
 1262|      0|                type_error1(term->info,
 1263|      0|                             "[..] is only defined for lenses, not for %s",
 1264|      0|                            term->brexp->type);
 1265|      0|                result = 0;
 1266|      0|            }
 1267|      0|        }
 1268|      0|        break;
 1269|    245|    case A_FUNC:
  ------------------
  |  Branch (1269:5): [True: 245, False: 160]
  ------------------
 1270|    245|        {
 1271|    245|            bind_param(&ctx->local, term->param, NULL);
 1272|    245|            result = check_exp(term->body, ctx);
 1273|    245|            if (result) {
  ------------------
  |  Branch (1273:17): [True: 245, False: 0]
  ------------------
 1274|    245|                term->type =
 1275|    245|                    make_arrow_type(term->param->type, term->body->type);
 1276|    245|            }
 1277|    245|            unbind_param(&ctx->local, term->param);
 1278|    245|        }
 1279|    245|        break;
 1280|      0|    case A_REP:
  ------------------
  |  Branch (1280:5): [True: 0, False: 405]
  ------------------
 1281|      0|        result = check_exp(term->exp, ctx);
 1282|      0|        if (result) {
  ------------------
  |  Branch (1282:13): [True: 0, False: 0]
  ------------------
 1283|      0|            term->type = ref(expect_types(term->info, term->exp->type, 2,
  ------------------
  |  |   52|      0|#define ref(s) (((s) == NULL || (s)->ref == REF_MAX) ? (s) : ((s)->ref++, (s)))
  |  |  ------------------
  |  |  |  |   41|      0|#define REF_MAX UINT_MAX
  |  |  ------------------
  |  |  |  Branch (52:18): [True: 0, False: 0]
  |  |  |  Branch (52:33): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 1284|      0|                                          t_regexp, t_lens));
 1285|      0|            if (term->type == NULL) {
  ------------------
  |  Branch (1285:17): [True: 0, False: 0]
  ------------------
 1286|      0|                type_error1(term->info,
 1287|      0|                            "Incompatible types: repetition is only defined"
 1288|      0|                            " for regexp and lens, not for %s",
 1289|      0|                            term->exp->type);
 1290|      0|                result = 0;
 1291|      0|            }
 1292|      0|        }
 1293|      0|        break;
 1294|      0|    default:
  ------------------
  |  Branch (1294:5): [True: 0, False: 405]
  ------------------
 1295|      0|        assert(0);
  ------------------
  |  Branch (1295:9): [Folded, False: 0]
  |  Branch (1295:9): [Folded, False: 0]
  ------------------
 1296|      0|        break;
 1297|    405|    }
 1298|    405|    assert(!result || term->type != NULL);
  ------------------
  |  Branch (1298:5): [True: 405, False: 0]
  |  Branch (1298:5): [True: 0, False: 0]
  |  Branch (1298:5): [True: 0, False: 405]
  |  Branch (1298:5): [True: 405, False: 0]
  ------------------
 1299|    405|    return result;
 1300|    405|}
syntax.c:check_value:
 1153|    160|static int check_value(struct term *term) {
 1154|    160|    const char *msg;
 1155|    160|    struct value *v = term->value;
 1156|       |
 1157|    160|    if (v->tag == V_REGEXP) {
  ------------------
  |  Branch (1157:9): [True: 0, False: 160]
  ------------------
 1158|       |        /* The only literal that needs checking are regular expressions,
 1159|       |           where we need to make sure the regexp is syntactically
 1160|       |           correct */
 1161|      0|        if (regexp_check(v->regexp, &msg) == -1) {
  ------------------
  |  Branch (1161:13): [True: 0, False: 0]
  ------------------
 1162|      0|            syntax_error(v->info, "Invalid regular expression: %s", msg);
 1163|      0|            return 0;
 1164|      0|        }
 1165|      0|        term->type = make_base_type(T_REGEXP);
 1166|    160|    } else if (v->tag == V_EXN) {
  ------------------
  |  Branch (1166:16): [True: 0, False: 160]
  ------------------
 1167|       |        /* Exceptions can't be typed */
 1168|      0|        return 0;
 1169|    160|    } else {
 1170|       |        /* There are cases where we generate values internally, and
 1171|       |           those have their type already set; we don't want to
 1172|       |           overwrite that */
 1173|    160|        if (term->type == NULL) {
  ------------------
  |  Branch (1173:13): [True: 0, False: 160]
  ------------------
 1174|      0|            term->type = value_type(v);
 1175|      0|        }
 1176|    160|    }
 1177|    160|    return 1;
 1178|    160|}
syntax.c:bind_param:
  592|    245|                       struct value *v) {
  593|    245|    struct binding *b;
  594|    245|    make_ref(b);
  ------------------
  |  |   48|    245|    ref_make_ref(&(var), sizeof(*(var)), offsetof(typeof(*(var)), ref))
  ------------------
  595|    245|    b->ident = ref(param->name);
  ------------------
  |  |   52|    245|#define ref(s) (((s) == NULL || (s)->ref == REF_MAX) ? (s) : ((s)->ref++, (s)))
  |  |  ------------------
  |  |  |  |   41|    245|#define REF_MAX UINT_MAX
  |  |  ------------------
  |  |  |  Branch (52:18): [True: 0, False: 245]
  |  |  |  Branch (52:33): [True: 0, False: 245]
  |  |  ------------------
  ------------------
  596|    245|    b->type  = ref(param->type);
  ------------------
  |  |   52|    245|#define ref(s) (((s) == NULL || (s)->ref == REF_MAX) ? (s) : ((s)->ref++, (s)))
  |  |  ------------------
  |  |  |  |   41|    245|#define REF_MAX UINT_MAX
  |  |  ------------------
  |  |  |  Branch (52:18): [True: 0, False: 245]
  |  |  |  Branch (52:33): [True: 245, False: 0]
  |  |  ------------------
  ------------------
  597|    245|    b->value = ref(v);
  ------------------
  |  |   52|    245|#define ref(s) (((s) == NULL || (s)->ref == REF_MAX) ? (s) : ((s)->ref++, (s)))
  |  |  ------------------
  |  |  |  |   41|      0|#define REF_MAX UINT_MAX
  |  |  ------------------
  |  |  |  Branch (52:18): [True: 245, False: 0]
  |  |  |  Branch (52:33): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  598|    245|    ref(*bnds);
  ------------------
  |  |   52|    245|#define ref(s) (((s) == NULL || (s)->ref == REF_MAX) ? (s) : ((s)->ref++, (s)))
  |  |  ------------------
  |  |  |  |   41|    235|#define REF_MAX UINT_MAX
  |  |  ------------------
  |  |  |  Branch (52:18): [True: 10, False: 235]
  |  |  |  Branch (52:33): [True: 0, False: 235]
  |  |  ------------------
  ------------------
  599|    245|    list_cons(*bnds, b);
  ------------------
  |  |   91|    245|    do {                                                                \
  |  |   92|    245|        typeof(elt) _e = (elt);                                         \
  |  |   93|    245|        _e->next = (list);                                              \
  |  |   94|    245|        (list) = _e;                                                    \
  |  |   95|    245|    } while(0)
  |  |  ------------------
  |  |  |  Branch (95:13): [Folded, False: 245]
  |  |  ------------------
  ------------------
  600|    245|}
syntax.c:unbind_param:
  602|    245|static void unbind_param(struct binding **bnds, ATTRIBUTE_UNUSED struct param *param) {
  603|    245|    struct binding *b = *bnds;
  604|    245|    assert(b->ident == param->name);
  ------------------
  |  Branch (604:5): [True: 0, False: 245]
  |  Branch (604:5): [True: 245, False: 0]
  ------------------
  605|    245|    assert(b->next != *bnds);
  ------------------
  |  Branch (605:5): [True: 0, False: 245]
  |  Branch (605:5): [True: 245, False: 0]
  ------------------
  606|    245|    *bnds = b->next;
  607|       |    unref(b, binding);
  ------------------
  |  |   55|    245|    do {                                                                \
  |  |   56|    245|        if ((s) != NULL && (s)->ref != REF_MAX) {                       \
  |  |  ------------------
  |  |  |  |   41|    245|#define REF_MAX UINT_MAX
  |  |  ------------------
  |  |  |  Branch (56:13): [True: 245, False: 0]
  |  |  |  Branch (56:28): [True: 245, False: 0]
  |  |  ------------------
  |  |   57|    245|            assert((s)->ref > 0);                                       \
  |  |   58|    245|            if (--(s)->ref == 0) {                                      \
  |  |  ------------------
  |  |  |  Branch (58:17): [True: 245, False: 0]
  |  |  ------------------
  |  |   59|    245|                /*memset(s, 255, sizeof(*s));*/                         \
  |  |   60|    245|                free_##t(s);                                            \
  |  |   61|    245|            }                                                           \
  |  |   62|    245|        }                                                               \
  |  |   63|    245|        (s) = NULL;                                                     \
  |  |   64|    245|    } while(0)
  |  |  ------------------
  |  |  |  Branch (64:13): [Folded, False: 245]
  |  |  ------------------
  ------------------
  |  Branch (607:5): [True: 0, False: 245]
  |  Branch (607:5): [True: 245, False: 0]
  ------------------
  608|    245|}
syntax.c:make_closure:
  392|    160|static struct value *make_closure(struct term *func, struct binding *bnds) {
  393|    160|    struct value *v = NULL;
  394|    160|    if (make_ref(v) == 0) {
  ------------------
  |  |   48|    160|    ref_make_ref(&(var), sizeof(*(var)), offsetof(typeof(*(var)), ref))
  ------------------
  |  Branch (394:9): [True: 160, False: 0]
  ------------------
  395|    160|        v->tag  = V_CLOS;
  396|    160|        v->info = ref(func->info);
  ------------------
  |  |   52|    160|#define ref(s) (((s) == NULL || (s)->ref == REF_MAX) ? (s) : ((s)->ref++, (s)))
  |  |  ------------------
  |  |  |  |   41|    160|#define REF_MAX UINT_MAX
  |  |  ------------------
  |  |  |  Branch (52:18): [True: 0, False: 160]
  |  |  |  Branch (52:33): [True: 0, False: 160]
  |  |  ------------------
  ------------------
  397|    160|        v->func = ref(func);
  ------------------
  |  |   52|    160|#define ref(s) (((s) == NULL || (s)->ref == REF_MAX) ? (s) : ((s)->ref++, (s)))
  |  |  ------------------
  |  |  |  |   41|    160|#define REF_MAX UINT_MAX
  |  |  ------------------
  |  |  |  Branch (52:18): [True: 0, False: 160]
  |  |  |  Branch (52:33): [True: 0, False: 160]
  |  |  ------------------
  ------------------
  398|       |        v->bindings = ref(bnds);
  ------------------
  |  |   52|    160|#define ref(s) (((s) == NULL || (s)->ref == REF_MAX) ? (s) : ((s)->ref++, (s)))
  |  |  ------------------
  |  |  |  |   41|    150|#define REF_MAX UINT_MAX
  |  |  ------------------
  |  |  |  Branch (52:18): [True: 10, False: 150]
  |  |  |  Branch (52:33): [True: 0, False: 150]
  |  |  ------------------
  ------------------
  399|    160|    }
  400|    160|    return v;
  401|    160|}
syntax.c:bind:
  612|    160|                 const char *name, struct type *type, struct value *value) {
  613|    160|    struct binding *b = NULL;
  614|       |
  615|    160|    if (STRNEQ(name, anon_ident)) {
  ------------------
  |  |  227|    160|#define STRNEQ(a,b) (strcmp((a),(b)) != 0)
  |  |  ------------------
  |  |  |  Branch (227:21): [True: 160, False: 0]
  |  |  ------------------
  ------------------
  616|    160|        b = bind_type(bnds, name, type);
  617|       |        b->value = ref(value);
  ------------------
  |  |   52|    160|#define ref(s) (((s) == NULL || (s)->ref == REF_MAX) ? (s) : ((s)->ref++, (s)))
  |  |  ------------------
  |  |  |  |   41|    160|#define REF_MAX UINT_MAX
  |  |  ------------------
  |  |  |  Branch (52:18): [True: 0, False: 160]
  |  |  |  Branch (52:33): [True: 0, False: 160]
  |  |  ------------------
  ------------------
  618|    160|    }
  619|    160|}
syntax.c:bind_type:
  576|    160|                                 const char *name, struct type *type) {
  577|    160|    struct binding *binding;
  578|       |
  579|    160|    if (STREQ(name, anon_ident))
  ------------------
  |  |  224|    160|#define STREQ(a,b) (strcmp((a),(b)) == 0)
  |  |  ------------------
  |  |  |  Branch (224:20): [True: 0, False: 160]
  |  |  ------------------
  ------------------
  580|      0|        return NULL;
  581|    160|    make_ref(binding);
  ------------------
  |  |   48|    160|    ref_make_ref(&(var), sizeof(*(var)), offsetof(typeof(*(var)), ref))
  ------------------
  582|    160|    make_ref(binding->ident);
  ------------------
  |  |   48|    160|    ref_make_ref(&(var), sizeof(*(var)), offsetof(typeof(*(var)), ref))
  ------------------
  583|    160|    binding->ident->str = strdup(name);
  584|    160|    binding->type = ref(type);
  ------------------
  |  |   52|    160|#define ref(s) (((s) == NULL || (s)->ref == REF_MAX) ? (s) : ((s)->ref++, (s)))
  |  |  ------------------
  |  |  |  |   41|    160|#define REF_MAX UINT_MAX
  |  |  ------------------
  |  |  |  Branch (52:18): [True: 0, False: 160]
  |  |  |  Branch (52:33): [True: 0, False: 160]
  |  |  ------------------
  ------------------
  585|    160|    list_cons(*bnds, binding);
  ------------------
  |  |   91|    160|    do {                                                                \
  |  |   92|    160|        typeof(elt) _e = (elt);                                         \
  |  |   93|    160|        _e->next = (list);                                              \
  |  |   94|    160|        (list) = _e;                                                    \
  |  |   95|    160|    } while(0)
  |  |  ------------------
  |  |  |  Branch (95:13): [Folded, False: 160]
  |  |  ------------------
  ------------------
  586|       |
  587|    160|    return binding;
  588|    160|}
syntax.c:init_fatal_exn:
   84|      5|static int init_fatal_exn(struct error *error) {
   85|      5|    if (error->exn != NULL)
  ------------------
  |  Branch (85:9): [True: 0, False: 5]
  ------------------
   86|      0|        return 0;
   87|      5|    error->exn = make_exn_value(ref(error->info), "Error during evaluation");
  ------------------
  |  |   52|      5|#define ref(s) (((s) == NULL || (s)->ref == REF_MAX) ? (s) : ((s)->ref++, (s)))
  |  |  ------------------
  |  |  |  |   41|      5|#define REF_MAX UINT_MAX
  |  |  ------------------
  |  |  |  Branch (52:18): [True: 0, False: 5]
  |  |  |  Branch (52:33): [True: 0, False: 5]
  |  |  ------------------
  ------------------
   88|      5|    if (error->exn == NULL)
  ------------------
  |  Branch (88:9): [True: 0, False: 5]
  ------------------
   89|      0|        return -1;
   90|      5|    error->exn->exn->seen = 1;
   91|      5|    error->exn->exn->error = 1;
   92|      5|    error->exn->exn->lines = NULL;
   93|      5|    error->exn->exn->nlines = 0;
   94|       |    error->exn->ref = REF_MAX;
  ------------------
  |  |   41|      5|#define REF_MAX UINT_MAX
  ------------------
   95|      5|    return 0;
   96|      5|}

