flb_config.c:flb_log_check:
  103|    146|static inline int flb_log_check(int l) {
  104|    146|    struct flb_worker *w;
  105|    146|    w = (struct flb_worker *) FLB_TLS_GET(flb_worker_ctx);
  ------------------
  |  |   34|    146|#define FLB_TLS_GET(key)           key
  ------------------
  106|    146|    if (!w && l <= 3) {
  ------------------
  |  Branch (106:9): [True: 146, False: 0]
  |  Branch (106:15): [True: 146, False: 0]
  ------------------
  107|    146|        return FLB_TRUE;
  ------------------
  |  |   26|    146|#define FLB_TRUE   !FLB_FALSE
  |  |  ------------------
  |  |  |  |   25|    146|#define FLB_FALSE  0
  |  |  ------------------
  ------------------
  108|    146|    }
  109|       |
  110|      0|    if (w == NULL || flb_worker_log_level(w) < l) {
  ------------------
  |  Branch (110:9): [True: 0, False: 0]
  |  Branch (110:22): [True: 0, False: 0]
  ------------------
  111|      0|        return FLB_FALSE;
  ------------------
  |  |   25|      0|#define FLB_FALSE  0
  ------------------
  112|      0|    }
  113|      0|    return FLB_TRUE;
  ------------------
  |  |   26|      0|#define FLB_TRUE   !FLB_FALSE
  |  |  ------------------
  |  |  |  |   25|      0|#define FLB_FALSE  0
  |  |  ------------------
  ------------------
  114|      0|}
flb_parser.c:flb_log_check:
  103|      5|static inline int flb_log_check(int l) {
  104|      5|    struct flb_worker *w;
  105|      5|    w = (struct flb_worker *) FLB_TLS_GET(flb_worker_ctx);
  ------------------
  |  |   34|      5|#define FLB_TLS_GET(key)           key
  ------------------
  106|      5|    if (!w && l <= 3) {
  ------------------
  |  Branch (106:9): [True: 5, False: 0]
  |  Branch (106:15): [True: 5, False: 0]
  ------------------
  107|      5|        return FLB_TRUE;
  ------------------
  |  |   26|      5|#define FLB_TRUE   !FLB_FALSE
  |  |  ------------------
  |  |  |  |   25|      5|#define FLB_FALSE  0
  |  |  ------------------
  ------------------
  108|      5|    }
  109|       |
  110|      0|    if (w == NULL || flb_worker_log_level(w) < l) {
  ------------------
  |  Branch (110:9): [True: 0, False: 0]
  |  Branch (110:22): [True: 0, False: 0]
  ------------------
  111|      0|        return FLB_FALSE;
  ------------------
  |  |   25|      0|#define FLB_FALSE  0
  ------------------
  112|      0|    }
  113|      0|    return FLB_TRUE;
  ------------------
  |  |   26|      0|#define FLB_TRUE   !FLB_FALSE
  |  |  ------------------
  |  |  |  |   25|      0|#define FLB_FALSE  0
  |  |  ------------------
  ------------------
  114|      0|}
flb_log.c:flb_log_check:
  103|    192|static inline int flb_log_check(int l) {
  104|    192|    struct flb_worker *w;
  105|    192|    w = (struct flb_worker *) FLB_TLS_GET(flb_worker_ctx);
  ------------------
  |  |   34|    192|#define FLB_TLS_GET(key)           key
  ------------------
  106|    192|    if (!w && l <= 3) {
  ------------------
  |  Branch (106:9): [True: 192, False: 0]
  |  Branch (106:15): [True: 192, False: 0]
  ------------------
  107|    192|        return FLB_TRUE;
  ------------------
  |  |   26|    192|#define FLB_TRUE   !FLB_FALSE
  |  |  ------------------
  |  |  |  |   25|    192|#define FLB_FALSE  0
  |  |  ------------------
  ------------------
  108|    192|    }
  109|       |
  110|      0|    if (w == NULL || flb_worker_log_level(w) < l) {
  ------------------
  |  Branch (110:9): [True: 0, False: 0]
  |  Branch (110:22): [True: 0, False: 0]
  ------------------
  111|      0|        return FLB_FALSE;
  ------------------
  |  |   25|      0|#define FLB_FALSE  0
  ------------------
  112|      0|    }
  113|      0|    return FLB_TRUE;
  ------------------
  |  |   26|      0|#define FLB_TRUE   !FLB_FALSE
  |  |  ------------------
  |  |  |  |   25|      0|#define FLB_FALSE  0
  |  |  ------------------
  ------------------
  114|      0|}
flb_unescape.c:flb_log_check:
  103|    508|static inline int flb_log_check(int l) {
  104|    508|    struct flb_worker *w;
  105|    508|    w = (struct flb_worker *) FLB_TLS_GET(flb_worker_ctx);
  ------------------
  |  |   34|    508|#define FLB_TLS_GET(key)           key
  ------------------
  106|    508|    if (!w && l <= 3) {
  ------------------
  |  Branch (106:9): [True: 508, False: 0]
  |  Branch (106:15): [True: 508, False: 0]
  ------------------
  107|    508|        return FLB_TRUE;
  ------------------
  |  |   26|    508|#define FLB_TRUE   !FLB_FALSE
  |  |  ------------------
  |  |  |  |   25|    508|#define FLB_FALSE  0
  |  |  ------------------
  ------------------
  108|    508|    }
  109|       |
  110|      0|    if (w == NULL || flb_worker_log_level(w) < l) {
  ------------------
  |  Branch (110:9): [True: 0, False: 0]
  |  Branch (110:22): [True: 0, False: 0]
  ------------------
  111|      0|        return FLB_FALSE;
  ------------------
  |  |   25|      0|#define FLB_FALSE  0
  ------------------
  112|      0|    }
  113|      0|    return FLB_TRUE;
  ------------------
  |  |   26|      0|#define FLB_TRUE   !FLB_FALSE
  |  |  ------------------
  |  |  |  |   25|      0|#define FLB_FALSE  0
  |  |  ------------------
  ------------------
  114|      0|}
flb_ml_parser.c:flb_log_check:
  103|     64|static inline int flb_log_check(int l) {
  104|     64|    struct flb_worker *w;
  105|     64|    w = (struct flb_worker *) FLB_TLS_GET(flb_worker_ctx);
  ------------------
  |  |   34|     64|#define FLB_TLS_GET(key)           key
  ------------------
  106|     64|    if (!w && l <= 3) {
  ------------------
  |  Branch (106:9): [True: 64, False: 0]
  |  Branch (106:15): [True: 64, False: 0]
  ------------------
  107|     64|        return FLB_TRUE;
  ------------------
  |  |   26|     64|#define FLB_TRUE   !FLB_FALSE
  |  |  ------------------
  |  |  |  |   25|     64|#define FLB_FALSE  0
  |  |  ------------------
  ------------------
  108|     64|    }
  109|       |
  110|      0|    if (w == NULL || flb_worker_log_level(w) < l) {
  ------------------
  |  Branch (110:9): [True: 0, False: 0]
  |  Branch (110:22): [True: 0, False: 0]
  ------------------
  111|      0|        return FLB_FALSE;
  ------------------
  |  |   25|      0|#define FLB_FALSE  0
  ------------------
  112|      0|    }
  113|      0|    return FLB_TRUE;
  ------------------
  |  |   26|      0|#define FLB_TRUE   !FLB_FALSE
  |  |  ------------------
  |  |  |  |   25|      0|#define FLB_FALSE  0
  |  |  ------------------
  ------------------
  114|      0|}
flb_ml_rule.c:flb_log_check:
  103|     16|static inline int flb_log_check(int l) {
  104|     16|    struct flb_worker *w;
  105|     16|    w = (struct flb_worker *) FLB_TLS_GET(flb_worker_ctx);
  ------------------
  |  |   34|     16|#define FLB_TLS_GET(key)           key
  ------------------
  106|     16|    if (!w && l <= 3) {
  ------------------
  |  Branch (106:9): [True: 16, False: 0]
  |  Branch (106:15): [True: 16, False: 0]
  ------------------
  107|     16|        return FLB_TRUE;
  ------------------
  |  |   26|     16|#define FLB_TRUE   !FLB_FALSE
  |  |  ------------------
  |  |  |  |   25|     16|#define FLB_FALSE  0
  |  |  ------------------
  ------------------
  108|     16|    }
  109|       |
  110|      0|    if (w == NULL || flb_worker_log_level(w) < l) {
  ------------------
  |  Branch (110:9): [True: 0, False: 0]
  |  Branch (110:22): [True: 0, False: 0]
  ------------------
  111|      0|        return FLB_FALSE;
  ------------------
  |  |   25|      0|#define FLB_FALSE  0
  ------------------
  112|      0|    }
  113|      0|    return FLB_TRUE;
  ------------------
  |  |   26|      0|#define FLB_TRUE   !FLB_FALSE
  |  |  ------------------
  |  |  |  |   25|      0|#define FLB_FALSE  0
  |  |  ------------------
  ------------------
  114|      0|}
flb_ml_parser_cri.c:flb_log_check:
  103|      4|static inline int flb_log_check(int l) {
  104|      4|    struct flb_worker *w;
  105|      4|    w = (struct flb_worker *) FLB_TLS_GET(flb_worker_ctx);
  ------------------
  |  |   34|      4|#define FLB_TLS_GET(key)           key
  ------------------
  106|      4|    if (!w && l <= 3) {
  ------------------
  |  Branch (106:9): [True: 4, False: 0]
  |  Branch (106:15): [True: 4, False: 0]
  ------------------
  107|      4|        return FLB_TRUE;
  ------------------
  |  |   26|      4|#define FLB_TRUE   !FLB_FALSE
  |  |  ------------------
  |  |  |  |   25|      4|#define FLB_FALSE  0
  |  |  ------------------
  ------------------
  108|      4|    }
  109|       |
  110|      0|    if (w == NULL || flb_worker_log_level(w) < l) {
  ------------------
  |  Branch (110:9): [True: 0, False: 0]
  |  Branch (110:22): [True: 0, False: 0]
  ------------------
  111|      0|        return FLB_FALSE;
  ------------------
  |  |   25|      0|#define FLB_FALSE  0
  ------------------
  112|      0|    }
  113|      0|    return FLB_TRUE;
  ------------------
  |  |   26|      0|#define FLB_TRUE   !FLB_FALSE
  |  |  ------------------
  |  |  |  |   25|      0|#define FLB_FALSE  0
  |  |  ------------------
  ------------------
  114|      0|}
flb_ml_parser_docker.c:flb_log_check:
  103|      3|static inline int flb_log_check(int l) {
  104|      3|    struct flb_worker *w;
  105|      3|    w = (struct flb_worker *) FLB_TLS_GET(flb_worker_ctx);
  ------------------
  |  |   34|      3|#define FLB_TLS_GET(key)           key
  ------------------
  106|      3|    if (!w && l <= 3) {
  ------------------
  |  Branch (106:9): [True: 3, False: 0]
  |  Branch (106:15): [True: 3, False: 0]
  ------------------
  107|      3|        return FLB_TRUE;
  ------------------
  |  |   26|      3|#define FLB_TRUE   !FLB_FALSE
  |  |  ------------------
  |  |  |  |   25|      3|#define FLB_FALSE  0
  |  |  ------------------
  ------------------
  108|      3|    }
  109|       |
  110|      0|    if (w == NULL || flb_worker_log_level(w) < l) {
  ------------------
  |  Branch (110:9): [True: 0, False: 0]
  |  Branch (110:22): [True: 0, False: 0]
  ------------------
  111|      0|        return FLB_FALSE;
  ------------------
  |  |   25|      0|#define FLB_FALSE  0
  ------------------
  112|      0|    }
  113|      0|    return FLB_TRUE;
  ------------------
  |  |   26|      0|#define FLB_TRUE   !FLB_FALSE
  |  |  ------------------
  |  |  |  |   25|      0|#define FLB_FALSE  0
  |  |  ------------------
  ------------------
  114|      0|}
flb_ml_parser_python.c:flb_log_check:
  103|      7|static inline int flb_log_check(int l) {
  104|      7|    struct flb_worker *w;
  105|      7|    w = (struct flb_worker *) FLB_TLS_GET(flb_worker_ctx);
  ------------------
  |  |   34|      7|#define FLB_TLS_GET(key)           key
  ------------------
  106|      7|    if (!w && l <= 3) {
  ------------------
  |  Branch (106:9): [True: 7, False: 0]
  |  Branch (106:15): [True: 7, False: 0]
  ------------------
  107|      7|        return FLB_TRUE;
  ------------------
  |  |   26|      7|#define FLB_TRUE   !FLB_FALSE
  |  |  ------------------
  |  |  |  |   25|      7|#define FLB_FALSE  0
  |  |  ------------------
  ------------------
  108|      7|    }
  109|       |
  110|      0|    if (w == NULL || flb_worker_log_level(w) < l) {
  ------------------
  |  Branch (110:9): [True: 0, False: 0]
  |  Branch (110:22): [True: 0, False: 0]
  ------------------
  111|      0|        return FLB_FALSE;
  ------------------
  |  |   25|      0|#define FLB_FALSE  0
  ------------------
  112|      0|    }
  113|      0|    return FLB_TRUE;
  ------------------
  |  |   26|      0|#define FLB_TRUE   !FLB_FALSE
  |  |  ------------------
  |  |  |  |   25|      0|#define FLB_FALSE  0
  |  |  ------------------
  ------------------
  114|      0|}
flb_ml_parser_java.c:flb_log_check:
  103|     28|static inline int flb_log_check(int l) {
  104|     28|    struct flb_worker *w;
  105|     28|    w = (struct flb_worker *) FLB_TLS_GET(flb_worker_ctx);
  ------------------
  |  |   34|     28|#define FLB_TLS_GET(key)           key
  ------------------
  106|     28|    if (!w && l <= 3) {
  ------------------
  |  Branch (106:9): [True: 28, False: 0]
  |  Branch (106:15): [True: 28, False: 0]
  ------------------
  107|     28|        return FLB_TRUE;
  ------------------
  |  |   26|     28|#define FLB_TRUE   !FLB_FALSE
  |  |  ------------------
  |  |  |  |   25|     28|#define FLB_FALSE  0
  |  |  ------------------
  ------------------
  108|     28|    }
  109|       |
  110|      0|    if (w == NULL || flb_worker_log_level(w) < l) {
  ------------------
  |  Branch (110:9): [True: 0, False: 0]
  |  Branch (110:22): [True: 0, False: 0]
  ------------------
  111|      0|        return FLB_FALSE;
  ------------------
  |  |   25|      0|#define FLB_FALSE  0
  ------------------
  112|      0|    }
  113|      0|    return FLB_TRUE;
  ------------------
  |  |   26|      0|#define FLB_TRUE   !FLB_FALSE
  |  |  ------------------
  |  |  |  |   25|      0|#define FLB_FALSE  0
  |  |  ------------------
  ------------------
  114|      0|}
flb_ml_parser_go.c:flb_log_check:
  103|     11|static inline int flb_log_check(int l) {
  104|     11|    struct flb_worker *w;
  105|     11|    w = (struct flb_worker *) FLB_TLS_GET(flb_worker_ctx);
  ------------------
  |  |   34|     11|#define FLB_TLS_GET(key)           key
  ------------------
  106|     11|    if (!w && l <= 3) {
  ------------------
  |  Branch (106:9): [True: 11, False: 0]
  |  Branch (106:15): [True: 11, False: 0]
  ------------------
  107|     11|        return FLB_TRUE;
  ------------------
  |  |   26|     11|#define FLB_TRUE   !FLB_FALSE
  |  |  ------------------
  |  |  |  |   25|     11|#define FLB_FALSE  0
  |  |  ------------------
  ------------------
  108|     11|    }
  109|       |
  110|      0|    if (w == NULL || flb_worker_log_level(w) < l) {
  ------------------
  |  Branch (110:9): [True: 0, False: 0]
  |  Branch (110:22): [True: 0, False: 0]
  ------------------
  111|      0|        return FLB_FALSE;
  ------------------
  |  |   25|      0|#define FLB_FALSE  0
  ------------------
  112|      0|    }
  113|      0|    return FLB_TRUE;
  ------------------
  |  |   26|      0|#define FLB_TRUE   !FLB_FALSE
  |  |  ------------------
  |  |  |  |   25|      0|#define FLB_FALSE  0
  |  |  ------------------
  ------------------
  114|      0|}
flb_ml_parser_ruby.c:flb_log_check:
  103|      5|static inline int flb_log_check(int l) {
  104|      5|    struct flb_worker *w;
  105|      5|    w = (struct flb_worker *) FLB_TLS_GET(flb_worker_ctx);
  ------------------
  |  |   34|      5|#define FLB_TLS_GET(key)           key
  ------------------
  106|      5|    if (!w && l <= 3) {
  ------------------
  |  Branch (106:9): [True: 5, False: 0]
  |  Branch (106:15): [True: 5, False: 0]
  ------------------
  107|      5|        return FLB_TRUE;
  ------------------
  |  |   26|      5|#define FLB_TRUE   !FLB_FALSE
  |  |  ------------------
  |  |  |  |   25|      5|#define FLB_FALSE  0
  |  |  ------------------
  ------------------
  108|      5|    }
  109|       |
  110|      0|    if (w == NULL || flb_worker_log_level(w) < l) {
  ------------------
  |  Branch (110:9): [True: 0, False: 0]
  |  Branch (110:22): [True: 0, False: 0]
  ------------------
  111|      0|        return FLB_FALSE;
  ------------------
  |  |   25|      0|#define FLB_FALSE  0
  ------------------
  112|      0|    }
  113|      0|    return FLB_TRUE;
  ------------------
  |  |   26|      0|#define FLB_TRUE   !FLB_FALSE
  |  |  ------------------
  |  |  |  |   25|      0|#define FLB_FALSE  0
  |  |  ------------------
  ------------------
  114|      0|}

flb_config.c:flb_malloc:
   67|   106k|void *flb_malloc(const size_t size) {
   68|       |
   69|   106k|#ifdef FLB_HAVE_TESTS_OSSFUZZ
   70|       |   // 1% chance of failure
   71|   106k|   if (flb_fuzz_get_probability(1)) {
  ------------------
  |  Branch (71:8): [True: 80, False: 106k]
  ------------------
   72|     80|     return NULL;
   73|     80|   }
   74|   106k|#endif
   75|       |
   76|   106k|    if (size == 0) {
  ------------------
  |  Branch (76:9): [True: 0, False: 106k]
  ------------------
   77|      0|        return NULL;
   78|      0|    }
   79|       |
   80|   106k|    return malloc(size);
   81|   106k|}
flb_config.c:flb_fuzz_get_probability:
   56|   108k|static inline int flb_fuzz_get_probability(int val) {
   57|   108k|  flb_malloc_p += 1;
   58|   108k|  flb_malloc_p = flb_malloc_p % flb_malloc_mod;
   59|   108k|  if (val > flb_malloc_p) {
  ------------------
  |  Branch (59:7): [True: 83, False: 108k]
  ------------------
   60|     83|    return 1;
   61|     83|  }
   62|   108k|  return 0;
   63|   108k|}
flb_config.c:flb_free:
  126|   108k|static inline void flb_free(void *ptr) {
  127|   108k|    free(ptr);
  128|   108k|}
flb_config.c:flb_calloc:
   84|  1.49k|void *flb_calloc(size_t n, const size_t size) {
   85|  1.49k|    if (size == 0) {
  ------------------
  |  Branch (85:9): [True: 0, False: 1.49k]
  ------------------
   86|      0|        return NULL;
   87|      0|    }
   88|  1.49k|#ifdef FLB_HAVE_TESTS_OSSFUZZ
   89|       |   // Add chance of failure. Used by fuzzing to test error-handling code.
   90|  1.49k|   if (flb_fuzz_get_probability(1)) {
  ------------------
  |  Branch (90:8): [True: 3, False: 1.49k]
  ------------------
   91|      3|     return NULL;
   92|      3|   }
   93|  1.49k|#endif
   94|       |
   95|  1.49k|    return calloc(n, size);
   96|  1.49k|}
flb_slist.c:flb_malloc:
   67|  46.3k|void *flb_malloc(const size_t size) {
   68|       |
   69|  46.3k|#ifdef FLB_HAVE_TESTS_OSSFUZZ
   70|       |   // 1% chance of failure
   71|  46.3k|   if (flb_fuzz_get_probability(1)) {
  ------------------
  |  Branch (71:8): [True: 6, False: 46.3k]
  ------------------
   72|      6|     return NULL;
   73|      6|   }
   74|  46.3k|#endif
   75|       |
   76|  46.3k|    if (size == 0) {
  ------------------
  |  Branch (76:9): [True: 0, False: 46.3k]
  ------------------
   77|      0|        return NULL;
   78|      0|    }
   79|       |
   80|  46.3k|    return malloc(size);
   81|  46.3k|}
flb_slist.c:flb_fuzz_get_probability:
   56|  46.3k|static inline int flb_fuzz_get_probability(int val) {
   57|  46.3k|  flb_malloc_p += 1;
   58|  46.3k|  flb_malloc_p = flb_malloc_p % flb_malloc_mod;
   59|  46.3k|  if (val > flb_malloc_p) {
  ------------------
  |  Branch (59:7): [True: 6, False: 46.3k]
  ------------------
   60|      6|    return 1;
   61|      6|  }
   62|  46.3k|  return 0;
   63|  46.3k|}
flb_slist.c:flb_free:
  126|  46.3k|static inline void flb_free(void *ptr) {
  127|  46.3k|    free(ptr);
  128|  46.3k|}
flb_plugin.c:flb_malloc:
   67|  1.34k|void *flb_malloc(const size_t size) {
   68|       |
   69|  1.34k|#ifdef FLB_HAVE_TESTS_OSSFUZZ
   70|       |   // 1% chance of failure
   71|  1.34k|   if (flb_fuzz_get_probability(1)) {
  ------------------
  |  Branch (71:8): [True: 2, False: 1.34k]
  ------------------
   72|      2|     return NULL;
   73|      2|   }
   74|  1.34k|#endif
   75|       |
   76|  1.34k|    if (size == 0) {
  ------------------
  |  Branch (76:9): [True: 0, False: 1.34k]
  ------------------
   77|      0|        return NULL;
   78|      0|    }
   79|       |
   80|  1.34k|    return malloc(size);
   81|  1.34k|}
flb_plugin.c:flb_fuzz_get_probability:
   56|  1.34k|static inline int flb_fuzz_get_probability(int val) {
   57|  1.34k|  flb_malloc_p += 1;
   58|  1.34k|  flb_malloc_p = flb_malloc_p % flb_malloc_mod;
   59|  1.34k|  if (val > flb_malloc_p) {
  ------------------
  |  Branch (59:7): [True: 2, False: 1.34k]
  ------------------
   60|      2|    return 1;
   61|      2|  }
   62|  1.34k|  return 0;
   63|  1.34k|}
flb_plugin.c:flb_free:
  126|  1.34k|static inline void flb_free(void *ptr) {
  127|  1.34k|    free(ptr);
  128|  1.34k|}
flb_config_format.c:flb_calloc:
   84|  1.49k|void *flb_calloc(size_t n, const size_t size) {
   85|  1.49k|    if (size == 0) {
  ------------------
  |  Branch (85:9): [True: 0, False: 1.49k]
  ------------------
   86|      0|        return NULL;
   87|      0|    }
   88|  1.49k|#ifdef FLB_HAVE_TESTS_OSSFUZZ
   89|       |   // Add chance of failure. Used by fuzzing to test error-handling code.
   90|  1.49k|   if (flb_fuzz_get_probability(1)) {
  ------------------
  |  Branch (90:8): [True: 1, False: 1.49k]
  ------------------
   91|      1|     return NULL;
   92|      1|   }
   93|  1.49k|#endif
   94|       |
   95|  1.49k|    return calloc(n, size);
   96|  1.49k|}
flb_config_format.c:flb_fuzz_get_probability:
   56|  2.98k|static inline int flb_fuzz_get_probability(int val) {
   57|  2.98k|  flb_malloc_p += 1;
   58|  2.98k|  flb_malloc_p = flb_malloc_p % flb_malloc_mod;
   59|  2.98k|  if (val > flb_malloc_p) {
  ------------------
  |  Branch (59:7): [True: 3, False: 2.98k]
  ------------------
   60|      3|    return 1;
   61|      3|  }
   62|  2.98k|  return 0;
   63|  2.98k|}
flb_config_format.c:flb_free:
  126|  2.98k|static inline void flb_free(void *ptr) {
  127|  2.98k|    free(ptr);
  128|  2.98k|}
flb_config_format.c:flb_malloc:
   67|  1.49k|void *flb_malloc(const size_t size) {
   68|       |
   69|  1.49k|#ifdef FLB_HAVE_TESTS_OSSFUZZ
   70|       |   // 1% chance of failure
   71|  1.49k|   if (flb_fuzz_get_probability(1)) {
  ------------------
  |  Branch (71:8): [True: 2, False: 1.49k]
  ------------------
   72|      2|     return NULL;
   73|      2|   }
   74|  1.49k|#endif
   75|       |
   76|  1.49k|    if (size == 0) {
  ------------------
  |  Branch (76:9): [True: 0, False: 1.49k]
  ------------------
   77|      0|        return NULL;
   78|      0|    }
   79|       |
   80|  1.49k|    return malloc(size);
   81|  1.49k|}
flb_parser.c:flb_calloc:
   84|  4.30k|void *flb_calloc(size_t n, const size_t size) {
   85|  4.30k|    if (size == 0) {
  ------------------
  |  Branch (85:9): [True: 0, False: 4.30k]
  ------------------
   86|      0|        return NULL;
   87|      0|    }
   88|  4.30k|#ifdef FLB_HAVE_TESTS_OSSFUZZ
   89|       |   // Add chance of failure. Used by fuzzing to test error-handling code.
   90|  4.30k|   if (flb_fuzz_get_probability(1)) {
  ------------------
  |  Branch (90:8): [True: 2, False: 4.30k]
  ------------------
   91|      2|     return NULL;
   92|      2|   }
   93|  4.30k|#endif
   94|       |
   95|  4.30k|    return calloc(n, size);
   96|  4.30k|}
flb_parser.c:flb_fuzz_get_probability:
   56|  18.9k|static inline int flb_fuzz_get_probability(int val) {
   57|  18.9k|  flb_malloc_p += 1;
   58|  18.9k|  flb_malloc_p = flb_malloc_p % flb_malloc_mod;
   59|  18.9k|  if (val > flb_malloc_p) {
  ------------------
  |  Branch (59:7): [True: 12, False: 18.9k]
  ------------------
   60|     12|    return 1;
   61|     12|  }
   62|  18.9k|  return 0;
   63|  18.9k|}
flb_parser.c:flb_free:
  126|  18.9k|static inline void flb_free(void *ptr) {
  127|  18.9k|    free(ptr);
  128|  18.9k|}
flb_parser.c:flb_malloc:
   67|  14.6k|void *flb_malloc(const size_t size) {
   68|       |
   69|  14.6k|#ifdef FLB_HAVE_TESTS_OSSFUZZ
   70|       |   // 1% chance of failure
   71|  14.6k|   if (flb_fuzz_get_probability(1)) {
  ------------------
  |  Branch (71:8): [True: 10, False: 14.6k]
  ------------------
   72|     10|     return NULL;
   73|     10|   }
   74|  14.6k|#endif
   75|       |
   76|  14.6k|    if (size == 0) {
  ------------------
  |  Branch (76:9): [True: 0, False: 14.6k]
  ------------------
   77|      0|        return NULL;
   78|      0|    }
   79|       |
   80|  14.6k|    return malloc(size);
   81|  14.6k|}
flb_parser_logfmt.c:flb_malloc:
   67|   434k|void *flb_malloc(const size_t size) {
   68|       |
   69|   434k|#ifdef FLB_HAVE_TESTS_OSSFUZZ
   70|       |   // 1% chance of failure
   71|   434k|   if (flb_fuzz_get_probability(1)) {
  ------------------
  |  Branch (71:8): [True: 28, False: 434k]
  ------------------
   72|     28|     return NULL;
   73|     28|   }
   74|   434k|#endif
   75|       |
   76|   434k|    if (size == 0) {
  ------------------
  |  Branch (76:9): [True: 0, False: 434k]
  ------------------
   77|      0|        return NULL;
   78|      0|    }
   79|       |
   80|   434k|    return malloc(size);
   81|   434k|}
flb_parser_logfmt.c:flb_fuzz_get_probability:
   56|   434k|static inline int flb_fuzz_get_probability(int val) {
   57|   434k|  flb_malloc_p += 1;
   58|   434k|  flb_malloc_p = flb_malloc_p % flb_malloc_mod;
   59|   434k|  if (val > flb_malloc_p) {
  ------------------
  |  Branch (59:7): [True: 28, False: 434k]
  ------------------
   60|     28|    return 1;
   61|     28|  }
   62|   434k|  return 0;
   63|   434k|}
flb_parser_logfmt.c:flb_free:
  126|   434k|static inline void flb_free(void *ptr) {
  127|   434k|    free(ptr);
  128|   434k|}
flb_regex.c:flb_malloc:
   67|  33.2k|void *flb_malloc(const size_t size) {
   68|       |
   69|  33.2k|#ifdef FLB_HAVE_TESTS_OSSFUZZ
   70|       |   // 1% chance of failure
   71|  33.2k|   if (flb_fuzz_get_probability(1)) {
  ------------------
  |  Branch (71:8): [True: 5, False: 33.2k]
  ------------------
   72|      5|     return NULL;
   73|      5|   }
   74|  33.2k|#endif
   75|       |
   76|  33.2k|    if (size == 0) {
  ------------------
  |  Branch (76:9): [True: 0, False: 33.2k]
  ------------------
   77|      0|        return NULL;
   78|      0|    }
   79|       |
   80|  33.2k|    return malloc(size);
   81|  33.2k|}
flb_regex.c:flb_fuzz_get_probability:
   56|  33.2k|static inline int flb_fuzz_get_probability(int val) {
   57|  33.2k|  flb_malloc_p += 1;
   58|  33.2k|  flb_malloc_p = flb_malloc_p % flb_malloc_mod;
   59|  33.2k|  if (val > flb_malloc_p) {
  ------------------
  |  Branch (59:7): [True: 5, False: 33.2k]
  ------------------
   60|      5|    return 1;
   61|      5|  }
   62|  33.2k|  return 0;
   63|  33.2k|}
flb_regex.c:flb_free:
  126|  33.2k|static inline void flb_free(void *ptr) {
  127|  33.2k|    free(ptr);
  128|  33.2k|}
flb_env.c:flb_malloc:
   67|  1.49k|void *flb_malloc(const size_t size) {
   68|       |
   69|  1.49k|#ifdef FLB_HAVE_TESTS_OSSFUZZ
   70|       |   // 1% chance of failure
   71|  1.49k|   if (flb_fuzz_get_probability(1)) {
  ------------------
  |  Branch (71:8): [True: 1, False: 1.48k]
  ------------------
   72|      1|     return NULL;
   73|      1|   }
   74|  1.48k|#endif
   75|       |
   76|  1.48k|    if (size == 0) {
  ------------------
  |  Branch (76:9): [True: 0, False: 1.48k]
  ------------------
   77|      0|        return NULL;
   78|      0|    }
   79|       |
   80|  1.48k|    return malloc(size);
   81|  1.48k|}
flb_env.c:flb_fuzz_get_probability:
   56|  1.49k|static inline int flb_fuzz_get_probability(int val) {
   57|  1.49k|  flb_malloc_p += 1;
   58|  1.49k|  flb_malloc_p = flb_malloc_p % flb_malloc_mod;
   59|  1.49k|  if (val > flb_malloc_p) {
  ------------------
  |  Branch (59:7): [True: 1, False: 1.48k]
  ------------------
   60|      1|    return 1;
   61|      1|  }
   62|  1.48k|  return 0;
   63|  1.49k|}
flb_env.c:flb_free:
  126|  1.48k|static inline void flb_free(void *ptr) {
  127|  1.48k|    free(ptr);
  128|  1.48k|}
flb_hash_table.c:flb_calloc:
   84|  2.97k|void *flb_calloc(size_t n, const size_t size) {
   85|  2.97k|    if (size == 0) {
  ------------------
  |  Branch (85:9): [True: 0, False: 2.97k]
  ------------------
   86|      0|        return NULL;
   87|      0|    }
   88|  2.97k|#ifdef FLB_HAVE_TESTS_OSSFUZZ
   89|       |   // Add chance of failure. Used by fuzzing to test error-handling code.
   90|  2.97k|   if (flb_fuzz_get_probability(1)) {
  ------------------
  |  Branch (90:8): [True: 3, False: 2.97k]
  ------------------
   91|      3|     return NULL;
   92|      3|   }
   93|  2.97k|#endif
   94|       |
   95|  2.97k|    return calloc(n, size);
   96|  2.97k|}
flb_hash_table.c:flb_fuzz_get_probability:
   56|  2.97k|static inline int flb_fuzz_get_probability(int val) {
   57|  2.97k|  flb_malloc_p += 1;
   58|  2.97k|  flb_malloc_p = flb_malloc_p % flb_malloc_mod;
   59|  2.97k|  if (val > flb_malloc_p) {
  ------------------
  |  Branch (59:7): [True: 3, False: 2.97k]
  ------------------
   60|      3|    return 1;
   61|      3|  }
   62|  2.97k|  return 0;
   63|  2.97k|}
flb_hash_table.c:flb_free:
  126|  2.97k|static inline void flb_free(void *ptr) {
  127|  2.97k|    free(ptr);
  128|  2.97k|}
flb_sds.c:flb_malloc:
   67|  98.6k|void *flb_malloc(const size_t size) {
   68|       |
   69|  98.6k|#ifdef FLB_HAVE_TESTS_OSSFUZZ
   70|       |   // 1% chance of failure
   71|  98.6k|   if (flb_fuzz_get_probability(1)) {
  ------------------
  |  Branch (71:8): [True: 36, False: 98.6k]
  ------------------
   72|     36|     return NULL;
   73|     36|   }
   74|  98.6k|#endif
   75|       |
   76|  98.6k|    if (size == 0) {
  ------------------
  |  Branch (76:9): [True: 0, False: 98.6k]
  ------------------
   77|      0|        return NULL;
   78|      0|    }
   79|       |
   80|  98.6k|    return malloc(size);
   81|  98.6k|}
flb_sds.c:flb_fuzz_get_probability:
   56|  98.6k|static inline int flb_fuzz_get_probability(int val) {
   57|  98.6k|  flb_malloc_p += 1;
   58|  98.6k|  flb_malloc_p = flb_malloc_p % flb_malloc_mod;
   59|  98.6k|  if (val > flb_malloc_p) {
  ------------------
  |  Branch (59:7): [True: 36, False: 98.6k]
  ------------------
   60|     36|    return 1;
   61|     36|  }
   62|  98.6k|  return 0;
   63|  98.6k|}
flb_sds.c:flb_free:
  126|  98.6k|static inline void flb_free(void *ptr) {
  127|  98.6k|    free(ptr);
  128|  98.6k|}
flb_kernel.c:flb_malloc:
   67|  2.97k|void *flb_malloc(const size_t size) {
   68|       |
   69|  2.97k|#ifdef FLB_HAVE_TESTS_OSSFUZZ
   70|       |   // 1% chance of failure
   71|  2.97k|   if (flb_fuzz_get_probability(1)) {
  ------------------
  |  Branch (71:8): [True: 2, False: 2.97k]
  ------------------
   72|      2|     return NULL;
   73|      2|   }
   74|  2.97k|#endif
   75|       |
   76|  2.97k|    if (size == 0) {
  ------------------
  |  Branch (76:9): [True: 0, False: 2.97k]
  ------------------
   77|      0|        return NULL;
   78|      0|    }
   79|       |
   80|  2.97k|    return malloc(size);
   81|  2.97k|}
flb_kernel.c:flb_fuzz_get_probability:
   56|  2.97k|static inline int flb_fuzz_get_probability(int val) {
   57|  2.97k|  flb_malloc_p += 1;
   58|  2.97k|  flb_malloc_p = flb_malloc_p % flb_malloc_mod;
   59|  2.97k|  if (val > flb_malloc_p) {
  ------------------
  |  Branch (59:7): [True: 2, False: 2.97k]
  ------------------
   60|      2|    return 1;
   61|      2|  }
   62|  2.97k|  return 0;
   63|  2.97k|}
flb_kernel.c:flb_free:
  126|  2.97k|static inline void flb_free(void *ptr) {
  127|  2.97k|    free(ptr);
  128|  2.97k|}
flb_ml_parser.c:flb_calloc:
   84|  8.74k|void *flb_calloc(size_t n, const size_t size) {
   85|  8.74k|    if (size == 0) {
  ------------------
  |  Branch (85:9): [True: 0, False: 8.74k]
  ------------------
   86|      0|        return NULL;
   87|      0|    }
   88|  8.74k|#ifdef FLB_HAVE_TESTS_OSSFUZZ
   89|       |   // Add chance of failure. Used by fuzzing to test error-handling code.
   90|  8.74k|   if (flb_fuzz_get_probability(1)) {
  ------------------
  |  Branch (90:8): [True: 4, False: 8.73k]
  ------------------
   91|      4|     return NULL;
   92|      4|   }
   93|  8.73k|#endif
   94|       |
   95|  8.73k|    return calloc(n, size);
   96|  8.74k|}
flb_ml_parser.c:flb_fuzz_get_probability:
   56|  8.74k|static inline int flb_fuzz_get_probability(int val) {
   57|  8.74k|  flb_malloc_p += 1;
   58|  8.74k|  flb_malloc_p = flb_malloc_p % flb_malloc_mod;
   59|  8.74k|  if (val > flb_malloc_p) {
  ------------------
  |  Branch (59:7): [True: 4, False: 8.73k]
  ------------------
   60|      4|    return 1;
   61|      4|  }
   62|  8.73k|  return 0;
   63|  8.74k|}
flb_ml_parser.c:flb_free:
  126|  8.73k|static inline void flb_free(void *ptr) {
  127|  8.73k|    free(ptr);
  128|  8.73k|}
flb_ml_rule.c:flb_calloc:
   84|  31.8k|void *flb_calloc(size_t n, const size_t size) {
   85|  31.8k|    if (size == 0) {
  ------------------
  |  Branch (85:9): [True: 0, False: 31.8k]
  ------------------
   86|      0|        return NULL;
   87|      0|    }
   88|  31.8k|#ifdef FLB_HAVE_TESTS_OSSFUZZ
   89|       |   // Add chance of failure. Used by fuzzing to test error-handling code.
   90|  31.8k|   if (flb_fuzz_get_probability(1)) {
  ------------------
  |  Branch (90:8): [True: 4, False: 31.8k]
  ------------------
   91|      4|     return NULL;
   92|      4|   }
   93|  31.8k|#endif
   94|       |
   95|  31.8k|    return calloc(n, size);
   96|  31.8k|}
flb_ml_rule.c:flb_fuzz_get_probability:
   56|   121k|static inline int flb_fuzz_get_probability(int val) {
   57|   121k|  flb_malloc_p += 1;
   58|   121k|  flb_malloc_p = flb_malloc_p % flb_malloc_mod;
   59|   121k|  if (val > flb_malloc_p) {
  ------------------
  |  Branch (59:7): [True: 19, False: 121k]
  ------------------
   60|     19|    return 1;
   61|     19|  }
   62|   121k|  return 0;
   63|   121k|}
flb_ml_rule.c:flb_free:
  126|   121k|static inline void flb_free(void *ptr) {
  127|   121k|    free(ptr);
  128|   121k|}
flb_ml_rule.c:flb_malloc:
   67|  89.4k|void *flb_malloc(const size_t size) {
   68|       |
   69|  89.4k|#ifdef FLB_HAVE_TESTS_OSSFUZZ
   70|       |   // 1% chance of failure
   71|  89.4k|   if (flb_fuzz_get_probability(1)) {
  ------------------
  |  Branch (71:8): [True: 15, False: 89.4k]
  ------------------
   72|     15|     return NULL;
   73|     15|   }
   74|  89.4k|#endif
   75|       |
   76|  89.4k|    if (size == 0) {
  ------------------
  |  Branch (76:9): [True: 0, False: 89.4k]
  ------------------
   77|      0|        return NULL;
   78|      0|    }
   79|       |
   80|  89.4k|    return malloc(size);
   81|  89.4k|}

flb_plugins_register:
  112|  1.42k|{
  113|  1.42k|    struct flb_custom_plugin *custom;
  114|  1.42k|    struct flb_input_plugin *in;
  115|  1.42k|    struct flb_output_plugin *out;
  116|  1.42k|    struct flb_filter_plugin *filter;
  117|  1.42k|    struct flb_processor_plugin *processor;
  118|       |
  119|       |
  120|  1.42k|    custom = flb_malloc(sizeof(struct flb_custom_plugin));
  121|  1.42k|    if (!custom) {
  ------------------
  |  Branch (121:9): [True: 1, False: 1.42k]
  ------------------
  122|      1|        flb_errno();
  ------------------
  |  |  232|      1|#define flb_errno() flb_errno_print(errno, __FLB_FILENAME__, __LINE__)
  ------------------
  123|      1|        return -1;
  124|      1|    }
  125|  1.42k|    memcpy(custom, &custom_calyptia_plugin, sizeof(struct flb_custom_plugin));
  126|  1.42k|    mk_list_add(&custom->_head, &config->custom_plugins);
  127|       |
  128|  1.42k|    in = flb_malloc(sizeof(struct flb_input_plugin));
  129|  1.42k|    if (!in) {
  ------------------
  |  Branch (129:9): [True: 1, False: 1.42k]
  ------------------
  130|      1|        flb_errno();
  ------------------
  |  |  232|      1|#define flb_errno() flb_errno_print(errno, __FLB_FILENAME__, __LINE__)
  ------------------
  131|      1|        return -1;
  132|      1|    }
  133|  1.42k|    memcpy(in, &in_blob_plugin, sizeof(struct flb_input_plugin));
  134|  1.42k|    mk_list_add(&in->_head, &config->in_plugins);
  135|       |
  136|  1.42k|    in = flb_malloc(sizeof(struct flb_input_plugin));
  137|  1.42k|    if (!in) {
  ------------------
  |  Branch (137:9): [True: 1, False: 1.41k]
  ------------------
  138|      1|        flb_errno();
  ------------------
  |  |  232|      1|#define flb_errno() flb_errno_print(errno, __FLB_FILENAME__, __LINE__)
  ------------------
  139|      1|        return -1;
  140|      1|    }
  141|  1.41k|    memcpy(in, &in_docker_events_plugin, sizeof(struct flb_input_plugin));
  142|  1.41k|    mk_list_add(&in->_head, &config->in_plugins);
  143|       |
  144|  1.41k|    in = flb_malloc(sizeof(struct flb_input_plugin));
  145|  1.41k|    if (!in) {
  ------------------
  |  Branch (145:9): [True: 1, False: 1.41k]
  ------------------
  146|      1|        flb_errno();
  ------------------
  |  |  232|      1|#define flb_errno() flb_errno_print(errno, __FLB_FILENAME__, __LINE__)
  ------------------
  147|      1|        return -1;
  148|      1|    }
  149|  1.41k|    memcpy(in, &in_podman_metrics_plugin, sizeof(struct flb_input_plugin));
  150|  1.41k|    mk_list_add(&in->_head, &config->in_plugins);
  151|       |
  152|  1.41k|    in = flb_malloc(sizeof(struct flb_input_plugin));
  153|  1.41k|    if (!in) {
  ------------------
  |  Branch (153:9): [True: 1, False: 1.41k]
  ------------------
  154|      1|        flb_errno();
  ------------------
  |  |  232|      1|#define flb_errno() flb_errno_print(errno, __FLB_FILENAME__, __LINE__)
  ------------------
  155|      1|        return -1;
  156|      1|    }
  157|  1.41k|    memcpy(in, &in_process_exporter_metrics_plugin, sizeof(struct flb_input_plugin));
  158|  1.41k|    mk_list_add(&in->_head, &config->in_plugins);
  159|       |
  160|  1.41k|    in = flb_malloc(sizeof(struct flb_input_plugin));
  161|  1.41k|    if (!in) {
  ------------------
  |  Branch (161:9): [True: 1, False: 1.41k]
  ------------------
  162|      1|        flb_errno();
  ------------------
  |  |  232|      1|#define flb_errno() flb_errno_print(errno, __FLB_FILENAME__, __LINE__)
  ------------------
  163|      1|        return -1;
  164|      1|    }
  165|  1.41k|    memcpy(in, &in_node_exporter_metrics_plugin, sizeof(struct flb_input_plugin));
  166|  1.41k|    mk_list_add(&in->_head, &config->in_plugins);
  167|       |
  168|  1.41k|    in = flb_malloc(sizeof(struct flb_input_plugin));
  169|  1.41k|    if (!in) {
  ------------------
  |  Branch (169:9): [True: 1, False: 1.41k]
  ------------------
  170|      1|        flb_errno();
  ------------------
  |  |  232|      1|#define flb_errno() flb_errno_print(errno, __FLB_FILENAME__, __LINE__)
  ------------------
  171|      1|        return -1;
  172|      1|    }
  173|  1.41k|    memcpy(in, &in_kubernetes_events_plugin, sizeof(struct flb_input_plugin));
  174|  1.41k|    mk_list_add(&in->_head, &config->in_plugins);
  175|       |
  176|  1.41k|    in = flb_malloc(sizeof(struct flb_input_plugin));
  177|  1.41k|    if (!in) {
  ------------------
  |  Branch (177:9): [True: 1, False: 1.41k]
  ------------------
  178|      1|        flb_errno();
  ------------------
  |  |  232|      1|#define flb_errno() flb_errno_print(errno, __FLB_FILENAME__, __LINE__)
  ------------------
  179|      1|        return -1;
  180|      1|    }
  181|  1.41k|    memcpy(in, &in_kafka_plugin, sizeof(struct flb_input_plugin));
  182|  1.41k|    mk_list_add(&in->_head, &config->in_plugins);
  183|       |
  184|  1.41k|    in = flb_malloc(sizeof(struct flb_input_plugin));
  185|  1.41k|    if (!in) {
  ------------------
  |  Branch (185:9): [True: 1, False: 1.41k]
  ------------------
  186|      1|        flb_errno();
  ------------------
  |  |  232|      1|#define flb_errno() flb_errno_print(errno, __FLB_FILENAME__, __LINE__)
  ------------------
  187|      1|        return -1;
  188|      1|    }
  189|  1.41k|    memcpy(in, &in_fluentbit_metrics_plugin, sizeof(struct flb_input_plugin));
  190|  1.41k|    mk_list_add(&in->_head, &config->in_plugins);
  191|       |
  192|  1.41k|    in = flb_malloc(sizeof(struct flb_input_plugin));
  193|  1.41k|    if (!in) {
  ------------------
  |  Branch (193:9): [True: 1, False: 1.41k]
  ------------------
  194|      1|        flb_errno();
  ------------------
  |  |  232|      1|#define flb_errno() flb_errno_print(errno, __FLB_FILENAME__, __LINE__)
  ------------------
  195|      1|        return -1;
  196|      1|    }
  197|  1.41k|    memcpy(in, &in_prometheus_scrape_plugin, sizeof(struct flb_input_plugin));
  198|  1.41k|    mk_list_add(&in->_head, &config->in_plugins);
  199|       |
  200|  1.41k|    in = flb_malloc(sizeof(struct flb_input_plugin));
  201|  1.41k|    if (!in) {
  ------------------
  |  Branch (201:9): [True: 1, False: 1.41k]
  ------------------
  202|      1|        flb_errno();
  ------------------
  |  |  232|      1|#define flb_errno() flb_errno_print(errno, __FLB_FILENAME__, __LINE__)
  ------------------
  203|      1|        return -1;
  204|      1|    }
  205|  1.41k|    memcpy(in, &in_emitter_plugin, sizeof(struct flb_input_plugin));
  206|  1.41k|    mk_list_add(&in->_head, &config->in_plugins);
  207|       |
  208|  1.41k|    in = flb_malloc(sizeof(struct flb_input_plugin));
  209|  1.41k|    if (!in) {
  ------------------
  |  Branch (209:9): [True: 1, False: 1.41k]
  ------------------
  210|      1|        flb_errno();
  ------------------
  |  |  232|      1|#define flb_errno() flb_errno_print(errno, __FLB_FILENAME__, __LINE__)
  ------------------
  211|      1|        return -1;
  212|      1|    }
  213|  1.41k|    memcpy(in, &in_dummy_plugin, sizeof(struct flb_input_plugin));
  214|  1.41k|    mk_list_add(&in->_head, &config->in_plugins);
  215|       |
  216|  1.41k|    in = flb_malloc(sizeof(struct flb_input_plugin));
  217|  1.41k|    if (!in) {
  ------------------
  |  Branch (217:9): [True: 1, False: 1.40k]
  ------------------
  218|      1|        flb_errno();
  ------------------
  |  |  232|      1|#define flb_errno() flb_errno_print(errno, __FLB_FILENAME__, __LINE__)
  ------------------
  219|      1|        return -1;
  220|      1|    }
  221|  1.40k|    memcpy(in, &in_http_plugin, sizeof(struct flb_input_plugin));
  222|  1.40k|    mk_list_add(&in->_head, &config->in_plugins);
  223|       |
  224|  1.40k|    in = flb_malloc(sizeof(struct flb_input_plugin));
  225|  1.40k|    if (!in) {
  ------------------
  |  Branch (225:9): [True: 1, False: 1.40k]
  ------------------
  226|      1|        flb_errno();
  ------------------
  |  |  232|      1|#define flb_errno() flb_errno_print(errno, __FLB_FILENAME__, __LINE__)
  ------------------
  227|      1|        return -1;
  228|      1|    }
  229|  1.40k|    memcpy(in, &in_statsd_plugin, sizeof(struct flb_input_plugin));
  230|  1.40k|    mk_list_add(&in->_head, &config->in_plugins);
  231|       |
  232|  1.40k|    in = flb_malloc(sizeof(struct flb_input_plugin));
  233|  1.40k|    if (!in) {
  ------------------
  |  Branch (233:9): [True: 1, False: 1.40k]
  ------------------
  234|      1|        flb_errno();
  ------------------
  |  |  232|      1|#define flb_errno() flb_errno_print(errno, __FLB_FILENAME__, __LINE__)
  ------------------
  235|      1|        return -1;
  236|      1|    }
  237|  1.40k|    memcpy(in, &in_opentelemetry_plugin, sizeof(struct flb_input_plugin));
  238|  1.40k|    mk_list_add(&in->_head, &config->in_plugins);
  239|       |
  240|  1.40k|    in = flb_malloc(sizeof(struct flb_input_plugin));
  241|  1.40k|    if (!in) {
  ------------------
  |  Branch (241:9): [True: 1, False: 1.40k]
  ------------------
  242|      1|        flb_errno();
  ------------------
  |  |  232|      1|#define flb_errno() flb_errno_print(errno, __FLB_FILENAME__, __LINE__)
  ------------------
  243|      1|        return -1;
  244|      1|    }
  245|  1.40k|    memcpy(in, &in_elasticsearch_plugin, sizeof(struct flb_input_plugin));
  246|  1.40k|    mk_list_add(&in->_head, &config->in_plugins);
  247|       |
  248|  1.40k|    in = flb_malloc(sizeof(struct flb_input_plugin));
  249|  1.40k|    if (!in) {
  ------------------
  |  Branch (249:9): [True: 2, False: 1.40k]
  ------------------
  250|      2|        flb_errno();
  ------------------
  |  |  232|      2|#define flb_errno() flb_errno_print(errno, __FLB_FILENAME__, __LINE__)
  ------------------
  251|      2|        return -1;
  252|      2|    }
  253|  1.40k|    memcpy(in, &in_calyptia_fleet_plugin, sizeof(struct flb_input_plugin));
  254|  1.40k|    mk_list_add(&in->_head, &config->in_plugins);
  255|       |
  256|  1.40k|    in = flb_malloc(sizeof(struct flb_input_plugin));
  257|  1.40k|    if (!in) {
  ------------------
  |  Branch (257:9): [True: 1, False: 1.40k]
  ------------------
  258|      1|        flb_errno();
  ------------------
  |  |  232|      1|#define flb_errno() flb_errno_print(errno, __FLB_FILENAME__, __LINE__)
  ------------------
  259|      1|        return -1;
  260|      1|    }
  261|  1.40k|    memcpy(in, &in_splunk_plugin, sizeof(struct flb_input_plugin));
  262|  1.40k|    mk_list_add(&in->_head, &config->in_plugins);
  263|       |
  264|  1.40k|    in = flb_malloc(sizeof(struct flb_input_plugin));
  265|  1.40k|    if (!in) {
  ------------------
  |  Branch (265:9): [True: 1, False: 1.40k]
  ------------------
  266|      1|        flb_errno();
  ------------------
  |  |  232|      1|#define flb_errno() flb_errno_print(errno, __FLB_FILENAME__, __LINE__)
  ------------------
  267|      1|        return -1;
  268|      1|    }
  269|  1.40k|    memcpy(in, &in_prometheus_remote_write_plugin, sizeof(struct flb_input_plugin));
  270|  1.40k|    mk_list_add(&in->_head, &config->in_plugins);
  271|       |
  272|  1.40k|    in = flb_malloc(sizeof(struct flb_input_plugin));
  273|  1.40k|    if (!in) {
  ------------------
  |  Branch (273:9): [True: 1, False: 1.40k]
  ------------------
  274|      1|        flb_errno();
  ------------------
  |  |  232|      1|#define flb_errno() flb_errno_print(errno, __FLB_FILENAME__, __LINE__)
  ------------------
  275|      1|        return -1;
  276|      1|    }
  277|  1.40k|    memcpy(in, &in_event_type_plugin, sizeof(struct flb_input_plugin));
  278|  1.40k|    mk_list_add(&in->_head, &config->in_plugins);
  279|       |
  280|  1.40k|    in = flb_malloc(sizeof(struct flb_input_plugin));
  281|  1.40k|    if (!in) {
  ------------------
  |  Branch (281:9): [True: 2, False: 1.39k]
  ------------------
  282|      2|        flb_errno();
  ------------------
  |  |  232|      2|#define flb_errno() flb_errno_print(errno, __FLB_FILENAME__, __LINE__)
  ------------------
  283|      2|        return -1;
  284|      2|    }
  285|  1.39k|    memcpy(in, &in_storage_backlog_plugin, sizeof(struct flb_input_plugin));
  286|  1.39k|    mk_list_add(&in->_head, &config->in_plugins);
  287|       |
  288|  1.39k|    in = flb_malloc(sizeof(struct flb_input_plugin));
  289|  1.39k|    if (!in) {
  ------------------
  |  Branch (289:9): [True: 1, False: 1.39k]
  ------------------
  290|      1|        flb_errno();
  ------------------
  |  |  232|      1|#define flb_errno() flb_errno_print(errno, __FLB_FILENAME__, __LINE__)
  ------------------
  291|      1|        return -1;
  292|      1|    }
  293|  1.39k|    memcpy(in, &in_nginx_exporter_metrics_plugin, sizeof(struct flb_input_plugin));
  294|  1.39k|    mk_list_add(&in->_head, &config->in_plugins);
  295|       |
  296|  1.39k|    in = flb_malloc(sizeof(struct flb_input_plugin));
  297|  1.39k|    if (!in) {
  ------------------
  |  Branch (297:9): [True: 1, False: 1.39k]
  ------------------
  298|      1|        flb_errno();
  ------------------
  |  |  232|      1|#define flb_errno() flb_errno_print(errno, __FLB_FILENAME__, __LINE__)
  ------------------
  299|      1|        return -1;
  300|      1|    }
  301|  1.39k|    memcpy(in, &in_udp_plugin, sizeof(struct flb_input_plugin));
  302|  1.39k|    mk_list_add(&in->_head, &config->in_plugins);
  303|       |
  304|  1.39k|    in = flb_malloc(sizeof(struct flb_input_plugin));
  305|  1.39k|    if (!in) {
  ------------------
  |  Branch (305:9): [True: 1, False: 1.39k]
  ------------------
  306|      1|        flb_errno();
  ------------------
  |  |  232|      1|#define flb_errno() flb_errno_print(errno, __FLB_FILENAME__, __LINE__)
  ------------------
  307|      1|        return -1;
  308|      1|    }
  309|  1.39k|    memcpy(in, &in_exec_wasi_plugin, sizeof(struct flb_input_plugin));
  310|  1.39k|    mk_list_add(&in->_head, &config->in_plugins);
  311|       |
  312|  1.39k|    in = flb_malloc(sizeof(struct flb_input_plugin));
  313|  1.39k|    if (!in) {
  ------------------
  |  Branch (313:9): [True: 1, False: 1.39k]
  ------------------
  314|      1|        flb_errno();
  ------------------
  |  |  232|      1|#define flb_errno() flb_errno_print(errno, __FLB_FILENAME__, __LINE__)
  ------------------
  315|      1|        return -1;
  316|      1|    }
  317|  1.39k|    memcpy(in, &in_lib_plugin, sizeof(struct flb_input_plugin));
  318|  1.39k|    mk_list_add(&in->_head, &config->in_plugins);
  319|       |
  320|       |
  321|  1.39k|    out = flb_malloc(sizeof(struct flb_output_plugin));
  322|  1.39k|    if (!out) {
  ------------------
  |  Branch (322:9): [True: 1, False: 1.39k]
  ------------------
  323|      1|        flb_errno();
  ------------------
  |  |  232|      1|#define flb_errno() flb_errno_print(errno, __FLB_FILENAME__, __LINE__)
  ------------------
  324|      1|        return -1;
  325|      1|    }
  326|  1.39k|    memcpy(out, &out_azure_blob_plugin, sizeof(struct flb_output_plugin));
  327|  1.39k|    mk_list_add(&out->_head, &config->out_plugins);
  328|       |
  329|  1.39k|    out = flb_malloc(sizeof(struct flb_output_plugin));
  330|  1.39k|    if (!out) {
  ------------------
  |  Branch (330:9): [True: 1, False: 1.39k]
  ------------------
  331|      1|        flb_errno();
  ------------------
  |  |  232|      1|#define flb_errno() flb_errno_print(errno, __FLB_FILENAME__, __LINE__)
  ------------------
  332|      1|        return -1;
  333|      1|    }
  334|  1.39k|    memcpy(out, &out_azure_logs_ingestion_plugin, sizeof(struct flb_output_plugin));
  335|  1.39k|    mk_list_add(&out->_head, &config->out_plugins);
  336|       |
  337|  1.39k|    out = flb_malloc(sizeof(struct flb_output_plugin));
  338|  1.39k|    if (!out) {
  ------------------
  |  Branch (338:9): [True: 1, False: 1.39k]
  ------------------
  339|      1|        flb_errno();
  ------------------
  |  |  232|      1|#define flb_errno() flb_errno_print(errno, __FLB_FILENAME__, __LINE__)
  ------------------
  340|      1|        return -1;
  341|      1|    }
  342|  1.39k|    memcpy(out, &out_azure_kusto_plugin, sizeof(struct flb_output_plugin));
  343|  1.39k|    mk_list_add(&out->_head, &config->out_plugins);
  344|       |
  345|  1.39k|    out = flb_malloc(sizeof(struct flb_output_plugin));
  346|  1.39k|    if (!out) {
  ------------------
  |  Branch (346:9): [True: 1, False: 1.39k]
  ------------------
  347|      1|        flb_errno();
  ------------------
  |  |  232|      1|#define flb_errno() flb_errno_print(errno, __FLB_FILENAME__, __LINE__)
  ------------------
  348|      1|        return -1;
  349|      1|    }
  350|  1.39k|    memcpy(out, &out_calyptia_plugin, sizeof(struct flb_output_plugin));
  351|  1.39k|    mk_list_add(&out->_head, &config->out_plugins);
  352|       |
  353|  1.39k|    out = flb_malloc(sizeof(struct flb_output_plugin));
  354|  1.39k|    if (!out) {
  ------------------
  |  Branch (354:9): [True: 2, False: 1.38k]
  ------------------
  355|      2|        flb_errno();
  ------------------
  |  |  232|      2|#define flb_errno() flb_errno_print(errno, __FLB_FILENAME__, __LINE__)
  ------------------
  356|      2|        return -1;
  357|      2|    }
  358|  1.38k|    memcpy(out, &out_exit_plugin, sizeof(struct flb_output_plugin));
  359|  1.38k|    mk_list_add(&out->_head, &config->out_plugins);
  360|       |
  361|  1.38k|    out = flb_malloc(sizeof(struct flb_output_plugin));
  362|  1.38k|    if (!out) {
  ------------------
  |  Branch (362:9): [True: 1, False: 1.38k]
  ------------------
  363|      1|        flb_errno();
  ------------------
  |  |  232|      1|#define flb_errno() flb_errno_print(errno, __FLB_FILENAME__, __LINE__)
  ------------------
  364|      1|        return -1;
  365|      1|    }
  366|  1.38k|    memcpy(out, &out_http_plugin, sizeof(struct flb_output_plugin));
  367|  1.38k|    mk_list_add(&out->_head, &config->out_plugins);
  368|       |
  369|  1.38k|    out = flb_malloc(sizeof(struct flb_output_plugin));
  370|  1.38k|    if (!out) {
  ------------------
  |  Branch (370:9): [True: 1, False: 1.38k]
  ------------------
  371|      1|        flb_errno();
  ------------------
  |  |  232|      1|#define flb_errno() flb_errno_print(errno, __FLB_FILENAME__, __LINE__)
  ------------------
  372|      1|        return -1;
  373|      1|    }
  374|  1.38k|    memcpy(out, &out_logdna_plugin, sizeof(struct flb_output_plugin));
  375|  1.38k|    mk_list_add(&out->_head, &config->out_plugins);
  376|       |
  377|  1.38k|    out = flb_malloc(sizeof(struct flb_output_plugin));
  378|  1.38k|    if (!out) {
  ------------------
  |  Branch (378:9): [True: 1, False: 1.38k]
  ------------------
  379|      1|        flb_errno();
  ------------------
  |  |  232|      1|#define flb_errno() flb_errno_print(errno, __FLB_FILENAME__, __LINE__)
  ------------------
  380|      1|        return -1;
  381|      1|    }
  382|  1.38k|    memcpy(out, &out_opensearch_plugin, sizeof(struct flb_output_plugin));
  383|  1.38k|    mk_list_add(&out->_head, &config->out_plugins);
  384|       |
  385|  1.38k|    out = flb_malloc(sizeof(struct flb_output_plugin));
  386|  1.38k|    if (!out) {
  ------------------
  |  Branch (386:9): [True: 1, False: 1.38k]
  ------------------
  387|      1|        flb_errno();
  ------------------
  |  |  232|      1|#define flb_errno() flb_errno_print(errno, __FLB_FILENAME__, __LINE__)
  ------------------
  388|      1|        return -1;
  389|      1|    }
  390|  1.38k|    memcpy(out, &out_oracle_log_analytics_plugin, sizeof(struct flb_output_plugin));
  391|  1.38k|    mk_list_add(&out->_head, &config->out_plugins);
  392|       |
  393|  1.38k|    out = flb_malloc(sizeof(struct flb_output_plugin));
  394|  1.38k|    if (!out) {
  ------------------
  |  Branch (394:9): [True: 1, False: 1.38k]
  ------------------
  395|      1|        flb_errno();
  ------------------
  |  |  232|      1|#define flb_errno() flb_errno_print(errno, __FLB_FILENAME__, __LINE__)
  ------------------
  396|      1|        return -1;
  397|      1|    }
  398|  1.38k|    memcpy(out, &out_skywalking_plugin, sizeof(struct flb_output_plugin));
  399|  1.38k|    mk_list_add(&out->_head, &config->out_plugins);
  400|       |
  401|  1.38k|    out = flb_malloc(sizeof(struct flb_output_plugin));
  402|  1.38k|    if (!out) {
  ------------------
  |  Branch (402:9): [True: 1, False: 1.38k]
  ------------------
  403|      1|        flb_errno();
  ------------------
  |  |  232|      1|#define flb_errno() flb_errno_print(errno, __FLB_FILENAME__, __LINE__)
  ------------------
  404|      1|        return -1;
  405|      1|    }
  406|  1.38k|    memcpy(out, &out_stdout_plugin, sizeof(struct flb_output_plugin));
  407|  1.38k|    mk_list_add(&out->_head, &config->out_plugins);
  408|       |
  409|  1.38k|    out = flb_malloc(sizeof(struct flb_output_plugin));
  410|  1.38k|    if (!out) {
  ------------------
  |  Branch (410:9): [True: 1, False: 1.38k]
  ------------------
  411|      1|        flb_errno();
  ------------------
  |  |  232|      1|#define flb_errno() flb_errno_print(errno, __FLB_FILENAME__, __LINE__)
  ------------------
  412|      1|        return -1;
  413|      1|    }
  414|  1.38k|    memcpy(out, &out_udp_plugin, sizeof(struct flb_output_plugin));
  415|  1.38k|    mk_list_add(&out->_head, &config->out_plugins);
  416|       |
  417|  1.38k|    out = flb_malloc(sizeof(struct flb_output_plugin));
  418|  1.38k|    if (!out) {
  ------------------
  |  Branch (418:9): [True: 1, False: 1.38k]
  ------------------
  419|      1|        flb_errno();
  ------------------
  |  |  232|      1|#define flb_errno() flb_errno_print(errno, __FLB_FILENAME__, __LINE__)
  ------------------
  420|      1|        return -1;
  421|      1|    }
  422|  1.38k|    memcpy(out, &out_td_plugin, sizeof(struct flb_output_plugin));
  423|  1.38k|    mk_list_add(&out->_head, &config->out_plugins);
  424|       |
  425|  1.38k|    out = flb_malloc(sizeof(struct flb_output_plugin));
  426|  1.38k|    if (!out) {
  ------------------
  |  Branch (426:9): [True: 1, False: 1.38k]
  ------------------
  427|      1|        flb_errno();
  ------------------
  |  |  232|      1|#define flb_errno() flb_errno_print(errno, __FLB_FILENAME__, __LINE__)
  ------------------
  428|      1|        return -1;
  429|      1|    }
  430|  1.38k|    memcpy(out, &out_lib_plugin, sizeof(struct flb_output_plugin));
  431|  1.38k|    mk_list_add(&out->_head, &config->out_plugins);
  432|       |
  433|  1.38k|    out = flb_malloc(sizeof(struct flb_output_plugin));
  434|  1.38k|    if (!out) {
  ------------------
  |  Branch (434:9): [True: 1, False: 1.37k]
  ------------------
  435|      1|        flb_errno();
  ------------------
  |  |  232|      1|#define flb_errno() flb_errno_print(errno, __FLB_FILENAME__, __LINE__)
  ------------------
  436|      1|        return -1;
  437|      1|    }
  438|  1.37k|    memcpy(out, &out_websocket_plugin, sizeof(struct flb_output_plugin));
  439|  1.37k|    mk_list_add(&out->_head, &config->out_plugins);
  440|       |
  441|  1.37k|    out = flb_malloc(sizeof(struct flb_output_plugin));
  442|  1.37k|    if (!out) {
  ------------------
  |  Branch (442:9): [True: 1, False: 1.37k]
  ------------------
  443|      1|        flb_errno();
  ------------------
  |  |  232|      1|#define flb_errno() flb_errno_print(errno, __FLB_FILENAME__, __LINE__)
  ------------------
  444|      1|        return -1;
  445|      1|    }
  446|  1.37k|    memcpy(out, &out_cloudwatch_logs_plugin, sizeof(struct flb_output_plugin));
  447|  1.37k|    mk_list_add(&out->_head, &config->out_plugins);
  448|       |
  449|  1.37k|    out = flb_malloc(sizeof(struct flb_output_plugin));
  450|  1.37k|    if (!out) {
  ------------------
  |  Branch (450:9): [True: 1, False: 1.37k]
  ------------------
  451|      1|        flb_errno();
  ------------------
  |  |  232|      1|#define flb_errno() flb_errno_print(errno, __FLB_FILENAME__, __LINE__)
  ------------------
  452|      1|        return -1;
  453|      1|    }
  454|  1.37k|    memcpy(out, &out_kinesis_firehose_plugin, sizeof(struct flb_output_plugin));
  455|  1.37k|    mk_list_add(&out->_head, &config->out_plugins);
  456|       |
  457|  1.37k|    out = flb_malloc(sizeof(struct flb_output_plugin));
  458|  1.37k|    if (!out) {
  ------------------
  |  Branch (458:9): [True: 1, False: 1.37k]
  ------------------
  459|      1|        flb_errno();
  ------------------
  |  |  232|      1|#define flb_errno() flb_errno_print(errno, __FLB_FILENAME__, __LINE__)
  ------------------
  460|      1|        return -1;
  461|      1|    }
  462|  1.37k|    memcpy(out, &out_kinesis_streams_plugin, sizeof(struct flb_output_plugin));
  463|  1.37k|    mk_list_add(&out->_head, &config->out_plugins);
  464|       |
  465|  1.37k|    out = flb_malloc(sizeof(struct flb_output_plugin));
  466|  1.37k|    if (!out) {
  ------------------
  |  Branch (466:9): [True: 1, False: 1.37k]
  ------------------
  467|      1|        flb_errno();
  ------------------
  |  |  232|      1|#define flb_errno() flb_errno_print(errno, __FLB_FILENAME__, __LINE__)
  ------------------
  468|      1|        return -1;
  469|      1|    }
  470|  1.37k|    memcpy(out, &out_opentelemetry_plugin, sizeof(struct flb_output_plugin));
  471|  1.37k|    mk_list_add(&out->_head, &config->out_plugins);
  472|       |
  473|  1.37k|    out = flb_malloc(sizeof(struct flb_output_plugin));
  474|  1.37k|    if (!out) {
  ------------------
  |  Branch (474:9): [True: 1, False: 1.37k]
  ------------------
  475|      1|        flb_errno();
  ------------------
  |  |  232|      1|#define flb_errno() flb_errno_print(errno, __FLB_FILENAME__, __LINE__)
  ------------------
  476|      1|        return -1;
  477|      1|    }
  478|  1.37k|    memcpy(out, &out_prometheus_exporter_plugin, sizeof(struct flb_output_plugin));
  479|  1.37k|    mk_list_add(&out->_head, &config->out_plugins);
  480|       |
  481|  1.37k|    out = flb_malloc(sizeof(struct flb_output_plugin));
  482|  1.37k|    if (!out) {
  ------------------
  |  Branch (482:9): [True: 1, False: 1.37k]
  ------------------
  483|      1|        flb_errno();
  ------------------
  |  |  232|      1|#define flb_errno() flb_errno_print(errno, __FLB_FILENAME__, __LINE__)
  ------------------
  484|      1|        return -1;
  485|      1|    }
  486|  1.37k|    memcpy(out, &out_prometheus_remote_write_plugin, sizeof(struct flb_output_plugin));
  487|  1.37k|    mk_list_add(&out->_head, &config->out_plugins);
  488|       |
  489|  1.37k|    out = flb_malloc(sizeof(struct flb_output_plugin));
  490|  1.37k|    if (!out) {
  ------------------
  |  Branch (490:9): [True: 1, False: 1.37k]
  ------------------
  491|      1|        flb_errno();
  ------------------
  |  |  232|      1|#define flb_errno() flb_errno_print(errno, __FLB_FILENAME__, __LINE__)
  ------------------
  492|      1|        return -1;
  493|      1|    }
  494|  1.37k|    memcpy(out, &out_s3_plugin, sizeof(struct flb_output_plugin));
  495|  1.37k|    mk_list_add(&out->_head, &config->out_plugins);
  496|       |
  497|  1.37k|    out = flb_malloc(sizeof(struct flb_output_plugin));
  498|  1.37k|    if (!out) {
  ------------------
  |  Branch (498:9): [True: 1, False: 1.37k]
  ------------------
  499|      1|        flb_errno();
  ------------------
  |  |  232|      1|#define flb_errno() flb_errno_print(errno, __FLB_FILENAME__, __LINE__)
  ------------------
  500|      1|        return -1;
  501|      1|    }
  502|  1.37k|    memcpy(out, &out_vivo_exporter_plugin, sizeof(struct flb_output_plugin));
  503|  1.37k|    mk_list_add(&out->_head, &config->out_plugins);
  504|       |
  505|  1.37k|    out = flb_malloc(sizeof(struct flb_output_plugin));
  506|  1.37k|    if (!out) {
  ------------------
  |  Branch (506:9): [True: 1, False: 1.37k]
  ------------------
  507|      1|        flb_errno();
  ------------------
  |  |  232|      1|#define flb_errno() flb_errno_print(errno, __FLB_FILENAME__, __LINE__)
  ------------------
  508|      1|        return -1;
  509|      1|    }
  510|  1.37k|    memcpy(out, &out_chronicle_plugin, sizeof(struct flb_output_plugin));
  511|  1.37k|    mk_list_add(&out->_head, &config->out_plugins);
  512|       |
  513|       |
  514|  1.37k|    filter = flb_malloc(sizeof(struct flb_filter_plugin));
  515|  1.37k|    if (!filter) {
  ------------------
  |  Branch (515:9): [True: 1, False: 1.36k]
  ------------------
  516|      1|        flb_errno();
  ------------------
  |  |  232|      1|#define flb_errno() flb_errno_print(errno, __FLB_FILENAME__, __LINE__)
  ------------------
  517|      1|        return -1;
  518|      1|    }
  519|  1.36k|    memcpy(filter, &filter_alter_size_plugin, sizeof(struct flb_filter_plugin));
  520|  1.36k|    mk_list_add(&filter->_head, &config->filter_plugins);
  521|       |
  522|  1.36k|    filter = flb_malloc(sizeof(struct flb_filter_plugin));
  523|  1.36k|    if (!filter) {
  ------------------
  |  Branch (523:9): [True: 1, False: 1.36k]
  ------------------
  524|      1|        flb_errno();
  ------------------
  |  |  232|      1|#define flb_errno() flb_errno_print(errno, __FLB_FILENAME__, __LINE__)
  ------------------
  525|      1|        return -1;
  526|      1|    }
  527|  1.36k|    memcpy(filter, &filter_aws_plugin, sizeof(struct flb_filter_plugin));
  528|  1.36k|    mk_list_add(&filter->_head, &config->filter_plugins);
  529|       |
  530|  1.36k|    filter = flb_malloc(sizeof(struct flb_filter_plugin));
  531|  1.36k|    if (!filter) {
  ------------------
  |  Branch (531:9): [True: 1, False: 1.36k]
  ------------------
  532|      1|        flb_errno();
  ------------------
  |  |  232|      1|#define flb_errno() flb_errno_print(errno, __FLB_FILENAME__, __LINE__)
  ------------------
  533|      1|        return -1;
  534|      1|    }
  535|  1.36k|    memcpy(filter, &filter_checklist_plugin, sizeof(struct flb_filter_plugin));
  536|  1.36k|    mk_list_add(&filter->_head, &config->filter_plugins);
  537|       |
  538|  1.36k|    filter = flb_malloc(sizeof(struct flb_filter_plugin));
  539|  1.36k|    if (!filter) {
  ------------------
  |  Branch (539:9): [True: 1, False: 1.36k]
  ------------------
  540|      1|        flb_errno();
  ------------------
  |  |  232|      1|#define flb_errno() flb_errno_print(errno, __FLB_FILENAME__, __LINE__)
  ------------------
  541|      1|        return -1;
  542|      1|    }
  543|  1.36k|    memcpy(filter, &filter_ecs_plugin, sizeof(struct flb_filter_plugin));
  544|  1.36k|    mk_list_add(&filter->_head, &config->filter_plugins);
  545|       |
  546|  1.36k|    filter = flb_malloc(sizeof(struct flb_filter_plugin));
  547|  1.36k|    if (!filter) {
  ------------------
  |  Branch (547:9): [True: 1, False: 1.36k]
  ------------------
  548|      1|        flb_errno();
  ------------------
  |  |  232|      1|#define flb_errno() flb_errno_print(errno, __FLB_FILENAME__, __LINE__)
  ------------------
  549|      1|        return -1;
  550|      1|    }
  551|  1.36k|    memcpy(filter, &filter_record_modifier_plugin, sizeof(struct flb_filter_plugin));
  552|  1.36k|    mk_list_add(&filter->_head, &config->filter_plugins);
  553|       |
  554|  1.36k|    filter = flb_malloc(sizeof(struct flb_filter_plugin));
  555|  1.36k|    if (!filter) {
  ------------------
  |  Branch (555:9): [True: 1, False: 1.36k]
  ------------------
  556|      1|        flb_errno();
  ------------------
  |  |  232|      1|#define flb_errno() flb_errno_print(errno, __FLB_FILENAME__, __LINE__)
  ------------------
  557|      1|        return -1;
  558|      1|    }
  559|  1.36k|    memcpy(filter, &filter_sysinfo_plugin, sizeof(struct flb_filter_plugin));
  560|  1.36k|    mk_list_add(&filter->_head, &config->filter_plugins);
  561|       |
  562|  1.36k|    filter = flb_malloc(sizeof(struct flb_filter_plugin));
  563|  1.36k|    if (!filter) {
  ------------------
  |  Branch (563:9): [True: 1, False: 1.36k]
  ------------------
  564|      1|        flb_errno();
  ------------------
  |  |  232|      1|#define flb_errno() flb_errno_print(errno, __FLB_FILENAME__, __LINE__)
  ------------------
  565|      1|        return -1;
  566|      1|    }
  567|  1.36k|    memcpy(filter, &filter_throttle_plugin, sizeof(struct flb_filter_plugin));
  568|  1.36k|    mk_list_add(&filter->_head, &config->filter_plugins);
  569|       |
  570|  1.36k|    filter = flb_malloc(sizeof(struct flb_filter_plugin));
  571|  1.36k|    if (!filter) {
  ------------------
  |  Branch (571:9): [True: 1, False: 1.36k]
  ------------------
  572|      1|        flb_errno();
  ------------------
  |  |  232|      1|#define flb_errno() flb_errno_print(errno, __FLB_FILENAME__, __LINE__)
  ------------------
  573|      1|        return -1;
  574|      1|    }
  575|  1.36k|    memcpy(filter, &filter_type_converter_plugin, sizeof(struct flb_filter_plugin));
  576|  1.36k|    mk_list_add(&filter->_head, &config->filter_plugins);
  577|       |
  578|  1.36k|    filter = flb_malloc(sizeof(struct flb_filter_plugin));
  579|  1.36k|    if (!filter) {
  ------------------
  |  Branch (579:9): [True: 1, False: 1.36k]
  ------------------
  580|      1|        flb_errno();
  ------------------
  |  |  232|      1|#define flb_errno() flb_errno_print(errno, __FLB_FILENAME__, __LINE__)
  ------------------
  581|      1|        return -1;
  582|      1|    }
  583|  1.36k|    memcpy(filter, &filter_kubernetes_plugin, sizeof(struct flb_filter_plugin));
  584|  1.36k|    mk_list_add(&filter->_head, &config->filter_plugins);
  585|       |
  586|  1.36k|    filter = flb_malloc(sizeof(struct flb_filter_plugin));
  587|  1.36k|    if (!filter) {
  ------------------
  |  Branch (587:9): [True: 1, False: 1.36k]
  ------------------
  588|      1|        flb_errno();
  ------------------
  |  |  232|      1|#define flb_errno() flb_errno_print(errno, __FLB_FILENAME__, __LINE__)
  ------------------
  589|      1|        return -1;
  590|      1|    }
  591|  1.36k|    memcpy(filter, &filter_modify_plugin, sizeof(struct flb_filter_plugin));
  592|  1.36k|    mk_list_add(&filter->_head, &config->filter_plugins);
  593|       |
  594|  1.36k|    filter = flb_malloc(sizeof(struct flb_filter_plugin));
  595|  1.36k|    if (!filter) {
  ------------------
  |  Branch (595:9): [True: 1, False: 1.35k]
  ------------------
  596|      1|        flb_errno();
  ------------------
  |  |  232|      1|#define flb_errno() flb_errno_print(errno, __FLB_FILENAME__, __LINE__)
  ------------------
  597|      1|        return -1;
  598|      1|    }
  599|  1.35k|    memcpy(filter, &filter_multiline_plugin, sizeof(struct flb_filter_plugin));
  600|  1.35k|    mk_list_add(&filter->_head, &config->filter_plugins);
  601|       |
  602|  1.35k|    filter = flb_malloc(sizeof(struct flb_filter_plugin));
  603|  1.35k|    if (!filter) {
  ------------------
  |  Branch (603:9): [True: 1, False: 1.35k]
  ------------------
  604|      1|        flb_errno();
  ------------------
  |  |  232|      1|#define flb_errno() flb_errno_print(errno, __FLB_FILENAME__, __LINE__)
  ------------------
  605|      1|        return -1;
  606|      1|    }
  607|  1.35k|    memcpy(filter, &filter_nest_plugin, sizeof(struct flb_filter_plugin));
  608|  1.35k|    mk_list_add(&filter->_head, &config->filter_plugins);
  609|       |
  610|  1.35k|    filter = flb_malloc(sizeof(struct flb_filter_plugin));
  611|  1.35k|    if (!filter) {
  ------------------
  |  Branch (611:9): [True: 1, False: 1.35k]
  ------------------
  612|      1|        flb_errno();
  ------------------
  |  |  232|      1|#define flb_errno() flb_errno_print(errno, __FLB_FILENAME__, __LINE__)
  ------------------
  613|      1|        return -1;
  614|      1|    }
  615|  1.35k|    memcpy(filter, &filter_parser_plugin, sizeof(struct flb_filter_plugin));
  616|  1.35k|    mk_list_add(&filter->_head, &config->filter_plugins);
  617|       |
  618|  1.35k|    filter = flb_malloc(sizeof(struct flb_filter_plugin));
  619|  1.35k|    if (!filter) {
  ------------------
  |  Branch (619:9): [True: 1, False: 1.35k]
  ------------------
  620|      1|        flb_errno();
  ------------------
  |  |  232|      1|#define flb_errno() flb_errno_print(errno, __FLB_FILENAME__, __LINE__)
  ------------------
  621|      1|        return -1;
  622|      1|    }
  623|  1.35k|    memcpy(filter, &filter_expect_plugin, sizeof(struct flb_filter_plugin));
  624|  1.35k|    mk_list_add(&filter->_head, &config->filter_plugins);
  625|       |
  626|  1.35k|    filter = flb_malloc(sizeof(struct flb_filter_plugin));
  627|  1.35k|    if (!filter) {
  ------------------
  |  Branch (627:9): [True: 1, False: 1.35k]
  ------------------
  628|      1|        flb_errno();
  ------------------
  |  |  232|      1|#define flb_errno() flb_errno_print(errno, __FLB_FILENAME__, __LINE__)
  ------------------
  629|      1|        return -1;
  630|      1|    }
  631|  1.35k|    memcpy(filter, &filter_grep_plugin, sizeof(struct flb_filter_plugin));
  632|  1.35k|    mk_list_add(&filter->_head, &config->filter_plugins);
  633|       |
  634|  1.35k|    filter = flb_malloc(sizeof(struct flb_filter_plugin));
  635|  1.35k|    if (!filter) {
  ------------------
  |  Branch (635:9): [True: 1, False: 1.35k]
  ------------------
  636|      1|        flb_errno();
  ------------------
  |  |  232|      1|#define flb_errno() flb_errno_print(errno, __FLB_FILENAME__, __LINE__)
  ------------------
  637|      1|        return -1;
  638|      1|    }
  639|  1.35k|    memcpy(filter, &filter_rewrite_tag_plugin, sizeof(struct flb_filter_plugin));
  640|  1.35k|    mk_list_add(&filter->_head, &config->filter_plugins);
  641|       |
  642|  1.35k|    filter = flb_malloc(sizeof(struct flb_filter_plugin));
  643|  1.35k|    if (!filter) {
  ------------------
  |  Branch (643:9): [True: 1, False: 1.35k]
  ------------------
  644|      1|        flb_errno();
  ------------------
  |  |  232|      1|#define flb_errno() flb_errno_print(errno, __FLB_FILENAME__, __LINE__)
  ------------------
  645|      1|        return -1;
  646|      1|    }
  647|  1.35k|    memcpy(filter, &filter_log_to_metrics_plugin, sizeof(struct flb_filter_plugin));
  648|  1.35k|    mk_list_add(&filter->_head, &config->filter_plugins);
  649|       |
  650|  1.35k|    filter = flb_malloc(sizeof(struct flb_filter_plugin));
  651|  1.35k|    if (!filter) {
  ------------------
  |  Branch (651:9): [True: 1, False: 1.35k]
  ------------------
  652|      1|        flb_errno();
  ------------------
  |  |  232|      1|#define flb_errno() flb_errno_print(errno, __FLB_FILENAME__, __LINE__)
  ------------------
  653|      1|        return -1;
  654|      1|    }
  655|  1.35k|    memcpy(filter, &filter_stdout_plugin, sizeof(struct flb_filter_plugin));
  656|  1.35k|    mk_list_add(&filter->_head, &config->filter_plugins);
  657|       |
  658|  1.35k|    filter = flb_malloc(sizeof(struct flb_filter_plugin));
  659|  1.35k|    if (!filter) {
  ------------------
  |  Branch (659:9): [True: 1, False: 1.35k]
  ------------------
  660|      1|        flb_errno();
  ------------------
  |  |  232|      1|#define flb_errno() flb_errno_print(errno, __FLB_FILENAME__, __LINE__)
  ------------------
  661|      1|        return -1;
  662|      1|    }
  663|  1.35k|    memcpy(filter, &filter_geoip2_plugin, sizeof(struct flb_filter_plugin));
  664|  1.35k|    mk_list_add(&filter->_head, &config->filter_plugins);
  665|       |
  666|  1.35k|    filter = flb_malloc(sizeof(struct flb_filter_plugin));
  667|  1.35k|    if (!filter) {
  ------------------
  |  Branch (667:9): [True: 1, False: 1.35k]
  ------------------
  668|      1|        flb_errno();
  ------------------
  |  |  232|      1|#define flb_errno() flb_errno_print(errno, __FLB_FILENAME__, __LINE__)
  ------------------
  669|      1|        return -1;
  670|      1|    }
  671|  1.35k|    memcpy(filter, &filter_nightfall_plugin, sizeof(struct flb_filter_plugin));
  672|  1.35k|    mk_list_add(&filter->_head, &config->filter_plugins);
  673|       |
  674|  1.35k|    filter = flb_malloc(sizeof(struct flb_filter_plugin));
  675|  1.35k|    if (!filter) {
  ------------------
  |  Branch (675:9): [True: 1, False: 1.34k]
  ------------------
  676|      1|        flb_errno();
  ------------------
  |  |  232|      1|#define flb_errno() flb_errno_print(errno, __FLB_FILENAME__, __LINE__)
  ------------------
  677|      1|        return -1;
  678|      1|    }
  679|  1.34k|    memcpy(filter, &filter_wasm_plugin, sizeof(struct flb_filter_plugin));
  680|  1.34k|    mk_list_add(&filter->_head, &config->filter_plugins);
  681|       |
  682|       |
  683|  1.34k|    processor = flb_malloc(sizeof(struct flb_processor_plugin));
  684|  1.34k|    if (!processor) {
  ------------------
  |  Branch (684:9): [True: 1, False: 1.34k]
  ------------------
  685|      1|        flb_errno();
  ------------------
  |  |  232|      1|#define flb_errno() flb_errno_print(errno, __FLB_FILENAME__, __LINE__)
  ------------------
  686|      1|        return -1;
  687|      1|    }
  688|  1.34k|    memcpy(processor, &processor_content_modifier_plugin, sizeof(struct flb_processor_plugin));
  689|  1.34k|    mk_list_add(&processor->_head, &config->processor_plugins);
  690|       |
  691|  1.34k|    processor = flb_malloc(sizeof(struct flb_processor_plugin));
  692|  1.34k|    if (!processor) {
  ------------------
  |  Branch (692:9): [True: 1, False: 1.34k]
  ------------------
  693|      1|        flb_errno();
  ------------------
  |  |  232|      1|#define flb_errno() flb_errno_print(errno, __FLB_FILENAME__, __LINE__)
  ------------------
  694|      1|        return -1;
  695|      1|    }
  696|  1.34k|    memcpy(processor, &processor_labels_plugin, sizeof(struct flb_processor_plugin));
  697|  1.34k|    mk_list_add(&processor->_head, &config->processor_plugins);
  698|       |
  699|  1.34k|    processor = flb_malloc(sizeof(struct flb_processor_plugin));
  700|  1.34k|    if (!processor) {
  ------------------
  |  Branch (700:9): [True: 1, False: 1.34k]
  ------------------
  701|      1|        flb_errno();
  ------------------
  |  |  232|      1|#define flb_errno() flb_errno_print(errno, __FLB_FILENAME__, __LINE__)
  ------------------
  702|      1|        return -1;
  703|      1|    }
  704|  1.34k|    memcpy(processor, &processor_metrics_selector_plugin, sizeof(struct flb_processor_plugin));
  705|  1.34k|    mk_list_add(&processor->_head, &config->processor_plugins);
  706|       |
  707|  1.34k|    processor = flb_malloc(sizeof(struct flb_processor_plugin));
  708|  1.34k|    if (!processor) {
  ------------------
  |  Branch (708:9): [True: 1, False: 1.34k]
  ------------------
  709|      1|        flb_errno();
  ------------------
  |  |  232|      1|#define flb_errno() flb_errno_print(errno, __FLB_FILENAME__, __LINE__)
  ------------------
  710|      1|        return -1;
  711|      1|    }
  712|  1.34k|    memcpy(processor, &processor_sql_plugin, sizeof(struct flb_processor_plugin));
  713|  1.34k|    mk_list_add(&processor->_head, &config->processor_plugins);
  714|       |
  715|  1.34k|    processor = flb_malloc(sizeof(struct flb_processor_plugin));
  716|  1.34k|    if (!processor) {
  ------------------
  |  Branch (716:9): [True: 1, False: 1.34k]
  ------------------
  717|      1|        flb_errno();
  ------------------
  |  |  232|      1|#define flb_errno() flb_errno_print(errno, __FLB_FILENAME__, __LINE__)
  ------------------
  718|      1|        return -1;
  719|      1|    }
  720|  1.34k|    memcpy(processor, &processor_opentelemetry_envelope_plugin, sizeof(struct flb_processor_plugin));
  721|  1.34k|    mk_list_add(&processor->_head, &config->processor_plugins);
  722|       |
  723|       |
  724|       |
  725|  1.34k|    return 0;
  726|  1.34k|}
flb_plugins_unregister:
  729|  1.49k|{
  730|  1.49k|    struct mk_list *tmp;
  731|  1.49k|    struct mk_list *head;
  732|  1.49k|    struct flb_custom_plugin *custom;
  733|  1.49k|    struct flb_input_plugin *in;
  734|  1.49k|    struct flb_output_plugin *out;
  735|  1.49k|    struct flb_filter_plugin *filter;
  736|  1.49k|    struct flb_processor_plugin *processor;
  737|       |
  738|  1.49k|    mk_list_foreach_safe(head, tmp, &config->custom_plugins) {
  ------------------
  |  |  207|  2.91k|    for (curr = (head)->next, n = curr->next; curr != (head); curr = n, n = curr->next)
  |  |  ------------------
  |  |  |  Branch (207:47): [True: 1.42k, False: 1.49k]
  |  |  ------------------
  ------------------
  739|  1.42k|        custom = mk_list_entry(head, struct flb_custom_plugin, _head);
  ------------------
  |  |  214|  1.42k|#define mk_list_entry( ptr, type, member ) container_of( ptr, type, member )
  |  |  ------------------
  |  |  |  |   38|  1.42k|#define container_of(ptr, type, member) ({                      \
  |  |  |  |   39|  1.42k|      const typeof( ((type *)0)->member ) *__mptr = (ptr);      \
  |  |  |  |   40|  1.42k|      (type *)( (char *)__mptr - offsetof(type,member) );})
  |  |  ------------------
  ------------------
  740|  1.42k|        mk_list_del(&custom->_head);
  741|  1.42k|        flb_free(custom);
  742|  1.42k|    }
  743|       |
  744|  33.7k|    mk_list_foreach_safe(head, tmp, &config->in_plugins) {
  ------------------
  |  |  207|  35.2k|    for (curr = (head)->next, n = curr->next; curr != (head); curr = n, n = curr->next)
  |  |  ------------------
  |  |  |  Branch (207:47): [True: 33.7k, False: 1.49k]
  |  |  ------------------
  ------------------
  745|  33.7k|        in = mk_list_entry(head, struct flb_input_plugin, _head);
  ------------------
  |  |  214|  33.7k|#define mk_list_entry( ptr, type, member ) container_of( ptr, type, member )
  |  |  ------------------
  |  |  |  |   38|  33.7k|#define container_of(ptr, type, member) ({                      \
  |  |  |  |   39|  33.7k|      const typeof( ((type *)0)->member ) *__mptr = (ptr);      \
  |  |  |  |   40|  33.7k|      (type *)( (char *)__mptr - offsetof(type,member) );})
  |  |  ------------------
  ------------------
  746|  33.7k|        if(in->cb_destroy) {
  ------------------
  |  Branch (746:12): [True: 0, False: 33.7k]
  ------------------
  747|      0|            in->cb_destroy(in);
  748|      0|        }
  749|  33.7k|        mk_list_del(&in->_head);
  750|  33.7k|        flb_free(in);
  751|  33.7k|    }
  752|       |
  753|  33.1k|    mk_list_foreach_safe(head, tmp, &config->out_plugins) {
  ------------------
  |  |  207|  34.6k|    for (curr = (head)->next, n = curr->next; curr != (head); curr = n, n = curr->next)
  |  |  ------------------
  |  |  |  Branch (207:47): [True: 33.1k, False: 1.49k]
  |  |  ------------------
  ------------------
  754|  33.1k|        out = mk_list_entry(head, struct flb_output_plugin, _head);
  ------------------
  |  |  214|  33.1k|#define mk_list_entry( ptr, type, member ) container_of( ptr, type, member )
  |  |  ------------------
  |  |  |  |   38|  33.1k|#define container_of(ptr, type, member) ({                      \
  |  |  |  |   39|  33.1k|      const typeof( ((type *)0)->member ) *__mptr = (ptr);      \
  |  |  |  |   40|  33.1k|      (type *)( (char *)__mptr - offsetof(type,member) );})
  |  |  ------------------
  ------------------
  755|  33.1k|        if(out->cb_destroy) {
  ------------------
  |  Branch (755:12): [True: 0, False: 33.1k]
  ------------------
  756|      0|            out->cb_destroy(out);
  757|      0|        }
  758|  33.1k|        mk_list_del(&out->_head);
  759|  33.1k|        flb_free(out);
  760|  33.1k|    }
  761|       |
  762|  28.5k|    mk_list_foreach_safe(head, tmp, &config->filter_plugins) {
  ------------------
  |  |  207|  30.0k|    for (curr = (head)->next, n = curr->next; curr != (head); curr = n, n = curr->next)
  |  |  ------------------
  |  |  |  Branch (207:47): [True: 28.5k, False: 1.49k]
  |  |  ------------------
  ------------------
  763|  28.5k|        filter = mk_list_entry(head, struct flb_filter_plugin, _head);
  ------------------
  |  |  214|  28.5k|#define mk_list_entry( ptr, type, member ) container_of( ptr, type, member )
  |  |  ------------------
  |  |  |  |   38|  28.5k|#define container_of(ptr, type, member) ({                      \
  |  |  |  |   39|  28.5k|      const typeof( ((type *)0)->member ) *__mptr = (ptr);      \
  |  |  |  |   40|  28.5k|      (type *)( (char *)__mptr - offsetof(type,member) );})
  |  |  ------------------
  ------------------
  764|  28.5k|        mk_list_del(&filter->_head);
  765|  28.5k|        flb_free(filter);
  766|  28.5k|    }
  767|       |
  768|  6.73k|    mk_list_foreach_safe(head, tmp, &config->processor_plugins) {
  ------------------
  |  |  207|  8.22k|    for (curr = (head)->next, n = curr->next; curr != (head); curr = n, n = curr->next)
  |  |  ------------------
  |  |  |  Branch (207:47): [True: 6.73k, False: 1.49k]
  |  |  ------------------
  ------------------
  769|  6.73k|        processor = mk_list_entry(head, struct flb_processor_plugin, _head);
  ------------------
  |  |  214|  6.73k|#define mk_list_entry( ptr, type, member ) container_of( ptr, type, member )
  |  |  ------------------
  |  |  |  |   38|  6.73k|#define container_of(ptr, type, member) ({                      \
  |  |  |  |   39|  6.73k|      const typeof( ((type *)0)->member ) *__mptr = (ptr);      \
  |  |  |  |   40|  6.73k|      (type *)( (char *)__mptr - offsetof(type,member) );})
  |  |  ------------------
  ------------------
  770|  6.73k|        mk_list_del(&processor->_head);
  771|  6.73k|        flb_free(processor);
  772|  6.73k|    }
  773|  1.49k|}

flb_config.c:flb_strdup:
   45|  2.98k|{
   46|  2.98k|    return flb_strndup(s, strlen(s));
   47|  2.98k|}
flb_config.c:flb_strndup:
   31|  2.98k|{
   32|  2.98k|    char *str;
   33|       |
   34|  2.98k|    str = (char *) flb_malloc(n + 1);
   35|  2.98k|    if (!str) {
  ------------------
  |  Branch (35:9): [True: 2, False: 2.97k]
  ------------------
   36|      2|        return NULL;
   37|      2|    }
   38|  2.97k|    memcpy(str, s, n);
   39|  2.97k|    str[n] = '\0';
   40|       |
   41|  2.97k|    return str;
   42|  2.98k|}
flb_config.c:flb_str_emptyval:
   51|  4.47k|{
   52|  4.47k|    if (s != NULL && strcmp(s, "") == 0) {
  ------------------
  |  Branch (52:9): [True: 0, False: 4.47k]
  |  Branch (52:22): [True: 0, False: 0]
  ------------------
   53|      0|        return FLB_TRUE;
  ------------------
  |  |   26|      0|#define FLB_TRUE   !FLB_FALSE
  |  |  ------------------
  |  |  |  |   25|      0|#define FLB_FALSE  0
  |  |  ------------------
  ------------------
   54|      0|    }
   55|  4.47k|    return FLB_FALSE;
  ------------------
  |  |   25|  4.47k|#define FLB_FALSE  0
  ------------------
   56|  4.47k|}
flb_parser.c:flb_strdup:
   45|  14.6k|{
   46|  14.6k|    return flb_strndup(s, strlen(s));
   47|  14.6k|}
flb_parser.c:flb_strndup:
   31|  14.6k|{
   32|  14.6k|    char *str;
   33|       |
   34|  14.6k|    str = (char *) flb_malloc(n + 1);
   35|  14.6k|    if (!str) {
  ------------------
  |  Branch (35:9): [True: 10, False: 14.6k]
  ------------------
   36|     10|        return NULL;
   37|     10|    }
   38|  14.6k|    memcpy(str, s, n);
   39|  14.6k|    str[n] = '\0';
   40|       |
   41|  14.6k|    return str;
   42|  14.6k|}

cfl_kvlist.c:cfl_list_init:
   64|  1.49k|{
   65|  1.49k|    list->next = list;
   66|  1.49k|    list->prev = list;
   67|  1.49k|}

cfl_kvlist_create:
   27|  1.49k|{
   28|  1.49k|    struct cfl_kvlist *list;
   29|       |
   30|  1.49k|    list = malloc(sizeof(struct cfl_kvlist));
   31|  1.49k|    if (list == NULL) {
  ------------------
  |  Branch (31:9): [True: 0, False: 1.49k]
  ------------------
   32|      0|        cfl_report_runtime_error();
  ------------------
  |  |   28|      0|#define cfl_report_runtime_error() cfl_report_runtime_error_impl(errno, __FILENAME__, __LINE__)
  ------------------
   33|      0|        return NULL;
   34|      0|    }
   35|       |
   36|  1.49k|    cfl_list_init(&list->list);
   37|  1.49k|    return list;
   38|  1.49k|}
cfl_kvlist_destroy:
   41|  1.49k|{
   42|  1.49k|    struct cfl_list *tmp;
   43|  1.49k|    struct cfl_list *head;
   44|  1.49k|    struct cfl_kvpair *pair;
   45|       |
   46|  1.49k|    cfl_list_foreach_safe(head, tmp, &list->list) {
  ------------------
  |  |  199|  1.49k|    for (curr = (head)->next, n = curr->next; curr != (head); curr = n, n = curr->next)
  |  |  ------------------
  |  |  |  Branch (199:47): [True: 0, False: 1.49k]
  |  |  ------------------
  ------------------
   47|      0|        pair = cfl_list_entry(head, struct cfl_kvpair, _head);
  ------------------
  |  |  206|      0|#define cfl_list_entry( ptr, type, member ) cfl_container_of( ptr, type, member )
  |  |  ------------------
  |  |  |  |   45|      0|#define cfl_container_of(ptr, type, member) ({                  \
  |  |  |  |   46|      0|      const typeof( ((type *)0)->member ) *__mptr = (ptr);      \
  |  |  |  |   47|      0|      (type *)( (char *)__mptr - offsetof(type,member) );})
  |  |  ------------------
  ------------------
   48|       |
   49|      0|        if (pair->key) {
  ------------------
  |  Branch (49:13): [True: 0, False: 0]
  ------------------
   50|      0|            cfl_sds_destroy(pair->key);
   51|      0|        }
   52|       |
   53|      0|        if (pair->val) {
  ------------------
  |  Branch (53:13): [True: 0, False: 0]
  ------------------
   54|      0|            cfl_variant_destroy(pair->val);
   55|      0|        }
   56|      0|        cfl_list_del(&pair->_head);
   57|      0|        free(pair);
   58|      0|    }
   59|       |
   60|  1.49k|    free(list);
   61|  1.49k|}

flb_config.c:MK_EVENT_ZERO:
  136|  4.48k|{
  137|  4.48k|    MK_EVENT_INIT(e, -1, NULL, NULL);
  138|  4.48k|}
flb_config.c:MK_EVENT_INIT:
  126|  4.48k|{
  127|  4.48k|    ev->fd      = fd;
  128|  4.48k|    ev->type    = MK_EVENT_CUSTOM;
  ------------------
  |  |   33|  4.48k|#define MK_EVENT_CUSTOM          4    /* custom fd registered             */
  ------------------
  129|  4.48k|    ev->mask    = MK_EVENT_EMPTY;
  ------------------
  |  |   37|  4.48k|#define MK_EVENT_EMPTY           0
  ------------------
  130|  4.48k|    ev->status  = MK_EVENT_NONE;
  ------------------
  |  |   52|  4.48k|#define MK_EVENT_NONE            1    /* nothing */
  ------------------
  131|  4.48k|    ev->data    = data;
  132|  4.48k|    ev->handler = callback;
  133|  4.48k|}

flb_config.c:mk_list_add:
   64|   103k|{
   65|   103k|    __mk_list_add(_new, head->prev, head);
   66|   103k|}
flb_config.c:__mk_list_add:
   56|   103k|{
   57|   103k|    next->prev = _new;
   58|   103k|    _new->next = next;
   59|   103k|    _new->prev = prev;
   60|   103k|    prev->next = _new;
   61|   103k|}
flb_config.c:mk_list_del:
  146|   103k|{
  147|   103k|    __mk_list_del(entry->prev, entry->next);
  148|   103k|    entry->prev = NULL;
  149|   103k|    entry->next = NULL;
  150|   103k|}
flb_config.c:__mk_list_del:
  140|   103k|{
  141|   103k|    prev->next = next;
  142|   103k|    next->prev = prev;
  143|   103k|}
flb_config.c:mk_list_init:
   49|  28.3k|{
   50|  28.3k|    list->next = list;
   51|  28.3k|    list->prev = list;
   52|  28.3k|}
flb_slist.c:mk_list_init:
   49|  33.2k|{
   50|  33.2k|    list->next = list;
   51|  33.2k|    list->prev = list;
   52|  33.2k|}
flb_slist.c:mk_list_add:
   64|  46.3k|{
   65|  46.3k|    __mk_list_add(_new, head->prev, head);
   66|  46.3k|}
flb_slist.c:__mk_list_add:
   56|  46.3k|{
   57|  46.3k|    next->prev = _new;
   58|  46.3k|    _new->next = next;
   59|  46.3k|    _new->prev = prev;
   60|  46.3k|    prev->next = _new;
   61|  46.3k|}
flb_slist.c:mk_list_del:
  146|  46.3k|{
  147|  46.3k|    __mk_list_del(entry->prev, entry->next);
  148|  46.3k|    entry->prev = NULL;
  149|  46.3k|    entry->next = NULL;
  150|  46.3k|}
flb_slist.c:__mk_list_del:
  140|  46.3k|{
  141|  46.3k|    prev->next = next;
  142|  46.3k|    next->prev = prev;
  143|  46.3k|}
flb_plugin.c:mk_list_init:
   49|  5.36k|{
   50|  5.36k|    list->next = list;
   51|  5.36k|    list->prev = list;
   52|  5.36k|}
flb_config_format.c:mk_list_init:
   49|  20.9k|{
   50|  20.9k|    list->next = list;
   51|  20.9k|    list->prev = list;
   52|  20.9k|}
flb_config_format.c:mk_list_add:
   64|  1.49k|{
   65|  1.49k|    __mk_list_add(_new, head->prev, head);
   66|  1.49k|}
flb_config_format.c:__mk_list_add:
   56|  1.49k|{
   57|  1.49k|    next->prev = _new;
   58|  1.49k|    _new->next = next;
   59|  1.49k|    _new->prev = prev;
   60|  1.49k|    prev->next = _new;
   61|  1.49k|}
flb_config_format.c:mk_list_del:
  146|  1.49k|{
  147|  1.49k|    __mk_list_del(entry->prev, entry->next);
  148|  1.49k|    entry->prev = NULL;
  149|  1.49k|    entry->next = NULL;
  150|  1.49k|}
flb_config_format.c:__mk_list_del:
  140|  1.49k|{
  141|  1.49k|    prev->next = next;
  142|  1.49k|    next->prev = prev;
  143|  1.49k|}
flb_parser.c:mk_list_add:
   64|  4.30k|{
   65|  4.30k|    __mk_list_add(_new, head->prev, head);
   66|  4.30k|}
flb_parser.c:__mk_list_add:
   56|  4.30k|{
   57|  4.30k|    next->prev = _new;
   58|  4.30k|    _new->next = next;
   59|  4.30k|    _new->prev = prev;
   60|  4.30k|    prev->next = _new;
   61|  4.30k|}
flb_parser.c:mk_list_del:
  146|  4.30k|{
  147|  4.30k|    __mk_list_del(entry->prev, entry->next);
  148|  4.30k|    entry->prev = NULL;
  149|  4.30k|    entry->next = NULL;
  150|  4.30k|}
flb_parser.c:__mk_list_del:
  140|  4.30k|{
  141|  4.30k|    prev->next = next;
  142|  4.30k|    next->prev = prev;
  143|  4.30k|}
flb_hash_table.c:mk_list_init:
   49|  96.5k|{
   50|  96.5k|    list->next = list;
   51|  96.5k|    list->prev = list;
   52|  96.5k|}
flb_ml_parser.c:mk_list_init:
   49|  8.73k|{
   50|  8.73k|    list->next = list;
   51|  8.73k|    list->prev = list;
   52|  8.73k|}
flb_ml_parser.c:mk_list_add:
   64|  8.73k|{
   65|  8.73k|    __mk_list_add(_new, head->prev, head);
   66|  8.73k|}
flb_ml_parser.c:__mk_list_add:
   56|  8.73k|{
   57|  8.73k|    next->prev = _new;
   58|  8.73k|    _new->next = next;
   59|  8.73k|    _new->prev = prev;
   60|  8.73k|    prev->next = _new;
   61|  8.73k|}
flb_ml_parser.c:mk_list_del:
  146|  8.73k|{
  147|  8.73k|    __mk_list_del(entry->prev, entry->next);
  148|  8.73k|    entry->prev = NULL;
  149|  8.73k|    entry->next = NULL;
  150|  8.73k|}
flb_ml_parser.c:__mk_list_del:
  140|  8.73k|{
  141|  8.73k|    prev->next = next;
  142|  8.73k|    next->prev = prev;
  143|  8.73k|}
flb_ml_rule.c:mk_list_init:
   49|  31.8k|{
   50|  31.8k|    list->next = list;
   51|  31.8k|    list->prev = list;
   52|  31.8k|}
flb_ml_rule.c:mk_list_size:
  162|  31.8k|{
  163|  31.8k|    int ret = 0;
  164|  31.8k|    struct mk_list *it;
  165|   122k|    for (it = head->next; it != head; it = it->next, ret++);
  ------------------
  |  Branch (165:27): [True: 91.1k, False: 31.8k]
  ------------------
  166|  31.8k|    return ret;
  167|  31.8k|}
flb_ml_rule.c:mk_list_add:
   64|   121k|{
   65|   121k|    __mk_list_add(_new, head->prev, head);
   66|   121k|}
flb_ml_rule.c:__mk_list_add:
   56|   121k|{
   57|   121k|    next->prev = _new;
   58|   121k|    _new->next = next;
   59|   121k|    _new->prev = prev;
   60|   121k|    prev->next = _new;
   61|   121k|}
flb_ml_rule.c:mk_list_del:
  146|   121k|{
  147|   121k|    __mk_list_del(entry->prev, entry->next);
  148|   121k|    entry->prev = NULL;
  149|   121k|    entry->next = NULL;
  150|   121k|}
flb_ml_rule.c:__mk_list_del:
  140|   121k|{
  141|   121k|    prev->next = next;
  142|   121k|    next->prev = prev;
  143|   121k|}
flb_ml_parser_python.c:mk_list_size:
  162|      5|{
  163|      5|    int ret = 0;
  164|      5|    struct mk_list *it;
  165|     13|    for (it = head->next; it != head; it = it->next, ret++);
  ------------------
  |  Branch (165:27): [True: 8, False: 5]
  ------------------
  166|      5|    return ret;
  167|      5|}
flb_ml_parser_java.c:mk_list_size:
  162|     15|{
  163|     15|    int ret = 0;
  164|     15|    struct mk_list *it;
  165|     58|    for (it = head->next; it != head; it = it->next, ret++);
  ------------------
  |  Branch (165:27): [True: 43, False: 15]
  ------------------
  166|     15|    return ret;
  167|     15|}
flb_ml_parser_go.c:mk_list_size:
  162|      9|{
  163|      9|    int ret = 0;
  164|      9|    struct mk_list *it;
  165|     42|    for (it = head->next; it != head; it = it->next, ret++);
  ------------------
  |  Branch (165:27): [True: 33, False: 9]
  ------------------
  166|      9|    return ret;
  167|      9|}
flb_ml_parser_ruby.c:mk_list_size:
  162|      3|{
  163|      3|    int ret = 0;
  164|      3|    struct mk_list *it;
  165|      5|    for (it = head->next; it != head; it = it->next, ret++);
  ------------------
  |  Branch (165:27): [True: 2, False: 3]
  ------------------
  166|      3|    return ret;
  167|      3|}

flb_kernel.c:mk_mem_free:
   98|  2.98k|{
   99|       |#ifdef MALLOC_JEMALLOC
  100|       |    je_free(ptr);
  101|       |#else
  102|  2.98k|    free(ptr);
  103|  2.98k|#endif
  104|  2.98k|}
mk_string.c:mk_mem_alloc:
   49|  2.98k|{
   50|       |#ifdef MALLOC_JEMALLOC
   51|       |    void *aux = je_malloc(size);
   52|       |#else
   53|  2.98k|    void *aux = malloc(size);
   54|  2.98k|#endif
   55|       |
   56|  2.98k|    if (mk_unlikely(!aux && size)) {
  ------------------
  |  |  116|  2.98k|  #define mk_unlikely(x) __builtin_expect((x),0)
  |  |  ------------------
  |  |  |  Branch (116:26): [True: 0, False: 2.98k]
  |  |  |  Branch (116:44): [True: 0, False: 2.98k]
  |  |  |  Branch (116:44): [True: 0, False: 0]
  |  |  ------------------
  ------------------
   57|      0|        perror("malloc");
   58|      0|        return NULL;
   59|      0|    }
   60|       |
   61|  2.98k|    return aux;
   62|  2.98k|}

mk_string_char_search:
  268|  47.8k|{
  269|  47.8k|    char *p;
  270|       |
  271|  47.8k|    if (len < 0) {
  ------------------
  |  Branch (271:9): [True: 0, False: 47.8k]
  ------------------
  272|      0|        len = strlen(string);
  273|      0|    }
  274|       |
  275|  47.8k|    p = memchr(string, c, len);
  276|  47.8k|    if (p) {
  ------------------
  |  Branch (276:9): [True: 16.0k, False: 31.7k]
  ------------------
  277|  16.0k|        return (p - string);
  278|  16.0k|    }
  279|       |
  280|  31.7k|    return -1;
  281|  47.8k|}
mk_string_copy_substr:
  572|  2.98k|{
  573|  2.98k|    unsigned int size, bytes;
  574|  2.98k|    char *buffer = 0;
  575|       |
  576|  2.98k|    if (pos_init > pos_end) {
  ------------------
  |  Branch (576:9): [True: 0, False: 2.98k]
  ------------------
  577|      0|        return NULL;
  578|      0|    }
  579|       |
  580|  2.98k|    size = (unsigned int) (pos_end - pos_init) + 1;
  581|  2.98k|    if (size <= 2) {
  ------------------
  |  Branch (581:9): [True: 1.49k, False: 1.49k]
  ------------------
  582|  1.49k|        size = 4;
  583|  1.49k|    }
  584|       |
  585|  2.98k|    buffer = mk_mem_alloc(size);
  586|       |
  587|  2.98k|    if (!buffer) {
  ------------------
  |  Branch (587:9): [True: 0, False: 2.98k]
  ------------------
  588|      0|        return NULL;
  589|      0|    }
  590|       |
  591|  2.98k|    bytes = pos_end - pos_init;
  592|  2.98k|    memcpy(buffer, string + pos_init, bytes);
  593|  2.98k|    buffer[bytes] = '\0';
  594|       |
  595|  2.98k|    return (char *) buffer;
  596|  2.98k|}

flb_parser_logfmt.c:msgpack_packer_init:
  131|  1.30k|{
  132|  1.30k|    pk->data = data;
  133|  1.30k|    pk->callback = callback;
  134|  1.30k|}

flb_parser_logfmt.c:msgpack_pack_str:
  763|  5.69M|{
  764|  5.69M|    if(l < 32) {
  ------------------
  |  Branch (764:8): [True: 5.69M, False: 5.22k]
  ------------------
  765|  5.69M|        unsigned char d = 0xa0 | (uint8_t)l;
  766|  5.69M|        msgpack_pack_append_buffer(x, &TAKE8_8(d), 1);
  ------------------
  |  |  126|  5.69M|    return (*(user)->callback)((user)->data, (const char*)buf, len)
  ------------------
  767|  5.69M|    } else if(l < 256) {
  ------------------
  |  Branch (767:15): [True: 4.24k, False: 980]
  ------------------
  768|  4.24k|        unsigned char buf[2];
  769|  4.24k|        buf[0] = 0xd9; buf[1] = (uint8_t)l;
  770|  4.24k|        msgpack_pack_append_buffer(x, buf, 2);
  ------------------
  |  |  126|  4.24k|    return (*(user)->callback)((user)->data, (const char*)buf, len)
  ------------------
  771|  4.24k|    } else if(l < 65536) {
  ------------------
  |  Branch (771:15): [True: 866, False: 114]
  ------------------
  772|    866|        unsigned char buf[3];
  773|    866|        buf[0] = 0xda; _msgpack_store16(&buf[1], (uint16_t)l);
  ------------------
  |  |  182|    866|    do { uint16_t val = _msgpack_be16(num); memcpy(to, &val, 2); } while(0)
  |  |  ------------------
  |  |  |  |  110|    866|#       define _msgpack_be16(x) ntohs((uint16_t)x)
  |  |  ------------------
  |  |  |  Branch (182:74): [Folded - Ignored]
  |  |  ------------------
  ------------------
  774|    866|        msgpack_pack_append_buffer(x, buf, 3);
  ------------------
  |  |  126|    866|    return (*(user)->callback)((user)->data, (const char*)buf, len)
  ------------------
  775|    866|    } else {
  776|    114|        unsigned char buf[5];
  777|    114|        buf[0] = 0xdb; _msgpack_store32(&buf[1], (uint32_t)l);
  ------------------
  |  |  184|    114|    do { uint32_t val = _msgpack_be32(num); memcpy(to, &val, 4); } while(0)
  |  |  ------------------
  |  |  |  |  124|    114|#       define _msgpack_be32(x) ntohl((uint32_t)x)
  |  |  ------------------
  |  |  |  Branch (184:74): [Folded - Ignored]
  |  |  ------------------
  ------------------
  778|    114|        msgpack_pack_append_buffer(x, buf, 5);
  ------------------
  |  |  126|    114|    return (*(user)->callback)((user)->data, (const char*)buf, len)
  ------------------
  779|    114|    }
  780|  5.69M|}
flb_parser_logfmt.c:msgpack_pack_str_body:
  783|  5.69M|{
  784|  5.69M|    msgpack_pack_append_buffer(x, (const unsigned char*)b, l);
  ------------------
  |  |  126|  5.69M|    return (*(user)->callback)((user)->data, (const char*)buf, len)
  ------------------
  785|  5.69M|}
flb_parser_logfmt.c:msgpack_pack_true:
  704|  4.82M|{
  705|  4.82M|    static const unsigned char d = 0xc3;
  706|  4.82M|    msgpack_pack_append_buffer(x, &d, 1);
  ------------------
  |  |  126|  4.82M|    return (*(user)->callback)((user)->data, (const char*)buf, len)
  ------------------
  707|  4.82M|}
flb_parser_logfmt.c:msgpack_pack_map:
  742|  1.30k|{
  743|  1.30k|    if(n < 16) {
  ------------------
  |  Branch (743:8): [True: 1.12k, False: 177]
  ------------------
  744|  1.12k|        unsigned char d = 0x80 | (uint8_t)n;
  745|  1.12k|        msgpack_pack_append_buffer(x, &TAKE8_8(d), 1);
  ------------------
  |  |  126|  1.12k|    return (*(user)->callback)((user)->data, (const char*)buf, len)
  ------------------
  746|  1.12k|    } else if(n < 65536) {
  ------------------
  |  Branch (746:15): [True: 159, False: 18]
  ------------------
  747|    159|        unsigned char buf[3];
  748|    159|        buf[0] = 0xde; _msgpack_store16(&buf[1], (uint16_t)n);
  ------------------
  |  |  182|    159|    do { uint16_t val = _msgpack_be16(num); memcpy(to, &val, 2); } while(0)
  |  |  ------------------
  |  |  |  |  110|    159|#       define _msgpack_be16(x) ntohs((uint16_t)x)
  |  |  ------------------
  |  |  |  Branch (182:74): [Folded - Ignored]
  |  |  ------------------
  ------------------
  749|    159|        msgpack_pack_append_buffer(x, buf, 3);
  ------------------
  |  |  126|    159|    return (*(user)->callback)((user)->data, (const char*)buf, len)
  ------------------
  750|    159|    } else {
  751|     18|        unsigned char buf[5];
  752|     18|        buf[0] = 0xdf; _msgpack_store32(&buf[1], (uint32_t)n);
  ------------------
  |  |  184|     18|    do { uint32_t val = _msgpack_be32(num); memcpy(to, &val, 4); } while(0)
  |  |  ------------------
  |  |  |  |  124|     18|#       define _msgpack_be32(x) ntohl((uint32_t)x)
  |  |  ------------------
  |  |  |  Branch (184:74): [Folded - Ignored]
  |  |  ------------------
  ------------------
  753|     18|        msgpack_pack_append_buffer(x, buf, 5);
  ------------------
  |  |  126|     18|    return (*(user)->callback)((user)->data, (const char*)buf, len)
  ------------------
  754|     18|    }
  755|  1.30k|}

flb_parser_logfmt.c:msgpack_sbuffer_init:
   35|  1.30k|{
   36|  1.30k|    memset(sbuf, 0, sizeof(msgpack_sbuffer));
   37|  1.30k|}
flb_parser_logfmt.c:msgpack_sbuffer_write:
   61|  16.2M|{
   62|  16.2M|    msgpack_sbuffer* sbuf = (msgpack_sbuffer*)data;
   63|       |
   64|  16.2M|    assert(buf || len == 0);
   65|  16.2M|    if(!buf) return 0;
  ------------------
  |  Branch (65:8): [True: 0, False: 16.2M]
  ------------------
   66|       |
   67|  16.2M|    if(sbuf->alloc - sbuf->size < len) {
  ------------------
  |  Branch (67:8): [True: 1.80k, False: 16.2M]
  ------------------
   68|  1.80k|        void* tmp;
   69|  1.80k|        size_t nsize = (sbuf->alloc) ?
  ------------------
  |  Branch (69:24): [True: 499, False: 1.30k]
  ------------------
   70|  1.30k|                sbuf->alloc * 2 : MSGPACK_SBUFFER_INIT_SIZE;
  ------------------
  |  |   57|  1.30k|#define MSGPACK_SBUFFER_INIT_SIZE 8192
  ------------------
   71|       |
   72|  2.26k|        while(nsize < sbuf->size + len) {
  ------------------
  |  Branch (72:15): [True: 462, False: 1.80k]
  ------------------
   73|    462|            size_t tmp_nsize = nsize * 2;
   74|    462|            if (tmp_nsize <= nsize) {
  ------------------
  |  Branch (74:17): [True: 0, False: 462]
  ------------------
   75|      0|                nsize = sbuf->size + len;
   76|      0|                break;
   77|      0|            }
   78|    462|            nsize = tmp_nsize;
   79|    462|        }
   80|       |
   81|  1.80k|        tmp = realloc(sbuf->data, nsize);
   82|  1.80k|        if(!tmp) { return -1; }
  ------------------
  |  Branch (82:12): [True: 0, False: 1.80k]
  ------------------
   83|       |
   84|  1.80k|        sbuf->data = (char*)tmp;
   85|  1.80k|        sbuf->alloc = nsize;
   86|  1.80k|    }
   87|       |
   88|  16.2M|    memcpy(sbuf->data + sbuf->size, buf, len);
   89|  16.2M|    sbuf->size += len;
   90|       |
   91|  16.2M|    return 0;
   92|  16.2M|}
flb_parser_logfmt.c:msgpack_sbuffer_destroy:
   40|     28|{
   41|     28|    free(sbuf->data);
   42|     28|}

onigenc_unicode_is_code_ctype:
  183|  44.1k|{
  184|  44.1k|  if (
  185|  44.1k|#ifdef USE_UNICODE_PROPERTIES
  186|  44.1k|      ctype <= ONIGENC_MAX_STD_CTYPE &&
  ------------------
  |  |  309|  44.1k|#define ONIGENC_MAX_STD_CTYPE  ONIGENC_CTYPE_ASCII
  |  |  ------------------
  |  |  |  |  308|  88.3k|#define ONIGENC_CTYPE_ASCII    14
  |  |  ------------------
  ------------------
  |  Branch (186:7): [True: 44.1k, False: 0]
  ------------------
  187|  44.1k|#endif
  188|  44.1k|      code < 256) {
  ------------------
  |  Branch (188:7): [True: 44.1k, False: 0]
  ------------------
  189|  44.1k|    return ONIGENC_IS_UNICODE_ISO_8859_1_CTYPE(code, ctype);
  ------------------
  |  |   33|  44.1k|  ((EncUNICODE_ISO_8859_1_CtypeTable[code] & CTYPE_TO_BIT(ctype)) != 0)
  |  |  ------------------
  |  |  |  |  113|  44.1k|#define CTYPE_TO_BIT(ctype)  (1<<(ctype))
  |  |  ------------------
  ------------------
  190|  44.1k|  }
  191|       |
  192|      0|  if (ctype >= CODE_RANGES_NUM) {
  ------------------
  |  |  179|      0|#define CODE_RANGES_NUM numberof(CodeRanges)
  |  |  ------------------
  |  |  |  |  129|      0|# define numberof(array) (int )(sizeof(array) / sizeof((array)[0]))
  |  |  ------------------
  ------------------
  |  Branch (192:7): [True: 0, False: 0]
  ------------------
  193|      0|    return ONIGERR_TYPE_BUG;
  ------------------
  |  |  633|      0|#define ONIGERR_TYPE_BUG                                       -6
  ------------------
  194|      0|  }
  195|       |
  196|      0|  return onig_is_in_code_range((UChar* )CodeRanges[ctype], code);
  197|      0|}
onigenc_unicode_ctype_code_range:
  202|  18.6k|{
  203|  18.6k|  if (ctype >= CODE_RANGES_NUM) {
  ------------------
  |  |  179|  18.6k|#define CODE_RANGES_NUM numberof(CodeRanges)
  |  |  ------------------
  |  |  |  |  129|  18.6k|# define numberof(array) (int )(sizeof(array) / sizeof((array)[0]))
  |  |  ------------------
  ------------------
  |  Branch (203:7): [True: 0, False: 18.6k]
  ------------------
  204|      0|    return ONIGERR_TYPE_BUG;
  ------------------
  |  |  633|      0|#define ONIGERR_TYPE_BUG                                       -6
  ------------------
  205|      0|  }
  206|       |
  207|  18.6k|  *ranges = CodeRanges[ctype];
  208|       |
  209|  18.6k|  return 0;
  210|  18.6k|}

utf_8.c:mbc_enc_len:
  317|  3.59M|{
  318|  3.59M|  int firstbyte = *p++;
  319|  3.59M|  state_t s;
  320|  3.59M|  s = trans[0][firstbyte];
  321|  3.59M|  if (s < 0) return s == ACCEPT ? ONIGENC_CONSTRUCT_MBCLEN_CHARFOUND(1) :
  ------------------
  |  |  345|  3.59M|#define ONIGENC_CONSTRUCT_MBCLEN_CHARFOUND(n)   (n)
  ------------------
  |  Branch (321:7): [True: 3.59M, False: 0]
  |  Branch (321:21): [True: 3.59M, False: 0]
  ------------------
  322|  3.59M|                                  ONIGENC_CONSTRUCT_MBCLEN_INVALID();
  ------------------
  |  |  349|      0|#define ONIGENC_CONSTRUCT_MBCLEN_INVALID()      (-1)
  ------------------
  323|       |
  324|      0|  if (p == e) return ONIGENC_CONSTRUCT_MBCLEN_NEEDMORE(EncLen_UTF8[firstbyte]-1);
  ------------------
  |  |  352|      0|#define ONIGENC_CONSTRUCT_MBCLEN_NEEDMORE(n)    (-1-(n))
  ------------------
  |  Branch (324:7): [True: 0, False: 0]
  ------------------
  325|      0|  s = trans[s][*p++];
  326|      0|  if (s < 0) return s == ACCEPT ? ONIGENC_CONSTRUCT_MBCLEN_CHARFOUND(2) :
  ------------------
  |  |  345|      0|#define ONIGENC_CONSTRUCT_MBCLEN_CHARFOUND(n)   (n)
  ------------------
  |  Branch (326:7): [True: 0, False: 0]
  |  Branch (326:21): [True: 0, False: 0]
  ------------------
  327|      0|                                  ONIGENC_CONSTRUCT_MBCLEN_INVALID();
  ------------------
  |  |  349|      0|#define ONIGENC_CONSTRUCT_MBCLEN_INVALID()      (-1)
  ------------------
  328|       |
  329|      0|  if (p == e) return ONIGENC_CONSTRUCT_MBCLEN_NEEDMORE(EncLen_UTF8[firstbyte]-2);
  ------------------
  |  |  352|      0|#define ONIGENC_CONSTRUCT_MBCLEN_NEEDMORE(n)    (-1-(n))
  ------------------
  |  Branch (329:7): [True: 0, False: 0]
  ------------------
  330|      0|  s = trans[s][*p++];
  331|      0|  if (s < 0) return s == ACCEPT ? ONIGENC_CONSTRUCT_MBCLEN_CHARFOUND(3) :
  ------------------
  |  |  345|      0|#define ONIGENC_CONSTRUCT_MBCLEN_CHARFOUND(n)   (n)
  ------------------
  |  Branch (331:7): [True: 0, False: 0]
  |  Branch (331:21): [True: 0, False: 0]
  ------------------
  332|      0|                                  ONIGENC_CONSTRUCT_MBCLEN_INVALID();
  ------------------
  |  |  349|      0|#define ONIGENC_CONSTRUCT_MBCLEN_INVALID()      (-1)
  ------------------
  333|       |
  334|      0|  if (p == e) return ONIGENC_CONSTRUCT_MBCLEN_NEEDMORE(EncLen_UTF8[firstbyte]-3);
  ------------------
  |  |  352|      0|#define ONIGENC_CONSTRUCT_MBCLEN_NEEDMORE(n)    (-1-(n))
  ------------------
  |  Branch (334:7): [True: 0, False: 0]
  ------------------
  335|      0|  s = trans[s][*p++];
  336|       |
  337|      0|#ifndef USE_UTF8_31BITS
  338|      0|  return s == ACCEPT ? ONIGENC_CONSTRUCT_MBCLEN_CHARFOUND(4) :
  ------------------
  |  |  345|      0|#define ONIGENC_CONSTRUCT_MBCLEN_CHARFOUND(n)   (n)
  ------------------
  |  Branch (338:10): [True: 0, False: 0]
  ------------------
  339|      0|                       ONIGENC_CONSTRUCT_MBCLEN_INVALID();
  ------------------
  |  |  349|      0|#define ONIGENC_CONSTRUCT_MBCLEN_INVALID()      (-1)
  ------------------
  340|       |#else
  341|       |  if (s < 0) return s == ACCEPT ? ONIGENC_CONSTRUCT_MBCLEN_CHARFOUND(4) :
  342|       |                                  ONIGENC_CONSTRUCT_MBCLEN_INVALID();
  343|       |
  344|       |  if (p == e) return ONIGENC_CONSTRUCT_MBCLEN_NEEDMORE(EncLen_UTF8[firstbyte]-4);
  345|       |  s = trans[s][*p++];
  346|       |  if (s < 0) return s == ACCEPT ? ONIGENC_CONSTRUCT_MBCLEN_CHARFOUND(5) :
  347|       |                                  ONIGENC_CONSTRUCT_MBCLEN_INVALID();
  348|       |
  349|       |  if (p == e) return ONIGENC_CONSTRUCT_MBCLEN_NEEDMORE(EncLen_UTF8[firstbyte]-5);
  350|       |  s = trans[s][*p++];
  351|       |  return s == ACCEPT ? ONIGENC_CONSTRUCT_MBCLEN_CHARFOUND(6) :
  352|       |                       ONIGENC_CONSTRUCT_MBCLEN_INVALID();
  353|       |#endif
  354|      0|}
utf_8.c:mbc_to_code:
  381|  1.11M|{
  382|  1.11M|  int c, len;
  383|  1.11M|  OnigCodePoint n;
  384|       |
  385|  1.11M|  len = mbc_enc_len(p, end, enc);
  386|  1.11M|  c = *p++;
  387|  1.11M|  if (len > 1) {
  ------------------
  |  Branch (387:7): [True: 0, False: 1.11M]
  ------------------
  388|      0|    len--;
  389|      0|    n = c & ((1 << (6 - len)) - 1);
  390|      0|    while (len--) {
  ------------------
  |  Branch (390:12): [True: 0, False: 0]
  ------------------
  391|      0|      c = *p++;
  392|      0|      n = (n << 6) | (c & ((1 << 6) - 1));
  393|      0|    }
  394|      0|    return n;
  395|      0|  }
  396|  1.11M|  else {
  397|  1.11M|#ifdef USE_INVALID_CODE_SCHEME
  398|  1.11M|    if (c > 0xfd) {
  ------------------
  |  Branch (398:9): [True: 0, False: 1.11M]
  ------------------
  399|      0|      return ((c == 0xfe) ? INVALID_CODE_FE : INVALID_CODE_FF);
  ------------------
  |  |   44|      0|# define INVALID_CODE_FE  0xfffffffe
  ------------------
                    return ((c == 0xfe) ? INVALID_CODE_FE : INVALID_CODE_FF);
  ------------------
  |  |   45|      0|# define INVALID_CODE_FF  0xffffffff
  ------------------
  |  Branch (399:15): [True: 0, False: 0]
  ------------------
  400|      0|    }
  401|  1.11M|#endif
  402|  1.11M|    return (OnigCodePoint )c;
  403|  1.11M|  }
  404|  1.11M|}
utf_8.c:code_to_mbclen:
  408|  70.7k|{
  409|  70.7k|  if      ((code & 0xffffff80) == 0) return 1;
  ------------------
  |  Branch (409:12): [True: 70.7k, False: 0]
  ------------------
  410|      0|  else if ((code & 0xfffff800) == 0) return 2;
  ------------------
  |  Branch (410:12): [True: 0, False: 0]
  ------------------
  411|      0|  else if ((code & 0xffff0000) == 0) return 3;
  ------------------
  |  Branch (411:12): [True: 0, False: 0]
  ------------------
  412|      0|#ifndef USE_UTF8_31BITS
  413|      0|  else if (code <= VALID_CODE_LIMIT) return 4;
  ------------------
  |  |   49|      0|#define VALID_CODE_LIMIT  0x0010ffff
  ------------------
  |  Branch (413:12): [True: 0, False: 0]
  ------------------
  414|       |#else
  415|       |  else if ((code & 0xffe00000) == 0) return 4;
  416|       |  else if ((code & 0xfc000000) == 0) return 5;
  417|       |  else if (code <= VALID_CODE_LIMIT) return 6;
  418|       |#endif
  419|      0|#ifdef USE_INVALID_CODE_SCHEME
  420|      0|  else if (code == INVALID_CODE_FE) return 1;
  ------------------
  |  |   44|      0|# define INVALID_CODE_FE  0xfffffffe
  ------------------
  |  Branch (420:12): [True: 0, False: 0]
  ------------------
  421|      0|  else if (code == INVALID_CODE_FF) return 1;
  ------------------
  |  |   45|      0|# define INVALID_CODE_FF  0xffffffff
  ------------------
  |  Branch (421:12): [True: 0, False: 0]
  ------------------
  422|      0|#endif
  423|      0|  else
  424|      0|    return ONIGERR_TOO_BIG_WIDE_CHAR_VALUE;
  ------------------
  |  |  694|      0|#define ONIGERR_TOO_BIG_WIDE_CHAR_VALUE                      -401
  ------------------
  425|  70.7k|}
utf_8.c:get_ctype_code_range:
  524|  18.6k|{
  525|  18.6k|  *sb_out = 0x80;
  526|  18.6k|  return onigenc_unicode_ctype_code_range(ctype, ranges);
  527|  18.6k|}

onig_bbuf_init:
  143|  51.9k|{
  144|  51.9k|  if (size <= 0) {
  ------------------
  |  Branch (144:7): [True: 0, False: 51.9k]
  ------------------
  145|      0|    size   = 0;
  146|      0|    buf->p = NULL;
  147|      0|  }
  148|  51.9k|  else {
  149|  51.9k|    buf->p = (UChar* )xmalloc(size);
  ------------------
  |  |  142|  51.9k|# define xmalloc     malloc
  ------------------
  150|  51.9k|    if (IS_NULL(buf->p)) return(ONIGERR_MEMORY);
  ------------------
  |  |  311|  51.9k|#define IS_NULL(p)                    (((void*)(p)) == (void*)0)
  |  |  ------------------
  |  |  |  Branch (311:39): [True: 0, False: 51.9k]
  |  |  ------------------
  ------------------
                  if (IS_NULL(buf->p)) return(ONIGERR_MEMORY);
  ------------------
  |  |  632|      0|#define ONIGERR_MEMORY                                         -5
  ------------------
  151|  51.9k|  }
  152|       |
  153|  51.9k|  buf->alloc = (unsigned int )size;
  154|  51.9k|  buf->used  = 0;
  155|  51.9k|  return 0;
  156|  51.9k|}
onig_free_body:
 5535|  33.2k|{
 5536|  33.2k|  if (IS_NOT_NULL(reg)) {
  ------------------
  |  |  312|  33.2k|#define IS_NOT_NULL(p)                (((void*)(p)) != (void*)0)
  |  |  ------------------
  |  |  |  Branch (312:39): [True: 33.2k, False: 0]
  |  |  ------------------
  ------------------
 5537|  33.2k|    if (IS_NOT_NULL(reg->p))                xfree(reg->p);
  ------------------
  |  |  312|  33.2k|#define IS_NOT_NULL(p)                (((void*)(p)) != (void*)0)
  |  |  ------------------
  |  |  |  Branch (312:39): [True: 33.2k, False: 0]
  |  |  ------------------
  ------------------
                  if (IS_NOT_NULL(reg->p))                xfree(reg->p);
  ------------------
  |  |  145|  33.2k|# define xfree       free
  ------------------
 5538|  33.2k|    if (IS_NOT_NULL(reg->exact))            xfree(reg->exact);
  ------------------
  |  |  312|  33.2k|#define IS_NOT_NULL(p)                (((void*)(p)) != (void*)0)
  |  |  ------------------
  |  |  |  Branch (312:39): [True: 15.9k, False: 17.3k]
  |  |  ------------------
  ------------------
                  if (IS_NOT_NULL(reg->exact))            xfree(reg->exact);
  ------------------
  |  |  145|  15.9k|# define xfree       free
  ------------------
 5539|  33.2k|    if (IS_NOT_NULL(reg->repeat_range))     xfree(reg->repeat_range);
  ------------------
  |  |  312|  33.2k|#define IS_NOT_NULL(p)                (((void*)(p)) != (void*)0)
  |  |  ------------------
  |  |  |  Branch (312:39): [True: 0, False: 33.2k]
  |  |  ------------------
  ------------------
                  if (IS_NOT_NULL(reg->repeat_range))     xfree(reg->repeat_range);
  ------------------
  |  |  145|      0|# define xfree       free
  ------------------
 5540|  33.2k|    if (IS_NOT_NULL(reg->chain))            onig_free(reg->chain);
  ------------------
  |  |  312|  33.2k|#define IS_NOT_NULL(p)                (((void*)(p)) != (void*)0)
  |  |  ------------------
  |  |  |  Branch (312:39): [True: 0, False: 33.2k]
  |  |  ------------------
  ------------------
 5541|       |
 5542|  33.2k|#ifdef USE_NAMED_GROUP
 5543|  33.2k|    onig_names_free(reg);
 5544|  33.2k|#endif
 5545|  33.2k|  }
 5546|  33.2k|}
onig_free:
 5550|  33.2k|{
 5551|  33.2k|  if (IS_NOT_NULL(reg)) {
  ------------------
  |  |  312|  33.2k|#define IS_NOT_NULL(p)                (((void*)(p)) != (void*)0)
  |  |  ------------------
  |  |  |  Branch (312:39): [True: 33.2k, False: 0]
  |  |  ------------------
  ------------------
 5552|  33.2k|    onig_free_body(reg);
 5553|  33.2k|    xfree(reg);
  ------------------
  |  |  145|  33.2k|# define xfree       free
  ------------------
 5554|  33.2k|  }
 5555|  33.2k|}
onig_compile:
 5620|  33.2k|{
 5621|  33.2k|#define COMPILE_INIT_SIZE  20
 5622|       |
 5623|  33.2k|  int r;
 5624|  33.2k|  OnigDistance init_size;
 5625|  33.2k|  Node*  root;
 5626|  33.2k|  ScanEnv  scan_env = {0};
 5627|  33.2k|#ifdef USE_SUBEXP_CALL
 5628|  33.2k|  UnsetAddrList  uslist;
 5629|  33.2k|#endif
 5630|       |
 5631|  33.2k|  if (IS_NOT_NULL(einfo)) einfo->par = (UChar* )NULL;
  ------------------
  |  |  312|  33.2k|#define IS_NOT_NULL(p)                (((void*)(p)) != (void*)0)
  |  |  ------------------
  |  |  |  Branch (312:39): [True: 33.2k, False: 0]
  |  |  ------------------
  ------------------
 5632|       |
 5633|       |#ifdef RUBY
 5634|       |  scan_env.sourcefile = sourcefile;
 5635|       |  scan_env.sourceline = sourceline;
 5636|       |#endif
 5637|       |
 5638|       |#ifdef ONIG_DEBUG
 5639|       |  print_enc_string(stderr, reg->enc, pattern, pattern_end);
 5640|       |#endif
 5641|       |
 5642|  33.2k|  if (reg->alloc == 0) {
  ------------------
  |  Branch (5642:7): [True: 33.2k, False: 0]
  ------------------
 5643|  33.2k|    init_size = (pattern_end - pattern) * 2;
 5644|  33.2k|    if (init_size <= 0) init_size = COMPILE_INIT_SIZE;
  ------------------
  |  | 5621|      0|#define COMPILE_INIT_SIZE  20
  ------------------
  |  Branch (5644:9): [True: 0, False: 33.2k]
  ------------------
 5645|  33.2k|    r = BBUF_INIT(reg, init_size);
  ------------------
  |  |  460|  33.2k|#define BBUF_INIT(buf,size)    onig_bbuf_init((BBuf* )(buf), (size))
  ------------------
 5646|  33.2k|    if (r != 0) goto end;
  ------------------
  |  Branch (5646:9): [True: 0, False: 33.2k]
  ------------------
 5647|  33.2k|  }
 5648|      0|  else
 5649|      0|    reg->used = 0;
 5650|       |
 5651|  33.2k|  reg->num_mem            = 0;
 5652|  33.2k|  reg->num_repeat         = 0;
 5653|  33.2k|  reg->num_null_check     = 0;
 5654|  33.2k|  reg->repeat_range_alloc = 0;
 5655|  33.2k|  reg->repeat_range       = (OnigRepeatRange* )NULL;
 5656|       |#ifdef USE_COMBINATION_EXPLOSION_CHECK
 5657|       |  reg->num_comb_exp_check = 0;
 5658|       |#endif
 5659|       |
 5660|  33.2k|  r = onig_parse_make_tree(&root, pattern, pattern_end, reg, &scan_env);
 5661|  33.2k|  if (r != 0) goto err;
  ------------------
  |  Branch (5661:7): [True: 0, False: 33.2k]
  ------------------
 5662|       |
 5663|       |#ifdef ONIG_DEBUG_PARSE_TREE
 5664|       |# if 0
 5665|       |  fprintf(stderr, "ORIGINAL PARSE TREE:\n");
 5666|       |  print_tree(stderr, root);
 5667|       |# endif
 5668|       |#endif
 5669|       |
 5670|  33.2k|#ifdef USE_NAMED_GROUP
 5671|       |  /* mixed use named group and no-named group */
 5672|  33.2k|  if (scan_env.num_named > 0 &&
  ------------------
  |  Branch (5672:7): [True: 1.47k, False: 31.7k]
  ------------------
 5673|  33.2k|      IS_SYNTAX_BV(scan_env.syntax, ONIG_SYN_CAPTURE_ONLY_NAMED_GROUP) &&
  ------------------
  |  |  332|  34.7k|#define IS_SYNTAX_BV(syn, bvm)    (((syn)->behavior & (bvm)) != 0)
  |  |  ------------------
  |  |  |  Branch (332:35): [True: 1.47k, False: 0]
  |  |  ------------------
  ------------------
 5674|  33.2k|      !ONIG_IS_OPTION_ON(reg->options, ONIG_OPTION_CAPTURE_GROUP)) {
  ------------------
  |  |  479|  1.47k|#define ONIG_IS_OPTION_ON(options,option)   ((options) & (option))
  ------------------
  |  Branch (5674:7): [True: 1.47k, False: 0]
  ------------------
 5675|  1.47k|    if (scan_env.num_named != scan_env.num_mem)
  ------------------
  |  Branch (5675:9): [True: 0, False: 1.47k]
  ------------------
 5676|      0|      r = disable_noname_group_capture(&root, reg, &scan_env);
 5677|  1.47k|    else
 5678|  1.47k|      r = numbered_ref_check(root);
 5679|       |
 5680|  1.47k|    if (r != 0) goto err;
  ------------------
  |  Branch (5680:9): [True: 0, False: 1.47k]
  ------------------
 5681|  1.47k|  }
 5682|  33.2k|#endif
 5683|       |
 5684|  33.2k|#ifdef USE_SUBEXP_CALL
 5685|  33.2k|  if (scan_env.num_call > 0) {
  ------------------
  |  Branch (5685:7): [True: 0, False: 33.2k]
  ------------------
 5686|      0|    r = unset_addr_list_init(&uslist, scan_env.num_call);
 5687|      0|    if (r != 0) goto err;
  ------------------
  |  Branch (5687:9): [True: 0, False: 0]
  ------------------
 5688|      0|    scan_env.unset_addr_list = &uslist;
 5689|      0|    r = setup_subexp_call(root, &scan_env);
 5690|      0|    if (r != 0) goto err_unset;
  ------------------
  |  Branch (5690:9): [True: 0, False: 0]
  ------------------
 5691|      0|    r = subexp_recursive_check_trav(root, &scan_env);
 5692|      0|    if (r  < 0) goto err_unset;
  ------------------
  |  Branch (5692:9): [True: 0, False: 0]
  ------------------
 5693|      0|    r = subexp_inf_recursive_check_trav(root, &scan_env);
 5694|      0|    if (r != 0) goto err_unset;
  ------------------
  |  Branch (5694:9): [True: 0, False: 0]
  ------------------
 5695|       |
 5696|      0|    reg->num_call = scan_env.num_call;
 5697|      0|  }
 5698|  33.2k|  else
 5699|  33.2k|    reg->num_call = 0;
 5700|  33.2k|#endif
 5701|       |
 5702|  33.2k|  r = setup_tree(root, reg, 0, &scan_env);
 5703|  33.2k|  if (r != 0) goto err_unset;
  ------------------
  |  Branch (5703:7): [True: 0, False: 33.2k]
  ------------------
 5704|       |
 5705|       |#ifdef ONIG_DEBUG_PARSE_TREE
 5706|       |  print_tree(stderr, root);
 5707|       |#endif
 5708|       |
 5709|  33.2k|  reg->capture_history  = scan_env.capture_history;
 5710|  33.2k|  reg->bt_mem_start     = scan_env.bt_mem_start;
 5711|  33.2k|  reg->bt_mem_start    |= reg->capture_history;
 5712|  33.2k|  if (IS_FIND_CONDITION(reg->options))
  ------------------
  |  |  400|  33.2k|#define IS_FIND_CONDITION(option) ((option) & \
  |  |  ------------------
  |  |  |  Branch (400:35): [True: 0, False: 33.2k]
  |  |  ------------------
  |  |  401|  33.2k|          (ONIG_OPTION_FIND_LONGEST | ONIG_OPTION_FIND_NOT_EMPTY))
  |  |  ------------------
  |  |  |  |  459|  33.2k|#define ONIG_OPTION_FIND_LONGEST         (ONIG_OPTION_SINGLELINE         << 1)
  |  |  |  |  ------------------
  |  |  |  |  |  |  458|  33.2k|#define ONIG_OPTION_SINGLELINE           (ONIG_OPTION_MULTILINE          << 1)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  456|  33.2k|#define ONIG_OPTION_MULTILINE            (ONIG_OPTION_EXTEND             << 1)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  455|  33.2k|#define ONIG_OPTION_EXTEND               (ONIG_OPTION_IGNORECASE         << 1)
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  454|  33.2k|#define ONIG_OPTION_IGNORECASE           1U
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |                         (ONIG_OPTION_FIND_LONGEST | ONIG_OPTION_FIND_NOT_EMPTY))
  |  |  ------------------
  |  |  |  |  460|  33.2k|#define ONIG_OPTION_FIND_NOT_EMPTY       (ONIG_OPTION_FIND_LONGEST       << 1)
  |  |  |  |  ------------------
  |  |  |  |  |  |  459|  33.2k|#define ONIG_OPTION_FIND_LONGEST         (ONIG_OPTION_SINGLELINE         << 1)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  458|  33.2k|#define ONIG_OPTION_SINGLELINE           (ONIG_OPTION_MULTILINE          << 1)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  456|  33.2k|#define ONIG_OPTION_MULTILINE            (ONIG_OPTION_EXTEND             << 1)
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  455|  33.2k|#define ONIG_OPTION_EXTEND               (ONIG_OPTION_IGNORECASE         << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  454|  33.2k|#define ONIG_OPTION_IGNORECASE           1U
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 5713|      0|    BIT_STATUS_ON_ALL(reg->bt_mem_end);
  ------------------
  |  |  369|      0|#define BIT_STATUS_ON_ALL(stats)     (stats) = ~((BitStatusType )0)
  ------------------
 5714|  33.2k|  else {
 5715|  33.2k|    reg->bt_mem_end  = scan_env.bt_mem_end;
 5716|  33.2k|    reg->bt_mem_end |= reg->capture_history;
 5717|  33.2k|  }
 5718|       |
 5719|       |#ifdef USE_COMBINATION_EXPLOSION_CHECK
 5720|       |  if (scan_env.backrefed_mem == 0
 5721|       |# ifdef USE_SUBEXP_CALL
 5722|       |      || scan_env.num_call == 0
 5723|       |# endif
 5724|       |      ) {
 5725|       |    setup_comb_exp_check(root, 0, &scan_env);
 5726|       |# ifdef USE_SUBEXP_CALL
 5727|       |    if (scan_env.has_recursion != 0) {
 5728|       |      scan_env.num_comb_exp_check = 0;
 5729|       |    }
 5730|       |    else
 5731|       |# endif
 5732|       |    if (scan_env.comb_exp_max_regnum > 0) {
 5733|       |      int i;
 5734|       |      for (i = 1; i <= scan_env.comb_exp_max_regnum; i++) {
 5735|       |	if (BIT_STATUS_AT(scan_env.backrefed_mem, i) != 0) {
 5736|       |	  scan_env.num_comb_exp_check = 0;
 5737|       |	  break;
 5738|       |	}
 5739|       |      }
 5740|       |    }
 5741|       |  }
 5742|       |
 5743|       |  reg->num_comb_exp_check = scan_env.num_comb_exp_check;
 5744|       |#endif
 5745|       |
 5746|  33.2k|  clear_optimize_info(reg);
 5747|  33.2k|#ifndef ONIG_DONT_OPTIMIZE
 5748|  33.2k|  r = set_optimize_info_from_tree(root, reg, &scan_env);
 5749|  33.2k|  if (r != 0) goto err_unset;
  ------------------
  |  Branch (5749:7): [True: 0, False: 33.2k]
  ------------------
 5750|  33.2k|#endif
 5751|       |
 5752|  33.2k|  if (IS_NOT_NULL(scan_env.mem_nodes_dynamic)) {
  ------------------
  |  |  312|  33.2k|#define IS_NOT_NULL(p)                (((void*)(p)) != (void*)0)
  |  |  ------------------
  |  |  |  Branch (312:39): [True: 0, False: 33.2k]
  |  |  ------------------
  ------------------
 5753|      0|    xfree(scan_env.mem_nodes_dynamic);
  ------------------
  |  |  145|      0|# define xfree       free
  ------------------
 5754|      0|    scan_env.mem_nodes_dynamic = (Node** )NULL;
 5755|      0|  }
 5756|       |
 5757|  33.2k|  r = compile_tree(root, reg);
 5758|  33.2k|  if (r == 0) {
  ------------------
  |  Branch (5758:7): [True: 33.2k, False: 0]
  ------------------
 5759|  33.2k|    r = add_opcode(reg, OP_END);
 5760|  33.2k|#ifdef USE_SUBEXP_CALL
 5761|  33.2k|    if (scan_env.num_call > 0) {
  ------------------
  |  Branch (5761:9): [True: 0, False: 33.2k]
  ------------------
 5762|      0|      r = unset_addr_list_fix(&uslist, reg);
 5763|      0|      unset_addr_list_end(&uslist);
 5764|      0|      if (r) goto err;
  ------------------
  |  Branch (5764:11): [True: 0, False: 0]
  ------------------
 5765|      0|    }
 5766|  33.2k|#endif
 5767|       |
 5768|  33.2k|    if ((reg->num_repeat != 0) || (reg->bt_mem_end != 0))
  ------------------
  |  Branch (5768:9): [True: 0, False: 33.2k]
  |  Branch (5768:35): [True: 0, False: 33.2k]
  ------------------
 5769|      0|      reg->stack_pop_level = STACK_POP_LEVEL_ALL;
  ------------------
  |  |  352|      0|#define STACK_POP_LEVEL_ALL         2
  ------------------
 5770|  33.2k|    else {
 5771|  33.2k|      if (reg->bt_mem_start != 0)
  ------------------
  |  Branch (5771:11): [True: 0, False: 33.2k]
  ------------------
 5772|      0|	reg->stack_pop_level = STACK_POP_LEVEL_MEM_START;
  ------------------
  |  |  351|      0|#define STACK_POP_LEVEL_MEM_START   1
  ------------------
 5773|  33.2k|      else
 5774|  33.2k|	reg->stack_pop_level = STACK_POP_LEVEL_FREE;
  ------------------
  |  |  350|  33.2k|#define STACK_POP_LEVEL_FREE        0
  ------------------
 5775|  33.2k|    }
 5776|  33.2k|  }
 5777|      0|#ifdef USE_SUBEXP_CALL
 5778|      0|  else if (scan_env.num_call > 0) {
  ------------------
  |  Branch (5778:12): [True: 0, False: 0]
  ------------------
 5779|      0|    unset_addr_list_end(&uslist);
 5780|      0|  }
 5781|  33.2k|#endif
 5782|  33.2k|  onig_node_free(root);
 5783|       |
 5784|       |#ifdef ONIG_DEBUG_COMPILE
 5785|       |# ifdef USE_NAMED_GROUP
 5786|       |  onig_print_names(stderr, reg);
 5787|       |# endif
 5788|       |  print_compiled_byte_code_list(stderr, reg);
 5789|       |#endif
 5790|       |
 5791|  33.2k| end:
 5792|  33.2k|  return r;
 5793|       |
 5794|      0| err_unset:
 5795|      0|#ifdef USE_SUBEXP_CALL
 5796|      0|  if (scan_env.num_call > 0) {
  ------------------
  |  Branch (5796:7): [True: 0, False: 0]
  ------------------
 5797|      0|    unset_addr_list_end(&uslist);
 5798|      0|  }
 5799|      0|#endif
 5800|      0| err:
 5801|      0|  if (IS_NOT_NULL(scan_env.error)) {
  ------------------
  |  |  312|      0|#define IS_NOT_NULL(p)                (((void*)(p)) != (void*)0)
  |  |  ------------------
  |  |  |  Branch (312:39): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 5802|      0|    if (IS_NOT_NULL(einfo)) {
  ------------------
  |  |  312|      0|#define IS_NOT_NULL(p)                (((void*)(p)) != (void*)0)
  |  |  ------------------
  |  |  |  Branch (312:39): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 5803|      0|      einfo->enc     = scan_env.enc;
 5804|      0|      einfo->par     = scan_env.error;
 5805|      0|      einfo->par_end = scan_env.error_end;
 5806|      0|    }
 5807|      0|  }
 5808|       |
 5809|      0|  onig_node_free(root);
 5810|      0|  if (IS_NOT_NULL(scan_env.mem_nodes_dynamic))
  ------------------
  |  |  312|      0|#define IS_NOT_NULL(p)                (((void*)(p)) != (void*)0)
  |  |  ------------------
  |  |  |  Branch (312:39): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 5811|      0|      xfree(scan_env.mem_nodes_dynamic);
  ------------------
  |  |  145|      0|# define xfree       free
  ------------------
 5812|      0|  return r;
 5813|      0|}
onig_reg_init:
 5821|  33.2k|{
 5822|  33.2k|  if (! onig_inited)
  ------------------
  |  Branch (5822:7): [True: 1, False: 33.2k]
  ------------------
 5823|      1|    onig_init();
 5824|       |
 5825|  33.2k|  if (IS_NULL(reg))
  ------------------
  |  |  311|  33.2k|#define IS_NULL(p)                    (((void*)(p)) == (void*)0)
  |  |  ------------------
  |  |  |  Branch (311:39): [True: 0, False: 33.2k]
  |  |  ------------------
  ------------------
 5826|      0|    return ONIGERR_INVALID_ARGUMENT;
  ------------------
  |  |  643|      0|#define ONIGERR_INVALID_ARGUMENT                              -30
  ------------------
 5827|       |
 5828|  33.2k|  (reg)->exact            = (UChar* )NULL;
 5829|  33.2k|  (reg)->chain            = (regex_t* )NULL;
 5830|  33.2k|  (reg)->p                = (UChar* )NULL;
 5831|  33.2k|  (reg)->name_table       = (void* )NULL;
 5832|  33.2k|  (reg)->repeat_range     = (OnigRepeatRange* )NULL;
 5833|       |
 5834|  33.2k|  if (ONIGENC_IS_UNDEF(enc))
  ------------------
  |  |  317|  33.2k|#define ONIGENC_IS_UNDEF(enc)          ((enc) == ONIG_ENCODING_UNDEF)
  |  |  ------------------
  |  |  |  |  281|  33.2k|#define ONIG_ENCODING_UNDEF    ((OnigEncoding )0)
  |  |  ------------------
  |  |  |  Branch (317:40): [True: 0, False: 33.2k]
  |  |  ------------------
  ------------------
 5835|      0|    return ONIGERR_DEFAULT_ENCODING_IS_NOT_SET;
  ------------------
  |  |  640|      0|#define ONIGERR_DEFAULT_ENCODING_IS_NOT_SET                   -21
  ------------------
 5836|       |
 5837|  33.2k|  if ((option & (ONIG_OPTION_DONT_CAPTURE_GROUP|ONIG_OPTION_CAPTURE_GROUP))
  ------------------
  |  |  462|  33.2k|#define ONIG_OPTION_DONT_CAPTURE_GROUP   (ONIG_OPTION_NEGATE_SINGLELINE  << 1)
  |  |  ------------------
  |  |  |  |  461|  33.2k|#define ONIG_OPTION_NEGATE_SINGLELINE    (ONIG_OPTION_FIND_NOT_EMPTY     << 1)
  |  |  |  |  ------------------
  |  |  |  |  |  |  460|  33.2k|#define ONIG_OPTION_FIND_NOT_EMPTY       (ONIG_OPTION_FIND_LONGEST       << 1)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  459|  33.2k|#define ONIG_OPTION_FIND_LONGEST         (ONIG_OPTION_SINGLELINE         << 1)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  458|  33.2k|#define ONIG_OPTION_SINGLELINE           (ONIG_OPTION_MULTILINE          << 1)
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  456|  33.2k|#define ONIG_OPTION_MULTILINE            (ONIG_OPTION_EXTEND             << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  455|  33.2k|#define ONIG_OPTION_EXTEND               (ONIG_OPTION_IGNORECASE         << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  454|  33.2k|#define ONIG_OPTION_IGNORECASE           1U
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
                if ((option & (ONIG_OPTION_DONT_CAPTURE_GROUP|ONIG_OPTION_CAPTURE_GROUP))
  ------------------
  |  |  463|  33.2k|#define ONIG_OPTION_CAPTURE_GROUP        (ONIG_OPTION_DONT_CAPTURE_GROUP << 1)
  |  |  ------------------
  |  |  |  |  462|  33.2k|#define ONIG_OPTION_DONT_CAPTURE_GROUP   (ONIG_OPTION_NEGATE_SINGLELINE  << 1)
  |  |  |  |  ------------------
  |  |  |  |  |  |  461|  33.2k|#define ONIG_OPTION_NEGATE_SINGLELINE    (ONIG_OPTION_FIND_NOT_EMPTY     << 1)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  460|  33.2k|#define ONIG_OPTION_FIND_NOT_EMPTY       (ONIG_OPTION_FIND_LONGEST       << 1)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  459|  33.2k|#define ONIG_OPTION_FIND_LONGEST         (ONIG_OPTION_SINGLELINE         << 1)
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  458|  33.2k|#define ONIG_OPTION_SINGLELINE           (ONIG_OPTION_MULTILINE          << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  456|  33.2k|#define ONIG_OPTION_MULTILINE            (ONIG_OPTION_EXTEND             << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  455|  33.2k|#define ONIG_OPTION_EXTEND               (ONIG_OPTION_IGNORECASE         << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  454|  33.2k|#define ONIG_OPTION_IGNORECASE           1U
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  |  Branch (5837:7): [True: 0, False: 33.2k]
  ------------------
 5838|  33.2k|      == (ONIG_OPTION_DONT_CAPTURE_GROUP|ONIG_OPTION_CAPTURE_GROUP)) {
  ------------------
  |  |  462|  33.2k|#define ONIG_OPTION_DONT_CAPTURE_GROUP   (ONIG_OPTION_NEGATE_SINGLELINE  << 1)
  |  |  ------------------
  |  |  |  |  461|  33.2k|#define ONIG_OPTION_NEGATE_SINGLELINE    (ONIG_OPTION_FIND_NOT_EMPTY     << 1)
  |  |  |  |  ------------------
  |  |  |  |  |  |  460|  33.2k|#define ONIG_OPTION_FIND_NOT_EMPTY       (ONIG_OPTION_FIND_LONGEST       << 1)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  459|  33.2k|#define ONIG_OPTION_FIND_LONGEST         (ONIG_OPTION_SINGLELINE         << 1)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  458|  33.2k|#define ONIG_OPTION_SINGLELINE           (ONIG_OPTION_MULTILINE          << 1)
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  456|  33.2k|#define ONIG_OPTION_MULTILINE            (ONIG_OPTION_EXTEND             << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  455|  33.2k|#define ONIG_OPTION_EXTEND               (ONIG_OPTION_IGNORECASE         << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  454|  33.2k|#define ONIG_OPTION_IGNORECASE           1U
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
                    == (ONIG_OPTION_DONT_CAPTURE_GROUP|ONIG_OPTION_CAPTURE_GROUP)) {
  ------------------
  |  |  463|  33.2k|#define ONIG_OPTION_CAPTURE_GROUP        (ONIG_OPTION_DONT_CAPTURE_GROUP << 1)
  |  |  ------------------
  |  |  |  |  462|  33.2k|#define ONIG_OPTION_DONT_CAPTURE_GROUP   (ONIG_OPTION_NEGATE_SINGLELINE  << 1)
  |  |  |  |  ------------------
  |  |  |  |  |  |  461|  33.2k|#define ONIG_OPTION_NEGATE_SINGLELINE    (ONIG_OPTION_FIND_NOT_EMPTY     << 1)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  460|  33.2k|#define ONIG_OPTION_FIND_NOT_EMPTY       (ONIG_OPTION_FIND_LONGEST       << 1)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  459|  33.2k|#define ONIG_OPTION_FIND_LONGEST         (ONIG_OPTION_SINGLELINE         << 1)
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  458|  33.2k|#define ONIG_OPTION_SINGLELINE           (ONIG_OPTION_MULTILINE          << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  456|  33.2k|#define ONIG_OPTION_MULTILINE            (ONIG_OPTION_EXTEND             << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  455|  33.2k|#define ONIG_OPTION_EXTEND               (ONIG_OPTION_IGNORECASE         << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  454|  33.2k|#define ONIG_OPTION_IGNORECASE           1U
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 5839|      0|    return ONIGERR_INVALID_COMBINATION_OF_OPTIONS;
  ------------------
  |  |  696|      0|#define ONIGERR_INVALID_COMBINATION_OF_OPTIONS               -403
  ------------------
 5840|      0|  }
 5841|       |
 5842|  33.2k|  if ((option & ONIG_OPTION_NEGATE_SINGLELINE) != 0) {
  ------------------
  |  |  461|  33.2k|#define ONIG_OPTION_NEGATE_SINGLELINE    (ONIG_OPTION_FIND_NOT_EMPTY     << 1)
  |  |  ------------------
  |  |  |  |  460|  33.2k|#define ONIG_OPTION_FIND_NOT_EMPTY       (ONIG_OPTION_FIND_LONGEST       << 1)
  |  |  |  |  ------------------
  |  |  |  |  |  |  459|  33.2k|#define ONIG_OPTION_FIND_LONGEST         (ONIG_OPTION_SINGLELINE         << 1)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  458|  33.2k|#define ONIG_OPTION_SINGLELINE           (ONIG_OPTION_MULTILINE          << 1)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  456|  33.2k|#define ONIG_OPTION_MULTILINE            (ONIG_OPTION_EXTEND             << 1)
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  455|  33.2k|#define ONIG_OPTION_EXTEND               (ONIG_OPTION_IGNORECASE         << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  454|  33.2k|#define ONIG_OPTION_IGNORECASE           1U
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  |  Branch (5842:7): [True: 0, False: 33.2k]
  ------------------
 5843|      0|    option |= syntax->options;
 5844|      0|    option &= ~ONIG_OPTION_SINGLELINE;
  ------------------
  |  |  458|      0|#define ONIG_OPTION_SINGLELINE           (ONIG_OPTION_MULTILINE          << 1)
  |  |  ------------------
  |  |  |  |  456|      0|#define ONIG_OPTION_MULTILINE            (ONIG_OPTION_EXTEND             << 1)
  |  |  |  |  ------------------
  |  |  |  |  |  |  455|      0|#define ONIG_OPTION_EXTEND               (ONIG_OPTION_IGNORECASE         << 1)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  454|      0|#define ONIG_OPTION_IGNORECASE           1U
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 5845|      0|  }
 5846|  33.2k|  else
 5847|  33.2k|    option |= syntax->options;
 5848|       |
 5849|  33.2k|  (reg)->enc              = enc;
 5850|  33.2k|  (reg)->options          = option;
 5851|  33.2k|  (reg)->syntax           = syntax;
 5852|  33.2k|  (reg)->optimize         = 0;
 5853|       |
 5854|  33.2k|  (reg)->alloc            = 0;
 5855|  33.2k|  (reg)->used             = 0;
 5856|       |
 5857|  33.2k|  (reg)->case_fold_flag   = case_fold_flag;
 5858|  33.2k|  return 0;
 5859|  33.2k|}
onig_new:
 5879|  33.2k|{
 5880|  33.2k|  int r;
 5881|       |
 5882|  33.2k|  *reg = (regex_t* )xmalloc(sizeof(regex_t));
  ------------------
  |  |  142|  33.2k|# define xmalloc     malloc
  ------------------
 5883|  33.2k|  if (IS_NULL(*reg)) return ONIGERR_MEMORY;
  ------------------
  |  |  311|  33.2k|#define IS_NULL(p)                    (((void*)(p)) == (void*)0)
  |  |  ------------------
  |  |  |  Branch (311:39): [True: 0, False: 33.2k]
  |  |  ------------------
  ------------------
                if (IS_NULL(*reg)) return ONIGERR_MEMORY;
  ------------------
  |  |  632|      0|#define ONIGERR_MEMORY                                         -5
  ------------------
 5884|       |
 5885|  33.2k|  r = onig_reg_init(*reg, option, ONIGENC_CASE_FOLD_DEFAULT, enc, syntax);
  ------------------
  |  |  131|  33.2k|#define ONIGENC_CASE_FOLD_DEFAULT  OnigDefaultCaseFoldFlag
  ------------------
 5886|  33.2k|  if (r) goto err;
  ------------------
  |  Branch (5886:7): [True: 0, False: 33.2k]
  ------------------
 5887|       |
 5888|  33.2k|  r = onig_compile(*reg, pattern, pattern_end, einfo);
 5889|  33.2k|  if (r) {
  ------------------
  |  Branch (5889:7): [True: 0, False: 33.2k]
  ------------------
 5890|      0|  err:
 5891|      0|    onig_free(*reg);
 5892|      0|    *reg = NULL;
 5893|      0|  }
 5894|  33.2k|  return r;
 5895|  33.2k|}
onig_init:
 5905|  1.34k|{
 5906|  1.34k|  if (onig_inited != 0)
  ------------------
  |  Branch (5906:7): [True: 1.34k, False: 1]
  ------------------
 5907|  1.34k|    return 0;
 5908|       |
 5909|      1|  onig_inited = 1;
 5910|       |
 5911|       |#if defined(ONIG_DEBUG_MEMLEAK) && defined(_MSC_VER)
 5912|       |  _CrtSetDbgFlag(_CRTDBG_ALLOC_MEM_DF | _CRTDBG_LEAK_CHECK_DF);
 5913|       |#endif
 5914|       |
 5915|      1|  onigenc_init();
 5916|       |  /* onigenc_set_default_caseconv_table((UChar* )0); */
 5917|       |
 5918|       |#ifdef ONIG_DEBUG_STATISTICS
 5919|       |  onig_statistics_init();
 5920|       |#endif
 5921|       |
 5922|      1|  return 0;
 5923|  1.34k|}
onig_is_code_in_cc_len:
 5998|  18.7k|{
 5999|  18.7k|  int found;
 6000|       |
 6001|  18.7k|  if (elen > 1 || (code >= SINGLE_BYTE_SIZE)) {
  ------------------
  |  |  426|  18.7k|#define SINGLE_BYTE_SIZE   (1 << BITS_PER_BYTE)
  |  |  ------------------
  |  |  |  |  425|  18.7k|#define BITS_PER_BYTE      8
  |  |  ------------------
  ------------------
  |  Branch (6001:7): [True: 0, False: 18.7k]
  |  Branch (6001:19): [True: 0, False: 18.7k]
  ------------------
 6002|      0|    if (IS_NULL(cc->mbuf)) {
  ------------------
  |  |  311|      0|#define IS_NULL(p)                    (((void*)(p)) == (void*)0)
  |  |  ------------------
  |  |  |  Branch (311:39): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 6003|      0|      found = 0;
 6004|      0|    }
 6005|      0|    else {
 6006|      0|      found = (onig_is_in_code_range(cc->mbuf->p, code) != 0 ? 1 : 0);
  ------------------
  |  Branch (6006:16): [True: 0, False: 0]
  ------------------
 6007|      0|    }
 6008|      0|  }
 6009|  18.7k|  else {
 6010|  18.7k|    found = (BITSET_AT(cc->bs, code) == 0 ? 0 : 1);
  ------------------
  |  |  448|  18.7k|#define BITSET_AT(bs, pos)         (BS_ROOM(bs,pos) & BS_BIT(pos))
  |  |  ------------------
  |  |  |  |  445|  18.7k|#define BS_ROOM(bs,pos)            (bs)[(int )(pos) / BITS_IN_ROOM]
  |  |  |  |  ------------------
  |  |  |  |  |  |  427|  18.7k|#define BITS_IN_ROOM       ((int )sizeof(Bits) * BITS_PER_BYTE)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  425|  18.7k|#define BITS_PER_BYTE      8
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |               #define BITSET_AT(bs, pos)         (BS_ROOM(bs,pos) & BS_BIT(pos))
  |  |  ------------------
  |  |  |  |  446|  18.7k|#define BS_BIT(pos)                (1U << ((int )(pos) % BITS_IN_ROOM))
  |  |  |  |  ------------------
  |  |  |  |  |  |  427|  18.7k|#define BITS_IN_ROOM       ((int )sizeof(Bits) * BITS_PER_BYTE)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  425|  18.7k|#define BITS_PER_BYTE      8
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  |  Branch (6010:14): [True: 11.5k, False: 7.16k]
  ------------------
 6011|  18.7k|  }
 6012|       |
 6013|  18.7k|  if (IS_NCCLASS_NOT(cc))
  ------------------
  |  |  809|  18.7k|#define IS_NCCLASS_NOT(nd)      IS_NCCLASS_FLAG_ON(nd, FLAG_NCCLASS_NOT)
  |  |  ------------------
  |  |  |  |  802|  18.7k|#define IS_NCCLASS_FLAG_ON(cc,flag) ((NCCLASS_FLAGS(cc) & (flag)) != 0)
  |  |  |  |  ------------------
  |  |  |  |  |  |  799|  18.7k|#define NCCLASS_FLAGS(cc)           ((cc)->flags)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (802:37): [True: 7.16k, False: 11.5k]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 6014|  7.16k|    return !found;
 6015|  11.5k|  else
 6016|  11.5k|    return found;
 6017|  18.7k|}
onig_is_code_in_cc:
 6021|  18.7k|{
 6022|  18.7k|  int len;
 6023|       |
 6024|  18.7k|  if (ONIGENC_MBC_MINLEN(enc) > 1) {
  ------------------
  |  |  367|  18.7k|#define ONIGENC_MBC_MINLEN(enc)               ((enc)->min_enc_len)
  ------------------
  |  Branch (6024:7): [True: 0, False: 18.7k]
  ------------------
 6025|      0|    len = 2;
 6026|      0|  }
 6027|  18.7k|  else {
 6028|  18.7k|    len = ONIGENC_CODE_TO_MBCLEN(enc, code);
  ------------------
  |  |  370|  18.7k|#define ONIGENC_CODE_TO_MBCLEN(enc,code)       (enc)->code_to_mbclen(code,enc)
  ------------------
 6029|  18.7k|  }
 6030|  18.7k|  return onig_is_code_in_cc_len(len, code, cc);
 6031|  18.7k|}
regcomp.c:numbered_ref_check:
 1989|  29.5k|{
 1990|  29.5k|  int r = 0;
 1991|       |
 1992|  29.5k|  switch (NTYPE(node)) {
  ------------------
  |  |   69|  29.5k|#define NTYPE(node)             ((node)->u.base.type)
  ------------------
 1993|  1.47k|  case NT_LIST:
  ------------------
  |  |   46|  1.47k|#define NT_LIST        8
  ------------------
  |  Branch (1993:3): [True: 1.47k, False: 28.0k]
  ------------------
 1994|  4.43k|  case NT_ALT:
  ------------------
  |  |   47|  4.43k|#define NT_ALT         9
  ------------------
  |  Branch (1994:3): [True: 2.95k, False: 26.6k]
  ------------------
 1995|  19.2k|    do {
 1996|  19.2k|      r = numbered_ref_check(NCAR(node));
  ------------------
  |  |   86|  19.2k|#define NCAR(node)         (NCONS(node)->car)
  |  |  ------------------
  |  |  |  |   83|  19.2k|#define NCONS(node)        (&((node)->u.cons))
  |  |  ------------------
  ------------------
 1997|  19.2k|    } while (r == 0 && IS_NOT_NULL(node = NCDR(node)));
  ------------------
  |  |  312|  19.2k|#define IS_NOT_NULL(p)                (((void*)(p)) != (void*)0)
  |  |  ------------------
  |  |  |  Branch (312:39): [True: 14.7k, False: 4.43k]
  |  |  ------------------
  ------------------
  |  Branch (1997:14): [True: 19.2k, False: 0]
  ------------------
 1998|  4.43k|    break;
 1999|  2.95k|  case NT_QTFR:
  ------------------
  |  |   43|  2.95k|#define NT_QTFR        5
  ------------------
  |  Branch (1999:3): [True: 2.95k, False: 26.6k]
  ------------------
 2000|  2.95k|    r = numbered_ref_check(NQTFR(node)->target);
  ------------------
  |  |   80|  2.95k|#define NQTFR(node)        (&((node)->u.qtfr))
  ------------------
 2001|  2.95k|    break;
 2002|  5.91k|  case NT_ENCLOSE:
  ------------------
  |  |   44|  5.91k|#define NT_ENCLOSE     6
  ------------------
  |  Branch (2002:3): [True: 5.91k, False: 23.6k]
  ------------------
 2003|  5.91k|    r = numbered_ref_check(NENCLOSE(node)->target);
  ------------------
  |  |   81|  5.91k|#define NENCLOSE(node)     (&((node)->u.enclose))
  ------------------
 2004|  5.91k|    break;
 2005|       |
 2006|      0|  case NT_BREF:
  ------------------
  |  |   42|      0|#define NT_BREF        4
  ------------------
  |  Branch (2006:3): [True: 0, False: 29.5k]
  ------------------
 2007|      0|    if (! IS_BACKREF_NAME_REF(NBREF(node)))
  ------------------
  |  |  163|      0|#define IS_BACKREF_NAME_REF(bn)        (((bn)->state & NST_NAME_REF)   != 0)
  |  |  ------------------
  |  |  |  |  139|      0|#define NST_NAME_REF              (1<<11)
  |  |  ------------------
  ------------------
  |  Branch (2007:9): [True: 0, False: 0]
  ------------------
 2008|      0|      return ONIGERR_NUMBERED_BACKREF_OR_CALL_NOT_ALLOWED;
  ------------------
  |  |  678|      0|#define ONIGERR_NUMBERED_BACKREF_OR_CALL_NOT_ALLOWED         -209
  ------------------
 2009|      0|    break;
 2010|       |
 2011|  2.95k|  case NT_ANCHOR:
  ------------------
  |  |   45|  2.95k|#define NT_ANCHOR      7
  ------------------
  |  Branch (2011:3): [True: 2.95k, False: 26.6k]
  ------------------
 2012|  2.95k|    if (NANCHOR(node)->target)
  ------------------
  |  |   82|  2.95k|#define NANCHOR(node)      (&((node)->u.anchor))
  ------------------
  |  Branch (2012:9): [True: 0, False: 2.95k]
  ------------------
 2013|      0|      r = numbered_ref_check(NANCHOR(node)->target);
  ------------------
  |  |   82|      0|#define NANCHOR(node)      (&((node)->u.anchor))
  ------------------
 2014|  2.95k|    break;
 2015|       |
 2016|  13.3k|  default:
  ------------------
  |  Branch (2016:3): [True: 13.3k, False: 16.2k]
  ------------------
 2017|  13.3k|    break;
 2018|  29.5k|  }
 2019|       |
 2020|  29.5k|  return r;
 2021|  29.5k|}
regcomp.c:get_min_match_length:
 2157|  51.8k|{
 2158|  51.8k|  OnigDistance tmin;
 2159|  51.8k|  int r = 0;
 2160|       |
 2161|  51.8k|  *min = 0;
 2162|  51.8k|  switch (NTYPE(node)) {
  ------------------
  |  |   69|  51.8k|#define NTYPE(node)             ((node)->u.base.type)
  ------------------
 2163|      0|  case NT_BREF:
  ------------------
  |  |   42|      0|#define NT_BREF        4
  ------------------
  |  Branch (2163:3): [True: 0, False: 51.8k]
  ------------------
 2164|      0|    {
 2165|      0|      int i;
 2166|      0|      int* backs;
 2167|      0|      Node** nodes = SCANENV_MEM_NODES(env);
  ------------------
  |  |  287|      0| (IS_NOT_NULL((senv)->mem_nodes_dynamic) ? \
  |  |  ------------------
  |  |  |  |  312|      0|#define IS_NOT_NULL(p)                (((void*)(p)) != (void*)0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (312:39): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  288|      0|    (senv)->mem_nodes_dynamic : (senv)->mem_nodes_static)
  ------------------
 2168|      0|      BRefNode* br = NBREF(node);
  ------------------
  |  |   79|      0|#define NBREF(node)        (&((node)->u.bref))
  ------------------
 2169|      0|      if (br->state & NST_RECURSION) break;
  ------------------
  |  |  135|      0|#define NST_RECURSION             (1<<7)
  ------------------
  |  Branch (2169:11): [True: 0, False: 0]
  ------------------
 2170|       |
 2171|      0|      backs = BACKREFS_P(br);
  ------------------
  |  |  120|      0|  (IS_NOT_NULL((br)->back_dynamic) ? (br)->back_dynamic : (br)->back_static);
  |  |  ------------------
  |  |  |  |  312|      0|#define IS_NOT_NULL(p)                (((void*)(p)) != (void*)0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (312:39): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2172|      0|      if (backs[0] > env->num_mem)  return ONIGERR_INVALID_BACKREF;
  ------------------
  |  |  677|      0|#define ONIGERR_INVALID_BACKREF                              -208
  ------------------
  |  Branch (2172:11): [True: 0, False: 0]
  ------------------
 2173|      0|      r = get_min_match_length(nodes[backs[0]], min, env);
 2174|      0|      if (r != 0) break;
  ------------------
  |  Branch (2174:11): [True: 0, False: 0]
  ------------------
 2175|      0|      for (i = 1; i < br->back_num; i++) {
  ------------------
  |  Branch (2175:19): [True: 0, False: 0]
  ------------------
 2176|      0|	if (backs[i] > env->num_mem)  return ONIGERR_INVALID_BACKREF;
  ------------------
  |  |  677|      0|#define ONIGERR_INVALID_BACKREF                              -208
  ------------------
  |  Branch (2176:6): [True: 0, False: 0]
  ------------------
 2177|      0|	r = get_min_match_length(nodes[backs[i]], &tmin, env);
 2178|      0|	if (r != 0) break;
  ------------------
  |  Branch (2178:6): [True: 0, False: 0]
  ------------------
 2179|      0|	if (*min > tmin) *min = tmin;
  ------------------
  |  Branch (2179:6): [True: 0, False: 0]
  ------------------
 2180|      0|      }
 2181|      0|    }
 2182|      0|    break;
 2183|       |
 2184|      0|#ifdef USE_SUBEXP_CALL
 2185|      0|  case NT_CALL:
  ------------------
  |  |   48|      0|#define NT_CALL       10
  ------------------
  |  Branch (2185:3): [True: 0, False: 51.8k]
  ------------------
 2186|      0|    if (IS_CALL_RECURSION(NCALL(node))) {
  ------------------
  |  |  161|      0|#define IS_CALL_RECURSION(cn)          (((cn)->state & NST_RECURSION)  != 0)
  |  |  ------------------
  |  |  |  |  135|      0|#define NST_RECURSION             (1<<7)
  |  |  ------------------
  |  |  |  Branch (161:40): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 2187|      0|      EncloseNode* en = NENCLOSE(NCALL(node)->target);
  ------------------
  |  |   81|      0|#define NENCLOSE(node)     (&((node)->u.enclose))
  ------------------
 2188|      0|      if (IS_ENCLOSE_MIN_FIXED(en))
  ------------------
  |  |  152|      0|#define IS_ENCLOSE_MIN_FIXED(en)       (((en)->state & NST_MIN_FIXED)     != 0)
  |  |  ------------------
  |  |  |  |  128|      0|#define NST_MIN_FIXED             (1<<0)
  |  |  ------------------
  |  |  |  Branch (152:40): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 2189|      0|	*min = en->min_len;
 2190|      0|    }
 2191|      0|    else
 2192|      0|      r = get_min_match_length(NCALL(node)->target, min, env);
  ------------------
  |  |   84|      0|#define NCALL(node)        (&((node)->u.call))
  ------------------
 2193|      0|    break;
 2194|      0|#endif
 2195|       |
 2196|  2.86k|  case NT_LIST:
  ------------------
  |  |   46|  2.86k|#define NT_LIST        8
  ------------------
  |  Branch (2196:3): [True: 2.86k, False: 49.0k]
  ------------------
 2197|  5.72k|    do {
 2198|  5.72k|      r = get_min_match_length(NCAR(node), &tmin, env);
  ------------------
  |  |   86|  5.72k|#define NCAR(node)         (NCONS(node)->car)
  |  |  ------------------
  |  |  |  |   83|  5.72k|#define NCONS(node)        (&((node)->u.cons))
  |  |  ------------------
  ------------------
 2199|  5.72k|      if (r == 0) *min += tmin;
  ------------------
  |  Branch (2199:11): [True: 5.72k, False: 0]
  ------------------
 2200|  5.72k|    } while (r == 0 && IS_NOT_NULL(node = NCDR(node)));
  ------------------
  |  |  312|  5.72k|#define IS_NOT_NULL(p)                (((void*)(p)) != (void*)0)
  |  |  ------------------
  |  |  |  Branch (312:39): [True: 2.86k, False: 2.86k]
  |  |  ------------------
  ------------------
  |  Branch (2200:14): [True: 5.72k, False: 0]
  ------------------
 2201|  2.86k|    break;
 2202|       |
 2203|      0|  case NT_ALT:
  ------------------
  |  |   47|      0|#define NT_ALT         9
  ------------------
  |  Branch (2203:3): [True: 0, False: 51.8k]
  ------------------
 2204|      0|    {
 2205|      0|      Node *x, *y;
 2206|      0|      y = node;
 2207|      0|      do {
 2208|      0|	x = NCAR(y);
  ------------------
  |  |   86|      0|#define NCAR(node)         (NCONS(node)->car)
  |  |  ------------------
  |  |  |  |   83|      0|#define NCONS(node)        (&((node)->u.cons))
  |  |  ------------------
  ------------------
 2209|      0|	r = get_min_match_length(x, &tmin, env);
 2210|      0|	if (r != 0) break;
  ------------------
  |  Branch (2210:6): [True: 0, False: 0]
  ------------------
 2211|      0|	if (y == node) *min = tmin;
  ------------------
  |  Branch (2211:6): [True: 0, False: 0]
  ------------------
 2212|      0|	else if (*min > tmin) *min = tmin;
  ------------------
  |  Branch (2212:11): [True: 0, False: 0]
  ------------------
 2213|      0|      } while (r == 0 && IS_NOT_NULL(y = NCDR(y)));
  ------------------
  |  |  312|      0|#define IS_NOT_NULL(p)                (((void*)(p)) != (void*)0)
  |  |  ------------------
  |  |  |  Branch (312:39): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  |  Branch (2213:16): [True: 0, False: 0]
  ------------------
 2214|      0|    }
 2215|      0|    break;
 2216|       |
 2217|  4.32k|  case NT_STR:
  ------------------
  |  |   38|  4.32k|#define NT_STR         0
  ------------------
  |  Branch (2217:3): [True: 4.32k, False: 47.5k]
  ------------------
 2218|  4.32k|    {
 2219|  4.32k|      StrNode* sn = NSTR(node);
  ------------------
  |  |   76|  4.32k|#define NSTR(node)         (&((node)->u.str))
  ------------------
 2220|  4.32k|      *min = sn->end - sn->s;
 2221|  4.32k|    }
 2222|  4.32k|    break;
 2223|       |
 2224|      0|  case NT_CTYPE:
  ------------------
  |  |   40|      0|#define NT_CTYPE       2
  ------------------
  |  Branch (2224:3): [True: 0, False: 51.8k]
  ------------------
 2225|      0|    *min = 1;
 2226|      0|    break;
 2227|       |
 2228|  33.1k|  case NT_CCLASS:
  ------------------
  |  |   39|  33.1k|#define NT_CCLASS      1
  ------------------
  |  Branch (2228:3): [True: 33.1k, False: 18.7k]
  ------------------
 2229|  41.8k|  case NT_CANY:
  ------------------
  |  |   41|  41.8k|#define NT_CANY        3
  ------------------
  |  Branch (2229:3): [True: 8.68k, False: 43.2k]
  ------------------
 2230|  41.8k|    *min = 1;
 2231|  41.8k|    break;
 2232|       |
 2233|  2.86k|  case NT_QTFR:
  ------------------
  |  |   43|  2.86k|#define NT_QTFR        5
  ------------------
  |  Branch (2233:3): [True: 2.86k, False: 49.0k]
  ------------------
 2234|  2.86k|    {
 2235|  2.86k|      QtfrNode* qn = NQTFR(node);
  ------------------
  |  |   80|  2.86k|#define NQTFR(node)        (&((node)->u.qtfr))
  ------------------
 2236|       |
 2237|  2.86k|      if (qn->lower > 0) {
  ------------------
  |  Branch (2237:11): [True: 2.86k, False: 0]
  ------------------
 2238|  2.86k|	r = get_min_match_length(qn->target, min, env);
 2239|  2.86k|	if (r == 0)
  ------------------
  |  Branch (2239:6): [True: 2.86k, False: 0]
  ------------------
 2240|  2.86k|	  *min = distance_multiply(*min, qn->lower);
 2241|  2.86k|      }
 2242|  2.86k|    }
 2243|  2.86k|    break;
 2244|       |
 2245|      0|  case NT_ENCLOSE:
  ------------------
  |  |   44|      0|#define NT_ENCLOSE     6
  ------------------
  |  Branch (2245:3): [True: 0, False: 51.8k]
  ------------------
 2246|      0|    {
 2247|      0|      EncloseNode* en = NENCLOSE(node);
  ------------------
  |  |   81|      0|#define NENCLOSE(node)     (&((node)->u.enclose))
  ------------------
 2248|      0|      switch (en->type) {
  ------------------
  |  Branch (2248:15): [True: 0, False: 0]
  ------------------
 2249|      0|      case ENCLOSE_MEMORY:
  ------------------
  |  |   94|      0|#define ENCLOSE_MEMORY           (1<<0)
  ------------------
  |  Branch (2249:7): [True: 0, False: 0]
  ------------------
 2250|      0|        if (IS_ENCLOSE_MIN_FIXED(en))
  ------------------
  |  |  152|      0|#define IS_ENCLOSE_MIN_FIXED(en)       (((en)->state & NST_MIN_FIXED)     != 0)
  |  |  ------------------
  |  |  |  |  128|      0|#define NST_MIN_FIXED             (1<<0)
  |  |  ------------------
  |  |  |  Branch (152:40): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 2251|      0|          *min = en->min_len;
 2252|      0|        else {
 2253|      0|	  if (IS_ENCLOSE_MARK1(NENCLOSE(node)))
  ------------------
  |  |  150|      0|#define IS_ENCLOSE_MARK1(en)           (((en)->state & NST_MARK1)         != 0)
  |  |  ------------------
  |  |  |  |  131|      0|#define NST_MARK1                 (1<<3)
  |  |  ------------------
  |  |  |  Branch (150:40): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 2254|      0|	    *min = 0;  /* recursive */
 2255|      0|	  else {
 2256|      0|	    SET_ENCLOSE_STATUS(node, NST_MARK1);
  ------------------
  |  |  144|      0|#define SET_ENCLOSE_STATUS(node,f)      (node)->u.enclose.state |=  (f)
  ------------------
 2257|      0|	    r = get_min_match_length(en->target, min, env);
 2258|      0|	    CLEAR_ENCLOSE_STATUS(node, NST_MARK1);
  ------------------
  |  |  145|      0|#define CLEAR_ENCLOSE_STATUS(node,f)    (node)->u.enclose.state &= ~(f)
  ------------------
 2259|      0|	    if (r == 0) {
  ------------------
  |  Branch (2259:10): [True: 0, False: 0]
  ------------------
 2260|      0|	      en->min_len = *min;
 2261|      0|	      SET_ENCLOSE_STATUS(node, NST_MIN_FIXED);
  ------------------
  |  |  144|      0|#define SET_ENCLOSE_STATUS(node,f)      (node)->u.enclose.state |=  (f)
  ------------------
 2262|      0|	    }
 2263|      0|	  }
 2264|      0|        }
 2265|      0|        break;
 2266|       |
 2267|      0|      case ENCLOSE_OPTION:
  ------------------
  |  |   95|      0|#define ENCLOSE_OPTION           (1<<1)
  ------------------
  |  Branch (2267:7): [True: 0, False: 0]
  ------------------
 2268|      0|      case ENCLOSE_STOP_BACKTRACK:
  ------------------
  |  |   96|      0|#define ENCLOSE_STOP_BACKTRACK   (1<<2)
  ------------------
  |  Branch (2268:7): [True: 0, False: 0]
  ------------------
 2269|      0|      case ENCLOSE_CONDITION:
  ------------------
  |  |   97|      0|#define ENCLOSE_CONDITION        (1<<3)
  ------------------
  |  Branch (2269:7): [True: 0, False: 0]
  ------------------
 2270|      0|	r = get_min_match_length(en->target, min, env);
 2271|      0|	break;
 2272|       |
 2273|      0|      case ENCLOSE_ABSENT:
  ------------------
  |  |   98|      0|#define ENCLOSE_ABSENT           (1<<4)
  ------------------
  |  Branch (2273:7): [True: 0, False: 0]
  ------------------
 2274|      0|	break;
 2275|      0|      }
 2276|      0|    }
 2277|      0|    break;
 2278|       |
 2279|      0|  case NT_ANCHOR:
  ------------------
  |  |   45|      0|#define NT_ANCHOR      7
  ------------------
  |  Branch (2279:3): [True: 0, False: 51.8k]
  ------------------
 2280|      0|  default:
  ------------------
  |  Branch (2280:3): [True: 0, False: 51.8k]
  ------------------
 2281|      0|    break;
 2282|  51.8k|  }
 2283|       |
 2284|  51.8k|  return r;
 2285|  51.8k|}
regcomp.c:distance_multiply:
  108|  47.6k|{
  109|  47.6k|  if (m == 0) return 0;
  ------------------
  |  Branch (109:7): [True: 17.4k, False: 30.2k]
  ------------------
  110|       |
  111|  30.2k|  if (d < ONIG_INFINITE_DISTANCE / m)
  ------------------
  |  |   85|  30.2k|#define ONIG_INFINITE_DISTANCE  ~((OnigDistance )0)
  ------------------
  |  Branch (111:7): [True: 30.2k, False: 0]
  ------------------
  112|  30.2k|    return d * m;
  113|      0|  else
  114|      0|    return ONIG_INFINITE_DISTANCE;
  ------------------
  |  |   85|      0|#define ONIG_INFINITE_DISTANCE  ~((OnigDistance )0)
  ------------------
  115|  30.2k|}
regcomp.c:setup_tree:
 3879|   249k|{
 3880|   249k|  int type;
 3881|   249k|  int r = 0;
 3882|       |
 3883|   249k|restart:
 3884|   249k|  type = NTYPE(node);
  ------------------
  |  |   69|   249k|#define NTYPE(node)             ((node)->u.base.type)
  ------------------
 3885|   249k|  switch (type) {
 3886|  34.6k|  case NT_LIST:
  ------------------
  |  |   46|  34.6k|#define NT_LIST        8
  ------------------
  |  Branch (3886:3): [True: 34.6k, False: 214k]
  ------------------
 3887|  34.6k|    {
 3888|  34.6k|      Node* prev = NULL_NODE;
  ------------------
  |  |  283|  34.6k|#define NULL_NODE  ((Node* )0)
  ------------------
 3889|   143k|      do {
 3890|   143k|	r = setup_tree(NCAR(node), reg, state, env);
  ------------------
  |  |   86|   143k|#define NCAR(node)         (NCONS(node)->car)
  |  |  ------------------
  |  |  |  |   83|   143k|#define NCONS(node)        (&((node)->u.cons))
  |  |  ------------------
  ------------------
 3891|   143k|	if (IS_NOT_NULL(prev) && r == 0) {
  ------------------
  |  |  312|   286k|#define IS_NOT_NULL(p)                (((void*)(p)) != (void*)0)
  |  |  ------------------
  |  |  |  Branch (312:39): [True: 108k, False: 34.6k]
  |  |  ------------------
  ------------------
  |  Branch (3891:27): [True: 108k, False: 0]
  ------------------
 3892|   108k|	  r = next_setup(prev, NCAR(node), reg);
  ------------------
  |  |   86|   108k|#define NCAR(node)         (NCONS(node)->car)
  |  |  ------------------
  |  |  |  |   83|   108k|#define NCONS(node)        (&((node)->u.cons))
  |  |  ------------------
  ------------------
 3893|   108k|	}
 3894|   143k|	prev = NCAR(node);
  ------------------
  |  |   86|   143k|#define NCAR(node)         (NCONS(node)->car)
  |  |  ------------------
  |  |  |  |   83|   143k|#define NCONS(node)        (&((node)->u.cons))
  |  |  ------------------
  ------------------
 3895|   143k|      } while (r == 0 && IS_NOT_NULL(node = NCDR(node)));
  ------------------
  |  |  312|   143k|#define IS_NOT_NULL(p)                (((void*)(p)) != (void*)0)
  |  |  ------------------
  |  |  |  Branch (312:39): [True: 108k, False: 34.6k]
  |  |  ------------------
  ------------------
  |  Branch (3895:16): [True: 143k, False: 0]
  ------------------
 3896|  34.6k|    }
 3897|  34.6k|    break;
 3898|       |
 3899|  8.77k|  case NT_ALT:
  ------------------
  |  |   47|  8.77k|#define NT_ALT         9
  ------------------
  |  Branch (3899:3): [True: 8.77k, False: 240k]
  ------------------
 3900|  20.4k|    do {
 3901|  20.4k|      r = setup_tree(NCAR(node), reg, (state | IN_ALT), env);
  ------------------
  |  |   86|  20.4k|#define NCAR(node)         (NCONS(node)->car)
  |  |  ------------------
  |  |  |  |   83|  20.4k|#define NCONS(node)        (&((node)->u.cons))
  |  |  ------------------
  ------------------
                    r = setup_tree(NCAR(node), reg, (state | IN_ALT), env);
  ------------------
  |  | 3268|  20.4k|#define IN_ALT          (1<<0)
  ------------------
 3902|  20.4k|    } while (r == 0 && IS_NOT_NULL(node = NCDR(node)));
  ------------------
  |  |  312|  20.4k|#define IS_NOT_NULL(p)                (((void*)(p)) != (void*)0)
  |  |  ------------------
  |  |  |  Branch (312:39): [True: 11.7k, False: 8.77k]
  |  |  ------------------
  ------------------
  |  Branch (3902:14): [True: 20.4k, False: 0]
  ------------------
 3903|  8.77k|    break;
 3904|       |
 3905|  34.6k|  case NT_CCLASS:
  ------------------
  |  |   39|  34.6k|#define NT_CCLASS      1
  ------------------
  |  Branch (3905:3): [True: 34.6k, False: 214k]
  ------------------
 3906|  34.6k|    break;
 3907|       |
 3908|  62.4k|  case NT_STR:
  ------------------
  |  |   38|  62.4k|#define NT_STR         0
  ------------------
  |  Branch (3908:3): [True: 62.4k, False: 186k]
  ------------------
 3909|  62.4k|    if (IS_IGNORECASE(reg->options) && !NSTRING_IS_RAW(node)) {
  ------------------
  |  |  396|   124k|#define IS_IGNORECASE(option)     ((option) & ONIG_OPTION_IGNORECASE)
  |  |  ------------------
  |  |  |  |  454|  62.4k|#define ONIG_OPTION_IGNORECASE           1U
  |  |  ------------------
  |  |  |  Branch (396:35): [True: 0, False: 62.4k]
  |  |  ------------------
  ------------------
                  if (IS_IGNORECASE(reg->options) && !NSTRING_IS_RAW(node)) {
  ------------------
  |  |  114|      0|#define NSTRING_IS_RAW(node)          (((node)->u.str.flag & NSTR_RAW)   != 0)
  |  |  ------------------
  |  |  |  |  104|      0|#define NSTR_RAW                (1<<0) /* by backslashed number */
  |  |  ------------------
  ------------------
  |  Branch (3909:40): [True: 0, False: 0]
  ------------------
 3910|      0|      r = expand_case_fold_string(node, reg, state);
 3911|      0|    }
 3912|  62.4k|    break;
 3913|       |
 3914|      0|  case NT_CTYPE:
  ------------------
  |  |   40|      0|#define NT_CTYPE       2
  ------------------
  |  Branch (3914:3): [True: 0, False: 249k]
  ------------------
 3915|  14.5k|  case NT_CANY:
  ------------------
  |  |   41|  14.5k|#define NT_CANY        3
  ------------------
  |  Branch (3915:3): [True: 14.5k, False: 234k]
  ------------------
 3916|  14.5k|    break;
 3917|       |
 3918|      0|#ifdef USE_SUBEXP_CALL
 3919|      0|  case NT_CALL:
  ------------------
  |  |   48|      0|#define NT_CALL       10
  ------------------
  |  Branch (3919:3): [True: 0, False: 249k]
  ------------------
 3920|      0|    break;
 3921|      0|#endif
 3922|       |
 3923|      0|  case NT_BREF:
  ------------------
  |  |   42|      0|#define NT_BREF        4
  ------------------
  |  Branch (3923:3): [True: 0, False: 249k]
  ------------------
 3924|      0|    {
 3925|      0|      int i;
 3926|      0|      int* p;
 3927|      0|      Node** nodes = SCANENV_MEM_NODES(env);
  ------------------
  |  |  287|      0| (IS_NOT_NULL((senv)->mem_nodes_dynamic) ? \
  |  |  ------------------
  |  |  |  |  312|      0|#define IS_NOT_NULL(p)                (((void*)(p)) != (void*)0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (312:39): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  288|      0|    (senv)->mem_nodes_dynamic : (senv)->mem_nodes_static)
  ------------------
 3928|      0|      BRefNode* br = NBREF(node);
  ------------------
  |  |   79|      0|#define NBREF(node)        (&((node)->u.bref))
  ------------------
 3929|      0|      p = BACKREFS_P(br);
  ------------------
  |  |  120|      0|  (IS_NOT_NULL((br)->back_dynamic) ? (br)->back_dynamic : (br)->back_static);
  |  |  ------------------
  |  |  |  |  312|      0|#define IS_NOT_NULL(p)                (((void*)(p)) != (void*)0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (312:39): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 3930|      0|      for (i = 0; i < br->back_num; i++) {
  ------------------
  |  Branch (3930:19): [True: 0, False: 0]
  ------------------
 3931|      0|	if (p[i] > env->num_mem)  return ONIGERR_INVALID_BACKREF;
  ------------------
  |  |  677|      0|#define ONIGERR_INVALID_BACKREF                              -208
  ------------------
  |  Branch (3931:6): [True: 0, False: 0]
  ------------------
 3932|      0|	BIT_STATUS_ON_AT(env->backrefed_mem, p[i]);
  ------------------
  |  |  373|      0|#define BIT_STATUS_ON_AT(stats,n) do {\
  |  |  374|      0|  if ((n) < (int )BIT_STATUS_BITS_NUM)\
  |  |  ------------------
  |  |  |  |  367|      0|#define BIT_STATUS_BITS_NUM          (sizeof(BitStatusType) * 8)
  |  |  ------------------
  |  |  |  Branch (374:7): [True: 0, False: 0]
  |  |  ------------------
  |  |  375|      0|    (stats) |= (1 << (n));\
  |  |  376|      0|  else\
  |  |  377|      0|    (stats) |= 1;\
  |  |  378|      0|} while (0)
  |  |  ------------------
  |  |  |  Branch (378:10): [Folded - Ignored]
  |  |  ------------------
  ------------------
 3933|      0|	BIT_STATUS_ON_AT(env->bt_mem_start, p[i]);
  ------------------
  |  |  373|      0|#define BIT_STATUS_ON_AT(stats,n) do {\
  |  |  374|      0|  if ((n) < (int )BIT_STATUS_BITS_NUM)\
  |  |  ------------------
  |  |  |  |  367|      0|#define BIT_STATUS_BITS_NUM          (sizeof(BitStatusType) * 8)
  |  |  ------------------
  |  |  |  Branch (374:7): [True: 0, False: 0]
  |  |  ------------------
  |  |  375|      0|    (stats) |= (1 << (n));\
  |  |  376|      0|  else\
  |  |  377|      0|    (stats) |= 1;\
  |  |  378|      0|} while (0)
  |  |  ------------------
  |  |  |  Branch (378:10): [Folded - Ignored]
  |  |  ------------------
  ------------------
 3934|      0|#ifdef USE_BACKREF_WITH_LEVEL
 3935|      0|	if (IS_BACKREF_NEST_LEVEL(br)) {
  ------------------
  |  |  164|      0|#define IS_BACKREF_NEST_LEVEL(bn)      (((bn)->state & NST_NEST_LEVEL) != 0)
  |  |  ------------------
  |  |  |  |  141|      0|#define NST_NEST_LEVEL            (1<<13)
  |  |  ------------------
  |  |  |  Branch (164:40): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 3936|      0|	  BIT_STATUS_ON_AT(env->bt_mem_end, p[i]);
  ------------------
  |  |  373|      0|#define BIT_STATUS_ON_AT(stats,n) do {\
  |  |  374|      0|  if ((n) < (int )BIT_STATUS_BITS_NUM)\
  |  |  ------------------
  |  |  |  |  367|      0|#define BIT_STATUS_BITS_NUM          (sizeof(BitStatusType) * 8)
  |  |  ------------------
  |  |  |  Branch (374:7): [True: 0, False: 0]
  |  |  ------------------
  |  |  375|      0|    (stats) |= (1 << (n));\
  |  |  376|      0|  else\
  |  |  377|      0|    (stats) |= 1;\
  |  |  378|      0|} while (0)
  |  |  ------------------
  |  |  |  Branch (378:10): [Folded - Ignored]
  |  |  ------------------
  ------------------
 3937|      0|	}
 3938|      0|#endif
 3939|      0|	SET_ENCLOSE_STATUS(nodes[p[i]], NST_MEM_BACKREFED);
  ------------------
  |  |  144|      0|#define SET_ENCLOSE_STATUS(node,f)      (node)->u.enclose.state |=  (f)
  ------------------
 3940|      0|      }
 3941|      0|    }
 3942|      0|    break;
 3943|       |
 3944|  43.3k|  case NT_QTFR:
  ------------------
  |  |   43|  43.3k|#define NT_QTFR        5
  ------------------
  |  Branch (3944:3): [True: 43.3k, False: 205k]
  ------------------
 3945|  43.3k|    {
 3946|  43.3k|      OnigDistance d;
 3947|  43.3k|      QtfrNode* qn = NQTFR(node);
  ------------------
  |  |   80|  43.3k|#define NQTFR(node)        (&((node)->u.qtfr))
  ------------------
 3948|  43.3k|      Node* target = qn->target;
 3949|       |
 3950|  43.3k|      if ((state & IN_REPEAT) != 0) {
  ------------------
  |  | 3270|  43.3k|#define IN_REPEAT       (1<<2)
  ------------------
  |  Branch (3950:11): [True: 2.86k, False: 40.4k]
  ------------------
 3951|  2.86k|	qn->state |= NST_IN_REPEAT;
  ------------------
  |  |  140|  2.86k|#define NST_IN_REPEAT             (1<<12) /* STK_REPEAT is nested in stack. */
  ------------------
 3952|  2.86k|      }
 3953|       |
 3954|  43.3k|      if (IS_REPEAT_INFINITE(qn->upper) || qn->upper >= 1) {
  ------------------
  |  |  422|  86.6k|#define IS_REPEAT_INFINITE(n)   ((n) == REPEAT_INFINITE)
  |  |  ------------------
  |  |  |  |  421|  43.3k|#define REPEAT_INFINITE         -1
  |  |  ------------------
  |  |  |  Branch (422:33): [True: 41.8k, False: 1.46k]
  |  |  ------------------
  ------------------
  |  Branch (3954:44): [True: 1.46k, False: 0]
  ------------------
 3955|  43.3k|	r = get_min_match_length(target, &d, env);
 3956|  43.3k|	if (r) break;
  ------------------
  |  Branch (3956:6): [True: 0, False: 43.3k]
  ------------------
 3957|  43.3k|	if (d == 0) {
  ------------------
  |  Branch (3957:6): [True: 0, False: 43.3k]
  ------------------
 3958|      0|	  qn->target_empty_info = NQ_TARGET_IS_EMPTY;
  ------------------
  |  |  123|      0|#define NQ_TARGET_IS_EMPTY        1
  ------------------
 3959|      0|#ifdef USE_MONOMANIAC_CHECK_CAPTURES_IN_ENDLESS_REPEAT
 3960|      0|	  r = quantifiers_memory_node_info(target);
 3961|      0|	  if (r < 0) break;
  ------------------
  |  Branch (3961:8): [True: 0, False: 0]
  ------------------
 3962|      0|	  if (r > 0) {
  ------------------
  |  Branch (3962:8): [True: 0, False: 0]
  ------------------
 3963|      0|	    qn->target_empty_info = r;
 3964|      0|	  }
 3965|      0|#endif
 3966|       |#if 0
 3967|       |	  r = get_max_match_length(target, &d, env);
 3968|       |	  if (r == 0 && d == 0) {
 3969|       |	    /*  ()* ==> ()?, ()+ ==> ()  */
 3970|       |	    qn->upper = 1;
 3971|       |	    if (qn->lower > 1) qn->lower = 1;
 3972|       |	    if (NTYPE(target) == NT_STR) {
 3973|       |	      qn->upper = qn->lower = 0;  /* /(?:)+/ ==> // */
 3974|       |	    }
 3975|       |	  }
 3976|       |#endif
 3977|      0|	}
 3978|  43.3k|      }
 3979|       |
 3980|  43.3k|      state |= IN_REPEAT;
  ------------------
  |  | 3270|  43.3k|#define IN_REPEAT       (1<<2)
  ------------------
 3981|  43.3k|      if (qn->lower != qn->upper)
  ------------------
  |  Branch (3981:11): [True: 43.3k, False: 0]
  ------------------
 3982|  43.3k|	state |= IN_VAR_REPEAT;
  ------------------
  |  | 3271|  43.3k|#define IN_VAR_REPEAT   (1<<3)
  ------------------
 3983|  43.3k|      r = setup_tree(target, reg, state, env);
 3984|  43.3k|      if (r) break;
  ------------------
  |  Branch (3984:11): [True: 0, False: 43.3k]
  ------------------
 3985|       |
 3986|       |      /* expand string */
 3987|  43.3k|#define EXPAND_STRING_MAX_LENGTH  100
 3988|  43.3k|      if (NTYPE(target) == NT_STR) {
  ------------------
  |  |   69|  43.3k|#define NTYPE(node)             ((node)->u.base.type)
  ------------------
                    if (NTYPE(target) == NT_STR) {
  ------------------
  |  |   38|  43.3k|#define NT_STR         0
  ------------------
  |  Branch (3988:11): [True: 1.46k, False: 41.8k]
  ------------------
 3989|  1.46k|	if (qn->lower > 1) {
  ------------------
  |  Branch (3989:6): [True: 0, False: 1.46k]
  ------------------
 3990|      0|	  int i, n = qn->lower;
 3991|      0|	  OnigDistance len = NSTRING_LEN(target);
  ------------------
  |  |  108|      0|#define NSTRING_LEN(node) (OnigDistance )((node)->u.str.end - (node)->u.str.s)
  ------------------
 3992|      0|	  StrNode* sn = NSTR(target);
  ------------------
  |  |   76|      0|#define NSTR(node)         (&((node)->u.str))
  ------------------
 3993|      0|	  Node* np;
 3994|       |
 3995|      0|	  np = onig_node_new_str(sn->s, sn->end);
 3996|      0|	  if (IS_NULL(np)) return ONIGERR_MEMORY;
  ------------------
  |  |  311|      0|#define IS_NULL(p)                    (((void*)(p)) == (void*)0)
  |  |  ------------------
  |  |  |  Branch (311:39): [True: 0, False: 0]
  |  |  ------------------
  ------------------
              	  if (IS_NULL(np)) return ONIGERR_MEMORY;
  ------------------
  |  |  632|      0|#define ONIGERR_MEMORY                                         -5
  ------------------
 3997|      0|	  NSTR(np)->flag = sn->flag;
  ------------------
  |  |   76|      0|#define NSTR(node)         (&((node)->u.str))
  ------------------
 3998|       |
 3999|      0|	  for (i = 1; i < n && (i+1) * len <= EXPAND_STRING_MAX_LENGTH; i++) {
  ------------------
  |  | 3987|      0|#define EXPAND_STRING_MAX_LENGTH  100
  ------------------
  |  Branch (3999:16): [True: 0, False: 0]
  |  Branch (3999:25): [True: 0, False: 0]
  ------------------
 4000|      0|	    r = onig_node_str_cat(np, sn->s, sn->end);
 4001|      0|	    if (r) {
  ------------------
  |  Branch (4001:10): [True: 0, False: 0]
  ------------------
 4002|      0|	      onig_node_free(np);
 4003|      0|	      return r;
 4004|      0|	    }
 4005|      0|	  }
 4006|      0|	  if (i < qn->upper || IS_REPEAT_INFINITE(qn->upper)) {
  ------------------
  |  |  422|      0|#define IS_REPEAT_INFINITE(n)   ((n) == REPEAT_INFINITE)
  |  |  ------------------
  |  |  |  |  421|      0|#define REPEAT_INFINITE         -1
  |  |  ------------------
  |  |  |  Branch (422:33): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  |  Branch (4006:8): [True: 0, False: 0]
  ------------------
 4007|      0|	    Node *np1, *np2;
 4008|       |
 4009|      0|	    qn->lower -= i;
 4010|      0|	    if (! IS_REPEAT_INFINITE(qn->upper))
  ------------------
  |  |  422|      0|#define IS_REPEAT_INFINITE(n)   ((n) == REPEAT_INFINITE)
  |  |  ------------------
  |  |  |  |  421|      0|#define REPEAT_INFINITE         -1
  |  |  ------------------
  ------------------
  |  Branch (4010:10): [True: 0, False: 0]
  ------------------
 4011|      0|	      qn->upper -= i;
 4012|       |
 4013|      0|	    np1 = onig_node_new_list(np, NULL);
 4014|      0|	    if (IS_NULL(np1)) {
  ------------------
  |  |  311|      0|#define IS_NULL(p)                    (((void*)(p)) == (void*)0)
  |  |  ------------------
  |  |  |  Branch (311:39): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 4015|      0|	      onig_node_free(np);
 4016|      0|	      return ONIGERR_MEMORY;
  ------------------
  |  |  632|      0|#define ONIGERR_MEMORY                                         -5
  ------------------
 4017|      0|	    }
 4018|      0|	    swap_node(np1, node);
 4019|      0|	    np2 = onig_node_list_add(node, np1);
 4020|      0|	    if (IS_NULL(np2)) {
  ------------------
  |  |  311|      0|#define IS_NULL(p)                    (((void*)(p)) == (void*)0)
  |  |  ------------------
  |  |  |  Branch (311:39): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 4021|      0|	      onig_node_free(np1);
 4022|      0|	      return ONIGERR_MEMORY;
  ------------------
  |  |  632|      0|#define ONIGERR_MEMORY                                         -5
  ------------------
 4023|      0|	    }
 4024|      0|	  }
 4025|      0|	  else {
 4026|      0|	    swap_node(np, node);
 4027|      0|	    onig_node_free(np);
 4028|      0|	  }
 4029|      0|	  break; /* break case NT_QTFR: */
 4030|      0|	}
 4031|  1.46k|      }
 4032|       |
 4033|       |#ifdef USE_OP_PUSH_OR_JUMP_EXACT
 4034|       |      if (qn->greedy && (qn->target_empty_info != 0)) {
 4035|       |	if (NTYPE(target) == NT_QTFR) {
 4036|       |	  QtfrNode* tqn = NQTFR(target);
 4037|       |	  if (IS_NOT_NULL(tqn->head_exact)) {
 4038|       |	    qn->head_exact  = tqn->head_exact;
 4039|       |	    tqn->head_exact = NULL;
 4040|       |	  }
 4041|       |	}
 4042|       |	else {
 4043|       |	  qn->head_exact = get_head_value_node(qn->target, 1, reg);
 4044|       |	}
 4045|       |      }
 4046|       |#endif
 4047|  43.3k|    }
 4048|  43.3k|    break;
 4049|       |
 4050|  43.3k|  case NT_ENCLOSE:
  ------------------
  |  |   44|  8.84k|#define NT_ENCLOSE     6
  ------------------
  |  Branch (4050:3): [True: 8.84k, False: 240k]
  ------------------
 4051|  8.84k|    {
 4052|  8.84k|      EncloseNode* en = NENCLOSE(node);
  ------------------
  |  |   81|  8.84k|#define NENCLOSE(node)     (&((node)->u.enclose))
  ------------------
 4053|       |
 4054|  8.84k|      switch (en->type) {
  ------------------
  |  Branch (4054:15): [True: 0, False: 8.84k]
  ------------------
 4055|  1.45k|      case ENCLOSE_OPTION:
  ------------------
  |  |   95|  1.45k|#define ENCLOSE_OPTION           (1<<1)
  ------------------
  |  Branch (4055:7): [True: 1.45k, False: 7.38k]
  ------------------
 4056|  1.45k|	{
 4057|  1.45k|	  OnigOptionType options = reg->options;
 4058|  1.45k|	  reg->options = NENCLOSE(node)->option;
  ------------------
  |  |   81|  1.45k|#define NENCLOSE(node)     (&((node)->u.enclose))
  ------------------
 4059|  1.45k|	  r = setup_tree(NENCLOSE(node)->target, reg, state, env);
  ------------------
  |  |   81|  1.45k|#define NENCLOSE(node)     (&((node)->u.enclose))
  ------------------
 4060|  1.45k|	  reg->options = options;
 4061|  1.45k|	}
 4062|  1.45k|	break;
 4063|       |
 4064|  7.38k|      case ENCLOSE_MEMORY:
  ------------------
  |  |   94|  7.38k|#define ENCLOSE_MEMORY           (1<<0)
  ------------------
  |  Branch (4064:7): [True: 7.38k, False: 1.45k]
  ------------------
 4065|  7.38k|	if ((state & (IN_ALT | IN_NOT | IN_VAR_REPEAT | IN_CALL)) != 0) {
  ------------------
  |  | 3268|  7.38k|#define IN_ALT          (1<<0)
  ------------------
              	if ((state & (IN_ALT | IN_NOT | IN_VAR_REPEAT | IN_CALL)) != 0) {
  ------------------
  |  | 3269|  7.38k|#define IN_NOT          (1<<1)
  ------------------
              	if ((state & (IN_ALT | IN_NOT | IN_VAR_REPEAT | IN_CALL)) != 0) {
  ------------------
  |  | 3271|  7.38k|#define IN_VAR_REPEAT   (1<<3)
  ------------------
              	if ((state & (IN_ALT | IN_NOT | IN_VAR_REPEAT | IN_CALL)) != 0) {
  ------------------
  |  | 3272|  7.38k|#define IN_CALL         (1<<4)
  ------------------
  |  Branch (4065:6): [True: 0, False: 7.38k]
  ------------------
 4066|      0|	  BIT_STATUS_ON_AT(env->bt_mem_start, en->regnum);
  ------------------
  |  |  373|      0|#define BIT_STATUS_ON_AT(stats,n) do {\
  |  |  374|      0|  if ((n) < (int )BIT_STATUS_BITS_NUM)\
  |  |  ------------------
  |  |  |  |  367|      0|#define BIT_STATUS_BITS_NUM          (sizeof(BitStatusType) * 8)
  |  |  ------------------
  |  |  |  Branch (374:7): [True: 0, False: 0]
  |  |  ------------------
  |  |  375|      0|    (stats) |= (1 << (n));\
  |  |  376|      0|  else\
  |  |  377|      0|    (stats) |= 1;\
  |  |  378|      0|} while (0)
  |  |  ------------------
  |  |  |  Branch (378:10): [Folded - Ignored]
  |  |  ------------------
  ------------------
 4067|       |	  /* SET_ENCLOSE_STATUS(node, NST_MEM_IN_ALT_NOT); */
 4068|      0|	}
 4069|  7.38k|	if (IS_ENCLOSE_CALLED(en))
  ------------------
  |  |  147|  7.38k|#define IS_ENCLOSE_CALLED(en)          (((en)->state & NST_CALLED)        != 0)
  |  |  ------------------
  |  |  |  |  136|  7.38k|#define NST_CALLED                (1<<8)
  |  |  ------------------
  |  |  |  Branch (147:40): [True: 0, False: 7.38k]
  |  |  ------------------
  ------------------
 4070|      0|	  state |= IN_CALL;
  ------------------
  |  | 3272|      0|#define IN_CALL         (1<<4)
  ------------------
 4071|  7.38k|	if (IS_ENCLOSE_RECURSION(en))
  ------------------
  |  |  149|  7.38k|#define IS_ENCLOSE_RECURSION(en)       (((en)->state & NST_RECURSION)     != 0)
  |  |  ------------------
  |  |  |  |  135|  7.38k|#define NST_RECURSION             (1<<7)
  |  |  ------------------
  |  |  |  Branch (149:40): [True: 0, False: 7.38k]
  |  |  ------------------
  ------------------
 4072|      0|	  state |= IN_RECCALL;
  ------------------
  |  | 3273|      0|#define IN_RECCALL      (1<<5)
  ------------------
 4073|  7.38k|	else if ((state & IN_RECCALL) != 0)
  ------------------
  |  | 3273|  7.38k|#define IN_RECCALL      (1<<5)
  ------------------
  |  Branch (4073:11): [True: 0, False: 7.38k]
  ------------------
 4074|      0|	  SET_CALL_RECURSION(node);
  ------------------
  |  |  160|      0|#define SET_CALL_RECURSION(node)       (node)->u.call.state |= NST_RECURSION
  |  |  ------------------
  |  |  |  |  135|      0|#define NST_RECURSION             (1<<7)
  |  |  ------------------
  ------------------
 4075|  7.38k|	r = setup_tree(en->target, reg, state, env);
 4076|  7.38k|	break;
 4077|       |
 4078|      0|      case ENCLOSE_STOP_BACKTRACK:
  ------------------
  |  |   96|      0|#define ENCLOSE_STOP_BACKTRACK   (1<<2)
  ------------------
  |  Branch (4078:7): [True: 0, False: 8.84k]
  ------------------
 4079|      0|	{
 4080|      0|	  Node* target = en->target;
 4081|      0|	  r = setup_tree(target, reg, state, env);
 4082|      0|	  if (NTYPE(target) == NT_QTFR) {
  ------------------
  |  |   69|      0|#define NTYPE(node)             ((node)->u.base.type)
  ------------------
              	  if (NTYPE(target) == NT_QTFR) {
  ------------------
  |  |   43|      0|#define NT_QTFR        5
  ------------------
  |  Branch (4082:8): [True: 0, False: 0]
  ------------------
 4083|      0|	    QtfrNode* tqn = NQTFR(target);
  ------------------
  |  |   80|      0|#define NQTFR(node)        (&((node)->u.qtfr))
  ------------------
 4084|      0|	    if (IS_REPEAT_INFINITE(tqn->upper) && tqn->lower <= 1 &&
  ------------------
  |  |  422|      0|#define IS_REPEAT_INFINITE(n)   ((n) == REPEAT_INFINITE)
  |  |  ------------------
  |  |  |  |  421|      0|#define REPEAT_INFINITE         -1
  |  |  ------------------
  |  |  |  Branch (422:33): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  |  Branch (4084:44): [True: 0, False: 0]
  ------------------
 4085|      0|		tqn->greedy != 0) {  /* (?>a*), a*+ etc... */
  ------------------
  |  Branch (4085:3): [True: 0, False: 0]
  ------------------
 4086|      0|	      int qtype = NTYPE(tqn->target);
  ------------------
  |  |   69|      0|#define NTYPE(node)             ((node)->u.base.type)
  ------------------
 4087|      0|	      if (IS_NODE_TYPE_SIMPLE(qtype))
  ------------------
  |  |   66|      0|  ((NTYPE2BIT(type) & (BIT_NT_STR | BIT_NT_CCLASS | BIT_NT_CTYPE |\
  |  |  ------------------
  |  |  |  |   51|      0|#define NTYPE2BIT(type)      (1<<(type))
  |  |  ------------------
  |  |                 ((NTYPE2BIT(type) & (BIT_NT_STR | BIT_NT_CCLASS | BIT_NT_CTYPE |\
  |  |  ------------------
  |  |  |  |   53|      0|#define BIT_NT_STR        NTYPE2BIT(NT_STR)
  |  |  |  |  ------------------
  |  |  |  |  |  |   51|      0|#define NTYPE2BIT(type)      (1<<(type))
  |  |  |  |  ------------------
  |  |  ------------------
  |  |                 ((NTYPE2BIT(type) & (BIT_NT_STR | BIT_NT_CCLASS | BIT_NT_CTYPE |\
  |  |  ------------------
  |  |  |  |   54|      0|#define BIT_NT_CCLASS     NTYPE2BIT(NT_CCLASS)
  |  |  |  |  ------------------
  |  |  |  |  |  |   51|      0|#define NTYPE2BIT(type)      (1<<(type))
  |  |  |  |  ------------------
  |  |  ------------------
  |  |                 ((NTYPE2BIT(type) & (BIT_NT_STR | BIT_NT_CCLASS | BIT_NT_CTYPE |\
  |  |  ------------------
  |  |  |  |   55|      0|#define BIT_NT_CTYPE      NTYPE2BIT(NT_CTYPE)
  |  |  |  |  ------------------
  |  |  |  |  |  |   51|      0|#define NTYPE2BIT(type)      (1<<(type))
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  |  Branch (66:3): [True: 0, False: 0]
  |  |  ------------------
  |  |   67|      0|                       BIT_NT_CANY | BIT_NT_BREF)) != 0)
  |  |  ------------------
  |  |  |  |   56|      0|#define BIT_NT_CANY       NTYPE2BIT(NT_CANY)
  |  |  |  |  ------------------
  |  |  |  |  |  |   51|      0|#define NTYPE2BIT(type)      (1<<(type))
  |  |  |  |  ------------------
  |  |  ------------------
  |  |                                      BIT_NT_CANY | BIT_NT_BREF)) != 0)
  |  |  ------------------
  |  |  |  |   57|      0|#define BIT_NT_BREF       NTYPE2BIT(NT_BREF)
  |  |  |  |  ------------------
  |  |  |  |  |  |   51|      0|#define NTYPE2BIT(type)      (1<<(type))
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 4088|      0|		SET_ENCLOSE_STATUS(node, NST_STOP_BT_SIMPLE_REPEAT);
  ------------------
  |  |  144|      0|#define SET_ENCLOSE_STATUS(node,f)      (node)->u.enclose.state |=  (f)
  ------------------
 4089|      0|	    }
 4090|      0|	  }
 4091|      0|	}
 4092|      0|	break;
 4093|       |
 4094|      0|      case ENCLOSE_CONDITION:
  ------------------
  |  |   97|      0|#define ENCLOSE_CONDITION        (1<<3)
  ------------------
  |  Branch (4094:7): [True: 0, False: 8.84k]
  ------------------
 4095|      0|#ifdef USE_NAMED_GROUP
 4096|      0|	if (! IS_ENCLOSE_NAME_REF(NENCLOSE(node)) &&
  ------------------
  |  |  158|      0|#define IS_ENCLOSE_NAME_REF(en)        (((en)->state & NST_NAME_REF)      != 0)
  |  |  ------------------
  |  |  |  |  139|      0|#define NST_NAME_REF              (1<<11)
  |  |  ------------------
  ------------------
  |  Branch (4096:6): [True: 0, False: 0]
  ------------------
 4097|      0|	    env->num_named > 0 &&
  ------------------
  |  Branch (4097:6): [True: 0, False: 0]
  ------------------
 4098|      0|	    IS_SYNTAX_BV(env->syntax, ONIG_SYN_CAPTURE_ONLY_NAMED_GROUP) &&
  ------------------
  |  |  332|      0|#define IS_SYNTAX_BV(syn, bvm)    (((syn)->behavior & (bvm)) != 0)
  |  |  ------------------
  |  |  |  Branch (332:35): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 4099|      0|	    !ONIG_IS_OPTION_ON(env->option, ONIG_OPTION_CAPTURE_GROUP)) {
  ------------------
  |  |  479|      0|#define ONIG_IS_OPTION_ON(options,option)   ((options) & (option))
  ------------------
  |  Branch (4099:6): [True: 0, False: 0]
  ------------------
 4100|      0|	  return ONIGERR_NUMBERED_BACKREF_OR_CALL_NOT_ALLOWED;
  ------------------
  |  |  678|      0|#define ONIGERR_NUMBERED_BACKREF_OR_CALL_NOT_ALLOWED         -209
  ------------------
 4101|      0|	}
 4102|      0|#endif
 4103|      0|	if (NENCLOSE(node)->regnum > env->num_mem)
  ------------------
  |  |   81|      0|#define NENCLOSE(node)     (&((node)->u.enclose))
  ------------------
  |  Branch (4103:6): [True: 0, False: 0]
  ------------------
 4104|      0|	  return ONIGERR_INVALID_BACKREF;
  ------------------
  |  |  677|      0|#define ONIGERR_INVALID_BACKREF                              -208
  ------------------
 4105|      0|	r = setup_tree(NENCLOSE(node)->target, reg, state, env);
  ------------------
  |  |   81|      0|#define NENCLOSE(node)     (&((node)->u.enclose))
  ------------------
 4106|      0|	break;
 4107|       |
 4108|      0|      case ENCLOSE_ABSENT:
  ------------------
  |  |   98|      0|#define ENCLOSE_ABSENT           (1<<4)
  ------------------
  |  Branch (4108:7): [True: 0, False: 8.84k]
  ------------------
 4109|      0|	r = setup_tree(NENCLOSE(node)->target, reg, state, env);
  ------------------
  |  |   81|      0|#define NENCLOSE(node)     (&((node)->u.enclose))
  ------------------
 4110|      0|	break;
 4111|  8.84k|      }
 4112|  8.84k|    }
 4113|  8.84k|    break;
 4114|       |
 4115|  41.9k|  case NT_ANCHOR:
  ------------------
  |  |   45|  41.9k|#define NT_ANCHOR      7
  ------------------
  |  Branch (4115:3): [True: 41.9k, False: 207k]
  ------------------
 4116|  41.9k|    {
 4117|  41.9k|      AnchorNode* an = NANCHOR(node);
  ------------------
  |  |   82|  41.9k|#define NANCHOR(node)      (&((node)->u.anchor))
  ------------------
 4118|       |
 4119|  41.9k|      switch (an->type) {
  ------------------
  |  Branch (4119:15): [True: 41.9k, False: 0]
  ------------------
 4120|      0|      case ANCHOR_PREC_READ:
  ------------------
  |  |  551|      0|#define ANCHOR_PREC_READ        (1<<10)
  ------------------
  |  Branch (4120:7): [True: 0, False: 41.9k]
  ------------------
 4121|      0|	r = setup_tree(an->target, reg, state, env);
 4122|      0|	break;
 4123|      0|      case ANCHOR_PREC_READ_NOT:
  ------------------
  |  |  552|      0|#define ANCHOR_PREC_READ_NOT    (1<<11)
  ------------------
  |  Branch (4123:7): [True: 0, False: 41.9k]
  ------------------
 4124|      0|	r = setup_tree(an->target, reg, (state | IN_NOT), env);
  ------------------
  |  | 3269|      0|#define IN_NOT          (1<<1)
  ------------------
 4125|      0|	break;
 4126|       |
 4127|       |/* allowed node types in look-behind */
 4128|      0|#define ALLOWED_TYPE_IN_LB  \
 4129|      0|  ( BIT_NT_LIST | BIT_NT_ALT | BIT_NT_STR | BIT_NT_CCLASS | BIT_NT_CTYPE | \
 4130|      0|    BIT_NT_CANY | BIT_NT_ANCHOR | BIT_NT_ENCLOSE | BIT_NT_QTFR | BIT_NT_CALL )
 4131|       |
 4132|      0|#define ALLOWED_ENCLOSE_IN_LB       ( ENCLOSE_MEMORY | ENCLOSE_OPTION )
 4133|      0|#define ALLOWED_ENCLOSE_IN_LB_NOT   ENCLOSE_OPTION
 4134|       |
 4135|      0|#define ALLOWED_ANCHOR_IN_LB \
 4136|      0|( ANCHOR_LOOK_BEHIND | ANCHOR_LOOK_BEHIND_NOT | ANCHOR_BEGIN_LINE | \
 4137|      0|  ANCHOR_END_LINE | ANCHOR_BEGIN_BUF | ANCHOR_BEGIN_POSITION | ANCHOR_KEEP | \
 4138|      0|  ANCHOR_WORD_BOUND | ANCHOR_NOT_WORD_BOUND | \
 4139|      0|  ANCHOR_WORD_BEGIN | ANCHOR_WORD_END )
 4140|      0|#define ALLOWED_ANCHOR_IN_LB_NOT \
 4141|      0|( ANCHOR_LOOK_BEHIND | ANCHOR_LOOK_BEHIND_NOT | ANCHOR_BEGIN_LINE | \
 4142|      0|  ANCHOR_END_LINE | ANCHOR_BEGIN_BUF | ANCHOR_BEGIN_POSITION | ANCHOR_KEEP | \
 4143|      0|  ANCHOR_WORD_BOUND | ANCHOR_NOT_WORD_BOUND | \
 4144|      0|  ANCHOR_WORD_BEGIN | ANCHOR_WORD_END )
 4145|       |
 4146|      0|      case ANCHOR_LOOK_BEHIND:
  ------------------
  |  |  553|      0|#define ANCHOR_LOOK_BEHIND      (1<<12)
  ------------------
  |  Branch (4146:7): [True: 0, False: 41.9k]
  ------------------
 4147|      0|	{
 4148|      0|	  r = check_type_tree(an->target, ALLOWED_TYPE_IN_LB,
  ------------------
  |  | 4129|      0|  ( BIT_NT_LIST | BIT_NT_ALT | BIT_NT_STR | BIT_NT_CCLASS | BIT_NT_CTYPE | \
  |  |  ------------------
  |  |  |  |   61|      0|#define BIT_NT_LIST       NTYPE2BIT(NT_LIST)
  |  |  |  |  ------------------
  |  |  |  |  |  |   51|      0|#define NTYPE2BIT(type)      (1<<(type))
  |  |  |  |  ------------------
  |  |  ------------------
  |  |                 ( BIT_NT_LIST | BIT_NT_ALT | BIT_NT_STR | BIT_NT_CCLASS | BIT_NT_CTYPE | \
  |  |  ------------------
  |  |  |  |   62|      0|#define BIT_NT_ALT        NTYPE2BIT(NT_ALT)
  |  |  |  |  ------------------
  |  |  |  |  |  |   51|      0|#define NTYPE2BIT(type)      (1<<(type))
  |  |  |  |  ------------------
  |  |  ------------------
  |  |                 ( BIT_NT_LIST | BIT_NT_ALT | BIT_NT_STR | BIT_NT_CCLASS | BIT_NT_CTYPE | \
  |  |  ------------------
  |  |  |  |   53|      0|#define BIT_NT_STR        NTYPE2BIT(NT_STR)
  |  |  |  |  ------------------
  |  |  |  |  |  |   51|      0|#define NTYPE2BIT(type)      (1<<(type))
  |  |  |  |  ------------------
  |  |  ------------------
  |  |                 ( BIT_NT_LIST | BIT_NT_ALT | BIT_NT_STR | BIT_NT_CCLASS | BIT_NT_CTYPE | \
  |  |  ------------------
  |  |  |  |   54|      0|#define BIT_NT_CCLASS     NTYPE2BIT(NT_CCLASS)
  |  |  |  |  ------------------
  |  |  |  |  |  |   51|      0|#define NTYPE2BIT(type)      (1<<(type))
  |  |  |  |  ------------------
  |  |  ------------------
  |  |                 ( BIT_NT_LIST | BIT_NT_ALT | BIT_NT_STR | BIT_NT_CCLASS | BIT_NT_CTYPE | \
  |  |  ------------------
  |  |  |  |   55|      0|#define BIT_NT_CTYPE      NTYPE2BIT(NT_CTYPE)
  |  |  |  |  ------------------
  |  |  |  |  |  |   51|      0|#define NTYPE2BIT(type)      (1<<(type))
  |  |  |  |  ------------------
  |  |  ------------------
  |  | 4130|      0|    BIT_NT_CANY | BIT_NT_ANCHOR | BIT_NT_ENCLOSE | BIT_NT_QTFR | BIT_NT_CALL )
  |  |  ------------------
  |  |  |  |   56|      0|#define BIT_NT_CANY       NTYPE2BIT(NT_CANY)
  |  |  |  |  ------------------
  |  |  |  |  |  |   51|      0|#define NTYPE2BIT(type)      (1<<(type))
  |  |  |  |  ------------------
  |  |  ------------------
  |  |                   BIT_NT_CANY | BIT_NT_ANCHOR | BIT_NT_ENCLOSE | BIT_NT_QTFR | BIT_NT_CALL )
  |  |  ------------------
  |  |  |  |   60|      0|#define BIT_NT_ANCHOR     NTYPE2BIT(NT_ANCHOR)
  |  |  |  |  ------------------
  |  |  |  |  |  |   51|      0|#define NTYPE2BIT(type)      (1<<(type))
  |  |  |  |  ------------------
  |  |  ------------------
  |  |                   BIT_NT_CANY | BIT_NT_ANCHOR | BIT_NT_ENCLOSE | BIT_NT_QTFR | BIT_NT_CALL )
  |  |  ------------------
  |  |  |  |   59|      0|#define BIT_NT_ENCLOSE    NTYPE2BIT(NT_ENCLOSE)
  |  |  |  |  ------------------
  |  |  |  |  |  |   51|      0|#define NTYPE2BIT(type)      (1<<(type))
  |  |  |  |  ------------------
  |  |  ------------------
  |  |                   BIT_NT_CANY | BIT_NT_ANCHOR | BIT_NT_ENCLOSE | BIT_NT_QTFR | BIT_NT_CALL )
  |  |  ------------------
  |  |  |  |   58|      0|#define BIT_NT_QTFR       NTYPE2BIT(NT_QTFR)
  |  |  |  |  ------------------
  |  |  |  |  |  |   51|      0|#define NTYPE2BIT(type)      (1<<(type))
  |  |  |  |  ------------------
  |  |  ------------------
  |  |                   BIT_NT_CANY | BIT_NT_ANCHOR | BIT_NT_ENCLOSE | BIT_NT_QTFR | BIT_NT_CALL )
  |  |  ------------------
  |  |  |  |   63|      0|#define BIT_NT_CALL       NTYPE2BIT(NT_CALL)
  |  |  |  |  ------------------
  |  |  |  |  |  |   51|      0|#define NTYPE2BIT(type)      (1<<(type))
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 4149|      0|			      ALLOWED_ENCLOSE_IN_LB, ALLOWED_ANCHOR_IN_LB);
  ------------------
  |  | 4132|      0|#define ALLOWED_ENCLOSE_IN_LB       ( ENCLOSE_MEMORY | ENCLOSE_OPTION )
  |  |  ------------------
  |  |  |  |   94|      0|#define ENCLOSE_MEMORY           (1<<0)
  |  |  ------------------
  |  |               #define ALLOWED_ENCLOSE_IN_LB       ( ENCLOSE_MEMORY | ENCLOSE_OPTION )
  |  |  ------------------
  |  |  |  |   95|      0|#define ENCLOSE_OPTION           (1<<1)
  |  |  ------------------
  ------------------
              			      ALLOWED_ENCLOSE_IN_LB, ALLOWED_ANCHOR_IN_LB);
  ------------------
  |  | 4135|      0|#define ALLOWED_ANCHOR_IN_LB \
  |  | 4136|      0|( ANCHOR_LOOK_BEHIND | ANCHOR_LOOK_BEHIND_NOT | ANCHOR_BEGIN_LINE | \
  |  |  ------------------
  |  |  |  |  553|      0|#define ANCHOR_LOOK_BEHIND      (1<<12)
  |  |  ------------------
  |  |               ( ANCHOR_LOOK_BEHIND | ANCHOR_LOOK_BEHIND_NOT | ANCHOR_BEGIN_LINE | \
  |  |  ------------------
  |  |  |  |  554|      0|#define ANCHOR_LOOK_BEHIND_NOT  (1<<13)
  |  |  ------------------
  |  |               ( ANCHOR_LOOK_BEHIND | ANCHOR_LOOK_BEHIND_NOT | ANCHOR_BEGIN_LINE | \
  |  |  ------------------
  |  |  |  |  541|      0|#define ANCHOR_BEGIN_LINE       (1<<1)
  |  |  ------------------
  |  | 4137|      0|  ANCHOR_END_LINE | ANCHOR_BEGIN_BUF | ANCHOR_BEGIN_POSITION | ANCHOR_KEEP | \
  |  |  ------------------
  |  |  |  |  545|      0|#define ANCHOR_END_LINE         (1<<5)
  |  |  ------------------
  |  |                 ANCHOR_END_LINE | ANCHOR_BEGIN_BUF | ANCHOR_BEGIN_POSITION | ANCHOR_KEEP | \
  |  |  ------------------
  |  |  |  |  540|      0|#define ANCHOR_BEGIN_BUF        (1<<0)
  |  |  ------------------
  |  |                 ANCHOR_END_LINE | ANCHOR_BEGIN_BUF | ANCHOR_BEGIN_POSITION | ANCHOR_KEEP | \
  |  |  ------------------
  |  |  |  |  542|      0|#define ANCHOR_BEGIN_POSITION   (1<<2)
  |  |  ------------------
  |  |                 ANCHOR_END_LINE | ANCHOR_BEGIN_BUF | ANCHOR_BEGIN_POSITION | ANCHOR_KEEP | \
  |  |  ------------------
  |  |  |  |  559|      0|#define ANCHOR_KEEP             (1<<16)
  |  |  ------------------
  |  | 4138|      0|  ANCHOR_WORD_BOUND | ANCHOR_NOT_WORD_BOUND | \
  |  |  ------------------
  |  |  |  |  547|      0|#define ANCHOR_WORD_BOUND       (1<<6)
  |  |  ------------------
  |  |                 ANCHOR_WORD_BOUND | ANCHOR_NOT_WORD_BOUND | \
  |  |  ------------------
  |  |  |  |  548|      0|#define ANCHOR_NOT_WORD_BOUND   (1<<7)
  |  |  ------------------
  |  | 4139|      0|  ANCHOR_WORD_BEGIN | ANCHOR_WORD_END )
  |  |  ------------------
  |  |  |  |  549|      0|#define ANCHOR_WORD_BEGIN       (1<<8)
  |  |  ------------------
  |  |                 ANCHOR_WORD_BEGIN | ANCHOR_WORD_END )
  |  |  ------------------
  |  |  |  |  550|      0|#define ANCHOR_WORD_END         (1<<9)
  |  |  ------------------
  ------------------
 4150|      0|	  if (r < 0) return r;
  ------------------
  |  Branch (4150:8): [True: 0, False: 0]
  ------------------
 4151|      0|	  if (r > 0) return ONIGERR_INVALID_LOOK_BEHIND_PATTERN;
  ------------------
  |  |  665|      0|#define ONIGERR_INVALID_LOOK_BEHIND_PATTERN                  -122
  ------------------
  |  Branch (4151:8): [True: 0, False: 0]
  ------------------
 4152|      0|	  if (NTYPE(node) != NT_ANCHOR) goto restart;
  ------------------
  |  |   69|      0|#define NTYPE(node)             ((node)->u.base.type)
  ------------------
              	  if (NTYPE(node) != NT_ANCHOR) goto restart;
  ------------------
  |  |   45|      0|#define NT_ANCHOR      7
  ------------------
  |  Branch (4152:8): [True: 0, False: 0]
  ------------------
 4153|      0|	  r = setup_tree(an->target, reg, (state | IN_LOOK_BEHIND), env);
  ------------------
  |  | 3274|      0|#define IN_LOOK_BEHIND  (1<<6)
  ------------------
 4154|      0|	  if (r != 0) return r;
  ------------------
  |  Branch (4154:8): [True: 0, False: 0]
  ------------------
 4155|      0|	  r = setup_look_behind(node, reg, env);
 4156|      0|	}
 4157|      0|	break;
 4158|       |
 4159|      0|      case ANCHOR_LOOK_BEHIND_NOT:
  ------------------
  |  |  554|      0|#define ANCHOR_LOOK_BEHIND_NOT  (1<<13)
  ------------------
  |  Branch (4159:7): [True: 0, False: 41.9k]
  ------------------
 4160|      0|	{
 4161|      0|	  r = check_type_tree(an->target, ALLOWED_TYPE_IN_LB,
  ------------------
  |  | 4129|      0|  ( BIT_NT_LIST | BIT_NT_ALT | BIT_NT_STR | BIT_NT_CCLASS | BIT_NT_CTYPE | \
  |  |  ------------------
  |  |  |  |   61|      0|#define BIT_NT_LIST       NTYPE2BIT(NT_LIST)
  |  |  |  |  ------------------
  |  |  |  |  |  |   51|      0|#define NTYPE2BIT(type)      (1<<(type))
  |  |  |  |  ------------------
  |  |  ------------------
  |  |                 ( BIT_NT_LIST | BIT_NT_ALT | BIT_NT_STR | BIT_NT_CCLASS | BIT_NT_CTYPE | \
  |  |  ------------------
  |  |  |  |   62|      0|#define BIT_NT_ALT        NTYPE2BIT(NT_ALT)
  |  |  |  |  ------------------
  |  |  |  |  |  |   51|      0|#define NTYPE2BIT(type)      (1<<(type))
  |  |  |  |  ------------------
  |  |  ------------------
  |  |                 ( BIT_NT_LIST | BIT_NT_ALT | BIT_NT_STR | BIT_NT_CCLASS | BIT_NT_CTYPE | \
  |  |  ------------------
  |  |  |  |   53|      0|#define BIT_NT_STR        NTYPE2BIT(NT_STR)
  |  |  |  |  ------------------
  |  |  |  |  |  |   51|      0|#define NTYPE2BIT(type)      (1<<(type))
  |  |  |  |  ------------------
  |  |  ------------------
  |  |                 ( BIT_NT_LIST | BIT_NT_ALT | BIT_NT_STR | BIT_NT_CCLASS | BIT_NT_CTYPE | \
  |  |  ------------------
  |  |  |  |   54|      0|#define BIT_NT_CCLASS     NTYPE2BIT(NT_CCLASS)
  |  |  |  |  ------------------
  |  |  |  |  |  |   51|      0|#define NTYPE2BIT(type)      (1<<(type))
  |  |  |  |  ------------------
  |  |  ------------------
  |  |                 ( BIT_NT_LIST | BIT_NT_ALT | BIT_NT_STR | BIT_NT_CCLASS | BIT_NT_CTYPE | \
  |  |  ------------------
  |  |  |  |   55|      0|#define BIT_NT_CTYPE      NTYPE2BIT(NT_CTYPE)
  |  |  |  |  ------------------
  |  |  |  |  |  |   51|      0|#define NTYPE2BIT(type)      (1<<(type))
  |  |  |  |  ------------------
  |  |  ------------------
  |  | 4130|      0|    BIT_NT_CANY | BIT_NT_ANCHOR | BIT_NT_ENCLOSE | BIT_NT_QTFR | BIT_NT_CALL )
  |  |  ------------------
  |  |  |  |   56|      0|#define BIT_NT_CANY       NTYPE2BIT(NT_CANY)
  |  |  |  |  ------------------
  |  |  |  |  |  |   51|      0|#define NTYPE2BIT(type)      (1<<(type))
  |  |  |  |  ------------------
  |  |  ------------------
  |  |                   BIT_NT_CANY | BIT_NT_ANCHOR | BIT_NT_ENCLOSE | BIT_NT_QTFR | BIT_NT_CALL )
  |  |  ------------------
  |  |  |  |   60|      0|#define BIT_NT_ANCHOR     NTYPE2BIT(NT_ANCHOR)
  |  |  |  |  ------------------
  |  |  |  |  |  |   51|      0|#define NTYPE2BIT(type)      (1<<(type))
  |  |  |  |  ------------------
  |  |  ------------------
  |  |                   BIT_NT_CANY | BIT_NT_ANCHOR | BIT_NT_ENCLOSE | BIT_NT_QTFR | BIT_NT_CALL )
  |  |  ------------------
  |  |  |  |   59|      0|#define BIT_NT_ENCLOSE    NTYPE2BIT(NT_ENCLOSE)
  |  |  |  |  ------------------
  |  |  |  |  |  |   51|      0|#define NTYPE2BIT(type)      (1<<(type))
  |  |  |  |  ------------------
  |  |  ------------------
  |  |                   BIT_NT_CANY | BIT_NT_ANCHOR | BIT_NT_ENCLOSE | BIT_NT_QTFR | BIT_NT_CALL )
  |  |  ------------------
  |  |  |  |   58|      0|#define BIT_NT_QTFR       NTYPE2BIT(NT_QTFR)
  |  |  |  |  ------------------
  |  |  |  |  |  |   51|      0|#define NTYPE2BIT(type)      (1<<(type))
  |  |  |  |  ------------------
  |  |  ------------------
  |  |                   BIT_NT_CANY | BIT_NT_ANCHOR | BIT_NT_ENCLOSE | BIT_NT_QTFR | BIT_NT_CALL )
  |  |  ------------------
  |  |  |  |   63|      0|#define BIT_NT_CALL       NTYPE2BIT(NT_CALL)
  |  |  |  |  ------------------
  |  |  |  |  |  |   51|      0|#define NTYPE2BIT(type)      (1<<(type))
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 4162|      0|		      ALLOWED_ENCLOSE_IN_LB_NOT, ALLOWED_ANCHOR_IN_LB_NOT);
  ------------------
  |  | 4133|      0|#define ALLOWED_ENCLOSE_IN_LB_NOT   ENCLOSE_OPTION
  |  |  ------------------
  |  |  |  |   95|      0|#define ENCLOSE_OPTION           (1<<1)
  |  |  ------------------
  ------------------
              		      ALLOWED_ENCLOSE_IN_LB_NOT, ALLOWED_ANCHOR_IN_LB_NOT);
  ------------------
  |  | 4140|      0|#define ALLOWED_ANCHOR_IN_LB_NOT \
  |  | 4141|      0|( ANCHOR_LOOK_BEHIND | ANCHOR_LOOK_BEHIND_NOT | ANCHOR_BEGIN_LINE | \
  |  |  ------------------
  |  |  |  |  553|      0|#define ANCHOR_LOOK_BEHIND      (1<<12)
  |  |  ------------------
  |  |               ( ANCHOR_LOOK_BEHIND | ANCHOR_LOOK_BEHIND_NOT | ANCHOR_BEGIN_LINE | \
  |  |  ------------------
  |  |  |  |  554|      0|#define ANCHOR_LOOK_BEHIND_NOT  (1<<13)
  |  |  ------------------
  |  |               ( ANCHOR_LOOK_BEHIND | ANCHOR_LOOK_BEHIND_NOT | ANCHOR_BEGIN_LINE | \
  |  |  ------------------
  |  |  |  |  541|      0|#define ANCHOR_BEGIN_LINE       (1<<1)
  |  |  ------------------
  |  | 4142|      0|  ANCHOR_END_LINE | ANCHOR_BEGIN_BUF | ANCHOR_BEGIN_POSITION | ANCHOR_KEEP | \
  |  |  ------------------
  |  |  |  |  545|      0|#define ANCHOR_END_LINE         (1<<5)
  |  |  ------------------
  |  |                 ANCHOR_END_LINE | ANCHOR_BEGIN_BUF | ANCHOR_BEGIN_POSITION | ANCHOR_KEEP | \
  |  |  ------------------
  |  |  |  |  540|      0|#define ANCHOR_BEGIN_BUF        (1<<0)
  |  |  ------------------
  |  |                 ANCHOR_END_LINE | ANCHOR_BEGIN_BUF | ANCHOR_BEGIN_POSITION | ANCHOR_KEEP | \
  |  |  ------------------
  |  |  |  |  542|      0|#define ANCHOR_BEGIN_POSITION   (1<<2)
  |  |  ------------------
  |  |                 ANCHOR_END_LINE | ANCHOR_BEGIN_BUF | ANCHOR_BEGIN_POSITION | ANCHOR_KEEP | \
  |  |  ------------------
  |  |  |  |  559|      0|#define ANCHOR_KEEP             (1<<16)
  |  |  ------------------
  |  | 4143|      0|  ANCHOR_WORD_BOUND | ANCHOR_NOT_WORD_BOUND | \
  |  |  ------------------
  |  |  |  |  547|      0|#define ANCHOR_WORD_BOUND       (1<<6)
  |  |  ------------------
  |  |                 ANCHOR_WORD_BOUND | ANCHOR_NOT_WORD_BOUND | \
  |  |  ------------------
  |  |  |  |  548|      0|#define ANCHOR_NOT_WORD_BOUND   (1<<7)
  |  |  ------------------
  |  | 4144|      0|  ANCHOR_WORD_BEGIN | ANCHOR_WORD_END )
  |  |  ------------------
  |  |  |  |  549|      0|#define ANCHOR_WORD_BEGIN       (1<<8)
  |  |  ------------------
  |  |                 ANCHOR_WORD_BEGIN | ANCHOR_WORD_END )
  |  |  ------------------
  |  |  |  |  550|      0|#define ANCHOR_WORD_END         (1<<9)
  |  |  ------------------
  ------------------
 4163|      0|	  if (r < 0) return r;
  ------------------
  |  Branch (4163:8): [True: 0, False: 0]
  ------------------
 4164|      0|	  if (r > 0) return ONIGERR_INVALID_LOOK_BEHIND_PATTERN;
  ------------------
  |  |  665|      0|#define ONIGERR_INVALID_LOOK_BEHIND_PATTERN                  -122
  ------------------
  |  Branch (4164:8): [True: 0, False: 0]
  ------------------
 4165|      0|	  if (NTYPE(node) != NT_ANCHOR) goto restart;
  ------------------
  |  |   69|      0|#define NTYPE(node)             ((node)->u.base.type)
  ------------------
              	  if (NTYPE(node) != NT_ANCHOR) goto restart;
  ------------------
  |  |   45|      0|#define NT_ANCHOR      7
  ------------------
  |  Branch (4165:8): [True: 0, False: 0]
  ------------------
 4166|      0|	  r = setup_tree(an->target, reg, (state | IN_NOT | IN_LOOK_BEHIND),
  ------------------
  |  | 3269|      0|#define IN_NOT          (1<<1)
  ------------------
              	  r = setup_tree(an->target, reg, (state | IN_NOT | IN_LOOK_BEHIND),
  ------------------
  |  | 3274|      0|#define IN_LOOK_BEHIND  (1<<6)
  ------------------
 4167|      0|			 env);
 4168|      0|	  if (r != 0) return r;
  ------------------
  |  Branch (4168:8): [True: 0, False: 0]
  ------------------
 4169|      0|	  r = setup_look_behind(node, reg, env);
 4170|      0|	}
 4171|      0|	break;
 4172|  41.9k|      }
 4173|  41.9k|    }
 4174|  41.9k|    break;
 4175|       |
 4176|  41.9k|  default:
  ------------------
  |  Branch (4176:3): [True: 0, False: 249k]
  ------------------
 4177|      0|    break;
 4178|   249k|  }
 4179|       |
 4180|   249k|  return r;
 4181|   249k|}
regcomp.c:next_setup:
 3333|   108k|{
 3334|   108k|  int type;
 3335|       |
 3336|   116k| retry:
 3337|   116k|  type = NTYPE(node);
  ------------------
  |  |   69|   116k|#define NTYPE(node)             ((node)->u.base.type)
  ------------------
 3338|   116k|  if (type == NT_QTFR) {
  ------------------
  |  |   43|   116k|#define NT_QTFR        5
  ------------------
  |  Branch (3338:7): [True: 38.9k, False: 77.0k]
  ------------------
 3339|  38.9k|    QtfrNode* qn = NQTFR(node);
  ------------------
  |  |   80|  38.9k|#define NQTFR(node)        (&((node)->u.qtfr))
  ------------------
 3340|  38.9k|    if (qn->greedy && IS_REPEAT_INFINITE(qn->upper)) {
  ------------------
  |  |  422|  37.5k|#define IS_REPEAT_INFINITE(n)   ((n) == REPEAT_INFINITE)
  |  |  ------------------
  |  |  |  |  421|  37.5k|#define REPEAT_INFINITE         -1
  |  |  ------------------
  |  |  |  Branch (422:33): [True: 36.0k, False: 1.46k]
  |  |  ------------------
  ------------------
  |  Branch (3340:9): [True: 37.5k, False: 1.47k]
  ------------------
 3341|  36.0k|#ifdef USE_QTFR_PEEK_NEXT
 3342|  36.0k|      Node* n = get_head_value_node(next_node, 1, reg);
 3343|       |      /* '\0': for UTF-16BE etc... */
 3344|  36.0k|      if (IS_NOT_NULL(n) && NSTR(n)->s[0] != '\0') {
  ------------------
  |  |  312|  72.0k|#define IS_NOT_NULL(p)                (((void*)(p)) != (void*)0)
  |  |  ------------------
  |  |  |  Branch (312:39): [True: 21.5k, False: 14.4k]
  |  |  ------------------
  ------------------
                    if (IS_NOT_NULL(n) && NSTR(n)->s[0] != '\0') {
  ------------------
  |  |   76|  21.5k|#define NSTR(node)         (&((node)->u.str))
  ------------------
  |  Branch (3344:29): [True: 21.5k, False: 0]
  ------------------
 3345|  21.5k|	qn->next_head_exact = n;
 3346|  21.5k|      }
 3347|  36.0k|#endif
 3348|       |      /* automatic possessification a*b ==> (?>a*)b */
 3349|  36.0k|      if (qn->lower <= 1) {
  ------------------
  |  Branch (3349:11): [True: 36.0k, False: 0]
  ------------------
 3350|  36.0k|	int ttype = NTYPE(qn->target);
  ------------------
  |  |   69|  36.0k|#define NTYPE(node)             ((node)->u.base.type)
  ------------------
 3351|  36.0k|	if (IS_NODE_TYPE_SIMPLE(ttype)) {
  ------------------
  |  |   66|  36.0k|  ((NTYPE2BIT(type) & (BIT_NT_STR | BIT_NT_CCLASS | BIT_NT_CTYPE |\
  |  |  ------------------
  |  |  |  |   51|  36.0k|#define NTYPE2BIT(type)      (1<<(type))
  |  |  ------------------
  |  |                 ((NTYPE2BIT(type) & (BIT_NT_STR | BIT_NT_CCLASS | BIT_NT_CTYPE |\
  |  |  ------------------
  |  |  |  |   53|  36.0k|#define BIT_NT_STR        NTYPE2BIT(NT_STR)
  |  |  |  |  ------------------
  |  |  |  |  |  |   51|  36.0k|#define NTYPE2BIT(type)      (1<<(type))
  |  |  |  |  ------------------
  |  |  ------------------
  |  |                 ((NTYPE2BIT(type) & (BIT_NT_STR | BIT_NT_CCLASS | BIT_NT_CTYPE |\
  |  |  ------------------
  |  |  |  |   54|  36.0k|#define BIT_NT_CCLASS     NTYPE2BIT(NT_CCLASS)
  |  |  |  |  ------------------
  |  |  |  |  |  |   51|  36.0k|#define NTYPE2BIT(type)      (1<<(type))
  |  |  |  |  ------------------
  |  |  ------------------
  |  |                 ((NTYPE2BIT(type) & (BIT_NT_STR | BIT_NT_CCLASS | BIT_NT_CTYPE |\
  |  |  ------------------
  |  |  |  |   55|  36.0k|#define BIT_NT_CTYPE      NTYPE2BIT(NT_CTYPE)
  |  |  |  |  ------------------
  |  |  |  |  |  |   51|  36.0k|#define NTYPE2BIT(type)      (1<<(type))
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  |  Branch (66:3): [True: 33.1k, False: 2.86k]
  |  |  ------------------
  |  |   67|  36.0k|                       BIT_NT_CANY | BIT_NT_BREF)) != 0)
  |  |  ------------------
  |  |  |  |   56|  36.0k|#define BIT_NT_CANY       NTYPE2BIT(NT_CANY)
  |  |  |  |  ------------------
  |  |  |  |  |  |   51|  36.0k|#define NTYPE2BIT(type)      (1<<(type))
  |  |  |  |  ------------------
  |  |  ------------------
  |  |                                      BIT_NT_CANY | BIT_NT_BREF)) != 0)
  |  |  ------------------
  |  |  |  |   57|  36.0k|#define BIT_NT_BREF       NTYPE2BIT(NT_BREF)
  |  |  |  |  ------------------
  |  |  |  |  |  |   51|  36.0k|#define NTYPE2BIT(type)      (1<<(type))
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 3352|  33.1k|	  Node *x, *y;
 3353|  33.1k|	  x = get_head_value_node(qn->target, 0, reg);
 3354|  33.1k|	  if (IS_NOT_NULL(x)) {
  ------------------
  |  |  312|  33.1k|#define IS_NOT_NULL(p)                (((void*)(p)) != (void*)0)
  |  |  ------------------
  |  |  |  Branch (312:39): [True: 28.8k, False: 4.34k]
  |  |  ------------------
  ------------------
 3355|  28.8k|	    y = get_head_value_node(next_node,  0, reg);
 3356|  28.8k|	    if (IS_NOT_NULL(y) && is_not_included(x, y, reg)) {
  ------------------
  |  |  312|  57.6k|#define IS_NOT_NULL(p)                (((void*)(p)) != (void*)0)
  |  |  ------------------
  |  |  |  Branch (312:39): [True: 18.7k, False: 10.1k]
  |  |  ------------------
  ------------------
  |  Branch (3356:28): [True: 18.7k, False: 0]
  ------------------
 3357|  18.7k|	      Node* en = onig_node_new_enclose(ENCLOSE_STOP_BACKTRACK);
  ------------------
  |  |   96|  18.7k|#define ENCLOSE_STOP_BACKTRACK   (1<<2)
  ------------------
 3358|  18.7k|	      CHECK_NULL_RETURN_MEMERR(en);
  ------------------
  |  |  314|  18.7k|#define CHECK_NULL_RETURN_MEMERR(p)   if (IS_NULL(p)) return ONIGERR_MEMORY
  |  |  ------------------
  |  |  |  |  311|  18.7k|#define IS_NULL(p)                    (((void*)(p)) == (void*)0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (311:39): [True: 0, False: 18.7k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |               #define CHECK_NULL_RETURN_MEMERR(p)   if (IS_NULL(p)) return ONIGERR_MEMORY
  |  |  ------------------
  |  |  |  |  632|      0|#define ONIGERR_MEMORY                                         -5
  |  |  ------------------
  ------------------
 3359|  18.7k|	      SET_ENCLOSE_STATUS(en, NST_STOP_BT_SIMPLE_REPEAT);
  ------------------
  |  |  144|  18.7k|#define SET_ENCLOSE_STATUS(node,f)      (node)->u.enclose.state |=  (f)
  ------------------
 3360|  18.7k|	      swap_node(node, en);
 3361|  18.7k|	      NENCLOSE(node)->target = en;
  ------------------
  |  |   81|  18.7k|#define NENCLOSE(node)     (&((node)->u.enclose))
  ------------------
 3362|  18.7k|	    }
 3363|  28.8k|	  }
 3364|  33.1k|	}
 3365|  36.0k|      }
 3366|  36.0k|    }
 3367|  38.9k|  }
 3368|  77.0k|  else if (type == NT_ENCLOSE) {
  ------------------
  |  |   44|  77.0k|#define NT_ENCLOSE     6
  ------------------
  |  Branch (3368:12): [True: 8.84k, False: 68.1k]
  ------------------
 3369|  8.84k|    EncloseNode* en = NENCLOSE(node);
  ------------------
  |  |   81|  8.84k|#define NENCLOSE(node)     (&((node)->u.enclose))
  ------------------
 3370|  8.84k|    if (en->type == ENCLOSE_MEMORY) {
  ------------------
  |  |   94|  8.84k|#define ENCLOSE_MEMORY           (1<<0)
  ------------------
  |  Branch (3370:9): [True: 7.38k, False: 1.45k]
  ------------------
 3371|  7.38k|      node = en->target;
 3372|  7.38k|      goto retry;
 3373|  7.38k|    }
 3374|  8.84k|  }
 3375|   108k|  return 0;
 3376|   116k|}
regcomp.c:get_head_value_node:
 2746|   100k|{
 2747|   100k|  Node* n = NULL_NODE;
  ------------------
  |  |  283|   100k|#define NULL_NODE  ((Node* )0)
  ------------------
 2748|       |
 2749|   100k|  switch (NTYPE(node)) {
  ------------------
  |  |   69|   100k|#define NTYPE(node)             ((node)->u.base.type)
  ------------------
 2750|      0|  case NT_BREF:
  ------------------
  |  |   42|      0|#define NT_BREF        4
  ------------------
  |  Branch (2750:3): [True: 0, False: 100k]
  ------------------
 2751|  2.91k|  case NT_ALT:
  ------------------
  |  |   47|  2.91k|#define NT_ALT         9
  ------------------
  |  Branch (2751:3): [True: 2.91k, False: 98.0k]
  ------------------
 2752|  10.1k|  case NT_CANY:
  ------------------
  |  |   41|  10.1k|#define NT_CANY        3
  ------------------
  |  Branch (2752:3): [True: 7.25k, False: 93.6k]
  ------------------
 2753|  10.1k|#ifdef USE_SUBEXP_CALL
 2754|  10.1k|  case NT_CALL:
  ------------------
  |  |   48|  10.1k|#define NT_CALL       10
  ------------------
  |  Branch (2754:3): [True: 0, False: 100k]
  ------------------
 2755|  10.1k|#endif
 2756|  10.1k|    break;
 2757|       |
 2758|      0|  case NT_CTYPE:
  ------------------
  |  |   40|      0|#define NT_CTYPE       2
  ------------------
  |  Branch (2758:3): [True: 0, False: 100k]
  ------------------
 2759|  31.7k|  case NT_CCLASS:
  ------------------
  |  |   39|  31.7k|#define NT_CCLASS      1
  ------------------
  |  Branch (2759:3): [True: 31.7k, False: 69.2k]
  ------------------
 2760|  31.7k|    if (exact == 0) {
  ------------------
  |  Branch (2760:9): [True: 28.8k, False: 2.86k]
  ------------------
 2761|  28.8k|      n = node;
 2762|  28.8k|    }
 2763|  31.7k|    break;
 2764|       |
 2765|      0|  case NT_LIST:
  ------------------
  |  |   46|      0|#define NT_LIST        8
  ------------------
  |  Branch (2765:3): [True: 0, False: 100k]
  ------------------
 2766|      0|    n = get_head_value_node(NCAR(node), exact, reg);
  ------------------
  |  |   86|      0|#define NCAR(node)         (NCONS(node)->car)
  |  |  ------------------
  |  |  |  |   83|      0|#define NCONS(node)        (&((node)->u.cons))
  |  |  ------------------
  ------------------
 2767|      0|    break;
 2768|       |
 2769|  40.2k|  case NT_STR:
  ------------------
  |  |   38|  40.2k|#define NT_STR         0
  ------------------
  |  Branch (2769:3): [True: 40.2k, False: 60.6k]
  ------------------
 2770|  40.2k|    {
 2771|  40.2k|      StrNode* sn = NSTR(node);
  ------------------
  |  |   76|  40.2k|#define NSTR(node)         (&((node)->u.str))
  ------------------
 2772|       |
 2773|  40.2k|      if (sn->end <= sn->s)
  ------------------
  |  Branch (2773:11): [True: 0, False: 40.2k]
  ------------------
 2774|      0|	break;
 2775|       |
 2776|  40.2k|      if (exact == 0 ||
  ------------------
  |  Branch (2776:11): [True: 18.7k, False: 21.5k]
  ------------------
 2777|  40.2k|	  NSTRING_IS_RAW(node) || !IS_IGNORECASE(reg->options)) {
  ------------------
  |  |  114|  61.8k|#define NSTRING_IS_RAW(node)          (((node)->u.str.flag & NSTR_RAW)   != 0)
  |  |  ------------------
  |  |  |  |  104|  21.5k|#define NSTR_RAW                (1<<0) /* by backslashed number */
  |  |  ------------------
  |  |  |  Branch (114:39): [True: 0, False: 21.5k]
  |  |  ------------------
  ------------------
              	  NSTRING_IS_RAW(node) || !IS_IGNORECASE(reg->options)) {
  ------------------
  |  |  396|  21.5k|#define IS_IGNORECASE(option)     ((option) & ONIG_OPTION_IGNORECASE)
  |  |  ------------------
  |  |  |  |  454|  21.5k|#define ONIG_OPTION_IGNORECASE           1U
  |  |  ------------------
  ------------------
  |  Branch (2777:28): [True: 21.5k, False: 0]
  ------------------
 2778|  40.2k|	n = node;
 2779|  40.2k|      }
 2780|  40.2k|    }
 2781|      0|    break;
 2782|       |
 2783|  14.3k|  case NT_QTFR:
  ------------------
  |  |   43|  14.3k|#define NT_QTFR        5
  ------------------
  |  Branch (2783:3): [True: 14.3k, False: 86.5k]
  ------------------
 2784|  14.3k|    {
 2785|  14.3k|      QtfrNode* qn = NQTFR(node);
  ------------------
  |  |   80|  14.3k|#define NQTFR(node)        (&((node)->u.qtfr))
  ------------------
 2786|  14.3k|      if (qn->lower > 0) {
  ------------------
  |  Branch (2786:11): [True: 2.86k, False: 11.5k]
  ------------------
 2787|       |#ifdef USE_OP_PUSH_OR_JUMP_EXACT
 2788|       |	if (IS_NOT_NULL(qn->head_exact))
 2789|       |	  n = qn->head_exact;
 2790|       |	else
 2791|       |#endif
 2792|  2.86k|	  n = get_head_value_node(qn->target, exact, reg);
 2793|  2.86k|      }
 2794|  14.3k|    }
 2795|  14.3k|    break;
 2796|       |
 2797|      0|  case NT_ENCLOSE:
  ------------------
  |  |   44|      0|#define NT_ENCLOSE     6
  ------------------
  |  Branch (2797:3): [True: 0, False: 100k]
  ------------------
 2798|      0|    {
 2799|      0|      EncloseNode* en = NENCLOSE(node);
  ------------------
  |  |   81|      0|#define NENCLOSE(node)     (&((node)->u.enclose))
  ------------------
 2800|      0|      switch (en->type) {
  ------------------
  |  Branch (2800:15): [True: 0, False: 0]
  ------------------
 2801|      0|      case ENCLOSE_OPTION:
  ------------------
  |  |   95|      0|#define ENCLOSE_OPTION           (1<<1)
  ------------------
  |  Branch (2801:7): [True: 0, False: 0]
  ------------------
 2802|      0|	{
 2803|      0|	  OnigOptionType options = reg->options;
 2804|       |
 2805|      0|	  reg->options = NENCLOSE(node)->option;
  ------------------
  |  |   81|      0|#define NENCLOSE(node)     (&((node)->u.enclose))
  ------------------
 2806|      0|	  n = get_head_value_node(NENCLOSE(node)->target, exact, reg);
  ------------------
  |  |   81|      0|#define NENCLOSE(node)     (&((node)->u.enclose))
  ------------------
 2807|      0|	  reg->options = options;
 2808|      0|	}
 2809|      0|	break;
 2810|       |
 2811|      0|      case ENCLOSE_MEMORY:
  ------------------
  |  |   94|      0|#define ENCLOSE_MEMORY           (1<<0)
  ------------------
  |  Branch (2811:7): [True: 0, False: 0]
  ------------------
 2812|      0|      case ENCLOSE_STOP_BACKTRACK:
  ------------------
  |  |   96|      0|#define ENCLOSE_STOP_BACKTRACK   (1<<2)
  ------------------
  |  Branch (2812:7): [True: 0, False: 0]
  ------------------
 2813|      0|      case ENCLOSE_CONDITION:
  ------------------
  |  |   97|      0|#define ENCLOSE_CONDITION        (1<<3)
  ------------------
  |  Branch (2813:7): [True: 0, False: 0]
  ------------------
 2814|      0|	n = get_head_value_node(en->target, exact, reg);
 2815|      0|	break;
 2816|       |
 2817|      0|      case ENCLOSE_ABSENT:
  ------------------
  |  |   98|      0|#define ENCLOSE_ABSENT           (1<<4)
  ------------------
  |  Branch (2817:7): [True: 0, False: 0]
  ------------------
 2818|      0|	break;
 2819|      0|      }
 2820|      0|    }
 2821|      0|    break;
 2822|       |
 2823|  4.41k|  case NT_ANCHOR:
  ------------------
  |  |   45|  4.41k|#define NT_ANCHOR      7
  ------------------
  |  Branch (2823:3): [True: 4.41k, False: 96.5k]
  ------------------
 2824|  4.41k|    if (NANCHOR(node)->type == ANCHOR_PREC_READ)
  ------------------
  |  |   82|  4.41k|#define NANCHOR(node)      (&((node)->u.anchor))
  ------------------
                  if (NANCHOR(node)->type == ANCHOR_PREC_READ)
  ------------------
  |  |  551|  4.41k|#define ANCHOR_PREC_READ        (1<<10)
  ------------------
  |  Branch (2824:9): [True: 0, False: 4.41k]
  ------------------
 2825|      0|      n = get_head_value_node(NANCHOR(node)->target, exact, reg);
  ------------------
  |  |   82|      0|#define NANCHOR(node)      (&((node)->u.anchor))
  ------------------
 2826|  4.41k|    break;
 2827|       |
 2828|      0|  default:
  ------------------
  |  Branch (2828:3): [True: 0, False: 100k]
  ------------------
 2829|      0|    break;
 2830|   100k|  }
 2831|       |
 2832|   100k|  return n;
 2833|   100k|}
regcomp.c:is_not_included:
 2551|  18.7k|{
 2552|  18.7k|  int i;
 2553|  18.7k|  OnigDistance len;
 2554|  18.7k|  OnigCodePoint code;
 2555|  18.7k|  UChar *p;
  ------------------
  |  |   76|  18.7k|# define UChar OnigUChar
  ------------------
 2556|  18.7k|  int ytype;
 2557|       |
 2558|  37.4k| retry:
 2559|  37.4k|  ytype = NTYPE(y);
  ------------------
  |  |   69|  37.4k|#define NTYPE(node)             ((node)->u.base.type)
  ------------------
 2560|  37.4k|  switch (NTYPE(x)) {
  ------------------
  |  |   69|  37.4k|#define NTYPE(node)             ((node)->u.base.type)
  ------------------
 2561|      0|  case NT_CTYPE:
  ------------------
  |  |   40|      0|#define NT_CTYPE       2
  ------------------
  |  Branch (2561:3): [True: 0, False: 37.4k]
  ------------------
 2562|      0|    {
 2563|      0|      switch (ytype) {
 2564|      0|      case NT_CTYPE:
  ------------------
  |  |   40|      0|#define NT_CTYPE       2
  ------------------
  |  Branch (2564:7): [True: 0, False: 0]
  ------------------
 2565|      0|	if (NCTYPE(y)->ctype == NCTYPE(x)->ctype &&
  ------------------
  |  |   78|      0|#define NCTYPE(node)       (&((node)->u.ctype))
  ------------------
              	if (NCTYPE(y)->ctype == NCTYPE(x)->ctype &&
  ------------------
  |  |   78|      0|#define NCTYPE(node)       (&((node)->u.ctype))
  ------------------
  |  Branch (2565:6): [True: 0, False: 0]
  ------------------
 2566|      0|	    NCTYPE(y)->not   != NCTYPE(x)->not &&
  ------------------
  |  |   78|      0|#define NCTYPE(node)       (&((node)->u.ctype))
  ------------------
              	    NCTYPE(y)->not   != NCTYPE(x)->not &&
  ------------------
  |  |   78|      0|#define NCTYPE(node)       (&((node)->u.ctype))
  ------------------
  |  Branch (2566:6): [True: 0, False: 0]
  ------------------
 2567|      0|	    NCTYPE(y)->ascii_range == NCTYPE(x)->ascii_range)
  ------------------
  |  |   78|      0|#define NCTYPE(node)       (&((node)->u.ctype))
  ------------------
              	    NCTYPE(y)->ascii_range == NCTYPE(x)->ascii_range)
  ------------------
  |  |   78|      0|#define NCTYPE(node)       (&((node)->u.ctype))
  ------------------
  |  Branch (2567:6): [True: 0, False: 0]
  ------------------
 2568|      0|	  return 1;
 2569|      0|	else
 2570|      0|	  return 0;
 2571|      0|	break;
 2572|       |
 2573|      0|      case NT_CCLASS:
  ------------------
  |  |   39|      0|#define NT_CCLASS      1
  ------------------
  |  Branch (2573:7): [True: 0, False: 0]
  ------------------
 2574|  18.7k|      swap:
 2575|  18.7k|	{
 2576|  18.7k|	  Node* tmp;
 2577|  18.7k|	  tmp = x; x = y; y = tmp;
 2578|  18.7k|	  goto retry;
 2579|      0|	}
 2580|      0|	break;
 2581|       |
 2582|      0|      case NT_STR:
  ------------------
  |  |   38|      0|#define NT_STR         0
  ------------------
  |  Branch (2582:7): [True: 0, False: 0]
  ------------------
 2583|      0|	goto swap;
 2584|      0|	break;
 2585|       |
 2586|      0|      default:
  ------------------
  |  Branch (2586:7): [True: 0, False: 0]
  ------------------
 2587|      0|	break;
 2588|      0|      }
 2589|      0|    }
 2590|      0|    break;
 2591|       |
 2592|  18.7k|  case NT_CCLASS:
  ------------------
  |  |   39|  18.7k|#define NT_CCLASS      1
  ------------------
  |  Branch (2592:3): [True: 18.7k, False: 18.7k]
  ------------------
 2593|  18.7k|    {
 2594|  18.7k|      CClassNode* xc = NCCLASS(x);
  ------------------
  |  |   77|  18.7k|#define NCCLASS(node)      (&((node)->u.cclass))
  ------------------
 2595|  18.7k|      switch (ytype) {
 2596|      0|      case NT_CTYPE:
  ------------------
  |  |   40|      0|#define NT_CTYPE       2
  ------------------
  |  Branch (2596:7): [True: 0, False: 18.7k]
  ------------------
 2597|      0|	switch (NCTYPE(y)->ctype) {
  ------------------
  |  |   78|      0|#define NCTYPE(node)       (&((node)->u.ctype))
  ------------------
 2598|      0|	case ONIGENC_CTYPE_WORD:
  ------------------
  |  |  306|      0|#define ONIGENC_CTYPE_WORD     12
  ------------------
  |  Branch (2598:2): [True: 0, False: 0]
  ------------------
 2599|      0|	  if (NCTYPE(y)->not == 0) {
  ------------------
  |  |   78|      0|#define NCTYPE(node)       (&((node)->u.ctype))
  ------------------
  |  Branch (2599:8): [True: 0, False: 0]
  ------------------
 2600|      0|	    if (IS_NULL(xc->mbuf) && !IS_NCCLASS_NOT(xc)) {
  ------------------
  |  |  311|      0|#define IS_NULL(p)                    (((void*)(p)) == (void*)0)
  |  |  ------------------
  |  |  |  Branch (311:39): [True: 0, False: 0]
  |  |  ------------------
  ------------------
              	    if (IS_NULL(xc->mbuf) && !IS_NCCLASS_NOT(xc)) {
  ------------------
  |  |  809|      0|#define IS_NCCLASS_NOT(nd)      IS_NCCLASS_FLAG_ON(nd, FLAG_NCCLASS_NOT)
  |  |  ------------------
  |  |  |  |  802|      0|#define IS_NCCLASS_FLAG_ON(cc,flag) ((NCCLASS_FLAGS(cc) & (flag)) != 0)
  |  |  |  |  ------------------
  |  |  |  |  |  |  799|      0|#define NCCLASS_FLAGS(cc)           ((cc)->flags)
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  |  Branch (2600:31): [True: 0, False: 0]
  ------------------
 2601|      0|	      for (i = 0; i < SINGLE_BYTE_SIZE; i++) {
  ------------------
  |  |  426|      0|#define SINGLE_BYTE_SIZE   (1 << BITS_PER_BYTE)
  |  |  ------------------
  |  |  |  |  425|      0|#define BITS_PER_BYTE      8
  |  |  ------------------
  ------------------
  |  Branch (2601:20): [True: 0, False: 0]
  ------------------
 2602|      0|		if (BITSET_AT(xc->bs, i)) {
  ------------------
  |  |  448|      0|#define BITSET_AT(bs, pos)         (BS_ROOM(bs,pos) & BS_BIT(pos))
  |  |  ------------------
  |  |  |  |  445|      0|#define BS_ROOM(bs,pos)            (bs)[(int )(pos) / BITS_IN_ROOM]
  |  |  |  |  ------------------
  |  |  |  |  |  |  427|      0|#define BITS_IN_ROOM       ((int )sizeof(Bits) * BITS_PER_BYTE)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  425|      0|#define BITS_PER_BYTE      8
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |               #define BITSET_AT(bs, pos)         (BS_ROOM(bs,pos) & BS_BIT(pos))
  |  |  ------------------
  |  |  |  |  446|      0|#define BS_BIT(pos)                (1U << ((int )(pos) % BITS_IN_ROOM))
  |  |  |  |  ------------------
  |  |  |  |  |  |  427|      0|#define BITS_IN_ROOM       ((int )sizeof(Bits) * BITS_PER_BYTE)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  425|      0|#define BITS_PER_BYTE      8
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  |  Branch (448:36): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 2603|      0|		  if (NCTYPE(y)->ascii_range) {
  ------------------
  |  |   78|      0|#define NCTYPE(node)       (&((node)->u.ctype))
  ------------------
  |  Branch (2603:9): [True: 0, False: 0]
  ------------------
 2604|      0|		    if (IS_CODE_SB_WORD(reg->enc, i)) return 0;
  ------------------
  |  |  891|      0|  (ONIGENC_IS_CODE_ASCII(code) && ONIGENC_IS_CODE_WORD(enc,code))
  |  |  ------------------
  |  |  |  |  321|      0|#define ONIGENC_IS_CODE_ASCII(code)       ((code) < 128)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (321:43): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |                 (ONIGENC_IS_CODE_ASCII(code) && ONIGENC_IS_CODE_WORD(enc,code))
  |  |  ------------------
  |  |  |  |  404|      0|        ONIGENC_IS_CODE_CTYPE(enc,code,ONIGENC_CTYPE_WORD)
  |  |  |  |  ------------------
  |  |  |  |  |  |  375|      0|#define ONIGENC_IS_CODE_CTYPE(enc,code,ctype)  (enc)->is_code_ctype(code,ctype,enc)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (375:48): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2605|      0|		  }
 2606|      0|		  else {
 2607|      0|		    if (ONIGENC_IS_CODE_WORD(reg->enc, i)) return 0;
  ------------------
  |  |  404|      0|        ONIGENC_IS_CODE_CTYPE(enc,code,ONIGENC_CTYPE_WORD)
  |  |  ------------------
  |  |  |  |  375|      0|#define ONIGENC_IS_CODE_CTYPE(enc,code,ctype)  (enc)->is_code_ctype(code,ctype,enc)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (375:48): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2608|      0|		  }
 2609|      0|		}
 2610|      0|	      }
 2611|      0|	      return 1;
 2612|      0|	    }
 2613|      0|	    return 0;
 2614|      0|	  }
 2615|      0|	  else {
 2616|      0|	    if (IS_NOT_NULL(xc->mbuf)) return 0;
  ------------------
  |  |  312|      0|#define IS_NOT_NULL(p)                (((void*)(p)) != (void*)0)
  |  |  ------------------
  |  |  |  Branch (312:39): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 2617|      0|	    for (i = 0; i < SINGLE_BYTE_SIZE; i++) {
  ------------------
  |  |  426|      0|#define SINGLE_BYTE_SIZE   (1 << BITS_PER_BYTE)
  |  |  ------------------
  |  |  |  |  425|      0|#define BITS_PER_BYTE      8
  |  |  ------------------
  ------------------
  |  Branch (2617:18): [True: 0, False: 0]
  ------------------
 2618|      0|	      int is_word;
 2619|      0|	      if (NCTYPE(y)->ascii_range)
  ------------------
  |  |   78|      0|#define NCTYPE(node)       (&((node)->u.ctype))
  ------------------
  |  Branch (2619:12): [True: 0, False: 0]
  ------------------
 2620|      0|		is_word = IS_CODE_SB_WORD(reg->enc, i);
  ------------------
  |  |  891|      0|  (ONIGENC_IS_CODE_ASCII(code) && ONIGENC_IS_CODE_WORD(enc,code))
  |  |  ------------------
  |  |  |  |  321|      0|#define ONIGENC_IS_CODE_ASCII(code)       ((code) < 128)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (321:43): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |                 (ONIGENC_IS_CODE_ASCII(code) && ONIGENC_IS_CODE_WORD(enc,code))
  |  |  ------------------
  |  |  |  |  404|      0|        ONIGENC_IS_CODE_CTYPE(enc,code,ONIGENC_CTYPE_WORD)
  |  |  |  |  ------------------
  |  |  |  |  |  |  375|      0|#define ONIGENC_IS_CODE_CTYPE(enc,code,ctype)  (enc)->is_code_ctype(code,ctype,enc)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (375:48): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2621|      0|	      else
 2622|      0|		is_word = ONIGENC_IS_CODE_WORD(reg->enc, i);
  ------------------
  |  |  404|      0|        ONIGENC_IS_CODE_CTYPE(enc,code,ONIGENC_CTYPE_WORD)
  |  |  ------------------
  |  |  |  |  375|      0|#define ONIGENC_IS_CODE_CTYPE(enc,code,ctype)  (enc)->is_code_ctype(code,ctype,enc)
  |  |  ------------------
  ------------------
 2623|      0|	      if (! is_word) {
  ------------------
  |  Branch (2623:12): [True: 0, False: 0]
  ------------------
 2624|      0|		if (!IS_NCCLASS_NOT(xc)) {
  ------------------
  |  |  809|      0|#define IS_NCCLASS_NOT(nd)      IS_NCCLASS_FLAG_ON(nd, FLAG_NCCLASS_NOT)
  |  |  ------------------
  |  |  |  |  802|      0|#define IS_NCCLASS_FLAG_ON(cc,flag) ((NCCLASS_FLAGS(cc) & (flag)) != 0)
  |  |  |  |  ------------------
  |  |  |  |  |  |  799|      0|#define NCCLASS_FLAGS(cc)           ((cc)->flags)
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  |  Branch (2624:7): [True: 0, False: 0]
  ------------------
 2625|      0|		  if (BITSET_AT(xc->bs, i))
  ------------------
  |  |  448|      0|#define BITSET_AT(bs, pos)         (BS_ROOM(bs,pos) & BS_BIT(pos))
  |  |  ------------------
  |  |  |  |  445|      0|#define BS_ROOM(bs,pos)            (bs)[(int )(pos) / BITS_IN_ROOM]
  |  |  |  |  ------------------
  |  |  |  |  |  |  427|      0|#define BITS_IN_ROOM       ((int )sizeof(Bits) * BITS_PER_BYTE)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  425|      0|#define BITS_PER_BYTE      8
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |               #define BITSET_AT(bs, pos)         (BS_ROOM(bs,pos) & BS_BIT(pos))
  |  |  ------------------
  |  |  |  |  446|      0|#define BS_BIT(pos)                (1U << ((int )(pos) % BITS_IN_ROOM))
  |  |  |  |  ------------------
  |  |  |  |  |  |  427|      0|#define BITS_IN_ROOM       ((int )sizeof(Bits) * BITS_PER_BYTE)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  425|      0|#define BITS_PER_BYTE      8
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  |  Branch (448:36): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 2626|      0|		    return 0;
 2627|      0|		}
 2628|      0|		else {
 2629|      0|		  if (! BITSET_AT(xc->bs, i))
  ------------------
  |  |  448|      0|#define BITSET_AT(bs, pos)         (BS_ROOM(bs,pos) & BS_BIT(pos))
  |  |  ------------------
  |  |  |  |  445|      0|#define BS_ROOM(bs,pos)            (bs)[(int )(pos) / BITS_IN_ROOM]
  |  |  |  |  ------------------
  |  |  |  |  |  |  427|      0|#define BITS_IN_ROOM       ((int )sizeof(Bits) * BITS_PER_BYTE)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  425|      0|#define BITS_PER_BYTE      8
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |               #define BITSET_AT(bs, pos)         (BS_ROOM(bs,pos) & BS_BIT(pos))
  |  |  ------------------
  |  |  |  |  446|      0|#define BS_BIT(pos)                (1U << ((int )(pos) % BITS_IN_ROOM))
  |  |  |  |  ------------------
  |  |  |  |  |  |  427|      0|#define BITS_IN_ROOM       ((int )sizeof(Bits) * BITS_PER_BYTE)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  425|      0|#define BITS_PER_BYTE      8
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  |  Branch (2629:9): [True: 0, False: 0]
  ------------------
 2630|      0|		    return 0;
 2631|      0|		}
 2632|      0|	      }
 2633|      0|	    }
 2634|      0|	    return 1;
 2635|      0|	  }
 2636|      0|	  break;
 2637|       |
 2638|      0|	default:
  ------------------
  |  Branch (2638:2): [True: 0, False: 0]
  ------------------
 2639|      0|	  break;
 2640|      0|	}
 2641|      0|	break;
 2642|       |
 2643|      0|      case NT_CCLASS:
  ------------------
  |  |   39|      0|#define NT_CCLASS      1
  ------------------
  |  Branch (2643:7): [True: 0, False: 18.7k]
  ------------------
 2644|      0|	{
 2645|      0|	  int v;
 2646|      0|	  CClassNode* yc = NCCLASS(y);
  ------------------
  |  |   77|      0|#define NCCLASS(node)      (&((node)->u.cclass))
  ------------------
 2647|       |
 2648|      0|	  for (i = 0; i < SINGLE_BYTE_SIZE; i++) {
  ------------------
  |  |  426|      0|#define SINGLE_BYTE_SIZE   (1 << BITS_PER_BYTE)
  |  |  ------------------
  |  |  |  |  425|      0|#define BITS_PER_BYTE      8
  |  |  ------------------
  ------------------
  |  Branch (2648:16): [True: 0, False: 0]
  ------------------
 2649|      0|	    v = BITSET_AT(xc->bs, i);
  ------------------
  |  |  448|      0|#define BITSET_AT(bs, pos)         (BS_ROOM(bs,pos) & BS_BIT(pos))
  |  |  ------------------
  |  |  |  |  445|      0|#define BS_ROOM(bs,pos)            (bs)[(int )(pos) / BITS_IN_ROOM]
  |  |  |  |  ------------------
  |  |  |  |  |  |  427|      0|#define BITS_IN_ROOM       ((int )sizeof(Bits) * BITS_PER_BYTE)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  425|      0|#define BITS_PER_BYTE      8
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |               #define BITSET_AT(bs, pos)         (BS_ROOM(bs,pos) & BS_BIT(pos))
  |  |  ------------------
  |  |  |  |  446|      0|#define BS_BIT(pos)                (1U << ((int )(pos) % BITS_IN_ROOM))
  |  |  |  |  ------------------
  |  |  |  |  |  |  427|      0|#define BITS_IN_ROOM       ((int )sizeof(Bits) * BITS_PER_BYTE)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  425|      0|#define BITS_PER_BYTE      8
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2650|      0|	    if ((v != 0 && !IS_NCCLASS_NOT(xc)) ||
  ------------------
  |  |  809|      0|#define IS_NCCLASS_NOT(nd)      IS_NCCLASS_FLAG_ON(nd, FLAG_NCCLASS_NOT)
  |  |  ------------------
  |  |  |  |  802|      0|#define IS_NCCLASS_FLAG_ON(cc,flag) ((NCCLASS_FLAGS(cc) & (flag)) != 0)
  |  |  |  |  ------------------
  |  |  |  |  |  |  799|      0|#define NCCLASS_FLAGS(cc)           ((cc)->flags)
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  |  Branch (2650:11): [True: 0, False: 0]
  |  Branch (2650:21): [True: 0, False: 0]
  ------------------
 2651|      0|		(v == 0 && IS_NCCLASS_NOT(xc))) {
  ------------------
  |  |  809|      0|#define IS_NCCLASS_NOT(nd)      IS_NCCLASS_FLAG_ON(nd, FLAG_NCCLASS_NOT)
  |  |  ------------------
  |  |  |  |  802|      0|#define IS_NCCLASS_FLAG_ON(cc,flag) ((NCCLASS_FLAGS(cc) & (flag)) != 0)
  |  |  |  |  ------------------
  |  |  |  |  |  |  799|      0|#define NCCLASS_FLAGS(cc)           ((cc)->flags)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (802:37): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  |  Branch (2651:4): [True: 0, False: 0]
  ------------------
 2652|      0|	      v = BITSET_AT(yc->bs, i);
  ------------------
  |  |  448|      0|#define BITSET_AT(bs, pos)         (BS_ROOM(bs,pos) & BS_BIT(pos))
  |  |  ------------------
  |  |  |  |  445|      0|#define BS_ROOM(bs,pos)            (bs)[(int )(pos) / BITS_IN_ROOM]
  |  |  |  |  ------------------
  |  |  |  |  |  |  427|      0|#define BITS_IN_ROOM       ((int )sizeof(Bits) * BITS_PER_BYTE)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  425|      0|#define BITS_PER_BYTE      8
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |               #define BITSET_AT(bs, pos)         (BS_ROOM(bs,pos) & BS_BIT(pos))
  |  |  ------------------
  |  |  |  |  446|      0|#define BS_BIT(pos)                (1U << ((int )(pos) % BITS_IN_ROOM))
  |  |  |  |  ------------------
  |  |  |  |  |  |  427|      0|#define BITS_IN_ROOM       ((int )sizeof(Bits) * BITS_PER_BYTE)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  425|      0|#define BITS_PER_BYTE      8
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2653|      0|	      if ((v != 0 && !IS_NCCLASS_NOT(yc)) ||
  ------------------
  |  |  809|      0|#define IS_NCCLASS_NOT(nd)      IS_NCCLASS_FLAG_ON(nd, FLAG_NCCLASS_NOT)
  |  |  ------------------
  |  |  |  |  802|      0|#define IS_NCCLASS_FLAG_ON(cc,flag) ((NCCLASS_FLAGS(cc) & (flag)) != 0)
  |  |  |  |  ------------------
  |  |  |  |  |  |  799|      0|#define NCCLASS_FLAGS(cc)           ((cc)->flags)
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  |  Branch (2653:13): [True: 0, False: 0]
  |  Branch (2653:23): [True: 0, False: 0]
  ------------------
 2654|      0|		  (v == 0 && IS_NCCLASS_NOT(yc)))
  ------------------
  |  |  809|      0|#define IS_NCCLASS_NOT(nd)      IS_NCCLASS_FLAG_ON(nd, FLAG_NCCLASS_NOT)
  |  |  ------------------
  |  |  |  |  802|      0|#define IS_NCCLASS_FLAG_ON(cc,flag) ((NCCLASS_FLAGS(cc) & (flag)) != 0)
  |  |  |  |  ------------------
  |  |  |  |  |  |  799|      0|#define NCCLASS_FLAGS(cc)           ((cc)->flags)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (802:37): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  |  Branch (2654:6): [True: 0, False: 0]
  ------------------
 2655|      0|		return 0;
 2656|      0|	    }
 2657|      0|	  }
 2658|      0|	  if ((IS_NULL(xc->mbuf) && !IS_NCCLASS_NOT(xc)) ||
  ------------------
  |  |  311|      0|#define IS_NULL(p)                    (((void*)(p)) == (void*)0)
  |  |  ------------------
  |  |  |  Branch (311:39): [True: 0, False: 0]
  |  |  ------------------
  ------------------
              	  if ((IS_NULL(xc->mbuf) && !IS_NCCLASS_NOT(xc)) ||
  ------------------
  |  |  809|      0|#define IS_NCCLASS_NOT(nd)      IS_NCCLASS_FLAG_ON(nd, FLAG_NCCLASS_NOT)
  |  |  ------------------
  |  |  |  |  802|      0|#define IS_NCCLASS_FLAG_ON(cc,flag) ((NCCLASS_FLAGS(cc) & (flag)) != 0)
  |  |  |  |  ------------------
  |  |  |  |  |  |  799|      0|#define NCCLASS_FLAGS(cc)           ((cc)->flags)
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  |  Branch (2658:30): [True: 0, False: 0]
  ------------------
 2659|      0|	      (IS_NULL(yc->mbuf) && !IS_NCCLASS_NOT(yc)))
  ------------------
  |  |  311|      0|#define IS_NULL(p)                    (((void*)(p)) == (void*)0)
  |  |  ------------------
  |  |  |  Branch (311:39): [True: 0, False: 0]
  |  |  ------------------
  ------------------
              	      (IS_NULL(yc->mbuf) && !IS_NCCLASS_NOT(yc)))
  ------------------
  |  |  809|      0|#define IS_NCCLASS_NOT(nd)      IS_NCCLASS_FLAG_ON(nd, FLAG_NCCLASS_NOT)
  |  |  ------------------
  |  |  |  |  802|      0|#define IS_NCCLASS_FLAG_ON(cc,flag) ((NCCLASS_FLAGS(cc) & (flag)) != 0)
  |  |  |  |  ------------------
  |  |  |  |  |  |  799|      0|#define NCCLASS_FLAGS(cc)           ((cc)->flags)
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  |  Branch (2659:30): [True: 0, False: 0]
  ------------------
 2660|      0|	    return 1;
 2661|      0|	  return 0;
 2662|      0|	}
 2663|      0|	break;
 2664|       |
 2665|  18.7k|      case NT_STR:
  ------------------
  |  |   38|  18.7k|#define NT_STR         0
  ------------------
  |  Branch (2665:7): [True: 18.7k, False: 0]
  ------------------
 2666|  18.7k|	goto swap;
 2667|      0|	break;
 2668|       |
 2669|      0|      default:
  ------------------
  |  Branch (2669:7): [True: 0, False: 18.7k]
  ------------------
 2670|      0|	break;
 2671|  18.7k|      }
 2672|  18.7k|    }
 2673|      0|    break;
 2674|       |
 2675|  18.7k|  case NT_STR:
  ------------------
  |  |   38|  18.7k|#define NT_STR         0
  ------------------
  |  Branch (2675:3): [True: 18.7k, False: 18.7k]
  ------------------
 2676|  18.7k|    {
 2677|  18.7k|      StrNode* xs = NSTR(x);
  ------------------
  |  |   76|  18.7k|#define NSTR(node)         (&((node)->u.str))
  ------------------
 2678|  18.7k|      if (NSTRING_LEN(x) == 0)
  ------------------
  |  |  108|  18.7k|#define NSTRING_LEN(node) (OnigDistance )((node)->u.str.end - (node)->u.str.s)
  ------------------
  |  Branch (2678:11): [True: 0, False: 18.7k]
  ------------------
 2679|      0|	break;
 2680|       |
 2681|  18.7k|      switch (ytype) {
 2682|      0|      case NT_CTYPE:
  ------------------
  |  |   40|      0|#define NT_CTYPE       2
  ------------------
  |  Branch (2682:7): [True: 0, False: 18.7k]
  ------------------
 2683|      0|	switch (NCTYPE(y)->ctype) {
  ------------------
  |  |   78|      0|#define NCTYPE(node)       (&((node)->u.ctype))
  ------------------
 2684|      0|	case ONIGENC_CTYPE_WORD:
  ------------------
  |  |  306|      0|#define ONIGENC_CTYPE_WORD     12
  ------------------
  |  Branch (2684:2): [True: 0, False: 0]
  ------------------
 2685|      0|	  if (NCTYPE(y)->ascii_range) {
  ------------------
  |  |   78|      0|#define NCTYPE(node)       (&((node)->u.ctype))
  ------------------
  |  Branch (2685:8): [True: 0, False: 0]
  ------------------
 2686|      0|	    if (ONIGENC_IS_MBC_ASCII_WORD(reg->enc, xs->s, xs->end))
  ------------------
  |  |  325|      0|   onigenc_ascii_is_code_ctype( \
  |  |  ------------------
  |  |  |  Branch (325:4): [True: 0, False: 0]
  |  |  ------------------
  |  |  326|      0|	ONIGENC_MBC_TO_CODE(enc,s,end),ONIGENC_CTYPE_WORD,enc)
  |  |  ------------------
  |  |  |  |  369|      0|#define ONIGENC_MBC_TO_CODE(enc,p,end)         (enc)->mbc_to_code((p),(end),enc)
  |  |  ------------------
  |  |               	ONIGENC_MBC_TO_CODE(enc,s,end),ONIGENC_CTYPE_WORD,enc)
  |  |  ------------------
  |  |  |  |  306|      0|#define ONIGENC_CTYPE_WORD     12
  |  |  ------------------
  ------------------
 2687|      0|	      return NCTYPE(y)->not;
  ------------------
  |  |   78|      0|#define NCTYPE(node)       (&((node)->u.ctype))
  ------------------
 2688|      0|	    else
 2689|      0|	      return !(NCTYPE(y)->not);
  ------------------
  |  |   78|      0|#define NCTYPE(node)       (&((node)->u.ctype))
  ------------------
 2690|      0|	  }
 2691|      0|	  else {
 2692|      0|	    if (ONIGENC_IS_MBC_WORD(reg->enc, xs->s, xs->end))
  ------------------
  |  |  323|      0|   ONIGENC_IS_CODE_WORD(enc,ONIGENC_MBC_TO_CODE(enc,s,end))
  |  |  ------------------
  |  |  |  |  404|      0|        ONIGENC_IS_CODE_CTYPE(enc,code,ONIGENC_CTYPE_WORD)
  |  |  |  |  ------------------
  |  |  |  |  |  |  375|      0|#define ONIGENC_IS_CODE_CTYPE(enc,code,ctype)  (enc)->is_code_ctype(code,ctype,enc)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (375:48): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2693|      0|	      return NCTYPE(y)->not;
  ------------------
  |  |   78|      0|#define NCTYPE(node)       (&((node)->u.ctype))
  ------------------
 2694|      0|	    else
 2695|      0|	      return !(NCTYPE(y)->not);
  ------------------
  |  |   78|      0|#define NCTYPE(node)       (&((node)->u.ctype))
  ------------------
 2696|      0|	  }
 2697|      0|	  break;
 2698|      0|	default:
  ------------------
  |  Branch (2698:2): [True: 0, False: 0]
  ------------------
 2699|      0|	  break;
 2700|      0|	}
 2701|      0|	break;
 2702|       |
 2703|  18.7k|      case NT_CCLASS:
  ------------------
  |  |   39|  18.7k|#define NT_CCLASS      1
  ------------------
  |  Branch (2703:7): [True: 18.7k, False: 0]
  ------------------
 2704|  18.7k|	{
 2705|  18.7k|	  CClassNode* cc = NCCLASS(y);
  ------------------
  |  |   77|  18.7k|#define NCCLASS(node)      (&((node)->u.cclass))
  ------------------
 2706|       |
 2707|  18.7k|	  code = ONIGENC_MBC_TO_CODE(reg->enc, xs->s,
  ------------------
  |  |  369|  18.7k|#define ONIGENC_MBC_TO_CODE(enc,p,end)         (enc)->mbc_to_code((p),(end),enc)
  ------------------
 2708|  18.7k|				     xs->s + ONIGENC_MBC_MAXLEN(reg->enc));
 2709|  18.7k|	  return (onig_is_code_in_cc(reg->enc, code, cc) != 0 ? 0 : 1);
  ------------------
  |  Branch (2709:12): [True: 0, False: 18.7k]
  ------------------
 2710|      0|	}
 2711|      0|	break;
 2712|       |
 2713|      0|      case NT_STR:
  ------------------
  |  |   38|      0|#define NT_STR         0
  ------------------
  |  Branch (2713:7): [True: 0, False: 18.7k]
  ------------------
 2714|      0|	{
 2715|      0|	  UChar *q;
  ------------------
  |  |   76|      0|# define UChar OnigUChar
  ------------------
 2716|      0|	  StrNode* ys = NSTR(y);
  ------------------
  |  |   76|      0|#define NSTR(node)         (&((node)->u.str))
  ------------------
 2717|      0|	  len = NSTRING_LEN(x);
  ------------------
  |  |  108|      0|#define NSTRING_LEN(node) (OnigDistance )((node)->u.str.end - (node)->u.str.s)
  ------------------
 2718|      0|	  if (len > NSTRING_LEN(y)) len = NSTRING_LEN(y);
  ------------------
  |  |  108|      0|#define NSTRING_LEN(node) (OnigDistance )((node)->u.str.end - (node)->u.str.s)
  ------------------
              	  if (len > NSTRING_LEN(y)) len = NSTRING_LEN(y);
  ------------------
  |  |  108|      0|#define NSTRING_LEN(node) (OnigDistance )((node)->u.str.end - (node)->u.str.s)
  ------------------
  |  Branch (2718:8): [True: 0, False: 0]
  ------------------
 2719|      0|	  if (NSTRING_IS_AMBIG(x) || NSTRING_IS_AMBIG(y)) {
  ------------------
  |  |  115|      0|#define NSTRING_IS_AMBIG(node)        (((node)->u.str.flag & NSTR_AMBIG) != 0)
  |  |  ------------------
  |  |  |  |  105|      0|#define NSTR_AMBIG              (1<<1)
  |  |  ------------------
  |  |  |  Branch (115:39): [True: 0, False: 0]
  |  |  ------------------
  ------------------
              	  if (NSTRING_IS_AMBIG(x) || NSTRING_IS_AMBIG(y)) {
  ------------------
  |  |  115|      0|#define NSTRING_IS_AMBIG(node)        (((node)->u.str.flag & NSTR_AMBIG) != 0)
  |  |  ------------------
  |  |  |  |  105|      0|#define NSTR_AMBIG              (1<<1)
  |  |  ------------------
  |  |  |  Branch (115:39): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 2720|       |	    /* tiny version */
 2721|      0|	    return 0;
 2722|      0|	  }
 2723|      0|	  else {
 2724|      0|	    for (i = 0, p = ys->s, q = xs->s; (OnigDistance )i < len; i++, p++, q++) {
  ------------------
  |  Branch (2724:40): [True: 0, False: 0]
  ------------------
 2725|      0|	      if (*p != *q) return 1;
  ------------------
  |  Branch (2725:12): [True: 0, False: 0]
  ------------------
 2726|      0|	    }
 2727|      0|	  }
 2728|      0|	}
 2729|      0|	break;
 2730|       |
 2731|      0|      default:
  ------------------
  |  Branch (2731:7): [True: 0, False: 18.7k]
  ------------------
 2732|      0|	break;
 2733|  18.7k|      }
 2734|  18.7k|    }
 2735|      0|    break;
 2736|       |
 2737|      0|  default:
  ------------------
  |  Branch (2737:3): [True: 0, False: 37.4k]
  ------------------
 2738|      0|    break;
 2739|  37.4k|  }
 2740|       |
 2741|      0|  return 0;
 2742|  37.4k|}
regcomp.c:swap_node:
   72|  18.7k|{
   73|  18.7k|  Node c;
   74|  18.7k|  c = *a; *a = *b; *b = c;
   75|       |
   76|  18.7k|  if (NTYPE(a) == NT_STR) {
  ------------------
  |  |   69|  18.7k|#define NTYPE(node)             ((node)->u.base.type)
  ------------------
                if (NTYPE(a) == NT_STR) {
  ------------------
  |  |   38|  18.7k|#define NT_STR         0
  ------------------
  |  Branch (76:7): [True: 0, False: 18.7k]
  ------------------
   77|      0|    StrNode* sn = NSTR(a);
  ------------------
  |  |   76|      0|#define NSTR(node)         (&((node)->u.str))
  ------------------
   78|      0|    if (sn->capa == 0) {
  ------------------
  |  Branch (78:9): [True: 0, False: 0]
  ------------------
   79|      0|      size_t len = sn->end - sn->s;
   80|      0|      sn->s   = sn->buf;
   81|      0|      sn->end = sn->s + len;
   82|      0|    }
   83|      0|  }
   84|       |
   85|  18.7k|  if (NTYPE(b) == NT_STR) {
  ------------------
  |  |   69|  18.7k|#define NTYPE(node)             ((node)->u.base.type)
  ------------------
                if (NTYPE(b) == NT_STR) {
  ------------------
  |  |   38|  18.7k|#define NT_STR         0
  ------------------
  |  Branch (85:7): [True: 0, False: 18.7k]
  ------------------
   86|      0|    StrNode* sn = NSTR(b);
  ------------------
  |  |   76|      0|#define NSTR(node)         (&((node)->u.str))
  ------------------
   87|      0|    if (sn->capa == 0) {
  ------------------
  |  Branch (87:9): [True: 0, False: 0]
  ------------------
   88|      0|      size_t len = sn->end - sn->s;
   89|      0|      sn->s   = sn->buf;
   90|      0|      sn->end = sn->s + len;
   91|      0|    }
   92|      0|  }
   93|  18.7k|}
regcomp.c:distance_add:
   97|   573k|{
   98|   573k|  if (d1 == ONIG_INFINITE_DISTANCE || d2 == ONIG_INFINITE_DISTANCE)
  ------------------
  |  |   85|  1.14M|#define ONIG_INFINITE_DISTANCE  ~((OnigDistance )0)
  ------------------
                if (d1 == ONIG_INFINITE_DISTANCE || d2 == ONIG_INFINITE_DISTANCE)
  ------------------
  |  |   85|   437k|#define ONIG_INFINITE_DISTANCE  ~((OnigDistance )0)
  ------------------
  |  Branch (98:7): [True: 136k, False: 437k]
  |  Branch (98:39): [True: 43.3k, False: 393k]
  ------------------
   99|   179k|    return ONIG_INFINITE_DISTANCE;
  ------------------
  |  |   85|   179k|#define ONIG_INFINITE_DISTANCE  ~((OnigDistance )0)
  ------------------
  100|   393k|  else {
  101|   393k|    if (d1 <= ONIG_INFINITE_DISTANCE - d2) return d1 + d2;
  ------------------
  |  |   85|   393k|#define ONIG_INFINITE_DISTANCE  ~((OnigDistance )0)
  ------------------
  |  Branch (101:9): [True: 393k, False: 0]
  ------------------
  102|      0|    else return ONIG_INFINITE_DISTANCE;
  ------------------
  |  |   85|      0|#define ONIG_INFINITE_DISTANCE  ~((OnigDistance )0)
  ------------------
  103|   393k|  }
  104|   573k|}
regcomp.c:clear_optimize_info:
 5363|  33.2k|{
 5364|  33.2k|  reg->optimize      = ONIG_OPTIMIZE_NONE;
  ------------------
  |  |  355|  33.2k|#define ONIG_OPTIMIZE_NONE              0
  ------------------
 5365|  33.2k|  reg->anchor        = 0;
 5366|  33.2k|  reg->anchor_dmin   = 0;
 5367|  33.2k|  reg->anchor_dmax   = 0;
 5368|  33.2k|  reg->sub_anchor    = 0;
 5369|  33.2k|  reg->exact_end     = (UChar* )NULL;
 5370|  33.2k|  reg->threshold_len = 0;
 5371|  33.2k|  if (IS_NOT_NULL(reg->exact)) {
  ------------------
  |  |  312|  33.2k|#define IS_NOT_NULL(p)                (((void*)(p)) != (void*)0)
  |  |  ------------------
  |  |  |  Branch (312:39): [True: 0, False: 33.2k]
  |  |  ------------------
  ------------------
 5372|      0|    xfree(reg->exact);
  ------------------
  |  |  145|      0|# define xfree       free
  ------------------
 5373|      0|    reg->exact = (UChar* )NULL;
 5374|      0|  }
 5375|  33.2k|}
regcomp.c:set_optimize_info_from_tree:
 5303|  33.2k|{
 5304|       |
 5305|  33.2k|  int r;
 5306|  33.2k|  NodeOptInfo opt;
 5307|  33.2k|  OptEnv env;
 5308|       |
 5309|  33.2k|  env.enc            = reg->enc;
 5310|  33.2k|  env.options        = reg->options;
 5311|  33.2k|  env.case_fold_flag = reg->case_fold_flag;
 5312|  33.2k|  env.scan_env   = scan_env;
 5313|  33.2k|  clear_mml(&env.mmd);
 5314|       |
 5315|  33.2k|  r = optimize_node_left(node, &opt, &env);
 5316|  33.2k|  if (r) return r;
  ------------------
  |  Branch (5316:7): [True: 0, False: 33.2k]
  ------------------
 5317|       |
 5318|  33.2k|  reg->anchor = opt.anc.left_anchor & (ANCHOR_BEGIN_BUF |
  ------------------
  |  |  540|  33.2k|#define ANCHOR_BEGIN_BUF        (1<<0)
  ------------------
 5319|  33.2k|        ANCHOR_BEGIN_POSITION | ANCHOR_ANYCHAR_STAR | ANCHOR_ANYCHAR_STAR_ML |
  ------------------
  |  |  542|  33.2k|#define ANCHOR_BEGIN_POSITION   (1<<2)
  ------------------
                      ANCHOR_BEGIN_POSITION | ANCHOR_ANYCHAR_STAR | ANCHOR_ANYCHAR_STAR_ML |
  ------------------
  |  |  556|  33.2k|#define ANCHOR_ANYCHAR_STAR     (1<<14)   /* ".*" optimize info */
  ------------------
                      ANCHOR_BEGIN_POSITION | ANCHOR_ANYCHAR_STAR | ANCHOR_ANYCHAR_STAR_ML |
  ------------------
  |  |  557|  33.2k|#define ANCHOR_ANYCHAR_STAR_ML  (1<<15)   /* ".*" optimize info (multi-line) */
  ------------------
 5320|  33.2k|        ANCHOR_LOOK_BEHIND);
  ------------------
  |  |  553|  33.2k|#define ANCHOR_LOOK_BEHIND      (1<<12)
  ------------------
 5321|       |
 5322|  33.2k|  if ((opt.anc.left_anchor & (ANCHOR_LOOK_BEHIND | ANCHOR_PREC_READ_NOT)) != 0)
  ------------------
  |  |  553|  33.2k|#define ANCHOR_LOOK_BEHIND      (1<<12)
  ------------------
                if ((opt.anc.left_anchor & (ANCHOR_LOOK_BEHIND | ANCHOR_PREC_READ_NOT)) != 0)
  ------------------
  |  |  552|  33.2k|#define ANCHOR_PREC_READ_NOT    (1<<11)
  ------------------
  |  Branch (5322:7): [True: 0, False: 33.2k]
  ------------------
 5323|      0|    reg->anchor &= ~ANCHOR_ANYCHAR_STAR_ML;
  ------------------
  |  |  557|      0|#define ANCHOR_ANYCHAR_STAR_ML  (1<<15)   /* ".*" optimize info (multi-line) */
  ------------------
 5324|       |
 5325|  33.2k|  reg->anchor |= opt.anc.right_anchor & (ANCHOR_END_BUF | ANCHOR_SEMI_END_BUF |
  ------------------
  |  |  543|  33.2k|#define ANCHOR_END_BUF          (1<<3)
  ------------------
                reg->anchor |= opt.anc.right_anchor & (ANCHOR_END_BUF | ANCHOR_SEMI_END_BUF |
  ------------------
  |  |  544|  33.2k|#define ANCHOR_SEMI_END_BUF     (1<<4)
  ------------------
 5326|  33.2k|	ANCHOR_PREC_READ_NOT);
  ------------------
  |  |  552|  33.2k|#define ANCHOR_PREC_READ_NOT    (1<<11)
  ------------------
 5327|       |
 5328|  33.2k|  if (reg->anchor & (ANCHOR_END_BUF | ANCHOR_SEMI_END_BUF)) {
  ------------------
  |  |  543|  33.2k|#define ANCHOR_END_BUF          (1<<3)
  ------------------
                if (reg->anchor & (ANCHOR_END_BUF | ANCHOR_SEMI_END_BUF)) {
  ------------------
  |  |  544|  33.2k|#define ANCHOR_SEMI_END_BUF     (1<<4)
  ------------------
  |  Branch (5328:7): [True: 0, False: 33.2k]
  ------------------
 5329|      0|    reg->anchor_dmin = opt.len.min;
 5330|      0|    reg->anchor_dmax = opt.len.max;
 5331|      0|  }
 5332|       |
 5333|  33.2k|  if (opt.exb.len > 0 || opt.exm.len > 0) {
  ------------------
  |  Branch (5333:7): [True: 1.44k, False: 31.8k]
  |  Branch (5333:26): [True: 21.7k, False: 10.1k]
  ------------------
 5334|  23.1k|    select_opt_exact_info(reg->enc, &opt.exb, &opt.exm);
 5335|  23.1k|    if (opt.map.value > 0 &&
  ------------------
  |  Branch (5335:9): [True: 23.1k, False: 0]
  ------------------
 5336|  23.1k|	comp_opt_exact_or_map_info(&opt.exb, &opt.map) > 0) {
  ------------------
  |  Branch (5336:2): [True: 7.23k, False: 15.9k]
  ------------------
 5337|  7.23k|      goto set_map;
 5338|  7.23k|    }
 5339|  15.9k|    else {
 5340|  15.9k|      r = set_optimize_exact_info(reg, &opt.exb);
 5341|  15.9k|      set_sub_anchor(reg, &opt.exb.anc);
 5342|  15.9k|    }
 5343|  23.1k|  }
 5344|  10.1k|  else if (opt.map.value > 0) {
  ------------------
  |  Branch (5344:12): [True: 4.34k, False: 5.77k]
  ------------------
 5345|  11.5k|  set_map:
 5346|  11.5k|    set_optimize_map_info(reg, &opt.map);
 5347|  11.5k|    set_sub_anchor(reg, &opt.map.anc);
 5348|  11.5k|  }
 5349|  5.77k|  else {
 5350|  5.77k|    reg->sub_anchor |= opt.anc.left_anchor & ANCHOR_BEGIN_LINE;
  ------------------
  |  |  541|  5.77k|#define ANCHOR_BEGIN_LINE       (1<<1)
  ------------------
 5351|  5.77k|    if (opt.len.max == 0)
  ------------------
  |  Branch (5351:9): [True: 2.88k, False: 2.89k]
  ------------------
 5352|  2.88k|      reg->sub_anchor |= opt.anc.right_anchor & ANCHOR_END_LINE;
  ------------------
  |  |  545|  2.88k|#define ANCHOR_END_LINE         (1<<5)
  ------------------
 5353|  5.77k|  }
 5354|       |
 5355|       |#if defined(ONIG_DEBUG_COMPILE) || defined(ONIG_DEBUG_MATCH)
 5356|       |  print_optimize_info(stderr, reg);
 5357|       |#endif
 5358|  33.2k|  return r;
 5359|  33.2k|}
regcomp.c:clear_mml:
 4385|  1.13M|{
 4386|  1.13M|  mml->min = mml->max = 0;
 4387|  1.13M|}
regcomp.c:optimize_node_left:
 4866|   267k|{
 4867|   267k|  int type;
 4868|   267k|  int r = 0;
 4869|       |
 4870|   267k|  clear_node_opt_info(opt);
 4871|   267k|  set_bound_node_opt_info(opt, &env->mmd);
 4872|       |
 4873|   267k|  type = NTYPE(node);
  ------------------
  |  |   69|   267k|#define NTYPE(node)             ((node)->u.base.type)
  ------------------
 4874|   267k|  switch (type) {
 4875|  34.6k|  case NT_LIST:
  ------------------
  |  |   46|  34.6k|#define NT_LIST        8
  ------------------
  |  Branch (4875:3): [True: 34.6k, False: 233k]
  ------------------
 4876|  34.6k|    {
 4877|  34.6k|      OptEnv nenv;
 4878|  34.6k|      NodeOptInfo nopt;
 4879|  34.6k|      Node* nd = node;
 4880|       |
 4881|  34.6k|      copy_opt_env(&nenv, env);
 4882|   143k|      do {
 4883|   143k|	r = optimize_node_left(NCAR(nd), &nopt, &nenv);
  ------------------
  |  |   86|   143k|#define NCAR(node)         (NCONS(node)->car)
  |  |  ------------------
  |  |  |  |   83|   143k|#define NCONS(node)        (&((node)->u.cons))
  |  |  ------------------
  ------------------
 4884|   143k|	if (r == 0) {
  ------------------
  |  Branch (4884:6): [True: 143k, False: 0]
  ------------------
 4885|   143k|	  add_mml(&nenv.mmd, &nopt.len);
 4886|   143k|	  concat_left_node_opt_info(env->enc, opt, &nopt);
 4887|   143k|	}
 4888|   143k|      } while (r == 0 && IS_NOT_NULL(nd = NCDR(nd)));
  ------------------
  |  |  312|   143k|#define IS_NOT_NULL(p)                (((void*)(p)) != (void*)0)
  |  |  ------------------
  |  |  |  Branch (312:39): [True: 108k, False: 34.6k]
  |  |  ------------------
  ------------------
  |  Branch (4888:16): [True: 143k, False: 0]
  ------------------
 4889|  34.6k|    }
 4890|  34.6k|    break;
 4891|       |
 4892|  8.77k|  case NT_ALT:
  ------------------
  |  |   47|  8.77k|#define NT_ALT         9
  ------------------
  |  Branch (4892:3): [True: 8.77k, False: 259k]
  ------------------
 4893|  8.77k|    {
 4894|  8.77k|      NodeOptInfo nopt;
 4895|  8.77k|      Node* nd = node;
 4896|       |
 4897|  20.4k|      do {
 4898|  20.4k|	r = optimize_node_left(NCAR(nd), &nopt, env);
  ------------------
  |  |   86|  20.4k|#define NCAR(node)         (NCONS(node)->car)
  |  |  ------------------
  |  |  |  |   83|  20.4k|#define NCONS(node)        (&((node)->u.cons))
  |  |  ------------------
  ------------------
 4899|  20.4k|	if (r == 0) {
  ------------------
  |  Branch (4899:6): [True: 20.4k, False: 0]
  ------------------
 4900|  20.4k|	  if (nd == node) copy_node_opt_info(opt, &nopt);
  ------------------
  |  Branch (4900:8): [True: 8.77k, False: 11.7k]
  ------------------
 4901|  11.7k|	  else            alt_merge_node_opt_info(opt, &nopt, env);
 4902|  20.4k|	}
 4903|  20.4k|      } while ((r == 0) && IS_NOT_NULL(nd = NCDR(nd)));
  ------------------
  |  |  312|  20.4k|#define IS_NOT_NULL(p)                (((void*)(p)) != (void*)0)
  |  |  ------------------
  |  |  |  Branch (312:39): [True: 11.7k, False: 8.77k]
  |  |  ------------------
  ------------------
  |  Branch (4903:16): [True: 20.4k, False: 0]
  ------------------
 4904|  8.77k|    }
 4905|  8.77k|    break;
 4906|       |
 4907|  62.4k|  case NT_STR:
  ------------------
  |  |   38|  62.4k|#define NT_STR         0
  ------------------
  |  Branch (4907:3): [True: 62.4k, False: 205k]
  ------------------
 4908|  62.4k|    {
 4909|  62.4k|      StrNode* sn = NSTR(node);
  ------------------
  |  |   76|  62.4k|#define NSTR(node)         (&((node)->u.str))
  ------------------
 4910|  62.4k|      OnigDistance slen = sn->end - sn->s;
 4911|  62.4k|      int is_raw = NSTRING_IS_RAW(node);
  ------------------
  |  |  114|  62.4k|#define NSTRING_IS_RAW(node)          (((node)->u.str.flag & NSTR_RAW)   != 0)
  |  |  ------------------
  |  |  |  |  104|  62.4k|#define NSTR_RAW                (1<<0) /* by backslashed number */
  |  |  ------------------
  ------------------
 4912|       |
 4913|  62.4k|      if (! NSTRING_IS_AMBIG(node)) {
  ------------------
  |  |  115|  62.4k|#define NSTRING_IS_AMBIG(node)        (((node)->u.str.flag & NSTR_AMBIG) != 0)
  |  |  ------------------
  |  |  |  |  105|  62.4k|#define NSTR_AMBIG              (1<<1)
  |  |  ------------------
  ------------------
  |  Branch (4913:11): [True: 62.4k, False: 0]
  ------------------
 4914|  62.4k|	concat_opt_exact_info_str(&opt->exb, sn->s, sn->end,
 4915|  62.4k|				  is_raw, env->enc);
 4916|  62.4k|	opt->exb.ignore_case = 0;
 4917|  62.4k|	if (slen > 0) {
  ------------------
  |  Branch (4917:6): [True: 61.0k, False: 1.45k]
  ------------------
 4918|  61.0k|	  add_char_opt_map_info(&opt->map, *(sn->s), env->enc);
 4919|  61.0k|	}
 4920|  62.4k|	set_mml(&opt->len, slen, slen);
 4921|  62.4k|      }
 4922|      0|      else {
 4923|      0|	OnigDistance max;
 4924|       |
 4925|      0|	if (NSTRING_IS_DONT_GET_OPT_INFO(node)) {
  ------------------
  |  |  117|      0|  (((node)->u.str.flag & NSTR_DONT_GET_OPT_INFO) != 0)
  |  |  ------------------
  |  |  |  |  106|      0|#define NSTR_DONT_GET_OPT_INFO  (1<<2)
  |  |  ------------------
  |  |  |  Branch (117:3): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 4926|      0|	  int n = onigenc_strlen(env->enc, sn->s, sn->end);
 4927|      0|	  max = (OnigDistance )ONIGENC_MBC_MAXLEN_DIST(env->enc) * n;
  ------------------
  |  |  366|      0|#define ONIGENC_MBC_MAXLEN_DIST(enc)           ONIGENC_MBC_MAXLEN(enc)
  |  |  ------------------
  |  |  |  |  365|      0|#define ONIGENC_MBC_MAXLEN(enc)               ((enc)->max_enc_len)
  |  |  ------------------
  ------------------
 4928|      0|	}
 4929|      0|	else {
 4930|      0|	  concat_opt_exact_info_str(&opt->exb, sn->s, sn->end,
 4931|      0|				    is_raw, env->enc);
 4932|      0|	  opt->exb.ignore_case = 1;
 4933|       |
 4934|      0|	  if (slen > 0) {
  ------------------
  |  Branch (4934:8): [True: 0, False: 0]
  ------------------
 4935|      0|	    r = add_char_amb_opt_map_info(&opt->map, sn->s, sn->end,
 4936|      0|					  env->enc, env->case_fold_flag);
 4937|      0|	    if (r != 0) break;
  ------------------
  |  Branch (4937:10): [True: 0, False: 0]
  ------------------
 4938|      0|	  }
 4939|       |
 4940|      0|	  max = slen;
 4941|      0|	}
 4942|       |
 4943|      0|	set_mml(&opt->len, slen, max);
 4944|      0|      }
 4945|       |
 4946|  62.4k|      if ((OnigDistance )opt->exb.len == slen)
  ------------------
  |  Branch (4946:11): [True: 56.6k, False: 5.80k]
  ------------------
 4947|  56.6k|	opt->exb.reach_end = 1;
 4948|  62.4k|    }
 4949|      0|    break;
 4950|       |
 4951|  34.6k|  case NT_CCLASS:
  ------------------
  |  |   39|  34.6k|#define NT_CCLASS      1
  ------------------
  |  Branch (4951:3): [True: 34.6k, False: 233k]
  ------------------
 4952|  34.6k|    {
 4953|  34.6k|      int i, z;
 4954|  34.6k|      CClassNode* cc = NCCLASS(node);
  ------------------
  |  |   77|  34.6k|#define NCCLASS(node)      (&((node)->u.cclass))
  ------------------
 4955|       |
 4956|       |      /* no need to check ignore case. (set in setup_tree()) */
 4957|       |
 4958|  34.6k|      if (IS_NOT_NULL(cc->mbuf) || IS_NCCLASS_NOT(cc)) {
  ------------------
  |  |  312|  69.2k|#define IS_NOT_NULL(p)                (((void*)(p)) != (void*)0)
  |  |  ------------------
  |  |  |  Branch (312:39): [True: 0, False: 34.6k]
  |  |  ------------------
  ------------------
                    if (IS_NOT_NULL(cc->mbuf) || IS_NCCLASS_NOT(cc)) {
  ------------------
  |  |  809|  34.6k|#define IS_NCCLASS_NOT(nd)      IS_NCCLASS_FLAG_ON(nd, FLAG_NCCLASS_NOT)
  |  |  ------------------
  |  |  |  |  802|  34.6k|#define IS_NCCLASS_FLAG_ON(cc,flag) ((NCCLASS_FLAGS(cc) & (flag)) != 0)
  |  |  |  |  ------------------
  |  |  |  |  |  |  799|  34.6k|#define NCCLASS_FLAGS(cc)           ((cc)->flags)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (802:37): [True: 8.58k, False: 26.0k]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 4959|  8.58k|	OnigDistance min = ONIGENC_MBC_MINLEN(env->enc);
  ------------------
  |  |  367|  8.58k|#define ONIGENC_MBC_MINLEN(enc)               ((enc)->min_enc_len)
  ------------------
 4960|  8.58k|	OnigDistance max = ONIGENC_MBC_MAXLEN_DIST(env->enc);
  ------------------
  |  |  366|  8.58k|#define ONIGENC_MBC_MAXLEN_DIST(enc)           ONIGENC_MBC_MAXLEN(enc)
  |  |  ------------------
  |  |  |  |  365|  8.58k|#define ONIGENC_MBC_MAXLEN(enc)               ((enc)->max_enc_len)
  |  |  ------------------
  ------------------
 4961|       |
 4962|  8.58k|	set_mml(&opt->len, min, max);
 4963|  8.58k|      }
 4964|  26.0k|      else {
 4965|  6.69M|	for (i = 0; i < SINGLE_BYTE_SIZE; i++) {
  ------------------
  |  |  426|  6.69M|#define SINGLE_BYTE_SIZE   (1 << BITS_PER_BYTE)
  |  |  ------------------
  |  |  |  |  425|  6.69M|#define BITS_PER_BYTE      8
  |  |  ------------------
  ------------------
  |  Branch (4965:14): [True: 6.66M, False: 26.0k]
  ------------------
 4966|  6.66M|	  z = BITSET_AT(cc->bs, i);
  ------------------
  |  |  448|  6.66M|#define BITSET_AT(bs, pos)         (BS_ROOM(bs,pos) & BS_BIT(pos))
  |  |  ------------------
  |  |  |  |  445|  6.66M|#define BS_ROOM(bs,pos)            (bs)[(int )(pos) / BITS_IN_ROOM]
  |  |  |  |  ------------------
  |  |  |  |  |  |  427|  6.66M|#define BITS_IN_ROOM       ((int )sizeof(Bits) * BITS_PER_BYTE)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  425|  6.66M|#define BITS_PER_BYTE      8
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |               #define BITSET_AT(bs, pos)         (BS_ROOM(bs,pos) & BS_BIT(pos))
  |  |  ------------------
  |  |  |  |  446|  6.66M|#define BS_BIT(pos)                (1U << ((int )(pos) % BITS_IN_ROOM))
  |  |  |  |  ------------------
  |  |  |  |  |  |  427|  6.66M|#define BITS_IN_ROOM       ((int )sizeof(Bits) * BITS_PER_BYTE)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  425|  6.66M|#define BITS_PER_BYTE      8
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 4967|  6.66M|	  if ((z && !IS_NCCLASS_NOT(cc)) || (!z && IS_NCCLASS_NOT(cc))) {
  ------------------
  |  |  809|   128k|#define IS_NCCLASS_NOT(nd)      IS_NCCLASS_FLAG_ON(nd, FLAG_NCCLASS_NOT)
  |  |  ------------------
  |  |  |  |  802|   128k|#define IS_NCCLASS_FLAG_ON(cc,flag) ((NCCLASS_FLAGS(cc) & (flag)) != 0)
  |  |  |  |  ------------------
  |  |  |  |  |  |  799|   128k|#define NCCLASS_FLAGS(cc)           ((cc)->flags)
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
              	  if ((z && !IS_NCCLASS_NOT(cc)) || (!z && IS_NCCLASS_NOT(cc))) {
  ------------------
  |  |  809|  6.54M|#define IS_NCCLASS_NOT(nd)      IS_NCCLASS_FLAG_ON(nd, FLAG_NCCLASS_NOT)
  |  |  ------------------
  |  |  |  |  802|  6.54M|#define IS_NCCLASS_FLAG_ON(cc,flag) ((NCCLASS_FLAGS(cc) & (flag)) != 0)
  |  |  |  |  ------------------
  |  |  |  |  |  |  799|  6.54M|#define NCCLASS_FLAGS(cc)           ((cc)->flags)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (802:37): [True: 0, False: 6.54M]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  |  Branch (4967:9): [True: 128k, False: 6.54M]
  |  Branch (4967:14): [True: 128k, False: 0]
  |  Branch (4967:39): [True: 6.54M, False: 0]
  ------------------
 4968|   128k|	    add_char_opt_map_info(&opt->map, (UChar )i, env->enc);
 4969|   128k|	  }
 4970|  6.66M|	}
 4971|  26.0k|	set_mml(&opt->len, 1, 1);
 4972|  26.0k|      }
 4973|  34.6k|    }
 4974|  34.6k|    break;
 4975|       |
 4976|      0|  case NT_CTYPE:
  ------------------
  |  |   40|      0|#define NT_CTYPE       2
  ------------------
  |  Branch (4976:3): [True: 0, False: 267k]
  ------------------
 4977|      0|    {
 4978|      0|      int i, min, max;
 4979|      0|      int maxcode;
 4980|       |
 4981|      0|      max = ONIGENC_MBC_MAXLEN_DIST(env->enc);
  ------------------
  |  |  366|      0|#define ONIGENC_MBC_MAXLEN_DIST(enc)           ONIGENC_MBC_MAXLEN(enc)
  |  |  ------------------
  |  |  |  |  365|      0|#define ONIGENC_MBC_MAXLEN(enc)               ((enc)->max_enc_len)
  |  |  ------------------
  ------------------
 4982|       |
 4983|      0|      if (max == 1) {
  ------------------
  |  Branch (4983:11): [True: 0, False: 0]
  ------------------
 4984|      0|	min = 1;
 4985|       |
 4986|      0|	maxcode = NCTYPE(node)->ascii_range ? 0x80 : SINGLE_BYTE_SIZE;
  ------------------
  |  |   78|      0|#define NCTYPE(node)       (&((node)->u.ctype))
  ------------------
              	maxcode = NCTYPE(node)->ascii_range ? 0x80 : SINGLE_BYTE_SIZE;
  ------------------
  |  |  426|      0|#define SINGLE_BYTE_SIZE   (1 << BITS_PER_BYTE)
  |  |  ------------------
  |  |  |  |  425|      0|#define BITS_PER_BYTE      8
  |  |  ------------------
  ------------------
  |  Branch (4986:12): [True: 0, False: 0]
  ------------------
 4987|      0|	switch (NCTYPE(node)->ctype) {
  ------------------
  |  |   78|      0|#define NCTYPE(node)       (&((node)->u.ctype))
  ------------------
  |  Branch (4987:10): [True: 0, False: 0]
  ------------------
 4988|      0|	case ONIGENC_CTYPE_WORD:
  ------------------
  |  |  306|      0|#define ONIGENC_CTYPE_WORD     12
  ------------------
  |  Branch (4988:2): [True: 0, False: 0]
  ------------------
 4989|      0|	  if (NCTYPE(node)->not != 0) {
  ------------------
  |  |   78|      0|#define NCTYPE(node)       (&((node)->u.ctype))
  ------------------
  |  Branch (4989:8): [True: 0, False: 0]
  ------------------
 4990|      0|	    for (i = 0; i < SINGLE_BYTE_SIZE; i++) {
  ------------------
  |  |  426|      0|#define SINGLE_BYTE_SIZE   (1 << BITS_PER_BYTE)
  |  |  ------------------
  |  |  |  |  425|      0|#define BITS_PER_BYTE      8
  |  |  ------------------
  ------------------
  |  Branch (4990:18): [True: 0, False: 0]
  ------------------
 4991|      0|	      if (! ONIGENC_IS_CODE_WORD(env->enc, i) || i >= maxcode) {
  ------------------
  |  |  404|      0|        ONIGENC_IS_CODE_CTYPE(enc,code,ONIGENC_CTYPE_WORD)
  |  |  ------------------
  |  |  |  |  375|      0|#define ONIGENC_IS_CODE_CTYPE(enc,code,ctype)  (enc)->is_code_ctype(code,ctype,enc)
  |  |  ------------------
  ------------------
  |  Branch (4991:12): [True: 0, False: 0]
  |  Branch (4991:51): [True: 0, False: 0]
  ------------------
 4992|      0|		add_char_opt_map_info(&opt->map, (UChar )i, env->enc);
 4993|      0|	      }
 4994|      0|	    }
 4995|      0|	  }
 4996|      0|	  else {
 4997|      0|	    for (i = 0; i < maxcode; i++) {
  ------------------
  |  Branch (4997:18): [True: 0, False: 0]
  ------------------
 4998|      0|	      if (ONIGENC_IS_CODE_WORD(env->enc, i)) {
  ------------------
  |  |  404|      0|        ONIGENC_IS_CODE_CTYPE(enc,code,ONIGENC_CTYPE_WORD)
  |  |  ------------------
  |  |  |  |  375|      0|#define ONIGENC_IS_CODE_CTYPE(enc,code,ctype)  (enc)->is_code_ctype(code,ctype,enc)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (375:48): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 4999|      0|		add_char_opt_map_info(&opt->map, (UChar )i, env->enc);
 5000|      0|	      }
 5001|      0|	    }
 5002|      0|	  }
 5003|      0|	  break;
 5004|      0|	}
 5005|      0|      }
 5006|      0|      else {
 5007|      0|	min = ONIGENC_MBC_MINLEN(env->enc);
  ------------------
  |  |  367|      0|#define ONIGENC_MBC_MINLEN(enc)               ((enc)->min_enc_len)
  ------------------
 5008|      0|      }
 5009|      0|      set_mml(&opt->len, min, max);
 5010|      0|    }
 5011|      0|    break;
 5012|       |
 5013|  14.5k|  case NT_CANY:
  ------------------
  |  |   41|  14.5k|#define NT_CANY        3
  ------------------
  |  Branch (5013:3): [True: 14.5k, False: 253k]
  ------------------
 5014|  14.5k|    {
 5015|  14.5k|      OnigDistance min = ONIGENC_MBC_MINLEN(env->enc);
  ------------------
  |  |  367|  14.5k|#define ONIGENC_MBC_MINLEN(enc)               ((enc)->min_enc_len)
  ------------------
 5016|  14.5k|      OnigDistance max = ONIGENC_MBC_MAXLEN_DIST(env->enc);
  ------------------
  |  |  366|  14.5k|#define ONIGENC_MBC_MAXLEN_DIST(enc)           ONIGENC_MBC_MAXLEN(enc)
  |  |  ------------------
  |  |  |  |  365|  14.5k|#define ONIGENC_MBC_MAXLEN(enc)               ((enc)->max_enc_len)
  |  |  ------------------
  ------------------
 5017|  14.5k|      set_mml(&opt->len, min, max);
 5018|  14.5k|    }
 5019|  14.5k|    break;
 5020|       |
 5021|  41.9k|  case NT_ANCHOR:
  ------------------
  |  |   45|  41.9k|#define NT_ANCHOR      7
  ------------------
  |  Branch (5021:3): [True: 41.9k, False: 225k]
  ------------------
 5022|  41.9k|    switch (NANCHOR(node)->type) {
  ------------------
  |  |   82|  41.9k|#define NANCHOR(node)      (&((node)->u.anchor))
  ------------------
  |  Branch (5022:13): [True: 1.44k, False: 40.5k]
  ------------------
 5023|      0|    case ANCHOR_BEGIN_BUF:
  ------------------
  |  |  540|      0|#define ANCHOR_BEGIN_BUF        (1<<0)
  ------------------
  |  Branch (5023:5): [True: 0, False: 41.9k]
  ------------------
 5024|      0|    case ANCHOR_BEGIN_POSITION:
  ------------------
  |  |  542|      0|#define ANCHOR_BEGIN_POSITION   (1<<2)
  ------------------
  |  Branch (5024:5): [True: 0, False: 41.9k]
  ------------------
 5025|  28.9k|    case ANCHOR_BEGIN_LINE:
  ------------------
  |  |  541|  28.9k|#define ANCHOR_BEGIN_LINE       (1<<1)
  ------------------
  |  Branch (5025:5): [True: 28.9k, False: 13.0k]
  ------------------
 5026|  28.9k|    case ANCHOR_END_BUF:
  ------------------
  |  |  543|  28.9k|#define ANCHOR_END_BUF          (1<<3)
  ------------------
  |  Branch (5026:5): [True: 0, False: 41.9k]
  ------------------
 5027|  28.9k|    case ANCHOR_SEMI_END_BUF:
  ------------------
  |  |  544|  28.9k|#define ANCHOR_SEMI_END_BUF     (1<<4)
  ------------------
  |  Branch (5027:5): [True: 0, False: 41.9k]
  ------------------
 5028|  40.5k|    case ANCHOR_END_LINE:
  ------------------
  |  |  545|  40.5k|#define ANCHOR_END_LINE         (1<<5)
  ------------------
  |  Branch (5028:5): [True: 11.6k, False: 30.3k]
  ------------------
 5029|  40.5k|    case ANCHOR_LOOK_BEHIND:	/* just for (?<=x).* */
  ------------------
  |  |  553|  40.5k|#define ANCHOR_LOOK_BEHIND      (1<<12)
  ------------------
  |  Branch (5029:5): [True: 0, False: 41.9k]
  ------------------
 5030|  40.5k|    case ANCHOR_PREC_READ_NOT:	/* just for (?!x).* */
  ------------------
  |  |  552|  40.5k|#define ANCHOR_PREC_READ_NOT    (1<<11)
  ------------------
  |  Branch (5030:5): [True: 0, False: 41.9k]
  ------------------
 5031|  40.5k|      add_opt_anc_info(&opt->anc, NANCHOR(node)->type);
  ------------------
  |  |   82|  40.5k|#define NANCHOR(node)      (&((node)->u.anchor))
  ------------------
 5032|  40.5k|      break;
 5033|       |
 5034|      0|    case ANCHOR_PREC_READ:
  ------------------
  |  |  551|      0|#define ANCHOR_PREC_READ        (1<<10)
  ------------------
  |  Branch (5034:5): [True: 0, False: 41.9k]
  ------------------
 5035|      0|      {
 5036|      0|	NodeOptInfo nopt;
 5037|       |
 5038|      0|	r = optimize_node_left(NANCHOR(node)->target, &nopt, env);
  ------------------
  |  |   82|      0|#define NANCHOR(node)      (&((node)->u.anchor))
  ------------------
 5039|      0|	if (r == 0) {
  ------------------
  |  Branch (5039:6): [True: 0, False: 0]
  ------------------
 5040|      0|	  if (nopt.exb.len > 0)
  ------------------
  |  Branch (5040:8): [True: 0, False: 0]
  ------------------
 5041|      0|	    copy_opt_exact_info(&opt->expr, &nopt.exb);
 5042|      0|	  else if (nopt.exm.len > 0)
  ------------------
  |  Branch (5042:13): [True: 0, False: 0]
  ------------------
 5043|      0|	    copy_opt_exact_info(&opt->expr, &nopt.exm);
 5044|       |
 5045|      0|	  opt->expr.reach_end = 0;
 5046|       |
 5047|      0|	  if (nopt.map.value > 0)
  ------------------
  |  Branch (5047:8): [True: 0, False: 0]
  ------------------
 5048|      0|	    copy_opt_map_info(&opt->map, &nopt.map);
 5049|      0|	}
 5050|      0|      }
 5051|      0|      break;
 5052|       |
 5053|      0|    case ANCHOR_LOOK_BEHIND_NOT:
  ------------------
  |  |  554|      0|#define ANCHOR_LOOK_BEHIND_NOT  (1<<13)
  ------------------
  |  Branch (5053:5): [True: 0, False: 41.9k]
  ------------------
 5054|      0|      break;
 5055|  41.9k|    }
 5056|  41.9k|    break;
 5057|       |
 5058|  41.9k|  case NT_BREF:
  ------------------
  |  |   42|      0|#define NT_BREF        4
  ------------------
  |  Branch (5058:3): [True: 0, False: 267k]
  ------------------
 5059|      0|    {
 5060|      0|      int i;
 5061|      0|      int* backs;
 5062|      0|      OnigDistance min, max, tmin, tmax;
 5063|      0|      Node** nodes = SCANENV_MEM_NODES(env->scan_env);
  ------------------
  |  |  287|      0| (IS_NOT_NULL((senv)->mem_nodes_dynamic) ? \
  |  |  ------------------
  |  |  |  |  312|      0|#define IS_NOT_NULL(p)                (((void*)(p)) != (void*)0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (312:39): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  288|      0|    (senv)->mem_nodes_dynamic : (senv)->mem_nodes_static)
  ------------------
 5064|      0|      BRefNode* br = NBREF(node);
  ------------------
  |  |   79|      0|#define NBREF(node)        (&((node)->u.bref))
  ------------------
 5065|       |
 5066|      0|      if (br->state & NST_RECURSION) {
  ------------------
  |  |  135|      0|#define NST_RECURSION             (1<<7)
  ------------------
  |  Branch (5066:11): [True: 0, False: 0]
  ------------------
 5067|      0|	set_mml(&opt->len, 0, ONIG_INFINITE_DISTANCE);
  ------------------
  |  |   85|      0|#define ONIG_INFINITE_DISTANCE  ~((OnigDistance )0)
  ------------------
 5068|      0|	break;
 5069|      0|      }
 5070|      0|      backs = BACKREFS_P(br);
  ------------------
  |  |  120|      0|  (IS_NOT_NULL((br)->back_dynamic) ? (br)->back_dynamic : (br)->back_static);
  |  |  ------------------
  |  |  |  |  312|      0|#define IS_NOT_NULL(p)                (((void*)(p)) != (void*)0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (312:39): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 5071|      0|      r = get_min_match_length(nodes[backs[0]], &min, env->scan_env);
 5072|      0|      if (r != 0) break;
  ------------------
  |  Branch (5072:11): [True: 0, False: 0]
  ------------------
 5073|      0|      r = get_max_match_length(nodes[backs[0]], &max, env->scan_env);
 5074|      0|      if (r != 0) break;
  ------------------
  |  Branch (5074:11): [True: 0, False: 0]
  ------------------
 5075|      0|      for (i = 1; i < br->back_num; i++) {
  ------------------
  |  Branch (5075:19): [True: 0, False: 0]
  ------------------
 5076|      0|	r = get_min_match_length(nodes[backs[i]], &tmin, env->scan_env);
 5077|      0|	if (r != 0) break;
  ------------------
  |  Branch (5077:6): [True: 0, False: 0]
  ------------------
 5078|      0|	r = get_max_match_length(nodes[backs[i]], &tmax, env->scan_env);
 5079|      0|	if (r != 0) break;
  ------------------
  |  Branch (5079:6): [True: 0, False: 0]
  ------------------
 5080|      0|	if (min > tmin) min = tmin;
  ------------------
  |  Branch (5080:6): [True: 0, False: 0]
  ------------------
 5081|      0|	if (max < tmax) max = tmax;
  ------------------
  |  Branch (5081:6): [True: 0, False: 0]
  ------------------
 5082|      0|      }
 5083|      0|      if (r == 0) set_mml(&opt->len, min, max);
  ------------------
  |  Branch (5083:11): [True: 0, False: 0]
  ------------------
 5084|      0|    }
 5085|      0|    break;
 5086|       |
 5087|      0|#ifdef USE_SUBEXP_CALL
 5088|      0|  case NT_CALL:
  ------------------
  |  |   48|      0|#define NT_CALL       10
  ------------------
  |  Branch (5088:3): [True: 0, False: 267k]
  ------------------
 5089|      0|    if (IS_CALL_RECURSION(NCALL(node)))
  ------------------
  |  |  161|      0|#define IS_CALL_RECURSION(cn)          (((cn)->state & NST_RECURSION)  != 0)
  |  |  ------------------
  |  |  |  |  135|      0|#define NST_RECURSION             (1<<7)
  |  |  ------------------
  |  |  |  Branch (161:40): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 5090|      0|      set_mml(&opt->len, 0, ONIG_INFINITE_DISTANCE);
  ------------------
  |  |   85|      0|#define ONIG_INFINITE_DISTANCE  ~((OnigDistance )0)
  ------------------
 5091|      0|    else {
 5092|      0|      OnigOptionType save = env->options;
 5093|      0|      env->options = NENCLOSE(NCALL(node)->target)->option;
  ------------------
  |  |   81|      0|#define NENCLOSE(node)     (&((node)->u.enclose))
  ------------------
 5094|      0|      r = optimize_node_left(NCALL(node)->target, opt, env);
  ------------------
  |  |   84|      0|#define NCALL(node)        (&((node)->u.call))
  ------------------
 5095|      0|      env->options = save;
 5096|      0|    }
 5097|      0|    break;
 5098|      0|#endif
 5099|       |
 5100|  43.3k|  case NT_QTFR:
  ------------------
  |  |   43|  43.3k|#define NT_QTFR        5
  ------------------
  |  Branch (5100:3): [True: 43.3k, False: 224k]
  ------------------
 5101|  43.3k|    {
 5102|  43.3k|      int i;
 5103|  43.3k|      OnigDistance min, max;
 5104|  43.3k|      NodeOptInfo nopt;
 5105|  43.3k|      QtfrNode* qn = NQTFR(node);
  ------------------
  |  |   80|  43.3k|#define NQTFR(node)        (&((node)->u.qtfr))
  ------------------
 5106|       |
 5107|  43.3k|      r = optimize_node_left(qn->target, &nopt, env);
 5108|  43.3k|      if (r) break;
  ------------------
  |  Branch (5108:11): [True: 0, False: 43.3k]
  ------------------
 5109|       |
 5110|  43.3k|      if (qn->lower == 0 && IS_REPEAT_INFINITE(qn->upper)) {
  ------------------
  |  |  422|  17.4k|#define IS_REPEAT_INFINITE(n)   ((n) == REPEAT_INFINITE)
  |  |  ------------------
  |  |  |  |  421|  17.4k|#define REPEAT_INFINITE         -1
  |  |  ------------------
  |  |  |  Branch (422:33): [True: 15.9k, False: 1.46k]
  |  |  ------------------
  ------------------
  |  Branch (5110:11): [True: 17.4k, False: 25.9k]
  ------------------
 5111|  15.9k|	if (env->mmd.max == 0 &&
  ------------------
  |  Branch (5111:6): [True: 8.70k, False: 7.23k]
  ------------------
 5112|  15.9k|	    NTYPE(qn->target) == NT_CANY && qn->greedy) {
  ------------------
  |  |   69|  8.70k|#define NTYPE(node)             ((node)->u.base.type)
  ------------------
              	    NTYPE(qn->target) == NT_CANY && qn->greedy) {
  ------------------
  |  |   41|  24.6k|#define NT_CANY        3
  ------------------
  |  Branch (5112:6): [True: 0, False: 8.70k]
  |  Branch (5112:38): [True: 0, False: 0]
  ------------------
 5113|      0|	  if (IS_MULTILINE(env->options))
  ------------------
  |  |  395|      0|#define IS_MULTILINE(option)      ((option) & ONIG_OPTION_MULTILINE)
  |  |  ------------------
  |  |  |  |  456|      0|#define ONIG_OPTION_MULTILINE            (ONIG_OPTION_EXTEND             << 1)
  |  |  |  |  ------------------
  |  |  |  |  |  |  455|      0|#define ONIG_OPTION_EXTEND               (ONIG_OPTION_IGNORECASE         << 1)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  454|      0|#define ONIG_OPTION_IGNORECASE           1U
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  |  Branch (395:35): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 5114|       |	    /* implicit anchor: /.*a/ ==> /\A.*a/ */
 5115|      0|	    add_opt_anc_info(&opt->anc, ANCHOR_ANYCHAR_STAR_ML);
  ------------------
  |  |  557|      0|#define ANCHOR_ANYCHAR_STAR_ML  (1<<15)   /* ".*" optimize info (multi-line) */
  ------------------
 5116|      0|	  else
 5117|      0|	    add_opt_anc_info(&opt->anc, ANCHOR_ANYCHAR_STAR);
  ------------------
  |  |  556|      0|#define ANCHOR_ANYCHAR_STAR     (1<<14)   /* ".*" optimize info */
  ------------------
 5118|      0|	}
 5119|  15.9k|      }
 5120|  27.3k|      else {
 5121|  27.3k|	if (qn->lower > 0) {
  ------------------
  |  Branch (5121:6): [True: 25.9k, False: 1.46k]
  ------------------
 5122|  25.9k|	  copy_node_opt_info(opt, &nopt);
 5123|  25.9k|	  if (nopt.exb.len > 0) {
  ------------------
  |  Branch (5123:8): [True: 0, False: 25.9k]
  ------------------
 5124|      0|	    if (nopt.exb.reach_end) {
  ------------------
  |  Branch (5124:10): [True: 0, False: 0]
  ------------------
 5125|      0|	      for (i = 2; i <= qn->lower &&
  ------------------
  |  Branch (5125:20): [True: 0, False: 0]
  ------------------
 5126|      0|			  ! is_full_opt_exact_info(&opt->exb); i++) {
  ------------------
  |  Branch (5126:6): [True: 0, False: 0]
  ------------------
 5127|      0|		concat_opt_exact_info(&opt->exb, &nopt.exb, env->enc);
 5128|      0|	      }
 5129|      0|	      if (i < qn->lower) {
  ------------------
  |  Branch (5129:12): [True: 0, False: 0]
  ------------------
 5130|      0|		opt->exb.reach_end = 0;
 5131|      0|	      }
 5132|      0|	    }
 5133|      0|	  }
 5134|       |
 5135|  25.9k|	  if (qn->lower != qn->upper) {
  ------------------
  |  Branch (5135:8): [True: 25.9k, False: 0]
  ------------------
 5136|  25.9k|	    opt->exb.reach_end = 0;
 5137|  25.9k|	    opt->exm.reach_end = 0;
 5138|  25.9k|	  }
 5139|  25.9k|	  if (qn->lower > 1)
  ------------------
  |  Branch (5139:8): [True: 0, False: 25.9k]
  ------------------
 5140|      0|	    opt->exm.reach_end = 0;
 5141|  25.9k|	}
 5142|  27.3k|      }
 5143|       |
 5144|  43.3k|      min = distance_multiply(nopt.len.min, qn->lower);
 5145|  43.3k|      if (IS_REPEAT_INFINITE(qn->upper))
  ------------------
  |  |  422|  43.3k|#define IS_REPEAT_INFINITE(n)   ((n) == REPEAT_INFINITE)
  |  |  ------------------
  |  |  |  |  421|  43.3k|#define REPEAT_INFINITE         -1
  |  |  ------------------
  |  |  |  Branch (422:33): [True: 41.8k, False: 1.46k]
  |  |  ------------------
  ------------------
 5146|  41.8k|	max = (nopt.len.max > 0 ? ONIG_INFINITE_DISTANCE : 0);
  ------------------
  |  |   85|  41.8k|#define ONIG_INFINITE_DISTANCE  ~((OnigDistance )0)
  ------------------
  |  Branch (5146:9): [True: 41.8k, False: 0]
  ------------------
 5147|  1.46k|      else
 5148|  1.46k|	max = distance_multiply(nopt.len.max, qn->upper);
 5149|       |
 5150|  43.3k|      set_mml(&opt->len, min, max);
 5151|  43.3k|    }
 5152|      0|    break;
 5153|       |
 5154|  27.5k|  case NT_ENCLOSE:
  ------------------
  |  |   44|  27.5k|#define NT_ENCLOSE     6
  ------------------
  |  Branch (5154:3): [True: 27.5k, False: 240k]
  ------------------
 5155|  27.5k|    {
 5156|  27.5k|      EncloseNode* en = NENCLOSE(node);
  ------------------
  |  |   81|  27.5k|#define NENCLOSE(node)     (&((node)->u.enclose))
  ------------------
 5157|       |
 5158|  27.5k|      switch (en->type) {
  ------------------
  |  Branch (5158:15): [True: 0, False: 27.5k]
  ------------------
 5159|  1.45k|      case ENCLOSE_OPTION:
  ------------------
  |  |   95|  1.45k|#define ENCLOSE_OPTION           (1<<1)
  ------------------
  |  Branch (5159:7): [True: 1.45k, False: 26.0k]
  ------------------
 5160|  1.45k|	{
 5161|  1.45k|	  OnigOptionType save = env->options;
 5162|       |
 5163|  1.45k|	  env->options = en->option;
 5164|  1.45k|	  r = optimize_node_left(en->target, opt, env);
 5165|  1.45k|	  env->options = save;
 5166|  1.45k|	}
 5167|  1.45k|	break;
 5168|       |
 5169|  7.38k|      case ENCLOSE_MEMORY:
  ------------------
  |  |   94|  7.38k|#define ENCLOSE_MEMORY           (1<<0)
  ------------------
  |  Branch (5169:7): [True: 7.38k, False: 20.1k]
  ------------------
 5170|  7.38k|#ifdef USE_SUBEXP_CALL
 5171|  7.38k|	en->opt_count++;
 5172|  7.38k|	if (en->opt_count > MAX_NODE_OPT_INFO_REF_COUNT) {
  ------------------
  |  | 4862|  7.38k|#define MAX_NODE_OPT_INFO_REF_COUNT    5
  ------------------
  |  Branch (5172:6): [True: 0, False: 7.38k]
  ------------------
 5173|      0|	  OnigDistance min, max;
 5174|       |
 5175|      0|	  min = 0;
 5176|      0|	  max = ONIG_INFINITE_DISTANCE;
  ------------------
  |  |   85|      0|#define ONIG_INFINITE_DISTANCE  ~((OnigDistance )0)
  ------------------
 5177|      0|	  if (IS_ENCLOSE_MIN_FIXED(en)) min = en->min_len;
  ------------------
  |  |  152|      0|#define IS_ENCLOSE_MIN_FIXED(en)       (((en)->state & NST_MIN_FIXED)     != 0)
  |  |  ------------------
  |  |  |  |  128|      0|#define NST_MIN_FIXED             (1<<0)
  |  |  ------------------
  |  |  |  Branch (152:40): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 5178|      0|	  if (IS_ENCLOSE_MAX_FIXED(en)) max = en->max_len;
  ------------------
  |  |  153|      0|#define IS_ENCLOSE_MAX_FIXED(en)       (((en)->state & NST_MAX_FIXED)     != 0)
  |  |  ------------------
  |  |  |  |  129|      0|#define NST_MAX_FIXED             (1<<1)
  |  |  ------------------
  |  |  |  Branch (153:40): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 5179|      0|	  set_mml(&opt->len, min, max);
 5180|      0|	}
 5181|  7.38k|	else
 5182|  7.38k|#endif
 5183|  7.38k|	{
 5184|  7.38k|	  r = optimize_node_left(en->target, opt, env);
 5185|       |
 5186|  7.38k|	  if (is_set_opt_anc_info(&opt->anc, ANCHOR_ANYCHAR_STAR_MASK)) {
  ------------------
  |  |   91|  7.38k|#define ANCHOR_ANYCHAR_STAR_MASK (ANCHOR_ANYCHAR_STAR | ANCHOR_ANYCHAR_STAR_ML)
  |  |  ------------------
  |  |  |  |  556|  7.38k|#define ANCHOR_ANYCHAR_STAR     (1<<14)   /* ".*" optimize info */
  |  |  ------------------
  |  |               #define ANCHOR_ANYCHAR_STAR_MASK (ANCHOR_ANYCHAR_STAR | ANCHOR_ANYCHAR_STAR_ML)
  |  |  ------------------
  |  |  |  |  557|  7.38k|#define ANCHOR_ANYCHAR_STAR_ML  (1<<15)   /* ".*" optimize info (multi-line) */
  |  |  ------------------
  ------------------
  |  Branch (5186:8): [True: 0, False: 7.38k]
  ------------------
 5187|      0|	    if (BIT_STATUS_AT(env->scan_env->backrefed_mem, en->regnum))
  ------------------
  |  |  371|      0|  ((n) < (int )BIT_STATUS_BITS_NUM  ?  ((stats) & ((BitStatusType )1 << n)) : ((stats) & 1))
  |  |  ------------------
  |  |  |  |  367|      0|#define BIT_STATUS_BITS_NUM          (sizeof(BitStatusType) * 8)
  |  |  ------------------
  |  |  |  Branch (371:3): [True: 0, False: 0]
  |  |  |  Branch (371:4): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 5188|      0|	      remove_opt_anc_info(&opt->anc, ANCHOR_ANYCHAR_STAR_MASK);
  ------------------
  |  |   91|      0|#define ANCHOR_ANYCHAR_STAR_MASK (ANCHOR_ANYCHAR_STAR | ANCHOR_ANYCHAR_STAR_ML)
  |  |  ------------------
  |  |  |  |  556|      0|#define ANCHOR_ANYCHAR_STAR     (1<<14)   /* ".*" optimize info */
  |  |  ------------------
  |  |               #define ANCHOR_ANYCHAR_STAR_MASK (ANCHOR_ANYCHAR_STAR | ANCHOR_ANYCHAR_STAR_ML)
  |  |  ------------------
  |  |  |  |  557|      0|#define ANCHOR_ANYCHAR_STAR_ML  (1<<15)   /* ".*" optimize info (multi-line) */
  |  |  ------------------
  ------------------
 5189|      0|	  }
 5190|  7.38k|	}
 5191|  7.38k|	break;
 5192|       |
 5193|  18.7k|      case ENCLOSE_STOP_BACKTRACK:
  ------------------
  |  |   96|  18.7k|#define ENCLOSE_STOP_BACKTRACK   (1<<2)
  ------------------
  |  Branch (5193:7): [True: 18.7k, False: 8.84k]
  ------------------
 5194|  18.7k|      case ENCLOSE_CONDITION:
  ------------------
  |  |   97|  18.7k|#define ENCLOSE_CONDITION        (1<<3)
  ------------------
  |  Branch (5194:7): [True: 0, False: 27.5k]
  ------------------
 5195|  18.7k|	r = optimize_node_left(en->target, opt, env);
 5196|  18.7k|	break;
 5197|       |
 5198|      0|      case ENCLOSE_ABSENT:
  ------------------
  |  |   98|      0|#define ENCLOSE_ABSENT           (1<<4)
  ------------------
  |  Branch (5198:7): [True: 0, False: 27.5k]
  ------------------
 5199|      0|	set_mml(&opt->len, 0, ONIG_INFINITE_DISTANCE);
  ------------------
  |  |   85|      0|#define ONIG_INFINITE_DISTANCE  ~((OnigDistance )0)
  ------------------
 5200|      0|	break;
 5201|  27.5k|      }
 5202|  27.5k|    }
 5203|  27.5k|    break;
 5204|       |
 5205|  27.5k|  default:
  ------------------
  |  Branch (5205:3): [True: 0, False: 267k]
  ------------------
 5206|       |#ifdef ONIG_DEBUG
 5207|       |    fprintf(stderr, "optimize_node_left: undefined node type %d\n",
 5208|       |	    NTYPE(node));
 5209|       |#endif
 5210|      0|    r = ONIGERR_TYPE_BUG;
  ------------------
  |  |  633|      0|#define ONIGERR_TYPE_BUG                                       -6
  ------------------
 5211|      0|    break;
 5212|   267k|  }
 5213|       |
 5214|   267k|  return r;
 5215|   267k|}
regcomp.c:clear_node_opt_info:
 4775|   267k|{
 4776|   267k|  clear_mml(&opt->len);
 4777|   267k|  clear_opt_anc_info(&opt->anc);
 4778|   267k|  clear_opt_exact_info(&opt->exb);
 4779|   267k|  clear_opt_exact_info(&opt->exm);
 4780|   267k|  clear_opt_exact_info(&opt->expr);
 4781|   267k|  clear_opt_map_info(&opt->map);
 4782|   267k|}
regcomp.c:clear_opt_anc_info:
 4427|  1.25M|{
 4428|  1.25M|  anc->left_anchor  = 0;
 4429|  1.25M|  anc->right_anchor = 0;
 4430|  1.25M|}
regcomp.c:clear_opt_exact_info:
 4510|   831k|{
 4511|   831k|  clear_mml(&ex->mmd);
 4512|   831k|  clear_opt_anc_info(&ex->anc);
 4513|   831k|  ex->reach_end   = 0;
 4514|   831k|  ex->ignore_case = -1;   /* unset */
 4515|   831k|  ex->len         = 0;
 4516|   831k|  ex->s[0]        = '\0';
 4517|   831k|}
regcomp.c:clear_opt_map_info:
 4643|   267k|{
 4644|   267k|  static const OptMapInfo clean_info = {
 4645|   267k|    {0, 0}, {0, 0}, 0,
 4646|   267k|    {
 4647|   267k|      0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
 4648|   267k|      0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
 4649|   267k|      0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
 4650|   267k|      0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
 4651|   267k|      0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
 4652|   267k|      0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
 4653|   267k|      0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
 4654|   267k|      0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
 4655|   267k|      0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
 4656|   267k|      0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
 4657|   267k|      0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
 4658|   267k|      0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
 4659|   267k|      0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
 4660|   267k|      0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
 4661|   267k|      0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
 4662|   267k|      0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0
 4663|   267k|    }
 4664|   267k|  };
 4665|       |
 4666|   267k|  xmemcpy(map, &clean_info, sizeof(OptMapInfo));
  ------------------
  |  |  215|   267k|#define xmemcpy     memcpy
  ------------------
 4667|   267k|}
regcomp.c:set_bound_node_opt_info:
 4767|   267k|{
 4768|   267k|  copy_mml(&(opt->exb.mmd),  mmd);
 4769|   267k|  copy_mml(&(opt->expr.mmd), mmd);
 4770|   267k|  copy_mml(&(opt->map.mmd),  mmd);
 4771|   267k|}
regcomp.c:copy_mml:
 4391|   803k|{
 4392|   803k|  to->min = from->min;
 4393|   803k|  to->max = from->max;
 4394|   803k|}
regcomp.c:copy_opt_env:
 4421|  34.6k|{
 4422|  34.6k|  *to = *from;
 4423|  34.6k|}
regcomp.c:add_mml:
 4398|   286k|{
 4399|   286k|  to->min = distance_add(to->min, from->min);
 4400|   286k|  to->max = distance_add(to->max, from->max);
 4401|   286k|}
regcomp.c:concat_left_node_opt_info:
 4792|   143k|{
 4793|   143k|  int exb_reach, exm_reach;
 4794|   143k|  OptAncInfo tanc;
 4795|       |
 4796|   143k|  concat_opt_anc_info(&tanc, &to->anc, &add->anc, to->len.max, add->len.max);
 4797|   143k|  copy_opt_anc_info(&to->anc, &tanc);
 4798|       |
 4799|   143k|  if (add->exb.len > 0 && to->len.max == 0) {
  ------------------
  |  Branch (4799:7): [True: 41.9k, False: 101k]
  |  Branch (4799:27): [True: 8.64k, False: 33.3k]
  ------------------
 4800|  8.64k|    concat_opt_anc_info(&tanc, &to->anc, &add->exb.anc,
 4801|  8.64k|			to->len.max, add->len.max);
 4802|  8.64k|    copy_opt_anc_info(&add->exb.anc, &tanc);
 4803|  8.64k|  }
 4804|       |
 4805|   143k|  if (add->map.value > 0 && to->len.max == 0) {
  ------------------
  |  Branch (4805:7): [True: 66.5k, False: 76.7k]
  |  Branch (4805:29): [True: 15.8k, False: 50.6k]
  ------------------
 4806|  15.8k|    if (add->map.mmd.max == 0)
  ------------------
  |  Branch (4806:9): [True: 15.8k, False: 0]
  ------------------
 4807|  15.8k|      add->map.anc.left_anchor |= to->anc.left_anchor;
 4808|  15.8k|  }
 4809|       |
 4810|   143k|  exb_reach = to->exb.reach_end;
 4811|   143k|  exm_reach = to->exm.reach_end;
 4812|       |
 4813|   143k|  if (add->len.max != 0)
  ------------------
  |  Branch (4813:7): [True: 99.8k, False: 43.4k]
  ------------------
 4814|  99.8k|    to->exb.reach_end = to->exm.reach_end = 0;
 4815|       |
 4816|   143k|  if (add->exb.len > 0) {
  ------------------
  |  Branch (4816:7): [True: 41.9k, False: 101k]
  ------------------
 4817|  41.9k|    if (exb_reach) {
  ------------------
  |  Branch (4817:9): [True: 0, False: 41.9k]
  ------------------
 4818|      0|      concat_opt_exact_info(&to->exb, &add->exb, enc);
 4819|      0|      clear_opt_exact_info(&add->exb);
 4820|      0|    }
 4821|  41.9k|    else if (exm_reach) {
  ------------------
  |  Branch (4821:14): [True: 1.47k, False: 40.4k]
  ------------------
 4822|  1.47k|      concat_opt_exact_info(&to->exm, &add->exb, enc);
 4823|  1.47k|      clear_opt_exact_info(&add->exb);
 4824|  1.47k|    }
 4825|  41.9k|  }
 4826|   143k|  select_opt_exact_info(enc, &to->exm, &add->exb);
 4827|   143k|  select_opt_exact_info(enc, &to->exm, &add->exm);
 4828|       |
 4829|   143k|  if (to->expr.len > 0) {
  ------------------
  |  Branch (4829:7): [True: 0, False: 143k]
  ------------------
 4830|      0|    if (add->len.max > 0) {
  ------------------
  |  Branch (4830:9): [True: 0, False: 0]
  ------------------
 4831|      0|      if (to->expr.len > (int )add->len.max)
  ------------------
  |  Branch (4831:11): [True: 0, False: 0]
  ------------------
 4832|      0|	to->expr.len = (int )add->len.max;
 4833|       |
 4834|      0|      if (to->expr.mmd.max == 0)
  ------------------
  |  Branch (4834:11): [True: 0, False: 0]
  ------------------
 4835|      0|	select_opt_exact_info(enc, &to->exb, &to->expr);
 4836|      0|      else
 4837|      0|	select_opt_exact_info(enc, &to->exm, &to->expr);
 4838|      0|    }
 4839|      0|  }
 4840|   143k|  else if (add->expr.len > 0) {
  ------------------
  |  Branch (4840:12): [True: 0, False: 143k]
  ------------------
 4841|      0|    copy_opt_exact_info(&to->expr, &add->expr);
 4842|      0|  }
 4843|       |
 4844|   143k|  select_opt_map_info(&to->map, &add->map);
 4845|       |
 4846|   143k|  add_mml(&to->len, &add->len);
 4847|   143k|}
regcomp.c:concat_opt_anc_info:
 4441|   153k|{
 4442|   153k|  clear_opt_anc_info(to);
 4443|       |
 4444|   153k|  to->left_anchor = left->left_anchor;
 4445|   153k|  if (left_len == 0) {
  ------------------
  |  Branch (4445:7): [True: 73.6k, False: 79.7k]
  ------------------
 4446|  73.6k|    to->left_anchor |= right->left_anchor;
 4447|  73.6k|  }
 4448|       |
 4449|   153k|  to->right_anchor = right->right_anchor;
 4450|   153k|  if (right_len == 0) {
  ------------------
  |  Branch (4450:7): [True: 43.4k, False: 110k]
  ------------------
 4451|  43.4k|    to->right_anchor |= left->right_anchor;
 4452|  43.4k|  }
 4453|   110k|  else {
 4454|   110k|    to->right_anchor |= (left->right_anchor & ANCHOR_PREC_READ_NOT);
  ------------------
  |  |  552|   110k|#define ANCHOR_PREC_READ_NOT    (1<<11)
  ------------------
 4455|   110k|  }
 4456|   153k|}
regcomp.c:copy_opt_anc_info:
 4434|   153k|{
 4435|   153k|  *to = *from;
 4436|   153k|}
regcomp.c:select_opt_map_info:
 4708|   143k|{
 4709|   143k|  const int z = 1<<15; /* 32768: something big value */
 4710|       |
 4711|   143k|  int v1, v2;
 4712|       |
 4713|   143k|  if (alt->value == 0) return ;
  ------------------
  |  Branch (4713:7): [True: 76.7k, False: 66.5k]
  ------------------
 4714|  66.5k|  if (now->value == 0) {
  ------------------
  |  Branch (4714:7): [True: 30.3k, False: 36.2k]
  ------------------
 4715|  30.3k|    copy_opt_map_info(now, alt);
 4716|  30.3k|    return ;
 4717|  30.3k|  }
 4718|       |
 4719|  36.2k|  v1 = z / now->value;
 4720|  36.2k|  v2 = z / alt->value;
 4721|  36.2k|  if (comp_distance_value(&now->mmd, &alt->mmd, v1, v2) > 0)
  ------------------
  |  Branch (4721:7): [True: 0, False: 36.2k]
  ------------------
 4722|      0|    copy_opt_map_info(now, alt);
 4723|  36.2k|}
regcomp.c:comp_distance_value:
 4354|  72.4k|{
 4355|  72.4k|  if (v2 <= 0) return -1;
  ------------------
  |  Branch (4355:7): [True: 0, False: 72.4k]
  ------------------
 4356|  72.4k|  if (v1 <= 0) return  1;
  ------------------
  |  Branch (4356:7): [True: 0, False: 72.4k]
  ------------------
 4357|       |
 4358|  72.4k|  v1 *= distance_value(d1);
 4359|  72.4k|  v2 *= distance_value(d2);
 4360|       |
 4361|  72.4k|  if (v2 > v1) return  1;
  ------------------
  |  Branch (4361:7): [True: 5.78k, False: 66.6k]
  ------------------
 4362|  66.6k|  if (v2 < v1) return -1;
  ------------------
  |  Branch (4362:7): [True: 31.7k, False: 34.9k]
  ------------------
 4363|       |
 4364|  34.9k|  if (d2->min < d1->min) return  1;
  ------------------
  |  Branch (4364:7): [True: 1.45k, False: 33.4k]
  ------------------
 4365|  33.4k|  if (d2->min > d1->min) return -1;
  ------------------
  |  Branch (4365:7): [True: 26.2k, False: 7.25k]
  ------------------
 4366|  7.25k|  return 0;
 4367|  33.4k|}
regcomp.c:distance_value:
 4325|   144k|{
 4326|       |  /* 1000 / (min-max-dist + 1) */
 4327|   144k|  static const short int dist_vals[] = {
 4328|   144k|    1000,  500,  333,  250,  200,  167,  143,  125,  111,  100,
 4329|   144k|      91,   83,   77,   71,   67,   63,   59,   56,   53,   50,
 4330|   144k|      48,   45,   43,   42,   40,   38,   37,   36,   34,   33,
 4331|   144k|      32,   31,   30,   29,   29,   28,   27,   26,   26,   25,
 4332|   144k|      24,   24,   23,   23,   22,   22,   21,   21,   20,   20,
 4333|   144k|      20,   19,   19,   19,   18,   18,   18,   17,   17,   17,
 4334|   144k|      16,   16,   16,   16,   15,   15,   15,   15,   14,   14,
 4335|   144k|      14,   14,   14,   14,   13,   13,   13,   13,   13,   13,
 4336|   144k|      12,   12,   12,   12,   12,   12,   11,   11,   11,   11,
 4337|   144k|      11,   11,   11,   11,   11,   10,   10,   10,   10,   10
 4338|   144k|  };
 4339|       |
 4340|   144k|  OnigDistance d;
 4341|       |
 4342|   144k|  if (mm->max == ONIG_INFINITE_DISTANCE) return 0;
  ------------------
  |  |   85|   144k|#define ONIG_INFINITE_DISTANCE  ~((OnigDistance )0)
  ------------------
  |  Branch (4342:7): [True: 91.3k, False: 53.4k]
  ------------------
 4343|       |
 4344|  53.4k|  d = mm->max - mm->min;
 4345|  53.4k|  if (d < numberof(dist_vals))
  ------------------
  |  |  129|  53.4k|# define numberof(array) (int )(sizeof(array) / sizeof((array)[0]))
  ------------------
  |  Branch (4345:7): [True: 53.4k, False: 0]
  ------------------
 4346|       |    /* return dist_vals[d] * 16 / (mm->min + 12); */
 4347|  53.4k|    return (int )dist_vals[d];
 4348|      0|  else
 4349|      0|    return 1;
 4350|  53.4k|}
regcomp.c:copy_node_opt_info:
 4786|  34.6k|{
 4787|  34.6k|  *to = *from;
 4788|  34.6k|}
regcomp.c:alt_merge_node_opt_info:
 4851|  11.7k|{
 4852|  11.7k|  alt_merge_opt_anc_info  (&to->anc,  &add->anc);
 4853|  11.7k|  alt_merge_opt_exact_info(&to->exb,  &add->exb, env);
 4854|  11.7k|  alt_merge_opt_exact_info(&to->exm,  &add->exm, env);
 4855|  11.7k|  alt_merge_opt_exact_info(&to->expr, &add->expr, env);
 4856|  11.7k|  alt_merge_opt_map_info(env->enc, &to->map,  &add->map);
 4857|       |
 4858|  11.7k|  alt_merge_mml(&to->len, &add->len);
 4859|  11.7k|}
regcomp.c:alt_merge_opt_anc_info:
 4497|  32.2k|{
 4498|  32.2k|  to->left_anchor  &= add->left_anchor;
 4499|  32.2k|  to->right_anchor &= add->right_anchor;
 4500|  32.2k|}
regcomp.c:alt_merge_opt_exact_info:
 4573|  35.1k|{
 4574|  35.1k|  int i, j, len;
 4575|       |
 4576|  35.1k|  if (add->len == 0 || to->len == 0) {
  ------------------
  |  Branch (4576:7): [True: 23.4k, False: 11.7k]
  |  Branch (4576:24): [True: 1.46k, False: 10.2k]
  ------------------
 4577|  24.8k|    clear_opt_exact_info(to);
 4578|  24.8k|    return ;
 4579|  24.8k|  }
 4580|       |
 4581|  10.2k|  if (! is_equal_mml(&to->mmd, &add->mmd)) {
  ------------------
  |  Branch (4581:7): [True: 1.43k, False: 8.80k]
  ------------------
 4582|  1.43k|    clear_opt_exact_info(to);
 4583|  1.43k|    return ;
 4584|  1.43k|  }
 4585|       |
 4586|  14.7k|  for (i = 0; i < to->len && i < add->len; ) {
  ------------------
  |  Branch (4586:15): [True: 14.7k, False: 0]
  |  Branch (4586:30): [True: 14.7k, False: 0]
  ------------------
 4587|  14.7k|    if (to->s[i] != add->s[i]) break;
  ------------------
  |  Branch (4587:9): [True: 8.80k, False: 5.90k]
  ------------------
 4588|  5.90k|    len = enclen(env->enc, to->s + i, to->s + to->len);
  ------------------
  |  |   93|  5.90k|#define enclen(enc,p,e) ((enc->max_enc_len == enc->min_enc_len) ? enc->min_enc_len : ONIGENC_MBC_ENC_LEN(enc,p,e))
  |  |  ------------------
  |  |  |  |  364|  5.90k|#define ONIGENC_MBC_ENC_LEN(enc,p,e)          onigenc_mbclen(p,e,enc)
  |  |  ------------------
  |  |  |  Branch (93:26): [True: 0, False: 5.90k]
  |  |  ------------------
  ------------------
 4589|       |
 4590|  5.90k|    for (j = 1; j < len; j++) {
  ------------------
  |  Branch (4590:17): [True: 0, False: 5.90k]
  ------------------
 4591|      0|      if (to->s[i+j] != add->s[i+j]) break;
  ------------------
  |  Branch (4591:11): [True: 0, False: 0]
  ------------------
 4592|      0|    }
 4593|  5.90k|    if (j < len) break;
  ------------------
  |  Branch (4593:9): [True: 0, False: 5.90k]
  ------------------
 4594|  5.90k|    i += len;
 4595|  5.90k|  }
 4596|       |
 4597|  8.80k|  if (! add->reach_end || i < add->len || i < to->len) {
  ------------------
  |  Branch (4597:7): [True: 0, False: 8.80k]
  |  Branch (4597:27): [True: 8.80k, False: 0]
  |  Branch (4597:43): [True: 0, False: 0]
  ------------------
 4598|  8.80k|    to->reach_end = 0;
 4599|  8.80k|  }
 4600|  8.80k|  to->len = i;
 4601|  8.80k|  if (to->ignore_case < 0)
  ------------------
  |  Branch (4601:7): [True: 0, False: 8.80k]
  ------------------
 4602|      0|    to->ignore_case = add->ignore_case;
 4603|  8.80k|  else if (add->ignore_case >= 0)
  ------------------
  |  Branch (4603:12): [True: 8.80k, False: 0]
  ------------------
 4604|  8.80k|    to->ignore_case |= add->ignore_case;
 4605|       |
 4606|  8.80k|  alt_merge_opt_anc_info(&to->anc, &add->anc);
 4607|  8.80k|  if (! to->reach_end) to->anc.right_anchor = 0;
  ------------------
  |  Branch (4607:7): [True: 8.80k, False: 0]
  ------------------
 4608|  8.80k|}
regcomp.c:is_equal_mml:
 4371|  10.2k|{
 4372|  10.2k|  return (a->min == b->min && a->max == b->max) ? 1 : 0;
  ------------------
  |  Branch (4372:11): [True: 8.80k, False: 1.43k]
  |  Branch (4372:31): [True: 8.80k, False: 0]
  ------------------
 4373|  10.2k|}
regcomp.c:alt_merge_opt_map_info:
 4740|  11.7k|{
 4741|  11.7k|  int i, val;
 4742|       |
 4743|       |  /* if (! is_equal_mml(&to->mmd, &add->mmd)) return ; */
 4744|  11.7k|  if (to->value == 0) return ;
  ------------------
  |  Branch (4744:7): [True: 0, False: 11.7k]
  ------------------
 4745|  11.7k|  if (add->value == 0 || to->mmd.max < add->mmd.min) {
  ------------------
  |  Branch (4745:7): [True: 0, False: 11.7k]
  |  Branch (4745:26): [True: 0, False: 11.7k]
  ------------------
 4746|      0|    clear_opt_map_info(to);
 4747|      0|    return ;
 4748|      0|  }
 4749|       |
 4750|  11.7k|  alt_merge_mml(&to->mmd, &add->mmd);
 4751|       |
 4752|  11.7k|  val = 0;
 4753|  3.01M|  for (i = 0; i < ONIG_CHAR_TABLE_SIZE; i++) {
  ------------------
  |  |  756|  3.01M|#define ONIG_CHAR_TABLE_SIZE   256
  ------------------
  |  Branch (4753:15): [True: 2.99M, False: 11.7k]
  ------------------
 4754|  2.99M|    if (add->map[i])
  ------------------
  |  Branch (4754:9): [True: 11.7k, False: 2.98M]
  ------------------
 4755|  11.7k|      to->map[i] = 1;
 4756|       |
 4757|  2.99M|    if (to->map[i])
  ------------------
  |  Branch (4757:9): [True: 21.9k, False: 2.97M]
  ------------------
 4758|  21.9k|      val += map_position_value(enc, i);
 4759|  2.99M|  }
 4760|  11.7k|  to->value = val;
 4761|       |
 4762|  11.7k|  alt_merge_opt_anc_info(&to->anc, &add->anc);
 4763|  11.7k|}
regcomp.c:map_position_value:
 4301|   214k|{
 4302|   214k|  static const short int ByteValTable[] = {
 4303|   214k|     5,  1,  1,  1,  1,  1,  1,  1,  1, 10, 10,  1,  1, 10,  1,  1,
 4304|   214k|     1,  1,  1,  1,  1,  1,  1,  1,  1,  1,  1,  1,  1,  1,  1,  1,
 4305|   214k|    12,  4,  7,  4,  4,  4,  4,  4,  4,  5,  5,  5,  5,  5,  5,  5,
 4306|   214k|     6,  6,  6,  6,  6,  6,  6,  6,  6,  6,  5,  5,  5,  5,  5,  5,
 4307|   214k|     5,  6,  6,  6,  6,  7,  6,  6,  6,  6,  6,  6,  6,  6,  6,  6,
 4308|   214k|     6,  6,  6,  6,  6,  6,  6,  6,  6,  6,  6,  5,  6,  5,  5,  5,
 4309|   214k|     5,  6,  6,  6,  6,  7,  6,  6,  6,  6,  6,  6,  6,  6,  6,  6,
 4310|   214k|     6,  6,  6,  6,  6,  6,  6,  6,  6,  6,  6,  5,  5,  5,  5,  1
 4311|   214k|  };
 4312|       |
 4313|   214k|  if (i < numberof(ByteValTable)) {
  ------------------
  |  |  129|   214k|# define numberof(array) (int )(sizeof(array) / sizeof((array)[0]))
  ------------------
  |  Branch (4313:7): [True: 214k, False: 0]
  ------------------
 4314|   214k|    if (i == 0 && ONIGENC_MBC_MINLEN(enc) > 1)
  ------------------
  |  |  367|      0|#define ONIGENC_MBC_MINLEN(enc)               ((enc)->min_enc_len)
  ------------------
  |  Branch (4314:9): [True: 0, False: 214k]
  |  Branch (4314:19): [True: 0, False: 0]
  ------------------
 4315|      0|      return 20;
 4316|   214k|    else
 4317|   214k|      return (int )ByteValTable[i];
 4318|   214k|  }
 4319|      0|  else
 4320|      0|    return 4;   /* Take it easy. */
 4321|   214k|}
regcomp.c:alt_merge_mml:
 4414|  23.4k|{
 4415|  23.4k|  if (to->min > from->min) to->min = from->min;
  ------------------
  |  Branch (4415:7): [True: 2.90k, False: 20.5k]
  ------------------
 4416|  23.4k|  if (to->max < from->max) to->max = from->max;
  ------------------
  |  Branch (4416:7): [True: 4.38k, False: 19.0k]
  ------------------
 4417|  23.4k|}
regcomp.c:concat_opt_exact_info_str:
 4557|  62.4k|{
 4558|  62.4k|  int i, j, len;
 4559|  62.4k|  UChar *p;
  ------------------
  |  |   76|  62.4k|# define UChar OnigUChar
  ------------------
 4560|       |
 4561|   516k|  for (i = to->len, p = s; p < end && i < OPT_EXACT_MAXLEN; ) {
  ------------------
  |  |   89|   459k|#define OPT_EXACT_MAXLEN   24	/* This must be smaller than ONIG_CHAR_TABLE_SIZE. */
  ------------------
  |  Branch (4561:28): [True: 459k, False: 56.6k]
  |  Branch (4561:39): [True: 453k, False: 5.80k]
  ------------------
 4562|   453k|    len = enclen(enc, p, end);
  ------------------
  |  |   93|   453k|#define enclen(enc,p,e) ((enc->max_enc_len == enc->min_enc_len) ? enc->min_enc_len : ONIGENC_MBC_ENC_LEN(enc,p,e))
  |  |  ------------------
  |  |  |  |  364|   453k|#define ONIGENC_MBC_ENC_LEN(enc,p,e)          onigenc_mbclen(p,e,enc)
  |  |  ------------------
  |  |  |  Branch (93:26): [True: 0, False: 453k]
  |  |  ------------------
  ------------------
 4563|   453k|    if (i + len > OPT_EXACT_MAXLEN) break;
  ------------------
  |  |   89|   453k|#define OPT_EXACT_MAXLEN   24	/* This must be smaller than ONIG_CHAR_TABLE_SIZE. */
  ------------------
  |  Branch (4563:9): [True: 0, False: 453k]
  ------------------
 4564|   907k|    for (j = 0; j < len && p < end; j++)
  ------------------
  |  Branch (4564:17): [True: 453k, False: 453k]
  |  Branch (4564:28): [True: 453k, False: 0]
  ------------------
 4565|   453k|      to->s[i++] = *p++;
 4566|   453k|  }
 4567|       |
 4568|  62.4k|  to->len = i;
 4569|  62.4k|}
regcomp.c:add_char_opt_map_info:
 4677|   189k|{
 4678|   189k|  if (map->map[c] == 0) {
  ------------------
  |  Branch (4678:7): [True: 189k, False: 0]
  ------------------
 4679|   189k|    map->map[c] = 1;
 4680|   189k|    map->value += map_position_value(enc, c);
 4681|   189k|  }
 4682|   189k|}
regcomp.c:set_mml:
 4378|   154k|{
 4379|   154k|  mml->min = min;
 4380|   154k|  mml->max = max;
 4381|   154k|}
regcomp.c:add_opt_anc_info:
 4479|  40.5k|{
 4480|  40.5k|  if (is_left_anchor(anc))
  ------------------
  |  Branch (4480:7): [True: 28.9k, False: 11.6k]
  ------------------
 4481|  28.9k|    to->left_anchor |= anc;
 4482|  11.6k|  else
 4483|  11.6k|    to->right_anchor |= anc;
 4484|  40.5k|}
regcomp.c:is_left_anchor:
 4460|  40.5k|{
 4461|  40.5k|  if (anc == ANCHOR_END_BUF || anc == ANCHOR_SEMI_END_BUF ||
  ------------------
  |  |  543|  81.0k|#define ANCHOR_END_BUF          (1<<3)
  ------------------
                if (anc == ANCHOR_END_BUF || anc == ANCHOR_SEMI_END_BUF ||
  ------------------
  |  |  544|  81.0k|#define ANCHOR_SEMI_END_BUF     (1<<4)
  ------------------
  |  Branch (4461:7): [True: 0, False: 40.5k]
  |  Branch (4461:32): [True: 0, False: 40.5k]
  ------------------
 4462|  40.5k|      anc == ANCHOR_END_LINE || anc == ANCHOR_PREC_READ ||
  ------------------
  |  |  545|  81.0k|#define ANCHOR_END_LINE         (1<<5)
  ------------------
                    anc == ANCHOR_END_LINE || anc == ANCHOR_PREC_READ ||
  ------------------
  |  |  551|  69.4k|#define ANCHOR_PREC_READ        (1<<10)
  ------------------
  |  Branch (4462:7): [True: 11.6k, False: 28.9k]
  |  Branch (4462:33): [True: 0, False: 28.9k]
  ------------------
 4463|  40.5k|      anc == ANCHOR_PREC_READ_NOT)
  ------------------
  |  |  552|  28.9k|#define ANCHOR_PREC_READ_NOT    (1<<11)
  ------------------
  |  Branch (4463:7): [True: 0, False: 28.9k]
  ------------------
 4464|  11.6k|    return 0;
 4465|       |
 4466|  28.9k|  return 1;
 4467|  40.5k|}
regcomp.c:copy_opt_exact_info:
 4521|  49.1k|{
 4522|  49.1k|  *to = *from;
 4523|  49.1k|}
regcomp.c:copy_opt_map_info:
 4671|  30.3k|{
 4672|  30.3k|  *to = *from;
 4673|  30.3k|}
regcomp.c:concat_opt_exact_info:
 4527|  1.47k|{
 4528|  1.47k|  int i, j, len;
 4529|  1.47k|  UChar *p, *end;
  ------------------
  |  |   76|  1.47k|# define UChar OnigUChar
  ------------------
 4530|  1.47k|  OptAncInfo tanc;
 4531|       |
 4532|  1.47k|  if (to->ignore_case < 0)
  ------------------
  |  Branch (4532:7): [True: 0, False: 1.47k]
  ------------------
 4533|      0|    to->ignore_case = add->ignore_case;
 4534|  1.47k|  else if (to->ignore_case != add->ignore_case)
  ------------------
  |  Branch (4534:12): [True: 0, False: 1.47k]
  ------------------
 4535|      0|    return ;  /* avoid */
 4536|       |
 4537|  1.47k|  p = add->s;
 4538|  1.47k|  end = p + add->len;
 4539|  5.91k|  for (i = to->len; p < end; ) {
  ------------------
  |  Branch (4539:21): [True: 4.43k, False: 1.47k]
  ------------------
 4540|  4.43k|    len = enclen(enc, p, end);
  ------------------
  |  |   93|  4.43k|#define enclen(enc,p,e) ((enc->max_enc_len == enc->min_enc_len) ? enc->min_enc_len : ONIGENC_MBC_ENC_LEN(enc,p,e))
  |  |  ------------------
  |  |  |  |  364|  4.43k|#define ONIGENC_MBC_ENC_LEN(enc,p,e)          onigenc_mbclen(p,e,enc)
  |  |  ------------------
  |  |  |  Branch (93:26): [True: 0, False: 4.43k]
  |  |  ------------------
  ------------------
 4541|  4.43k|    if (i + len > OPT_EXACT_MAXLEN) break;
  ------------------
  |  |   89|  4.43k|#define OPT_EXACT_MAXLEN   24	/* This must be smaller than ONIG_CHAR_TABLE_SIZE. */
  ------------------
  |  Branch (4541:9): [True: 0, False: 4.43k]
  ------------------
 4542|  8.86k|    for (j = 0; j < len && p < end; j++)
  ------------------
  |  Branch (4542:17): [True: 4.43k, False: 4.43k]
  |  Branch (4542:28): [True: 4.43k, False: 0]
  ------------------
 4543|  4.43k|      to->s[i++] = *p++;
 4544|  4.43k|  }
 4545|       |
 4546|  1.47k|  to->len = i;
 4547|  1.47k|  to->reach_end = (p == end ? add->reach_end : 0);
  ------------------
  |  Branch (4547:20): [True: 1.47k, False: 0]
  ------------------
 4548|       |
 4549|  1.47k|  concat_opt_anc_info(&tanc, &to->anc, &add->anc, 1, 1);
 4550|  1.47k|  if (! to->reach_end) tanc.right_anchor = 0;
  ------------------
  |  Branch (4550:7): [True: 1.47k, False: 0]
  ------------------
 4551|  1.47k|  copy_opt_anc_info(&to->anc, &tanc);
 4552|  1.47k|}
regcomp.c:is_set_opt_anc_info:
 4471|  7.38k|{
 4472|  7.38k|  if ((to->left_anchor & anc) != 0) return 1;
  ------------------
  |  Branch (4472:7): [True: 0, False: 7.38k]
  ------------------
 4473|       |
 4474|  7.38k|  return ((to->right_anchor & anc) != 0 ? 1 : 0);
  ------------------
  |  Branch (4474:11): [True: 0, False: 7.38k]
  ------------------
 4475|  7.38k|}
regcomp.c:select_opt_exact_info:
 4612|   309k|{
 4613|   309k|  int v1, v2;
 4614|       |
 4615|   309k|  v1 = now->len;
 4616|   309k|  v2 = alt->len;
 4617|       |
 4618|   309k|  if (v2 == 0) {
  ------------------
  |  Branch (4618:7): [True: 247k, False: 62.1k]
  ------------------
 4619|   247k|    return ;
 4620|   247k|  }
 4621|  62.1k|  else if (v1 == 0) {
  ------------------
  |  Branch (4621:12): [True: 49.1k, False: 13.0k]
  ------------------
 4622|  49.1k|    copy_opt_exact_info(now, alt);
 4623|  49.1k|    return ;
 4624|  49.1k|  }
 4625|  13.0k|  else if (v1 <= 2 && v2 <= 2) {
  ------------------
  |  Branch (4625:12): [True: 2.88k, False: 10.1k]
  |  Branch (4625:23): [True: 1.45k, False: 1.43k]
  ------------------
 4626|       |    /* ByteValTable[x] is big value --> low price */
 4627|  1.45k|    v2 = map_position_value(enc, now->s[0]);
 4628|  1.45k|    v1 = map_position_value(enc, alt->s[0]);
 4629|       |
 4630|  1.45k|    if (now->len > 1) v1 += 5;
  ------------------
  |  Branch (4630:9): [True: 0, False: 1.45k]
  ------------------
 4631|  1.45k|    if (alt->len > 1) v2 += 5;
  ------------------
  |  Branch (4631:9): [True: 0, False: 1.45k]
  ------------------
 4632|  1.45k|  }
 4633|       |
 4634|  13.0k|  if (now->ignore_case <= 0) v1 *= 2;
  ------------------
  |  Branch (4634:7): [True: 13.0k, False: 0]
  ------------------
 4635|  13.0k|  if (alt->ignore_case <= 0) v2 *= 2;
  ------------------
  |  Branch (4635:7): [True: 13.0k, False: 0]
  ------------------
 4636|       |
 4637|  13.0k|  if (comp_distance_value(&now->mmd, &alt->mmd, v1, v2) > 0)
  ------------------
  |  Branch (4637:7): [True: 0, False: 13.0k]
  ------------------
 4638|      0|    copy_opt_exact_info(now, alt);
 4639|  13.0k|}
regcomp.c:comp_opt_exact_or_map_info:
 4727|  23.1k|{
 4728|  23.1k|#define COMP_EM_BASE  20
 4729|  23.1k|  int ve, vm;
 4730|       |
 4731|  23.1k|  if (m->value <= 0) return -1;
  ------------------
  |  Branch (4731:7): [True: 0, False: 23.1k]
  ------------------
 4732|       |
 4733|  23.1k|  ve = COMP_EM_BASE * e->len * (e->ignore_case > 0 ? 1 : 2);
  ------------------
  |  | 4728|  23.1k|#define COMP_EM_BASE  20
  ------------------
  |  Branch (4733:33): [True: 0, False: 23.1k]
  ------------------
 4734|  23.1k|  vm = COMP_EM_BASE * 5 * 2 / m->value;
  ------------------
  |  | 4728|  23.1k|#define COMP_EM_BASE  20
  ------------------
 4735|  23.1k|  return comp_distance_value(&e->mmd, &m->mmd, ve, vm);
 4736|  23.1k|}
regcomp.c:set_optimize_exact_info:
 5219|  15.9k|{
 5220|  15.9k|  int allow_reverse;
 5221|       |
 5222|  15.9k|  if (e->len == 0) return 0;
  ------------------
  |  Branch (5222:7): [True: 0, False: 15.9k]
  ------------------
 5223|       |
 5224|  15.9k|  reg->exact = (UChar* )xmalloc(e->len);
  ------------------
  |  |  142|  15.9k|# define xmalloc     malloc
  ------------------
 5225|  15.9k|  CHECK_NULL_RETURN_MEMERR(reg->exact);
  ------------------
  |  |  314|  15.9k|#define CHECK_NULL_RETURN_MEMERR(p)   if (IS_NULL(p)) return ONIGERR_MEMORY
  |  |  ------------------
  |  |  |  |  311|  15.9k|#define IS_NULL(p)                    (((void*)(p)) == (void*)0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (311:39): [True: 0, False: 15.9k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |               #define CHECK_NULL_RETURN_MEMERR(p)   if (IS_NULL(p)) return ONIGERR_MEMORY
  |  |  ------------------
  |  |  |  |  632|      0|#define ONIGERR_MEMORY                                         -5
  |  |  ------------------
  ------------------
 5226|  15.9k|  xmemcpy(reg->exact, e->s, e->len);
  ------------------
  |  |  215|  15.9k|#define xmemcpy     memcpy
  ------------------
 5227|  15.9k|  reg->exact_end = reg->exact + e->len;
 5228|       |
 5229|  15.9k|  allow_reverse =
 5230|  15.9k|	ONIGENC_IS_ALLOWED_REVERSE_MATCH(reg->enc, reg->exact, reg->exact_end);
  ------------------
  |  |  335|  15.9k|        (enc)->is_allowed_reverse_match(s,end,enc)
  ------------------
 5231|       |
 5232|  15.9k|  if (e->ignore_case > 0) {
  ------------------
  |  Branch (5232:7): [True: 0, False: 15.9k]
  ------------------
 5233|      0|    if (e->len >= 3 || (e->len >= 2 && allow_reverse)) {
  ------------------
  |  Branch (5233:9): [True: 0, False: 0]
  |  Branch (5233:25): [True: 0, False: 0]
  |  Branch (5233:40): [True: 0, False: 0]
  ------------------
 5234|      0|      e->len = set_bm_skip(reg->exact, reg->exact_end, reg,
 5235|      0|		      reg->map, 1);
 5236|      0|      reg->exact_end = reg->exact + e->len;
 5237|      0|      if (e->len >= 3) {
  ------------------
  |  Branch (5237:11): [True: 0, False: 0]
  ------------------
 5238|      0|	reg->optimize = (allow_reverse != 0
  ------------------
  |  Branch (5238:19): [True: 0, False: 0]
  ------------------
 5239|      0|			 ? ONIG_OPTIMIZE_EXACT_BM_IC : ONIG_OPTIMIZE_EXACT_BM_NOT_REV_IC);
  ------------------
  |  |  361|      0|#define ONIG_OPTIMIZE_EXACT_BM_IC         6 /* BM (ignore case) */
  ------------------
              			 ? ONIG_OPTIMIZE_EXACT_BM_IC : ONIG_OPTIMIZE_EXACT_BM_NOT_REV_IC);
  ------------------
  |  |  362|      0|#define ONIG_OPTIMIZE_EXACT_BM_NOT_REV_IC 7 /* BM (applied to a multibyte string) (ignore case) */
  ------------------
 5240|      0|      }
 5241|      0|      else if (e->len > 0) {
  ------------------
  |  Branch (5241:16): [True: 0, False: 0]
  ------------------
 5242|      0|	reg->optimize = ONIG_OPTIMIZE_EXACT_IC;
  ------------------
  |  |  359|      0|#define ONIG_OPTIMIZE_EXACT_IC          4   /* Slow Search (ignore case) */
  ------------------
 5243|      0|      }
 5244|      0|      else
 5245|      0|	return 0;
 5246|      0|    }
 5247|      0|    else {
 5248|      0|      reg->optimize = ONIG_OPTIMIZE_EXACT_IC;
  ------------------
  |  |  359|      0|#define ONIG_OPTIMIZE_EXACT_IC          4   /* Slow Search (ignore case) */
  ------------------
 5249|      0|    }
 5250|      0|  }
 5251|  15.9k|  else {
 5252|  15.9k|    if (e->len >= 3 || (e->len >= 2 && allow_reverse)) {
  ------------------
  |  Branch (5252:9): [True: 11.5k, False: 4.31k]
  |  Branch (5252:25): [True: 0, False: 4.31k]
  |  Branch (5252:40): [True: 0, False: 0]
  ------------------
 5253|  11.5k|      set_bm_skip(reg->exact, reg->exact_end, reg,
 5254|  11.5k|		  reg->map, 0);
 5255|  11.5k|      reg->optimize = (allow_reverse != 0
  ------------------
  |  Branch (5255:24): [True: 11.5k, False: 0]
  ------------------
 5256|  11.5k|		     ? ONIG_OPTIMIZE_EXACT_BM : ONIG_OPTIMIZE_EXACT_BM_NOT_REV);
  ------------------
  |  |  357|  11.5k|#define ONIG_OPTIMIZE_EXACT_BM          2   /* Boyer Moore Search */
  ------------------
              		     ? ONIG_OPTIMIZE_EXACT_BM : ONIG_OPTIMIZE_EXACT_BM_NOT_REV);
  ------------------
  |  |  358|      0|#define ONIG_OPTIMIZE_EXACT_BM_NOT_REV  3   /* BM (applied to a multibyte string) */
  ------------------
 5257|  11.5k|    }
 5258|  4.31k|    else {
 5259|  4.31k|      reg->optimize = ONIG_OPTIMIZE_EXACT;
  ------------------
  |  |  356|  4.31k|#define ONIG_OPTIMIZE_EXACT             1   /* Slow Search */
  ------------------
 5260|  4.31k|    }
 5261|  15.9k|  }
 5262|       |
 5263|  15.9k|  reg->dmin = e->mmd.min;
 5264|  15.9k|  reg->dmax = e->mmd.max;
 5265|       |
 5266|  15.9k|  if (reg->dmin != ONIG_INFINITE_DISTANCE) {
  ------------------
  |  |   85|  15.9k|#define ONIG_INFINITE_DISTANCE  ~((OnigDistance )0)
  ------------------
  |  Branch (5266:7): [True: 15.9k, False: 0]
  ------------------
 5267|  15.9k|    reg->threshold_len = (int )(reg->dmin + (reg->exact_end - reg->exact));
 5268|  15.9k|  }
 5269|       |
 5270|  15.9k|  return 0;
 5271|  15.9k|}
regcomp.c:set_bm_skip:
 4187|  11.5k|{
 4188|  11.5k|  OnigDistance i, len;
 4189|  11.5k|  int clen, flen, n, j, k;
 4190|  11.5k|  UChar *p, buf[ONIGENC_MBC_CASE_FOLD_MAXLEN];
  ------------------
  |  |   76|  11.5k|# define UChar OnigUChar
  ------------------
 4191|  11.5k|  OnigCaseFoldCodeItem items[ONIGENC_GET_CASE_FOLD_CODES_MAX_NUM];
 4192|  11.5k|  OnigEncoding enc = reg->enc;
 4193|       |
 4194|  11.5k|  len = end - s;
 4195|  11.5k|  if (len >= ONIG_CHAR_TABLE_SIZE) {
  ------------------
  |  |  756|  11.5k|#define ONIG_CHAR_TABLE_SIZE   256
  ------------------
  |  Branch (4195:7): [True: 0, False: 11.5k]
  ------------------
 4196|       |    /* This should not happen. */
 4197|      0|    return ONIGERR_TYPE_BUG;
  ------------------
  |  |  633|      0|#define ONIGERR_TYPE_BUG                                       -6
  ------------------
 4198|      0|  }
 4199|       |
 4200|  11.5k|  if (ignore_case) {
  ------------------
  |  Branch (4200:7): [True: 0, False: 11.5k]
  ------------------
 4201|      0|    for (i = 0; i < len; i += clen) {
  ------------------
  |  Branch (4201:17): [True: 0, False: 0]
  ------------------
 4202|      0|      p = s + i;
 4203|      0|      n = ONIGENC_GET_CASE_FOLD_CODES_BY_STR(enc, reg->case_fold_flag,
  ------------------
  |  |  341|      0|       (enc)->get_case_fold_codes_by_str(case_fold_flag,p,end,acs,enc)
  ------------------
 4204|      0|	  p, end, items);
 4205|      0|      clen = enclen(enc, p, end);
  ------------------
  |  |   93|      0|#define enclen(enc,p,e) ((enc->max_enc_len == enc->min_enc_len) ? enc->min_enc_len : ONIGENC_MBC_ENC_LEN(enc,p,e))
  |  |  ------------------
  |  |  |  |  364|      0|#define ONIGENC_MBC_ENC_LEN(enc,p,e)          onigenc_mbclen(p,e,enc)
  |  |  ------------------
  |  |  |  Branch (93:26): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 4206|      0|      if (p + clen > end)
  ------------------
  |  Branch (4206:11): [True: 0, False: 0]
  ------------------
 4207|      0|	clen = (int )(end - p);
 4208|       |
 4209|      0|      for (j = 0; j < n; j++) {
  ------------------
  |  Branch (4209:19): [True: 0, False: 0]
  ------------------
 4210|      0|	if ((items[j].code_len != 1) || (items[j].byte_len != clen)) {
  ------------------
  |  Branch (4210:6): [True: 0, False: 0]
  |  Branch (4210:34): [True: 0, False: 0]
  ------------------
 4211|       |	  /* Different length isn't supported. Stop optimization at here. */
 4212|      0|	  end = p;
 4213|      0|	  goto endcheck;
 4214|      0|	}
 4215|      0|	flen = ONIGENC_CODE_TO_MBC(enc, items[j].code[0], buf);
  ------------------
  |  |  371|      0|#define ONIGENC_CODE_TO_MBC(enc,code,buf)      (enc)->code_to_mbc(code,buf,enc)
  ------------------
 4216|      0|	if (flen != clen) {
  ------------------
  |  Branch (4216:6): [True: 0, False: 0]
  ------------------
 4217|       |	  /* Different length isn't supported. Stop optimization at here. */
 4218|      0|	  end = p;
 4219|      0|	  goto endcheck;
 4220|      0|	}
 4221|      0|      }
 4222|      0|    }
 4223|      0|endcheck:
 4224|      0|    len = end - s;
 4225|      0|  }
 4226|       |
 4227|  2.97M|  for (i = 0; i < ONIG_CHAR_TABLE_SIZE; i++)
  ------------------
  |  |  756|  2.97M|#define ONIG_CHAR_TABLE_SIZE   256
  ------------------
  |  Branch (4227:15): [True: 2.96M, False: 11.5k]
  ------------------
 4228|  2.96M|    skip[i] = (UChar )(len + 1);
 4229|  11.5k|  n = 0;
 4230|   179k|  for (i = 0; i < len; i += clen) {
  ------------------
  |  Branch (4230:15): [True: 167k, False: 11.5k]
  ------------------
 4231|   167k|    p = s + i;
 4232|   167k|    if (ignore_case)
  ------------------
  |  Branch (4232:9): [True: 0, False: 167k]
  ------------------
 4233|      0|      n = ONIGENC_GET_CASE_FOLD_CODES_BY_STR(enc, reg->case_fold_flag,
  ------------------
  |  |  341|      0|       (enc)->get_case_fold_codes_by_str(case_fold_flag,p,end,acs,enc)
  ------------------
 4234|   167k|					     p, end, items);
 4235|   167k|    clen = enclen(enc, p, end);
  ------------------
  |  |   93|   167k|#define enclen(enc,p,e) ((enc->max_enc_len == enc->min_enc_len) ? enc->min_enc_len : ONIGENC_MBC_ENC_LEN(enc,p,e))
  |  |  ------------------
  |  |  |  |  364|   167k|#define ONIGENC_MBC_ENC_LEN(enc,p,e)          onigenc_mbclen(p,e,enc)
  |  |  ------------------
  |  |  |  Branch (93:26): [True: 0, False: 167k]
  |  |  ------------------
  ------------------
 4236|   167k|    if (p + clen > end)
  ------------------
  |  Branch (4236:9): [True: 0, False: 167k]
  ------------------
 4237|      0|      clen = (int )(end - p);
 4238|       |
 4239|   335k|    for (j = 0; j < clen; j++) {
  ------------------
  |  Branch (4239:17): [True: 167k, False: 167k]
  ------------------
 4240|   167k|      skip[s[i + j]] = (UChar )(len - i - j);
 4241|   167k|      for (k = 0; k < n; k++) {
  ------------------
  |  Branch (4241:19): [True: 0, False: 167k]
  ------------------
 4242|      0|	ONIGENC_CODE_TO_MBC(enc, items[k].code[0], buf);
  ------------------
  |  |  371|      0|#define ONIGENC_CODE_TO_MBC(enc,code,buf)      (enc)->code_to_mbc(code,buf,enc)
  ------------------
 4243|      0|	skip[buf[j]] = (UChar )(len - i - j);
 4244|      0|      }
 4245|   167k|    }
 4246|   167k|  }
 4247|       |
 4248|  11.5k|  return (int )len;
 4249|  11.5k|}
regcomp.c:set_sub_anchor:
 5292|  27.4k|{
 5293|  27.4k|  reg->sub_anchor |= anc->left_anchor  & ANCHOR_BEGIN_LINE;
  ------------------
  |  |  541|  27.4k|#define ANCHOR_BEGIN_LINE       (1<<1)
  ------------------
 5294|  27.4k|  reg->sub_anchor |= anc->right_anchor & ANCHOR_END_LINE;
  ------------------
  |  |  545|  27.4k|#define ANCHOR_END_LINE         (1<<5)
  ------------------
 5295|  27.4k|}
regcomp.c:set_optimize_map_info:
 5275|  11.5k|{
 5276|  11.5k|  int i;
 5277|       |
 5278|  2.97M|  for (i = 0; i < ONIG_CHAR_TABLE_SIZE; i++)
  ------------------
  |  |  756|  2.97M|#define ONIG_CHAR_TABLE_SIZE   256
  ------------------
  |  Branch (5278:15): [True: 2.96M, False: 11.5k]
  ------------------
 5279|  2.96M|    reg->map[i] = m->map[i];
 5280|       |
 5281|  11.5k|  reg->optimize   = ONIG_OPTIMIZE_MAP;
  ------------------
  |  |  360|  11.5k|#define ONIG_OPTIMIZE_MAP               5   /* char map */
  ------------------
 5282|  11.5k|  reg->dmin       = m->mmd.min;
 5283|  11.5k|  reg->dmax       = m->mmd.max;
 5284|       |
 5285|  11.5k|  if (reg->dmin != ONIG_INFINITE_DISTANCE) {
  ------------------
  |  |   85|  11.5k|#define ONIG_INFINITE_DISTANCE  ~((OnigDistance )0)
  ------------------
  |  Branch (5285:7): [True: 11.5k, False: 0]
  ------------------
 5286|  11.5k|    reg->threshold_len = (int )(reg->dmin + 1);
 5287|  11.5k|  }
 5288|  11.5k|}
regcomp.c:compile_tree:
 1688|   267k|{
 1689|   267k|  int n, type, len, pos, r = 0;
 1690|       |
 1691|   267k|  type = NTYPE(node);
  ------------------
  |  |   69|   267k|#define NTYPE(node)             ((node)->u.base.type)
  ------------------
 1692|   267k|  switch (type) {
 1693|  34.6k|  case NT_LIST:
  ------------------
  |  |   46|  34.6k|#define NT_LIST        8
  ------------------
  |  Branch (1693:3): [True: 34.6k, False: 233k]
  ------------------
 1694|   143k|    do {
 1695|   143k|      r = compile_tree(NCAR(node), reg);
  ------------------
  |  |   86|   143k|#define NCAR(node)         (NCONS(node)->car)
  |  |  ------------------
  |  |  |  |   83|   143k|#define NCONS(node)        (&((node)->u.cons))
  |  |  ------------------
  ------------------
 1696|   143k|    } while (r == 0 && IS_NOT_NULL(node = NCDR(node)));
  ------------------
  |  |  312|   143k|#define IS_NOT_NULL(p)                (((void*)(p)) != (void*)0)
  |  |  ------------------
  |  |  |  Branch (312:39): [True: 108k, False: 34.6k]
  |  |  ------------------
  ------------------
  |  Branch (1696:14): [True: 143k, False: 0]
  ------------------
 1697|  34.6k|    break;
 1698|       |
 1699|  8.77k|  case NT_ALT:
  ------------------
  |  |   47|  8.77k|#define NT_ALT         9
  ------------------
  |  Branch (1699:3): [True: 8.77k, False: 259k]
  ------------------
 1700|  8.77k|    {
 1701|  8.77k|      Node* x = node;
 1702|  8.77k|      len = 0;
 1703|  20.4k|      do {
 1704|  20.4k|	len += compile_length_tree(NCAR(x), reg);
  ------------------
  |  |   86|  20.4k|#define NCAR(node)         (NCONS(node)->car)
  |  |  ------------------
  |  |  |  |   83|  20.4k|#define NCONS(node)        (&((node)->u.cons))
  |  |  ------------------
  ------------------
 1705|  20.4k|	if (NCDR(x) != NULL) {
  ------------------
  |  |   87|  20.4k|#define NCDR(node)         (NCONS(node)->cdr)
  |  |  ------------------
  |  |  |  |   83|  20.4k|#define NCONS(node)        (&((node)->u.cons))
  |  |  ------------------
  ------------------
  |  Branch (1705:6): [True: 11.7k, False: 8.77k]
  ------------------
 1706|  11.7k|	  len += SIZE_OP_PUSH + SIZE_OP_JUMP;
  ------------------
  |  |  721|  11.7k|#define SIZE_OP_PUSH                   (SIZE_OPCODE + SIZE_RELADDR)
  |  |  ------------------
  |  |  |  |  688|  11.7k|#define SIZE_OPCODE           1
  |  |  ------------------
  |  |               #define SIZE_OP_PUSH                   (SIZE_OPCODE + SIZE_RELADDR)
  |  |  ------------------
  |  |  |  |  689|  11.7k|#define SIZE_RELADDR          (int )sizeof(RelAddrType)
  |  |  ------------------
  ------------------
              	  len += SIZE_OP_PUSH + SIZE_OP_JUMP;
  ------------------
  |  |  720|  11.7k|#define SIZE_OP_JUMP                   (SIZE_OPCODE + SIZE_RELADDR)
  |  |  ------------------
  |  |  |  |  688|  11.7k|#define SIZE_OPCODE           1
  |  |  ------------------
  |  |               #define SIZE_OP_JUMP                   (SIZE_OPCODE + SIZE_RELADDR)
  |  |  ------------------
  |  |  |  |  689|  11.7k|#define SIZE_RELADDR          (int )sizeof(RelAddrType)
  |  |  ------------------
  ------------------
 1707|  11.7k|	}
 1708|  20.4k|      } while (IS_NOT_NULL(x = NCDR(x)));
  ------------------
  |  |  312|  20.4k|#define IS_NOT_NULL(p)                (((void*)(p)) != (void*)0)
  |  |  ------------------
  |  |  |  Branch (312:39): [True: 11.7k, False: 8.77k]
  |  |  ------------------
  ------------------
 1709|  8.77k|      pos = reg->used + len;  /* goal position */
 1710|       |
 1711|  20.4k|      do {
 1712|  20.4k|	len = compile_length_tree(NCAR(node), reg);
  ------------------
  |  |   86|  20.4k|#define NCAR(node)         (NCONS(node)->car)
  |  |  ------------------
  |  |  |  |   83|  20.4k|#define NCONS(node)        (&((node)->u.cons))
  |  |  ------------------
  ------------------
 1713|  20.4k|	if (IS_NOT_NULL(NCDR(node))) {
  ------------------
  |  |  312|  20.4k|#define IS_NOT_NULL(p)                (((void*)(p)) != (void*)0)
  |  |  ------------------
  |  |  |  Branch (312:39): [True: 11.7k, False: 8.77k]
  |  |  ------------------
  ------------------
 1714|  11.7k|	  r = add_opcode_rel_addr(reg, OP_PUSH, len + SIZE_OP_JUMP);
  ------------------
  |  |  720|  11.7k|#define SIZE_OP_JUMP                   (SIZE_OPCODE + SIZE_RELADDR)
  |  |  ------------------
  |  |  |  |  688|  11.7k|#define SIZE_OPCODE           1
  |  |  ------------------
  |  |               #define SIZE_OP_JUMP                   (SIZE_OPCODE + SIZE_RELADDR)
  |  |  ------------------
  |  |  |  |  689|  11.7k|#define SIZE_RELADDR          (int )sizeof(RelAddrType)
  |  |  ------------------
  ------------------
 1715|  11.7k|	  if (r) break;
  ------------------
  |  Branch (1715:8): [True: 0, False: 11.7k]
  ------------------
 1716|  11.7k|	}
 1717|  20.4k|	r = compile_tree(NCAR(node), reg);
  ------------------
  |  |   86|  20.4k|#define NCAR(node)         (NCONS(node)->car)
  |  |  ------------------
  |  |  |  |   83|  20.4k|#define NCONS(node)        (&((node)->u.cons))
  |  |  ------------------
  ------------------
 1718|  20.4k|	if (r) break;
  ------------------
  |  Branch (1718:6): [True: 0, False: 20.4k]
  ------------------
 1719|  20.4k|	if (IS_NOT_NULL(NCDR(node))) {
  ------------------
  |  |  312|  20.4k|#define IS_NOT_NULL(p)                (((void*)(p)) != (void*)0)
  |  |  ------------------
  |  |  |  Branch (312:39): [True: 11.7k, False: 8.77k]
  |  |  ------------------
  ------------------
 1720|  11.7k|	  len = pos - (reg->used + SIZE_OP_JUMP);
  ------------------
  |  |  720|  11.7k|#define SIZE_OP_JUMP                   (SIZE_OPCODE + SIZE_RELADDR)
  |  |  ------------------
  |  |  |  |  688|  11.7k|#define SIZE_OPCODE           1
  |  |  ------------------
  |  |               #define SIZE_OP_JUMP                   (SIZE_OPCODE + SIZE_RELADDR)
  |  |  ------------------
  |  |  |  |  689|  11.7k|#define SIZE_RELADDR          (int )sizeof(RelAddrType)
  |  |  ------------------
  ------------------
 1721|  11.7k|	  r = add_opcode_rel_addr(reg, OP_JUMP, len);
 1722|  11.7k|	  if (r) break;
  ------------------
  |  Branch (1722:8): [True: 0, False: 11.7k]
  ------------------
 1723|  11.7k|	}
 1724|  20.4k|      } while (IS_NOT_NULL(node = NCDR(node)));
  ------------------
  |  |  312|  20.4k|#define IS_NOT_NULL(p)                (((void*)(p)) != (void*)0)
  |  |  ------------------
  |  |  |  Branch (312:39): [True: 11.7k, False: 8.77k]
  |  |  ------------------
  ------------------
 1725|  8.77k|    }
 1726|      0|    break;
 1727|       |
 1728|  62.4k|  case NT_STR:
  ------------------
  |  |   38|  62.4k|#define NT_STR         0
  ------------------
  |  Branch (1728:3): [True: 62.4k, False: 205k]
  ------------------
 1729|  62.4k|    if (NSTRING_IS_RAW(node))
  ------------------
  |  |  114|  62.4k|#define NSTRING_IS_RAW(node)          (((node)->u.str.flag & NSTR_RAW)   != 0)
  |  |  ------------------
  |  |  |  |  104|  62.4k|#define NSTR_RAW                (1<<0) /* by backslashed number */
  |  |  ------------------
  |  |  |  Branch (114:39): [True: 0, False: 62.4k]
  |  |  ------------------
  ------------------
 1730|      0|      r = compile_string_raw_node(NSTR(node), reg);
  ------------------
  |  |   76|      0|#define NSTR(node)         (&((node)->u.str))
  ------------------
 1731|  62.4k|    else
 1732|  62.4k|      r = compile_string_node(node, reg);
 1733|  62.4k|    break;
 1734|       |
 1735|  57.6k|  case NT_CCLASS:
  ------------------
  |  |   39|  57.6k|#define NT_CCLASS      1
  ------------------
  |  Branch (1735:3): [True: 57.6k, False: 210k]
  ------------------
 1736|  57.6k|    r = compile_cclass_node(NCCLASS(node), reg);
  ------------------
  |  |   77|  57.6k|#define NCCLASS(node)      (&((node)->u.cclass))
  ------------------
 1737|  57.6k|    break;
 1738|       |
 1739|      0|  case NT_CTYPE:
  ------------------
  |  |   40|      0|#define NT_CTYPE       2
  ------------------
  |  Branch (1739:3): [True: 0, False: 267k]
  ------------------
 1740|      0|    {
 1741|      0|      int op;
 1742|       |
 1743|      0|      switch (NCTYPE(node)->ctype) {
  ------------------
  |  |   78|      0|#define NCTYPE(node)       (&((node)->u.ctype))
  ------------------
 1744|      0|      case ONIGENC_CTYPE_WORD:
  ------------------
  |  |  306|      0|#define ONIGENC_CTYPE_WORD     12
  ------------------
  |  Branch (1744:7): [True: 0, False: 0]
  ------------------
 1745|      0|	if (NCTYPE(node)->ascii_range != 0) {
  ------------------
  |  |   78|      0|#define NCTYPE(node)       (&((node)->u.ctype))
  ------------------
  |  Branch (1745:6): [True: 0, False: 0]
  ------------------
 1746|      0|	  if (NCTYPE(node)->not != 0)  op = OP_NOT_ASCII_WORD;
  ------------------
  |  |   78|      0|#define NCTYPE(node)       (&((node)->u.ctype))
  ------------------
  |  Branch (1746:8): [True: 0, False: 0]
  ------------------
 1747|      0|	  else                         op = OP_ASCII_WORD;
 1748|      0|	}
 1749|      0|	else {
 1750|      0|	  if (NCTYPE(node)->not != 0)  op = OP_NOT_WORD;
  ------------------
  |  |   78|      0|#define NCTYPE(node)       (&((node)->u.ctype))
  ------------------
  |  Branch (1750:8): [True: 0, False: 0]
  ------------------
 1751|      0|	  else                         op = OP_WORD;
 1752|      0|	}
 1753|      0|	break;
 1754|      0|      default:
  ------------------
  |  Branch (1754:7): [True: 0, False: 0]
  ------------------
 1755|      0|	return ONIGERR_TYPE_BUG;
  ------------------
  |  |  633|      0|#define ONIGERR_TYPE_BUG                                       -6
  ------------------
 1756|      0|	break;
 1757|      0|      }
 1758|      0|      r = add_opcode(reg, op);
 1759|      0|    }
 1760|      0|    break;
 1761|       |
 1762|  10.2k|  case NT_CANY:
  ------------------
  |  |   41|  10.2k|#define NT_CANY        3
  ------------------
  |  Branch (1762:3): [True: 10.2k, False: 257k]
  ------------------
 1763|  10.2k|    if (IS_MULTILINE(reg->options))
  ------------------
  |  |  395|  10.2k|#define IS_MULTILINE(option)      ((option) & ONIG_OPTION_MULTILINE)
  |  |  ------------------
  |  |  |  |  456|  10.2k|#define ONIG_OPTION_MULTILINE            (ONIG_OPTION_EXTEND             << 1)
  |  |  |  |  ------------------
  |  |  |  |  |  |  455|  10.2k|#define ONIG_OPTION_EXTEND               (ONIG_OPTION_IGNORECASE         << 1)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  454|  10.2k|#define ONIG_OPTION_IGNORECASE           1U
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  |  Branch (395:35): [True: 0, False: 10.2k]
  |  |  ------------------
  ------------------
 1764|      0|      r = add_opcode(reg, OP_ANYCHAR_ML);
 1765|  10.2k|    else
 1766|  10.2k|      r = add_opcode(reg, OP_ANYCHAR);
 1767|  10.2k|    break;
 1768|       |
 1769|      0|  case NT_BREF:
  ------------------
  |  |   42|      0|#define NT_BREF        4
  ------------------
  |  Branch (1769:3): [True: 0, False: 267k]
  ------------------
 1770|      0|    {
 1771|      0|      BRefNode* br = NBREF(node);
  ------------------
  |  |   79|      0|#define NBREF(node)        (&((node)->u.bref))
  ------------------
 1772|       |
 1773|      0|#ifdef USE_BACKREF_WITH_LEVEL
 1774|      0|      if (IS_BACKREF_NEST_LEVEL(br)) {
  ------------------
  |  |  164|      0|#define IS_BACKREF_NEST_LEVEL(bn)      (((bn)->state & NST_NEST_LEVEL) != 0)
  |  |  ------------------
  |  |  |  |  141|      0|#define NST_NEST_LEVEL            (1<<13)
  |  |  ------------------
  |  |  |  Branch (164:40): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 1775|      0|	r = add_opcode(reg, OP_BACKREF_WITH_LEVEL);
 1776|      0|	if (r) return r;
  ------------------
  |  Branch (1776:6): [True: 0, False: 0]
  ------------------
 1777|      0|	r = add_option(reg, (reg->options & ONIG_OPTION_IGNORECASE));
  ------------------
  |  |  454|      0|#define ONIG_OPTION_IGNORECASE           1U
  ------------------
 1778|      0|	if (r) return r;
  ------------------
  |  Branch (1778:6): [True: 0, False: 0]
  ------------------
 1779|      0|	r = add_length(reg, br->nest_level);
 1780|      0|	if (r) return r;
  ------------------
  |  Branch (1780:6): [True: 0, False: 0]
  ------------------
 1781|       |
 1782|      0|	goto add_bacref_mems;
 1783|      0|      }
 1784|      0|      else
 1785|      0|#endif
 1786|      0|      if (br->back_num == 1) {
  ------------------
  |  Branch (1786:11): [True: 0, False: 0]
  ------------------
 1787|      0|	n = br->back_static[0];
 1788|      0|	if (IS_IGNORECASE(reg->options)) {
  ------------------
  |  |  396|      0|#define IS_IGNORECASE(option)     ((option) & ONIG_OPTION_IGNORECASE)
  |  |  ------------------
  |  |  |  |  454|      0|#define ONIG_OPTION_IGNORECASE           1U
  |  |  ------------------
  |  |  |  Branch (396:35): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 1789|      0|	  r = add_opcode(reg, OP_BACKREFN_IC);
 1790|      0|	  if (r) return r;
  ------------------
  |  Branch (1790:8): [True: 0, False: 0]
  ------------------
 1791|      0|	  r = add_mem_num(reg, n);
 1792|      0|	}
 1793|      0|	else {
 1794|      0|	  switch (n) {
 1795|      0|	  case 1:  r = add_opcode(reg, OP_BACKREF1); break;
  ------------------
  |  Branch (1795:4): [True: 0, False: 0]
  ------------------
 1796|      0|	  case 2:  r = add_opcode(reg, OP_BACKREF2); break;
  ------------------
  |  Branch (1796:4): [True: 0, False: 0]
  ------------------
 1797|      0|	  default:
  ------------------
  |  Branch (1797:4): [True: 0, False: 0]
  ------------------
 1798|      0|	    r = add_opcode(reg, OP_BACKREFN);
 1799|      0|	    if (r) return r;
  ------------------
  |  Branch (1799:10): [True: 0, False: 0]
  ------------------
 1800|      0|	    r = add_mem_num(reg, n);
 1801|      0|	    break;
 1802|      0|	  }
 1803|      0|	}
 1804|      0|      }
 1805|      0|      else {
 1806|      0|	int i;
 1807|      0|	int* p;
 1808|       |
 1809|      0|	if (IS_IGNORECASE(reg->options)) {
  ------------------
  |  |  396|      0|#define IS_IGNORECASE(option)     ((option) & ONIG_OPTION_IGNORECASE)
  |  |  ------------------
  |  |  |  |  454|      0|#define ONIG_OPTION_IGNORECASE           1U
  |  |  ------------------
  |  |  |  Branch (396:35): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 1810|      0|	  r = add_opcode(reg, OP_BACKREF_MULTI_IC);
 1811|      0|	}
 1812|      0|	else {
 1813|      0|	  r = add_opcode(reg, OP_BACKREF_MULTI);
 1814|      0|	}
 1815|      0|	if (r) return r;
  ------------------
  |  Branch (1815:6): [True: 0, False: 0]
  ------------------
 1816|       |
 1817|      0|#ifdef USE_BACKREF_WITH_LEVEL
 1818|      0|      add_bacref_mems:
 1819|      0|#endif
 1820|      0|	r = add_length(reg, br->back_num);
 1821|      0|	if (r) return r;
  ------------------
  |  Branch (1821:6): [True: 0, False: 0]
  ------------------
 1822|      0|	p = BACKREFS_P(br);
  ------------------
  |  |  120|      0|  (IS_NOT_NULL((br)->back_dynamic) ? (br)->back_dynamic : (br)->back_static);
  |  |  ------------------
  |  |  |  |  312|      0|#define IS_NOT_NULL(p)                (((void*)(p)) != (void*)0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (312:39): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1823|      0|	for (i = br->back_num - 1; i >= 0; i--) {
  ------------------
  |  Branch (1823:29): [True: 0, False: 0]
  ------------------
 1824|      0|	  r = add_mem_num(reg, p[i]);
 1825|      0|	  if (r) return r;
  ------------------
  |  Branch (1825:8): [True: 0, False: 0]
  ------------------
 1826|      0|	}
 1827|      0|      }
 1828|      0|    }
 1829|      0|    break;
 1830|       |
 1831|      0|#ifdef USE_SUBEXP_CALL
 1832|      0|  case NT_CALL:
  ------------------
  |  |   48|      0|#define NT_CALL       10
  ------------------
  |  Branch (1832:3): [True: 0, False: 267k]
  ------------------
 1833|      0|    r = compile_call(NCALL(node), reg);
  ------------------
  |  |   84|      0|#define NCALL(node)        (&((node)->u.call))
  ------------------
 1834|      0|    break;
 1835|      0|#endif
 1836|       |
 1837|  24.6k|  case NT_QTFR:
  ------------------
  |  |   43|  24.6k|#define NT_QTFR        5
  ------------------
  |  Branch (1837:3): [True: 24.6k, False: 243k]
  ------------------
 1838|  24.6k|    r = compile_quantifier_node(NQTFR(node), reg);
  ------------------
  |  |   80|  24.6k|#define NQTFR(node)        (&((node)->u.qtfr))
  ------------------
 1839|  24.6k|    break;
 1840|       |
 1841|  27.5k|  case NT_ENCLOSE:
  ------------------
  |  |   44|  27.5k|#define NT_ENCLOSE     6
  ------------------
  |  Branch (1841:3): [True: 27.5k, False: 240k]
  ------------------
 1842|  27.5k|    r = compile_enclose_node(NENCLOSE(node), reg);
  ------------------
  |  |   81|  27.5k|#define NENCLOSE(node)     (&((node)->u.enclose))
  ------------------
 1843|  27.5k|    break;
 1844|       |
 1845|  41.9k|  case NT_ANCHOR:
  ------------------
  |  |   45|  41.9k|#define NT_ANCHOR      7
  ------------------
  |  Branch (1845:3): [True: 41.9k, False: 225k]
  ------------------
 1846|  41.9k|    r = compile_anchor_node(NANCHOR(node), reg);
  ------------------
  |  |   82|  41.9k|#define NANCHOR(node)      (&((node)->u.anchor))
  ------------------
 1847|  41.9k|    break;
 1848|       |
 1849|      0|  default:
  ------------------
  |  Branch (1849:3): [True: 0, False: 267k]
  ------------------
 1850|       |#ifdef ONIG_DEBUG
 1851|       |    fprintf(stderr, "compile_tree: undefined node type %d\n", NTYPE(node));
 1852|       |#endif
 1853|      0|    break;
 1854|   267k|  }
 1855|       |
 1856|   267k|  return r;
 1857|   267k|}
regcomp.c:compile_length_tree:
 1593|   141k|{
 1594|   141k|  int len, type, r;
 1595|       |
 1596|   141k|  type = NTYPE(node);
  ------------------
  |  |   69|   141k|#define NTYPE(node)             ((node)->u.base.type)
  ------------------
 1597|   141k|  switch (type) {
 1598|  11.4k|  case NT_LIST:
  ------------------
  |  |   46|  11.4k|#define NT_LIST        8
  ------------------
  |  Branch (1598:3): [True: 11.4k, False: 130k]
  ------------------
 1599|  11.4k|    len = 0;
 1600|  28.7k|    do {
 1601|  28.7k|      r = compile_length_tree(NCAR(node), reg);
  ------------------
  |  |   86|  28.7k|#define NCAR(node)         (NCONS(node)->car)
  |  |  ------------------
  |  |  |  |   83|  28.7k|#define NCONS(node)        (&((node)->u.cons))
  |  |  ------------------
  ------------------
 1602|  28.7k|      if (r < 0) return r;
  ------------------
  |  Branch (1602:11): [True: 0, False: 28.7k]
  ------------------
 1603|  28.7k|      len += r;
 1604|  28.7k|    } while (IS_NOT_NULL(node = NCDR(node)));
  ------------------
  |  |  312|  28.7k|#define IS_NOT_NULL(p)                (((void*)(p)) != (void*)0)
  |  |  ------------------
  |  |  |  Branch (312:39): [True: 17.2k, False: 11.4k]
  |  |  ------------------
  ------------------
 1605|  11.4k|    r = len;
 1606|  11.4k|    break;
 1607|       |
 1608|      0|  case NT_ALT:
  ------------------
  |  |   47|      0|#define NT_ALT         9
  ------------------
  |  Branch (1608:3): [True: 0, False: 141k]
  ------------------
 1609|      0|    {
 1610|      0|      int n = 0;
 1611|      0|      len = 0;
 1612|      0|      do {
 1613|      0|	r = compile_length_tree(NCAR(node), reg);
  ------------------
  |  |   86|      0|#define NCAR(node)         (NCONS(node)->car)
  |  |  ------------------
  |  |  |  |   83|      0|#define NCONS(node)        (&((node)->u.cons))
  |  |  ------------------
  ------------------
 1614|      0|	if (r < 0) return r;
  ------------------
  |  Branch (1614:6): [True: 0, False: 0]
  ------------------
 1615|      0|	len += r;
 1616|      0|	n++;
 1617|      0|      } while (IS_NOT_NULL(node = NCDR(node)));
  ------------------
  |  |  312|      0|#define IS_NOT_NULL(p)                (((void*)(p)) != (void*)0)
  |  |  ------------------
  |  |  |  Branch (312:39): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 1618|      0|      r = len;
 1619|      0|      r += (SIZE_OP_PUSH + SIZE_OP_JUMP) * (n - 1);
  ------------------
  |  |  721|      0|#define SIZE_OP_PUSH                   (SIZE_OPCODE + SIZE_RELADDR)
  |  |  ------------------
  |  |  |  |  688|      0|#define SIZE_OPCODE           1
  |  |  ------------------
  |  |               #define SIZE_OP_PUSH                   (SIZE_OPCODE + SIZE_RELADDR)
  |  |  ------------------
  |  |  |  |  689|      0|#define SIZE_RELADDR          (int )sizeof(RelAddrType)
  |  |  ------------------
  ------------------
                    r += (SIZE_OP_PUSH + SIZE_OP_JUMP) * (n - 1);
  ------------------
  |  |  720|      0|#define SIZE_OP_JUMP                   (SIZE_OPCODE + SIZE_RELADDR)
  |  |  ------------------
  |  |  |  |  688|      0|#define SIZE_OPCODE           1
  |  |  ------------------
  |  |               #define SIZE_OP_JUMP                   (SIZE_OPCODE + SIZE_RELADDR)
  |  |  ------------------
  |  |  |  |  689|      0|#define SIZE_RELADDR          (int )sizeof(RelAddrType)
  |  |  ------------------
  ------------------
 1620|      0|    }
 1621|      0|    break;
 1622|       |
 1623|  48.1k|  case NT_STR:
  ------------------
  |  |   38|  48.1k|#define NT_STR         0
  ------------------
  |  Branch (1623:3): [True: 48.1k, False: 93.5k]
  ------------------
 1624|  48.1k|    if (NSTRING_IS_RAW(node))
  ------------------
  |  |  114|  48.1k|#define NSTRING_IS_RAW(node)          (((node)->u.str.flag & NSTR_RAW)   != 0)
  |  |  ------------------
  |  |  |  |  104|  48.1k|#define NSTR_RAW                (1<<0) /* by backslashed number */
  |  |  ------------------
  |  |  |  Branch (114:39): [True: 0, False: 48.1k]
  |  |  ------------------
  ------------------
 1625|      0|      r = compile_length_string_raw_node(NSTR(node), reg);
  ------------------
  |  |   76|      0|#define NSTR(node)         (&((node)->u.str))
  ------------------
 1626|  48.1k|    else
 1627|  48.1k|      r = compile_length_string_node(node, reg);
 1628|  48.1k|    break;
 1629|       |
 1630|  47.5k|  case NT_CCLASS:
  ------------------
  |  |   39|  47.5k|#define NT_CCLASS      1
  ------------------
  |  Branch (1630:3): [True: 47.5k, False: 94.1k]
  ------------------
 1631|  47.5k|    r = compile_length_cclass_node(NCCLASS(node), reg);
  ------------------
  |  |   77|  47.5k|#define NCCLASS(node)      (&((node)->u.cclass))
  ------------------
 1632|  47.5k|    break;
 1633|       |
 1634|      0|  case NT_CTYPE:
  ------------------
  |  |   40|      0|#define NT_CTYPE       2
  ------------------
  |  Branch (1634:3): [True: 0, False: 141k]
  ------------------
 1635|  8.68k|  case NT_CANY:
  ------------------
  |  |   41|  8.68k|#define NT_CANY        3
  ------------------
  |  Branch (1635:3): [True: 8.68k, False: 133k]
  ------------------
 1636|  8.68k|    r = SIZE_OPCODE;
  ------------------
  |  |  688|  8.68k|#define SIZE_OPCODE           1
  ------------------
 1637|  8.68k|    break;
 1638|       |
 1639|      0|  case NT_BREF:
  ------------------
  |  |   42|      0|#define NT_BREF        4
  ------------------
  |  Branch (1639:3): [True: 0, False: 141k]
  ------------------
 1640|      0|    {
 1641|      0|      BRefNode* br = NBREF(node);
  ------------------
  |  |   79|      0|#define NBREF(node)        (&((node)->u.bref))
  ------------------
 1642|       |
 1643|      0|#ifdef USE_BACKREF_WITH_LEVEL
 1644|      0|      if (IS_BACKREF_NEST_LEVEL(br)) {
  ------------------
  |  |  164|      0|#define IS_BACKREF_NEST_LEVEL(bn)      (((bn)->state & NST_NEST_LEVEL) != 0)
  |  |  ------------------
  |  |  |  |  141|      0|#define NST_NEST_LEVEL            (1<<13)
  |  |  ------------------
  |  |  |  Branch (164:40): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 1645|      0|	r = SIZE_OPCODE + SIZE_OPTION + SIZE_LENGTH +
  ------------------
  |  |  688|      0|#define SIZE_OPCODE           1
  ------------------
              	r = SIZE_OPCODE + SIZE_OPTION + SIZE_LENGTH +
  ------------------
  |  |  695|      0|#define SIZE_OPTION           (int )sizeof(OnigOptionType)
  ------------------
              	r = SIZE_OPCODE + SIZE_OPTION + SIZE_LENGTH +
  ------------------
  |  |  691|      0|#define SIZE_LENGTH           (int )sizeof(LengthType)
  ------------------
 1646|      0|            SIZE_LENGTH + (SIZE_MEMNUM * br->back_num);
  ------------------
  |  |  691|      0|#define SIZE_LENGTH           (int )sizeof(LengthType)
  ------------------
                          SIZE_LENGTH + (SIZE_MEMNUM * br->back_num);
  ------------------
  |  |  692|      0|#define SIZE_MEMNUM           (int )sizeof(MemNumType)
  ------------------
 1647|      0|      }
 1648|      0|      else
 1649|      0|#endif
 1650|      0|      if (br->back_num == 1) {
  ------------------
  |  Branch (1650:11): [True: 0, False: 0]
  ------------------
 1651|      0|	r = ((!IS_IGNORECASE(reg->options) && br->back_static[0] <= 2)
  ------------------
  |  |  396|      0|#define IS_IGNORECASE(option)     ((option) & ONIG_OPTION_IGNORECASE)
  |  |  ------------------
  |  |  |  |  454|      0|#define ONIG_OPTION_IGNORECASE           1U
  |  |  ------------------
  ------------------
  |  Branch (1651:8): [True: 0, False: 0]
  |  Branch (1651:40): [True: 0, False: 0]
  ------------------
 1652|      0|	     ? SIZE_OPCODE : (SIZE_OPCODE + SIZE_MEMNUM));
  ------------------
  |  |  688|      0|#define SIZE_OPCODE           1
  ------------------
              	     ? SIZE_OPCODE : (SIZE_OPCODE + SIZE_MEMNUM));
  ------------------
  |  |  688|      0|#define SIZE_OPCODE           1
  ------------------
              	     ? SIZE_OPCODE : (SIZE_OPCODE + SIZE_MEMNUM));
  ------------------
  |  |  692|      0|#define SIZE_MEMNUM           (int )sizeof(MemNumType)
  ------------------
 1653|      0|      }
 1654|      0|      else {
 1655|      0|	r = SIZE_OPCODE + SIZE_LENGTH + (SIZE_MEMNUM * br->back_num);
  ------------------
  |  |  688|      0|#define SIZE_OPCODE           1
  ------------------
              	r = SIZE_OPCODE + SIZE_LENGTH + (SIZE_MEMNUM * br->back_num);
  ------------------
  |  |  691|      0|#define SIZE_LENGTH           (int )sizeof(LengthType)
  ------------------
              	r = SIZE_OPCODE + SIZE_LENGTH + (SIZE_MEMNUM * br->back_num);
  ------------------
  |  |  692|      0|#define SIZE_MEMNUM           (int )sizeof(MemNumType)
  ------------------
 1656|      0|      }
 1657|      0|    }
 1658|      0|    break;
 1659|       |
 1660|      0|#ifdef USE_SUBEXP_CALL
 1661|      0|  case NT_CALL:
  ------------------
  |  |   48|      0|#define NT_CALL       10
  ------------------
  |  Branch (1661:3): [True: 0, False: 141k]
  ------------------
 1662|      0|    r = SIZE_OP_CALL;
  ------------------
  |  |  747|      0|#define SIZE_OP_CALL                   (SIZE_OPCODE + SIZE_ABSADDR)
  |  |  ------------------
  |  |  |  |  688|      0|#define SIZE_OPCODE           1
  |  |  ------------------
  |  |               #define SIZE_OP_CALL                   (SIZE_OPCODE + SIZE_ABSADDR)
  |  |  ------------------
  |  |  |  |  690|      0|#define SIZE_ABSADDR          (int )sizeof(AbsAddrType)
  |  |  ------------------
  ------------------
 1663|      0|    break;
 1664|      0|#endif
 1665|       |
 1666|  11.4k|  case NT_QTFR:
  ------------------
  |  |   43|  11.4k|#define NT_QTFR        5
  ------------------
  |  Branch (1666:3): [True: 11.4k, False: 130k]
  ------------------
 1667|  11.4k|    r = compile_length_quantifier_node(NQTFR(node), reg);
  ------------------
  |  |   80|  11.4k|#define NQTFR(node)        (&((node)->u.qtfr))
  ------------------
 1668|  11.4k|    break;
 1669|       |
 1670|  8.60k|  case NT_ENCLOSE:
  ------------------
  |  |   44|  8.60k|#define NT_ENCLOSE     6
  ------------------
  |  Branch (1670:3): [True: 8.60k, False: 133k]
  ------------------
 1671|  8.60k|    r = compile_length_enclose_node(NENCLOSE(node), reg);
  ------------------
  |  |   81|  8.60k|#define NENCLOSE(node)     (&((node)->u.enclose))
  ------------------
 1672|  8.60k|    break;
 1673|       |
 1674|  5.74k|  case NT_ANCHOR:
  ------------------
  |  |   45|  5.74k|#define NT_ANCHOR      7
  ------------------
  |  Branch (1674:3): [True: 5.74k, False: 135k]
  ------------------
 1675|  5.74k|    r = compile_length_anchor_node(NANCHOR(node), reg);
  ------------------
  |  |   82|  5.74k|#define NANCHOR(node)      (&((node)->u.anchor))
  ------------------
 1676|  5.74k|    break;
 1677|       |
 1678|      0|  default:
  ------------------
  |  Branch (1678:3): [True: 0, False: 141k]
  ------------------
 1679|      0|    return ONIGERR_TYPE_BUG;
  ------------------
  |  |  633|      0|#define ONIGERR_TYPE_BUG                                       -6
  ------------------
 1680|      0|    break;
 1681|   141k|  }
 1682|       |
 1683|   141k|  return r;
 1684|   141k|}
regcomp.c:add_compile_string_length:
  427|  48.1k|{
  428|  48.1k|  int len;
  429|  48.1k|  int op = select_str_opcode(mb_len, byte_len, ignore_case);
  430|       |
  431|  48.1k|  len = SIZE_OPCODE;
  ------------------
  |  |  688|  48.1k|#define SIZE_OPCODE           1
  ------------------
  432|       |
  433|  48.1k|  if (op == OP_EXACTMBN)  len += SIZE_LENGTH;
  ------------------
  |  |  691|      0|#define SIZE_LENGTH           (int )sizeof(LengthType)
  ------------------
  |  Branch (433:7): [True: 0, False: 48.1k]
  ------------------
  434|  48.1k|  if (IS_NEED_STR_LEN_OP_EXACT(op))
  ------------------
  |  |  316|  48.1k|   ((op) == OP_EXACTN    || (op) == OP_EXACTMB2N ||\
  |  |  ------------------
  |  |  |  Branch (316:5): [True: 26.3k, False: 21.8k]
  |  |  |  Branch (316:29): [True: 0, False: 21.8k]
  |  |  ------------------
  |  |  317|  48.1k|    (op) == OP_EXACTMB3N || (op) == OP_EXACTMBN  || (op) == OP_EXACTN_IC)
  |  |  ------------------
  |  |  |  Branch (317:5): [True: 0, False: 21.8k]
  |  |  |  Branch (317:29): [True: 0, False: 21.8k]
  |  |  |  Branch (317:53): [True: 0, False: 21.8k]
  |  |  ------------------
  ------------------
  435|  26.3k|    len += SIZE_LENGTH;
  ------------------
  |  |  691|  26.3k|#define SIZE_LENGTH           (int )sizeof(LengthType)
  ------------------
  436|       |
  437|  48.1k|  len += (int )byte_len;
  438|  48.1k|  return len;
  439|  48.1k|}
regcomp.c:select_str_opcode:
  321|   109k|{
  322|   109k|  int op;
  323|   109k|  OnigDistance str_len = (byte_len + mb_len - 1) / mb_len;
  324|       |
  325|   109k|  if (ignore_case) {
  ------------------
  |  Branch (325:7): [True: 0, False: 109k]
  ------------------
  326|      0|    switch (str_len) {
  327|      0|    case 1:  op = OP_EXACT1_IC; break;
  ------------------
  |  Branch (327:5): [True: 0, False: 0]
  ------------------
  328|      0|    default: op = OP_EXACTN_IC; break;
  ------------------
  |  Branch (328:5): [True: 0, False: 0]
  ------------------
  329|      0|    }
  330|      0|  }
  331|   109k|  else {
  332|   109k|    switch (mb_len) {
  333|   109k|    case 1:
  ------------------
  |  Branch (333:5): [True: 109k, False: 0]
  ------------------
  334|   109k|      switch (str_len) {
  335|  34.8k|      case 1:  op = OP_EXACT1; break;
  ------------------
  |  Branch (335:7): [True: 34.8k, False: 74.3k]
  ------------------
  336|  2.87k|      case 2:  op = OP_EXACT2; break;
  ------------------
  |  Branch (336:7): [True: 2.87k, False: 106k]
  ------------------
  337|  4.32k|      case 3:  op = OP_EXACT3; break;
  ------------------
  |  Branch (337:7): [True: 4.32k, False: 104k]
  ------------------
  338|  5.80k|      case 4:  op = OP_EXACT4; break;
  ------------------
  |  Branch (338:7): [True: 5.80k, False: 103k]
  ------------------
  339|  8.75k|      case 5:  op = OP_EXACT5; break;
  ------------------
  |  Branch (339:7): [True: 8.75k, False: 100k]
  ------------------
  340|  52.5k|      default: op = OP_EXACTN; break;
  ------------------
  |  Branch (340:7): [True: 52.5k, False: 56.6k]
  ------------------
  341|   109k|      }
  342|   109k|      break;
  343|       |
  344|   109k|    case 2:
  ------------------
  |  Branch (344:5): [True: 0, False: 109k]
  ------------------
  345|      0|      switch (str_len) {
  346|      0|      case 1:  op = OP_EXACTMB2N1; break;
  ------------------
  |  Branch (346:7): [True: 0, False: 0]
  ------------------
  347|      0|      case 2:  op = OP_EXACTMB2N2; break;
  ------------------
  |  Branch (347:7): [True: 0, False: 0]
  ------------------
  348|      0|      case 3:  op = OP_EXACTMB2N3; break;
  ------------------
  |  Branch (348:7): [True: 0, False: 0]
  ------------------
  349|      0|      default: op = OP_EXACTMB2N;  break;
  ------------------
  |  Branch (349:7): [True: 0, False: 0]
  ------------------
  350|      0|      }
  351|      0|      break;
  352|       |
  353|      0|    case 3:
  ------------------
  |  Branch (353:5): [True: 0, False: 109k]
  ------------------
  354|      0|      op = OP_EXACTMB3N;
  355|      0|      break;
  356|       |
  357|      0|    default:
  ------------------
  |  Branch (357:5): [True: 0, False: 109k]
  ------------------
  358|      0|      op = OP_EXACTMBN;
  359|      0|      break;
  360|   109k|    }
  361|   109k|  }
  362|   109k|  return op;
  363|   109k|}
regcomp.c:compile_length_string_node:
  465|  48.1k|{
  466|  48.1k|  int rlen, r, len, prev_len, blen, ambig;
  467|  48.1k|  OnigEncoding enc = reg->enc;
  468|  48.1k|  UChar *p, *prev;
  ------------------
  |  |   76|  48.1k|# define UChar OnigUChar
  ------------------
  469|  48.1k|  StrNode* sn;
  470|       |
  471|  48.1k|  sn = NSTR(node);
  ------------------
  |  |   76|  48.1k|#define NSTR(node)         (&((node)->u.str))
  ------------------
  472|  48.1k|  if (sn->end <= sn->s)
  ------------------
  |  Branch (472:7): [True: 0, False: 48.1k]
  ------------------
  473|      0|    return 0;
  474|       |
  475|  48.1k|  ambig = NSTRING_IS_AMBIG(node);
  ------------------
  |  |  115|  48.1k|#define NSTRING_IS_AMBIG(node)        (((node)->u.str.flag & NSTR_AMBIG) != 0)
  |  |  ------------------
  |  |  |  |  105|  48.1k|#define NSTR_AMBIG              (1<<1)
  |  |  ------------------
  ------------------
  476|       |
  477|  48.1k|  p = prev = sn->s;
  478|  48.1k|  prev_len = enclen(enc, p, sn->end);
  ------------------
  |  |   93|  48.1k|#define enclen(enc,p,e) ((enc->max_enc_len == enc->min_enc_len) ? enc->min_enc_len : ONIGENC_MBC_ENC_LEN(enc,p,e))
  |  |  ------------------
  |  |  |  |  364|  48.1k|#define ONIGENC_MBC_ENC_LEN(enc,p,e)          onigenc_mbclen(p,e,enc)
  |  |  ------------------
  |  |  |  Branch (93:26): [True: 0, False: 48.1k]
  |  |  ------------------
  ------------------
  479|  48.1k|  p += prev_len;
  480|  48.1k|  blen = prev_len;
  481|  48.1k|  rlen = 0;
  482|       |
  483|   346k|  for (; p < sn->end; ) {
  ------------------
  |  Branch (483:10): [True: 298k, False: 48.1k]
  ------------------
  484|   298k|    len = enclen(enc, p, sn->end);
  ------------------
  |  |   93|   298k|#define enclen(enc,p,e) ((enc->max_enc_len == enc->min_enc_len) ? enc->min_enc_len : ONIGENC_MBC_ENC_LEN(enc,p,e))
  |  |  ------------------
  |  |  |  |  364|   298k|#define ONIGENC_MBC_ENC_LEN(enc,p,e)          onigenc_mbclen(p,e,enc)
  |  |  ------------------
  |  |  |  Branch (93:26): [True: 0, False: 298k]
  |  |  ------------------
  ------------------
  485|   298k|    if (len == prev_len || ambig) {
  ------------------
  |  Branch (485:9): [True: 298k, False: 0]
  |  Branch (485:28): [True: 0, False: 0]
  ------------------
  486|   298k|      blen += len;
  487|   298k|    }
  488|      0|    else {
  489|      0|      r = add_compile_string_length(prev, prev_len, blen, reg, ambig);
  490|      0|      rlen += r;
  491|      0|      prev = p;
  492|      0|      blen = len;
  493|      0|      prev_len = len;
  494|      0|    }
  495|   298k|    p += len;
  496|   298k|  }
  497|  48.1k|  r = add_compile_string_length(prev, prev_len, blen, reg, ambig);
  498|  48.1k|  rlen += r;
  499|  48.1k|  return rlen;
  500|  48.1k|}
regcomp.c:compile_length_cclass_node:
  587|  47.5k|{
  588|  47.5k|  int len;
  589|       |
  590|  47.5k|  if (IS_NULL(cc->mbuf)) {
  ------------------
  |  |  311|  47.5k|#define IS_NULL(p)                    (((void*)(p)) == (void*)0)
  |  |  ------------------
  |  |  |  Branch (311:39): [True: 47.5k, False: 0]
  |  |  ------------------
  ------------------
  591|  47.5k|    len = SIZE_OPCODE + SIZE_BITSET;
  ------------------
  |  |  688|  47.5k|#define SIZE_OPCODE           1
  ------------------
                  len = SIZE_OPCODE + SIZE_BITSET;
  ------------------
  |  |  438|  47.5k|#define SIZE_BITSET        (int )sizeof(BitSet)
  ------------------
  592|  47.5k|  }
  593|      0|  else {
  594|      0|    if (ONIGENC_MBC_MINLEN(reg->enc) > 1 || bitset_is_empty(cc->bs)) {
  ------------------
  |  |  367|      0|#define ONIGENC_MBC_MINLEN(enc)               ((enc)->min_enc_len)
  ------------------
  |  Branch (594:9): [True: 0, False: 0]
  |  Branch (594:45): [True: 0, False: 0]
  ------------------
  595|      0|      len = SIZE_OPCODE;
  ------------------
  |  |  688|      0|#define SIZE_OPCODE           1
  ------------------
  596|      0|    }
  597|      0|    else {
  598|      0|      len = SIZE_OPCODE + SIZE_BITSET;
  ------------------
  |  |  688|      0|#define SIZE_OPCODE           1
  ------------------
                    len = SIZE_OPCODE + SIZE_BITSET;
  ------------------
  |  |  438|      0|#define SIZE_BITSET        (int )sizeof(BitSet)
  ------------------
  599|      0|    }
  600|      0|#ifdef PLATFORM_UNALIGNED_WORD_ACCESS
  601|      0|    len += SIZE_LENGTH + cc->mbuf->used;
  ------------------
  |  |  691|      0|#define SIZE_LENGTH           (int )sizeof(LengthType)
  ------------------
  602|       |#else
  603|       |    len += SIZE_LENGTH + cc->mbuf->used + (WORD_ALIGNMENT_SIZE - 1);
  604|       |#endif
  605|      0|  }
  606|       |
  607|  47.5k|  return len;
  608|  47.5k|}
regcomp.c:compile_length_quantifier_node:
  965|  11.4k|{
  966|  11.4k|  int len, mod_tlen;
  967|  11.4k|  int infinite = IS_REPEAT_INFINITE(qn->upper);
  ------------------
  |  |  422|  11.4k|#define IS_REPEAT_INFINITE(n)   ((n) == REPEAT_INFINITE)
  |  |  ------------------
  |  |  |  |  421|  11.4k|#define REPEAT_INFINITE         -1
  |  |  ------------------
  ------------------
  968|  11.4k|  int empty_info = qn->target_empty_info;
  969|  11.4k|  int tlen = compile_length_tree(qn->target, reg);
  970|       |
  971|  11.4k|  if (tlen < 0) return tlen;
  ------------------
  |  Branch (971:7): [True: 0, False: 11.4k]
  ------------------
  972|       |
  973|       |  /* anychar repeat */
  974|  11.4k|  if (NTYPE(qn->target) == NT_CANY) {
  ------------------
  |  |   69|  11.4k|#define NTYPE(node)             ((node)->u.base.type)
  ------------------
                if (NTYPE(qn->target) == NT_CANY) {
  ------------------
  |  |   41|  11.4k|#define NT_CANY        3
  ------------------
  |  Branch (974:7): [True: 0, False: 11.4k]
  ------------------
  975|      0|    if (qn->greedy && infinite) {
  ------------------
  |  Branch (975:9): [True: 0, False: 0]
  |  Branch (975:23): [True: 0, False: 0]
  ------------------
  976|      0|      if (IS_NOT_NULL(qn->next_head_exact))
  ------------------
  |  |  312|      0|#define IS_NOT_NULL(p)                (((void*)(p)) != (void*)0)
  |  |  ------------------
  |  |  |  Branch (312:39): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  977|      0|	return SIZE_OP_ANYCHAR_STAR_PEEK_NEXT + tlen * qn->lower;
  ------------------
  |  |  719|      0|#define SIZE_OP_ANYCHAR_STAR_PEEK_NEXT (SIZE_OPCODE + 1)
  |  |  ------------------
  |  |  |  |  688|      0|#define SIZE_OPCODE           1
  |  |  ------------------
  ------------------
  978|      0|      else
  979|      0|	return SIZE_OP_ANYCHAR_STAR + tlen * qn->lower;
  ------------------
  |  |  718|      0|#define SIZE_OP_ANYCHAR_STAR            SIZE_OPCODE
  |  |  ------------------
  |  |  |  |  688|      0|#define SIZE_OPCODE           1
  |  |  ------------------
  ------------------
  980|      0|    }
  981|      0|  }
  982|       |
  983|  11.4k|  if (empty_info != 0)
  ------------------
  |  Branch (983:7): [True: 0, False: 11.4k]
  ------------------
  984|      0|    mod_tlen = tlen + (SIZE_OP_NULL_CHECK_START + SIZE_OP_NULL_CHECK_END);
  ------------------
  |  |  742|      0|#define SIZE_OP_NULL_CHECK_START       (SIZE_OPCODE + SIZE_MEMNUM)
  |  |  ------------------
  |  |  |  |  688|      0|#define SIZE_OPCODE           1
  |  |  ------------------
  |  |               #define SIZE_OP_NULL_CHECK_START       (SIZE_OPCODE + SIZE_MEMNUM)
  |  |  ------------------
  |  |  |  |  692|      0|#define SIZE_MEMNUM           (int )sizeof(MemNumType)
  |  |  ------------------
  ------------------
                  mod_tlen = tlen + (SIZE_OP_NULL_CHECK_START + SIZE_OP_NULL_CHECK_END);
  ------------------
  |  |  743|      0|#define SIZE_OP_NULL_CHECK_END         (SIZE_OPCODE + SIZE_MEMNUM)
  |  |  ------------------
  |  |  |  |  688|      0|#define SIZE_OPCODE           1
  |  |  ------------------
  |  |               #define SIZE_OP_NULL_CHECK_END         (SIZE_OPCODE + SIZE_MEMNUM)
  |  |  ------------------
  |  |  |  |  692|      0|#define SIZE_MEMNUM           (int )sizeof(MemNumType)
  |  |  ------------------
  ------------------
  985|  11.4k|  else
  986|  11.4k|    mod_tlen = tlen;
  987|       |
  988|  11.4k|  if (infinite &&
  ------------------
  |  Branch (988:7): [True: 11.4k, False: 0]
  ------------------
  989|  11.4k|      (qn->lower <= 1 || tlen * qn->lower <= QUANTIFIER_EXPAND_LIMIT_SIZE)) {
  ------------------
  |  |  724|      0|#define QUANTIFIER_EXPAND_LIMIT_SIZE   50
  ------------------
  |  Branch (989:8): [True: 11.4k, False: 0]
  |  Branch (989:26): [True: 0, False: 0]
  ------------------
  990|  11.4k|    if (qn->lower == 1 && tlen > QUANTIFIER_EXPAND_LIMIT_SIZE) {
  ------------------
  |  |  724|  8.60k|#define QUANTIFIER_EXPAND_LIMIT_SIZE   50
  ------------------
  |  Branch (990:9): [True: 8.60k, False: 2.87k]
  |  Branch (990:27): [True: 0, False: 8.60k]
  ------------------
  991|      0|      len = SIZE_OP_JUMP;
  ------------------
  |  |  720|      0|#define SIZE_OP_JUMP                   (SIZE_OPCODE + SIZE_RELADDR)
  |  |  ------------------
  |  |  |  |  688|      0|#define SIZE_OPCODE           1
  |  |  ------------------
  |  |               #define SIZE_OP_JUMP                   (SIZE_OPCODE + SIZE_RELADDR)
  |  |  ------------------
  |  |  |  |  689|      0|#define SIZE_RELADDR          (int )sizeof(RelAddrType)
  |  |  ------------------
  ------------------
  992|      0|    }
  993|  11.4k|    else {
  994|  11.4k|      len = tlen * qn->lower;
  995|  11.4k|    }
  996|       |
  997|  11.4k|    if (qn->greedy) {
  ------------------
  |  Branch (997:9): [True: 11.4k, False: 0]
  ------------------
  998|       |#ifdef USE_OP_PUSH_OR_JUMP_EXACT
  999|       |      if (IS_NOT_NULL(qn->head_exact))
 1000|       |	len += SIZE_OP_PUSH_OR_JUMP_EXACT1 + mod_tlen + SIZE_OP_JUMP;
 1001|       |      else
 1002|       |#endif
 1003|  11.4k|      if (IS_NOT_NULL(qn->next_head_exact))
  ------------------
  |  |  312|  11.4k|#define IS_NOT_NULL(p)                (((void*)(p)) != (void*)0)
  |  |  ------------------
  |  |  |  Branch (312:39): [True: 8.60k, False: 2.87k]
  |  |  ------------------
  ------------------
 1004|  8.60k|	len += SIZE_OP_PUSH_IF_PEEK_NEXT + mod_tlen + SIZE_OP_JUMP;
  ------------------
  |  |  724|  8.60k|#define SIZE_OP_PUSH_IF_PEEK_NEXT      (SIZE_OPCODE + SIZE_RELADDR + 1)
  |  |  ------------------
  |  |  |  |  688|  8.60k|#define SIZE_OPCODE           1
  |  |  ------------------
  |  |               #define SIZE_OP_PUSH_IF_PEEK_NEXT      (SIZE_OPCODE + SIZE_RELADDR + 1)
  |  |  ------------------
  |  |  |  |  689|  8.60k|#define SIZE_RELADDR          (int )sizeof(RelAddrType)
  |  |  ------------------
  ------------------
              	len += SIZE_OP_PUSH_IF_PEEK_NEXT + mod_tlen + SIZE_OP_JUMP;
  ------------------
  |  |  720|  8.60k|#define SIZE_OP_JUMP                   (SIZE_OPCODE + SIZE_RELADDR)
  |  |  ------------------
  |  |  |  |  688|  8.60k|#define SIZE_OPCODE           1
  |  |  ------------------
  |  |               #define SIZE_OP_JUMP                   (SIZE_OPCODE + SIZE_RELADDR)
  |  |  ------------------
  |  |  |  |  689|  8.60k|#define SIZE_RELADDR          (int )sizeof(RelAddrType)
  |  |  ------------------
  ------------------
 1005|  2.87k|      else
 1006|  2.87k|	len += SIZE_OP_PUSH + mod_tlen + SIZE_OP_JUMP;
  ------------------
  |  |  721|  2.87k|#define SIZE_OP_PUSH                   (SIZE_OPCODE + SIZE_RELADDR)
  |  |  ------------------
  |  |  |  |  688|  2.87k|#define SIZE_OPCODE           1
  |  |  ------------------
  |  |               #define SIZE_OP_PUSH                   (SIZE_OPCODE + SIZE_RELADDR)
  |  |  ------------------
  |  |  |  |  689|  2.87k|#define SIZE_RELADDR          (int )sizeof(RelAddrType)
  |  |  ------------------
  ------------------
              	len += SIZE_OP_PUSH + mod_tlen + SIZE_OP_JUMP;
  ------------------
  |  |  720|  2.87k|#define SIZE_OP_JUMP                   (SIZE_OPCODE + SIZE_RELADDR)
  |  |  ------------------
  |  |  |  |  688|  2.87k|#define SIZE_OPCODE           1
  |  |  ------------------
  |  |               #define SIZE_OP_JUMP                   (SIZE_OPCODE + SIZE_RELADDR)
  |  |  ------------------
  |  |  |  |  689|  2.87k|#define SIZE_RELADDR          (int )sizeof(RelAddrType)
  |  |  ------------------
  ------------------
 1007|  11.4k|    }
 1008|      0|    else
 1009|      0|      len += SIZE_OP_JUMP + mod_tlen + SIZE_OP_PUSH;
  ------------------
  |  |  720|      0|#define SIZE_OP_JUMP                   (SIZE_OPCODE + SIZE_RELADDR)
  |  |  ------------------
  |  |  |  |  688|      0|#define SIZE_OPCODE           1
  |  |  ------------------
  |  |               #define SIZE_OP_JUMP                   (SIZE_OPCODE + SIZE_RELADDR)
  |  |  ------------------
  |  |  |  |  689|      0|#define SIZE_RELADDR          (int )sizeof(RelAddrType)
  |  |  ------------------
  ------------------
                    len += SIZE_OP_JUMP + mod_tlen + SIZE_OP_PUSH;
  ------------------
  |  |  721|      0|#define SIZE_OP_PUSH                   (SIZE_OPCODE + SIZE_RELADDR)
  |  |  ------------------
  |  |  |  |  688|      0|#define SIZE_OPCODE           1
  |  |  ------------------
  |  |               #define SIZE_OP_PUSH                   (SIZE_OPCODE + SIZE_RELADDR)
  |  |  ------------------
  |  |  |  |  689|      0|#define SIZE_RELADDR          (int )sizeof(RelAddrType)
  |  |  ------------------
  ------------------
 1010|  11.4k|  }
 1011|      0|  else if (qn->upper == 0 && qn->is_referred != 0) { /* /(?<n>..){0}/ */
  ------------------
  |  Branch (1011:12): [True: 0, False: 0]
  |  Branch (1011:30): [True: 0, False: 0]
  ------------------
 1012|      0|    len = SIZE_OP_JUMP + tlen;
  ------------------
  |  |  720|      0|#define SIZE_OP_JUMP                   (SIZE_OPCODE + SIZE_RELADDR)
  |  |  ------------------
  |  |  |  |  688|      0|#define SIZE_OPCODE           1
  |  |  ------------------
  |  |               #define SIZE_OP_JUMP                   (SIZE_OPCODE + SIZE_RELADDR)
  |  |  ------------------
  |  |  |  |  689|      0|#define SIZE_RELADDR          (int )sizeof(RelAddrType)
  |  |  ------------------
  ------------------
 1013|      0|  }
 1014|      0|  else if (!infinite && qn->greedy &&
  ------------------
  |  Branch (1014:12): [True: 0, False: 0]
  |  Branch (1014:25): [True: 0, False: 0]
  ------------------
 1015|      0|           (qn->upper == 1 || (tlen + SIZE_OP_PUSH) * qn->upper
  ------------------
  |  |  721|      0|#define SIZE_OP_PUSH                   (SIZE_OPCODE + SIZE_RELADDR)
  |  |  ------------------
  |  |  |  |  688|      0|#define SIZE_OPCODE           1
  |  |  ------------------
  |  |               #define SIZE_OP_PUSH                   (SIZE_OPCODE + SIZE_RELADDR)
  |  |  ------------------
  |  |  |  |  689|      0|#define SIZE_RELADDR          (int )sizeof(RelAddrType)
  |  |  ------------------
  ------------------
  |  Branch (1015:13): [True: 0, False: 0]
  |  Branch (1015:31): [True: 0, False: 0]
  ------------------
 1016|      0|                                      <= QUANTIFIER_EXPAND_LIMIT_SIZE)) {
  ------------------
  |  |  724|      0|#define QUANTIFIER_EXPAND_LIMIT_SIZE   50
  ------------------
 1017|      0|    len = tlen * qn->lower;
 1018|      0|    len += (SIZE_OP_PUSH + tlen) * (qn->upper - qn->lower);
  ------------------
  |  |  721|      0|#define SIZE_OP_PUSH                   (SIZE_OPCODE + SIZE_RELADDR)
  |  |  ------------------
  |  |  |  |  688|      0|#define SIZE_OPCODE           1
  |  |  ------------------
  |  |               #define SIZE_OP_PUSH                   (SIZE_OPCODE + SIZE_RELADDR)
  |  |  ------------------
  |  |  |  |  689|      0|#define SIZE_RELADDR          (int )sizeof(RelAddrType)
  |  |  ------------------
  ------------------
 1019|      0|  }
 1020|      0|  else if (!qn->greedy && qn->upper == 1 && qn->lower == 0) { /* '??' */
  ------------------
  |  Branch (1020:12): [True: 0, False: 0]
  |  Branch (1020:27): [True: 0, False: 0]
  |  Branch (1020:45): [True: 0, False: 0]
  ------------------
 1021|      0|    len = SIZE_OP_PUSH + SIZE_OP_JUMP + tlen;
  ------------------
  |  |  721|      0|#define SIZE_OP_PUSH                   (SIZE_OPCODE + SIZE_RELADDR)
  |  |  ------------------
  |  |  |  |  688|      0|#define SIZE_OPCODE           1
  |  |  ------------------
  |  |               #define SIZE_OP_PUSH                   (SIZE_OPCODE + SIZE_RELADDR)
  |  |  ------------------
  |  |  |  |  689|      0|#define SIZE_RELADDR          (int )sizeof(RelAddrType)
  |  |  ------------------
  ------------------
                  len = SIZE_OP_PUSH + SIZE_OP_JUMP + tlen;
  ------------------
  |  |  720|      0|#define SIZE_OP_JUMP                   (SIZE_OPCODE + SIZE_RELADDR)
  |  |  ------------------
  |  |  |  |  688|      0|#define SIZE_OPCODE           1
  |  |  ------------------
  |  |               #define SIZE_OP_JUMP                   (SIZE_OPCODE + SIZE_RELADDR)
  |  |  ------------------
  |  |  |  |  689|      0|#define SIZE_RELADDR          (int )sizeof(RelAddrType)
  |  |  ------------------
  ------------------
 1022|      0|  }
 1023|      0|  else {
 1024|      0|    len = SIZE_OP_REPEAT_INC
  ------------------
  |  |  725|      0|#define SIZE_OP_REPEAT_INC             (SIZE_OPCODE + SIZE_MEMNUM)
  |  |  ------------------
  |  |  |  |  688|      0|#define SIZE_OPCODE           1
  |  |  ------------------
  |  |               #define SIZE_OP_REPEAT_INC             (SIZE_OPCODE + SIZE_MEMNUM)
  |  |  ------------------
  |  |  |  |  692|      0|#define SIZE_MEMNUM           (int )sizeof(MemNumType)
  |  |  ------------------
  ------------------
 1025|      0|        + mod_tlen + SIZE_OPCODE + SIZE_RELADDR + SIZE_MEMNUM;
  ------------------
  |  |  688|      0|#define SIZE_OPCODE           1
  ------------------
                      + mod_tlen + SIZE_OPCODE + SIZE_RELADDR + SIZE_MEMNUM;
  ------------------
  |  |  689|      0|#define SIZE_RELADDR          (int )sizeof(RelAddrType)
  ------------------
                      + mod_tlen + SIZE_OPCODE + SIZE_RELADDR + SIZE_MEMNUM;
  ------------------
  |  |  692|      0|#define SIZE_MEMNUM           (int )sizeof(MemNumType)
  ------------------
 1026|      0|  }
 1027|       |
 1028|  11.4k|  return len;
 1029|  11.4k|}
regcomp.c:compile_length_enclose_node:
 1213|  8.60k|{
 1214|  8.60k|  int len;
 1215|  8.60k|  int tlen;
 1216|       |
 1217|  8.60k|  if (node->type == ENCLOSE_OPTION)
  ------------------
  |  |   95|  8.60k|#define ENCLOSE_OPTION           (1<<1)
  ------------------
  |  Branch (1217:7): [True: 0, False: 8.60k]
  ------------------
 1218|      0|    return compile_length_option_node(node, reg);
 1219|       |
 1220|  8.60k|  if (node->target) {
  ------------------
  |  Branch (1220:7): [True: 8.60k, False: 0]
  ------------------
 1221|  8.60k|    tlen = compile_length_tree(node->target, reg);
 1222|  8.60k|    if (tlen < 0) return tlen;
  ------------------
  |  Branch (1222:9): [True: 0, False: 8.60k]
  ------------------
 1223|  8.60k|  }
 1224|      0|  else
 1225|      0|    tlen = 0;
 1226|       |
 1227|  8.60k|  switch (node->type) {
 1228|      0|  case ENCLOSE_MEMORY:
  ------------------
  |  |   94|      0|#define ENCLOSE_MEMORY           (1<<0)
  ------------------
  |  Branch (1228:3): [True: 0, False: 8.60k]
  ------------------
 1229|      0|#ifdef USE_SUBEXP_CALL
 1230|      0|    if (IS_ENCLOSE_CALLED(node)) {
  ------------------
  |  |  147|      0|#define IS_ENCLOSE_CALLED(en)          (((en)->state & NST_CALLED)        != 0)
  |  |  ------------------
  |  |  |  |  136|      0|#define NST_CALLED                (1<<8)
  |  |  ------------------
  |  |  |  Branch (147:40): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 1231|      0|      len = SIZE_OP_MEMORY_START_PUSH + tlen
  ------------------
  |  |  735|      0|#define SIZE_OP_MEMORY_START_PUSH      (SIZE_OPCODE + SIZE_MEMNUM)
  |  |  ------------------
  |  |  |  |  688|      0|#define SIZE_OPCODE           1
  |  |  ------------------
  |  |               #define SIZE_OP_MEMORY_START_PUSH      (SIZE_OPCODE + SIZE_MEMNUM)
  |  |  ------------------
  |  |  |  |  692|      0|#define SIZE_MEMNUM           (int )sizeof(MemNumType)
  |  |  ------------------
  ------------------
 1232|      0|	  + SIZE_OP_CALL + SIZE_OP_JUMP + SIZE_OP_RETURN;
  ------------------
  |  |  747|      0|#define SIZE_OP_CALL                   (SIZE_OPCODE + SIZE_ABSADDR)
  |  |  ------------------
  |  |  |  |  688|      0|#define SIZE_OPCODE           1
  |  |  ------------------
  |  |               #define SIZE_OP_CALL                   (SIZE_OPCODE + SIZE_ABSADDR)
  |  |  ------------------
  |  |  |  |  690|      0|#define SIZE_ABSADDR          (int )sizeof(AbsAddrType)
  |  |  ------------------
  ------------------
              	  + SIZE_OP_CALL + SIZE_OP_JUMP + SIZE_OP_RETURN;
  ------------------
  |  |  720|      0|#define SIZE_OP_JUMP                   (SIZE_OPCODE + SIZE_RELADDR)
  |  |  ------------------
  |  |  |  |  688|      0|#define SIZE_OPCODE           1
  |  |  ------------------
  |  |               #define SIZE_OP_JUMP                   (SIZE_OPCODE + SIZE_RELADDR)
  |  |  ------------------
  |  |  |  |  689|      0|#define SIZE_RELADDR          (int )sizeof(RelAddrType)
  |  |  ------------------
  ------------------
              	  + SIZE_OP_CALL + SIZE_OP_JUMP + SIZE_OP_RETURN;
  ------------------
  |  |  748|      0|#define SIZE_OP_RETURN                  SIZE_OPCODE
  |  |  ------------------
  |  |  |  |  688|      0|#define SIZE_OPCODE           1
  |  |  ------------------
  ------------------
 1233|      0|      if (BIT_STATUS_AT(reg->bt_mem_end, node->regnum))
  ------------------
  |  |  371|      0|  ((n) < (int )BIT_STATUS_BITS_NUM  ?  ((stats) & ((BitStatusType )1 << n)) : ((stats) & 1))
  |  |  ------------------
  |  |  |  |  367|      0|#define BIT_STATUS_BITS_NUM          (sizeof(BitStatusType) * 8)
  |  |  ------------------
  |  |  |  Branch (371:3): [True: 0, False: 0]
  |  |  |  Branch (371:4): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 1234|      0|	len += (IS_ENCLOSE_RECURSION(node)
  ------------------
  |  |  149|      0|#define IS_ENCLOSE_RECURSION(en)       (((en)->state & NST_RECURSION)     != 0)
  |  |  ------------------
  |  |  |  |  135|      0|#define NST_RECURSION             (1<<7)
  |  |  ------------------
  |  |  |  Branch (149:40): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 1235|      0|		? SIZE_OP_MEMORY_END_PUSH_REC : SIZE_OP_MEMORY_END_PUSH);
  ------------------
  |  |  737|      0|#define SIZE_OP_MEMORY_END_PUSH_REC    (SIZE_OPCODE + SIZE_MEMNUM)
  |  |  ------------------
  |  |  |  |  688|      0|#define SIZE_OPCODE           1
  |  |  ------------------
  |  |               #define SIZE_OP_MEMORY_END_PUSH_REC    (SIZE_OPCODE + SIZE_MEMNUM)
  |  |  ------------------
  |  |  |  |  692|      0|#define SIZE_MEMNUM           (int )sizeof(MemNumType)
  |  |  ------------------
  ------------------
              		? SIZE_OP_MEMORY_END_PUSH_REC : SIZE_OP_MEMORY_END_PUSH);
  ------------------
  |  |  736|      0|#define SIZE_OP_MEMORY_END_PUSH        (SIZE_OPCODE + SIZE_MEMNUM)
  |  |  ------------------
  |  |  |  |  688|      0|#define SIZE_OPCODE           1
  |  |  ------------------
  |  |               #define SIZE_OP_MEMORY_END_PUSH        (SIZE_OPCODE + SIZE_MEMNUM)
  |  |  ------------------
  |  |  |  |  692|      0|#define SIZE_MEMNUM           (int )sizeof(MemNumType)
  |  |  ------------------
  ------------------
 1236|      0|      else
 1237|      0|	len += (IS_ENCLOSE_RECURSION(node)
  ------------------
  |  |  149|      0|#define IS_ENCLOSE_RECURSION(en)       (((en)->state & NST_RECURSION)     != 0)
  |  |  ------------------
  |  |  |  |  135|      0|#define NST_RECURSION             (1<<7)
  |  |  ------------------
  |  |  |  Branch (149:40): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 1238|      0|		? SIZE_OP_MEMORY_END_REC : SIZE_OP_MEMORY_END);
  ------------------
  |  |  739|      0|#define SIZE_OP_MEMORY_END_REC         (SIZE_OPCODE + SIZE_MEMNUM)
  |  |  ------------------
  |  |  |  |  688|      0|#define SIZE_OPCODE           1
  |  |  ------------------
  |  |               #define SIZE_OP_MEMORY_END_REC         (SIZE_OPCODE + SIZE_MEMNUM)
  |  |  ------------------
  |  |  |  |  692|      0|#define SIZE_MEMNUM           (int )sizeof(MemNumType)
  |  |  ------------------
  ------------------
              		? SIZE_OP_MEMORY_END_REC : SIZE_OP_MEMORY_END);
  ------------------
  |  |  738|      0|#define SIZE_OP_MEMORY_END             (SIZE_OPCODE + SIZE_MEMNUM)
  |  |  ------------------
  |  |  |  |  688|      0|#define SIZE_OPCODE           1
  |  |  ------------------
  |  |               #define SIZE_OP_MEMORY_END             (SIZE_OPCODE + SIZE_MEMNUM)
  |  |  ------------------
  |  |  |  |  692|      0|#define SIZE_MEMNUM           (int )sizeof(MemNumType)
  |  |  ------------------
  ------------------
 1239|      0|    }
 1240|      0|    else if (IS_ENCLOSE_RECURSION(node)) {
  ------------------
  |  |  149|      0|#define IS_ENCLOSE_RECURSION(en)       (((en)->state & NST_RECURSION)     != 0)
  |  |  ------------------
  |  |  |  |  135|      0|#define NST_RECURSION             (1<<7)
  |  |  ------------------
  |  |  |  Branch (149:40): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 1241|      0|      len = SIZE_OP_MEMORY_START_PUSH;
  ------------------
  |  |  735|      0|#define SIZE_OP_MEMORY_START_PUSH      (SIZE_OPCODE + SIZE_MEMNUM)
  |  |  ------------------
  |  |  |  |  688|      0|#define SIZE_OPCODE           1
  |  |  ------------------
  |  |               #define SIZE_OP_MEMORY_START_PUSH      (SIZE_OPCODE + SIZE_MEMNUM)
  |  |  ------------------
  |  |  |  |  692|      0|#define SIZE_MEMNUM           (int )sizeof(MemNumType)
  |  |  ------------------
  ------------------
 1242|      0|      len += tlen + (BIT_STATUS_AT(reg->bt_mem_end, node->regnum)
  ------------------
  |  |  371|      0|  ((n) < (int )BIT_STATUS_BITS_NUM  ?  ((stats) & ((BitStatusType )1 << n)) : ((stats) & 1))
  |  |  ------------------
  |  |  |  |  367|      0|#define BIT_STATUS_BITS_NUM          (sizeof(BitStatusType) * 8)
  |  |  ------------------
  |  |  |  Branch (371:3): [True: 0, False: 0]
  |  |  |  Branch (371:4): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 1243|      0|		     ? SIZE_OP_MEMORY_END_PUSH_REC : SIZE_OP_MEMORY_END_REC);
  ------------------
  |  |  737|      0|#define SIZE_OP_MEMORY_END_PUSH_REC    (SIZE_OPCODE + SIZE_MEMNUM)
  |  |  ------------------
  |  |  |  |  688|      0|#define SIZE_OPCODE           1
  |  |  ------------------
  |  |               #define SIZE_OP_MEMORY_END_PUSH_REC    (SIZE_OPCODE + SIZE_MEMNUM)
  |  |  ------------------
  |  |  |  |  692|      0|#define SIZE_MEMNUM           (int )sizeof(MemNumType)
  |  |  ------------------
  ------------------
              		     ? SIZE_OP_MEMORY_END_PUSH_REC : SIZE_OP_MEMORY_END_REC);
  ------------------
  |  |  739|      0|#define SIZE_OP_MEMORY_END_REC         (SIZE_OPCODE + SIZE_MEMNUM)
  |  |  ------------------
  |  |  |  |  688|      0|#define SIZE_OPCODE           1
  |  |  ------------------
  |  |               #define SIZE_OP_MEMORY_END_REC         (SIZE_OPCODE + SIZE_MEMNUM)
  |  |  ------------------
  |  |  |  |  692|      0|#define SIZE_MEMNUM           (int )sizeof(MemNumType)
  |  |  ------------------
  ------------------
 1244|      0|    }
 1245|      0|    else
 1246|      0|#endif
 1247|      0|    {
 1248|      0|      if (BIT_STATUS_AT(reg->bt_mem_start, node->regnum))
  ------------------
  |  |  371|      0|  ((n) < (int )BIT_STATUS_BITS_NUM  ?  ((stats) & ((BitStatusType )1 << n)) : ((stats) & 1))
  |  |  ------------------
  |  |  |  |  367|      0|#define BIT_STATUS_BITS_NUM          (sizeof(BitStatusType) * 8)
  |  |  ------------------
  |  |  |  Branch (371:3): [True: 0, False: 0]
  |  |  |  Branch (371:4): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 1249|      0|	len = SIZE_OP_MEMORY_START_PUSH;
  ------------------
  |  |  735|      0|#define SIZE_OP_MEMORY_START_PUSH      (SIZE_OPCODE + SIZE_MEMNUM)
  |  |  ------------------
  |  |  |  |  688|      0|#define SIZE_OPCODE           1
  |  |  ------------------
  |  |               #define SIZE_OP_MEMORY_START_PUSH      (SIZE_OPCODE + SIZE_MEMNUM)
  |  |  ------------------
  |  |  |  |  692|      0|#define SIZE_MEMNUM           (int )sizeof(MemNumType)
  |  |  ------------------
  ------------------
 1250|      0|      else
 1251|      0|	len = SIZE_OP_MEMORY_START;
  ------------------
  |  |  734|      0|#define SIZE_OP_MEMORY_START           (SIZE_OPCODE + SIZE_MEMNUM)
  |  |  ------------------
  |  |  |  |  688|      0|#define SIZE_OPCODE           1
  |  |  ------------------
  |  |               #define SIZE_OP_MEMORY_START           (SIZE_OPCODE + SIZE_MEMNUM)
  |  |  ------------------
  |  |  |  |  692|      0|#define SIZE_MEMNUM           (int )sizeof(MemNumType)
  |  |  ------------------
  ------------------
 1252|       |
 1253|      0|      len += tlen + (BIT_STATUS_AT(reg->bt_mem_end, node->regnum)
  ------------------
  |  |  371|      0|  ((n) < (int )BIT_STATUS_BITS_NUM  ?  ((stats) & ((BitStatusType )1 << n)) : ((stats) & 1))
  |  |  ------------------
  |  |  |  |  367|      0|#define BIT_STATUS_BITS_NUM          (sizeof(BitStatusType) * 8)
  |  |  ------------------
  |  |  |  Branch (371:3): [True: 0, False: 0]
  |  |  |  Branch (371:4): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 1254|      0|		     ? SIZE_OP_MEMORY_END_PUSH : SIZE_OP_MEMORY_END);
  ------------------
  |  |  736|      0|#define SIZE_OP_MEMORY_END_PUSH        (SIZE_OPCODE + SIZE_MEMNUM)
  |  |  ------------------
  |  |  |  |  688|      0|#define SIZE_OPCODE           1
  |  |  ------------------
  |  |               #define SIZE_OP_MEMORY_END_PUSH        (SIZE_OPCODE + SIZE_MEMNUM)
  |  |  ------------------
  |  |  |  |  692|      0|#define SIZE_MEMNUM           (int )sizeof(MemNumType)
  |  |  ------------------
  ------------------
              		     ? SIZE_OP_MEMORY_END_PUSH : SIZE_OP_MEMORY_END);
  ------------------
  |  |  738|      0|#define SIZE_OP_MEMORY_END             (SIZE_OPCODE + SIZE_MEMNUM)
  |  |  ------------------
  |  |  |  |  688|      0|#define SIZE_OPCODE           1
  |  |  ------------------
  |  |               #define SIZE_OP_MEMORY_END             (SIZE_OPCODE + SIZE_MEMNUM)
  |  |  ------------------
  |  |  |  |  692|      0|#define SIZE_MEMNUM           (int )sizeof(MemNumType)
  |  |  ------------------
  ------------------
 1255|      0|    }
 1256|      0|    break;
 1257|       |
 1258|  8.60k|  case ENCLOSE_STOP_BACKTRACK:
  ------------------
  |  |   96|  8.60k|#define ENCLOSE_STOP_BACKTRACK   (1<<2)
  ------------------
  |  Branch (1258:3): [True: 8.60k, False: 0]
  ------------------
 1259|  8.60k|    if (IS_ENCLOSE_STOP_BT_SIMPLE_REPEAT(node)) {
  ------------------
  |  |  156|  8.60k|    (((en)->state & NST_STOP_BT_SIMPLE_REPEAT) != 0)
  |  |  ------------------
  |  |  |  |  134|  8.60k|#define NST_STOP_BT_SIMPLE_REPEAT (1<<6)
  |  |  ------------------
  |  |  |  Branch (156:5): [True: 8.60k, False: 0]
  |  |  ------------------
  ------------------
 1260|  8.60k|      QtfrNode* qn = NQTFR(node->target);
  ------------------
  |  |   80|  8.60k|#define NQTFR(node)        (&((node)->u.qtfr))
  ------------------
 1261|  8.60k|      tlen = compile_length_tree(qn->target, reg);
 1262|  8.60k|      if (tlen < 0) return tlen;
  ------------------
  |  Branch (1262:11): [True: 0, False: 8.60k]
  ------------------
 1263|       |
 1264|  8.60k|      len = tlen * qn->lower
 1265|  8.60k|	  + SIZE_OP_PUSH + tlen + SIZE_OP_POP + SIZE_OP_JUMP;
  ------------------
  |  |  721|  8.60k|#define SIZE_OP_PUSH                   (SIZE_OPCODE + SIZE_RELADDR)
  |  |  ------------------
  |  |  |  |  688|  8.60k|#define SIZE_OPCODE           1
  |  |  ------------------
  |  |               #define SIZE_OP_PUSH                   (SIZE_OPCODE + SIZE_RELADDR)
  |  |  ------------------
  |  |  |  |  689|  8.60k|#define SIZE_RELADDR          (int )sizeof(RelAddrType)
  |  |  ------------------
  ------------------
              	  + SIZE_OP_PUSH + tlen + SIZE_OP_POP + SIZE_OP_JUMP;
  ------------------
  |  |  722|  8.60k|#define SIZE_OP_POP                     SIZE_OPCODE
  |  |  ------------------
  |  |  |  |  688|  8.60k|#define SIZE_OPCODE           1
  |  |  ------------------
  ------------------
              	  + SIZE_OP_PUSH + tlen + SIZE_OP_POP + SIZE_OP_JUMP;
  ------------------
  |  |  720|  8.60k|#define SIZE_OP_JUMP                   (SIZE_OPCODE + SIZE_RELADDR)
  |  |  ------------------
  |  |  |  |  688|  8.60k|#define SIZE_OPCODE           1
  |  |  ------------------
  |  |               #define SIZE_OP_JUMP                   (SIZE_OPCODE + SIZE_RELADDR)
  |  |  ------------------
  |  |  |  |  689|  8.60k|#define SIZE_RELADDR          (int )sizeof(RelAddrType)
  |  |  ------------------
  ------------------
 1266|  8.60k|    }
 1267|      0|    else {
 1268|      0|      len = SIZE_OP_PUSH_STOP_BT + tlen + SIZE_OP_POP_STOP_BT;
  ------------------
  |  |  740|      0|#define SIZE_OP_PUSH_STOP_BT            SIZE_OPCODE
  |  |  ------------------
  |  |  |  |  688|      0|#define SIZE_OPCODE           1
  |  |  ------------------
  ------------------
                    len = SIZE_OP_PUSH_STOP_BT + tlen + SIZE_OP_POP_STOP_BT;
  ------------------
  |  |  741|      0|#define SIZE_OP_POP_STOP_BT             SIZE_OPCODE
  |  |  ------------------
  |  |  |  |  688|      0|#define SIZE_OPCODE           1
  |  |  ------------------
  ------------------
 1269|      0|    }
 1270|  8.60k|    break;
 1271|       |
 1272|  8.60k|  case ENCLOSE_CONDITION:
  ------------------
  |  |   97|      0|#define ENCLOSE_CONDITION        (1<<3)
  ------------------
  |  Branch (1272:3): [True: 0, False: 8.60k]
  ------------------
 1273|      0|    len = SIZE_OP_CONDITION;
  ------------------
  |  |  749|      0|#define SIZE_OP_CONDITION              (SIZE_OPCODE + SIZE_MEMNUM + SIZE_RELADDR)
  |  |  ------------------
  |  |  |  |  688|      0|#define SIZE_OPCODE           1
  |  |  ------------------
  |  |               #define SIZE_OP_CONDITION              (SIZE_OPCODE + SIZE_MEMNUM + SIZE_RELADDR)
  |  |  ------------------
  |  |  |  |  692|      0|#define SIZE_MEMNUM           (int )sizeof(MemNumType)
  |  |  ------------------
  |  |               #define SIZE_OP_CONDITION              (SIZE_OPCODE + SIZE_MEMNUM + SIZE_RELADDR)
  |  |  ------------------
  |  |  |  |  689|      0|#define SIZE_RELADDR          (int )sizeof(RelAddrType)
  |  |  ------------------
  ------------------
 1274|      0|    if (NTYPE(node->target) == NT_ALT) {
  ------------------
  |  |   69|      0|#define NTYPE(node)             ((node)->u.base.type)
  ------------------
                  if (NTYPE(node->target) == NT_ALT) {
  ------------------
  |  |   47|      0|#define NT_ALT         9
  ------------------
  |  Branch (1274:9): [True: 0, False: 0]
  ------------------
 1275|      0|      Node* x = node->target;
 1276|       |
 1277|      0|      tlen = compile_length_tree(NCAR(x), reg); /* yes-node */
  ------------------
  |  |   86|      0|#define NCAR(node)         (NCONS(node)->car)
  |  |  ------------------
  |  |  |  |   83|      0|#define NCONS(node)        (&((node)->u.cons))
  |  |  ------------------
  ------------------
 1278|      0|      if (tlen < 0) return tlen;
  ------------------
  |  Branch (1278:11): [True: 0, False: 0]
  ------------------
 1279|      0|      len += tlen + SIZE_OP_JUMP;
  ------------------
  |  |  720|      0|#define SIZE_OP_JUMP                   (SIZE_OPCODE + SIZE_RELADDR)
  |  |  ------------------
  |  |  |  |  688|      0|#define SIZE_OPCODE           1
  |  |  ------------------
  |  |               #define SIZE_OP_JUMP                   (SIZE_OPCODE + SIZE_RELADDR)
  |  |  ------------------
  |  |  |  |  689|      0|#define SIZE_RELADDR          (int )sizeof(RelAddrType)
  |  |  ------------------
  ------------------
 1280|      0|      if (NCDR(x) == NULL) return ONIGERR_PARSER_BUG;
  ------------------
  |  |   87|      0|#define NCDR(node)         (NCONS(node)->cdr)
  |  |  ------------------
  |  |  |  |   83|      0|#define NCONS(node)        (&((node)->u.cons))
  |  |  ------------------
  ------------------
                    if (NCDR(x) == NULL) return ONIGERR_PARSER_BUG;
  ------------------
  |  |  634|      0|#define ONIGERR_PARSER_BUG                                    -11
  ------------------
  |  Branch (1280:11): [True: 0, False: 0]
  ------------------
 1281|      0|      x = NCDR(x);
  ------------------
  |  |   87|      0|#define NCDR(node)         (NCONS(node)->cdr)
  |  |  ------------------
  |  |  |  |   83|      0|#define NCONS(node)        (&((node)->u.cons))
  |  |  ------------------
  ------------------
 1282|      0|      tlen = compile_length_tree(NCAR(x), reg); /* no-node */
  ------------------
  |  |   86|      0|#define NCAR(node)         (NCONS(node)->car)
  |  |  ------------------
  |  |  |  |   83|      0|#define NCONS(node)        (&((node)->u.cons))
  |  |  ------------------
  ------------------
 1283|      0|      if (tlen < 0) return tlen;
  ------------------
  |  Branch (1283:11): [True: 0, False: 0]
  ------------------
 1284|      0|      len += tlen;
 1285|      0|      if (NCDR(x) != NULL) return ONIGERR_INVALID_CONDITION_PATTERN;
  ------------------
  |  |   87|      0|#define NCDR(node)         (NCONS(node)->cdr)
  |  |  ------------------
  |  |  |  |   83|      0|#define NCONS(node)        (&((node)->u.cons))
  |  |  ------------------
  ------------------
                    if (NCDR(x) != NULL) return ONIGERR_INVALID_CONDITION_PATTERN;
  ------------------
  |  |  667|      0|#define ONIGERR_INVALID_CONDITION_PATTERN                    -124
  ------------------
  |  Branch (1285:11): [True: 0, False: 0]
  ------------------
 1286|      0|    }
 1287|      0|    else {
 1288|      0|      return ONIGERR_PARSER_BUG;
  ------------------
  |  |  634|      0|#define ONIGERR_PARSER_BUG                                    -11
  ------------------
 1289|      0|    }
 1290|      0|    break;
 1291|       |
 1292|      0|  case ENCLOSE_ABSENT:
  ------------------
  |  |   98|      0|#define ENCLOSE_ABSENT           (1<<4)
  ------------------
  |  Branch (1292:3): [True: 0, False: 8.60k]
  ------------------
 1293|      0|    len = SIZE_OP_PUSH_ABSENT_POS + SIZE_OP_ABSENT + tlen + SIZE_OP_ABSENT_END;
  ------------------
  |  |  750|      0|#define SIZE_OP_PUSH_ABSENT_POS         SIZE_OPCODE
  |  |  ------------------
  |  |  |  |  688|      0|#define SIZE_OPCODE           1
  |  |  ------------------
  ------------------
                  len = SIZE_OP_PUSH_ABSENT_POS + SIZE_OP_ABSENT + tlen + SIZE_OP_ABSENT_END;
  ------------------
  |  |  751|      0|#define SIZE_OP_ABSENT                 (SIZE_OPCODE + SIZE_RELADDR)
  |  |  ------------------
  |  |  |  |  688|      0|#define SIZE_OPCODE           1
  |  |  ------------------
  |  |               #define SIZE_OP_ABSENT                 (SIZE_OPCODE + SIZE_RELADDR)
  |  |  ------------------
  |  |  |  |  689|      0|#define SIZE_RELADDR          (int )sizeof(RelAddrType)
  |  |  ------------------
  ------------------
                  len = SIZE_OP_PUSH_ABSENT_POS + SIZE_OP_ABSENT + tlen + SIZE_OP_ABSENT_END;
  ------------------
  |  |  752|      0|#define SIZE_OP_ABSENT_END              SIZE_OPCODE
  |  |  ------------------
  |  |  |  |  688|      0|#define SIZE_OPCODE           1
  |  |  ------------------
  ------------------
 1294|      0|    break;
 1295|       |
 1296|      0|  default:
  ------------------
  |  Branch (1296:3): [True: 0, False: 8.60k]
  ------------------
 1297|      0|    return ONIGERR_TYPE_BUG;
  ------------------
  |  |  633|      0|#define ONIGERR_TYPE_BUG                                       -6
  ------------------
 1298|      0|    break;
 1299|  8.60k|  }
 1300|       |
 1301|  8.60k|  return len;
 1302|  8.60k|}
regcomp.c:compile_length_anchor_node:
 1463|  5.74k|{
 1464|  5.74k|  int len;
 1465|  5.74k|  int tlen = 0;
 1466|       |
 1467|  5.74k|  if (node->target) {
  ------------------
  |  Branch (1467:7): [True: 0, False: 5.74k]
  ------------------
 1468|      0|    tlen = compile_length_tree(node->target, reg);
 1469|      0|    if (tlen < 0) return tlen;
  ------------------
  |  Branch (1469:9): [True: 0, False: 0]
  ------------------
 1470|      0|  }
 1471|       |
 1472|  5.74k|  switch (node->type) {
 1473|      0|  case ANCHOR_PREC_READ:
  ------------------
  |  |  551|      0|#define ANCHOR_PREC_READ        (1<<10)
  ------------------
  |  Branch (1473:3): [True: 0, False: 5.74k]
  ------------------
 1474|      0|    len = SIZE_OP_PUSH_POS + tlen + SIZE_OP_POP_POS;
  ------------------
  |  |  727|      0|#define SIZE_OP_PUSH_POS                SIZE_OPCODE
  |  |  ------------------
  |  |  |  |  688|      0|#define SIZE_OPCODE           1
  |  |  ------------------
  ------------------
                  len = SIZE_OP_PUSH_POS + tlen + SIZE_OP_POP_POS;
  ------------------
  |  |  729|      0|#define SIZE_OP_POP_POS                 SIZE_OPCODE
  |  |  ------------------
  |  |  |  |  688|      0|#define SIZE_OPCODE           1
  |  |  ------------------
  ------------------
 1475|      0|    break;
 1476|      0|  case ANCHOR_PREC_READ_NOT:
  ------------------
  |  |  552|      0|#define ANCHOR_PREC_READ_NOT    (1<<11)
  ------------------
  |  Branch (1476:3): [True: 0, False: 5.74k]
  ------------------
 1477|      0|    len = SIZE_OP_PUSH_POS_NOT + tlen + SIZE_OP_FAIL_POS;
  ------------------
  |  |  728|      0|#define SIZE_OP_PUSH_POS_NOT           (SIZE_OPCODE + SIZE_RELADDR)
  |  |  ------------------
  |  |  |  |  688|      0|#define SIZE_OPCODE           1
  |  |  ------------------
  |  |               #define SIZE_OP_PUSH_POS_NOT           (SIZE_OPCODE + SIZE_RELADDR)
  |  |  ------------------
  |  |  |  |  689|      0|#define SIZE_RELADDR          (int )sizeof(RelAddrType)
  |  |  ------------------
  ------------------
                  len = SIZE_OP_PUSH_POS_NOT + tlen + SIZE_OP_FAIL_POS;
  ------------------
  |  |  730|      0|#define SIZE_OP_FAIL_POS                SIZE_OPCODE
  |  |  ------------------
  |  |  |  |  688|      0|#define SIZE_OPCODE           1
  |  |  ------------------
  ------------------
 1478|      0|    break;
 1479|      0|  case ANCHOR_LOOK_BEHIND:
  ------------------
  |  |  553|      0|#define ANCHOR_LOOK_BEHIND      (1<<12)
  ------------------
  |  Branch (1479:3): [True: 0, False: 5.74k]
  ------------------
 1480|      0|    len = SIZE_OP_LOOK_BEHIND + tlen;
  ------------------
  |  |  744|      0|#define SIZE_OP_LOOK_BEHIND            (SIZE_OPCODE + SIZE_LENGTH)
  |  |  ------------------
  |  |  |  |  688|      0|#define SIZE_OPCODE           1
  |  |  ------------------
  |  |               #define SIZE_OP_LOOK_BEHIND            (SIZE_OPCODE + SIZE_LENGTH)
  |  |  ------------------
  |  |  |  |  691|      0|#define SIZE_LENGTH           (int )sizeof(LengthType)
  |  |  ------------------
  ------------------
 1481|      0|    break;
 1482|      0|  case ANCHOR_LOOK_BEHIND_NOT:
  ------------------
  |  |  554|      0|#define ANCHOR_LOOK_BEHIND_NOT  (1<<13)
  ------------------
  |  Branch (1482:3): [True: 0, False: 5.74k]
  ------------------
 1483|      0|    len = SIZE_OP_PUSH_LOOK_BEHIND_NOT + tlen + SIZE_OP_FAIL_LOOK_BEHIND_NOT;
  ------------------
  |  |  745|      0|#define SIZE_OP_PUSH_LOOK_BEHIND_NOT   (SIZE_OPCODE + SIZE_RELADDR + SIZE_LENGTH)
  |  |  ------------------
  |  |  |  |  688|      0|#define SIZE_OPCODE           1
  |  |  ------------------
  |  |               #define SIZE_OP_PUSH_LOOK_BEHIND_NOT   (SIZE_OPCODE + SIZE_RELADDR + SIZE_LENGTH)
  |  |  ------------------
  |  |  |  |  689|      0|#define SIZE_RELADDR          (int )sizeof(RelAddrType)
  |  |  ------------------
  |  |               #define SIZE_OP_PUSH_LOOK_BEHIND_NOT   (SIZE_OPCODE + SIZE_RELADDR + SIZE_LENGTH)
  |  |  ------------------
  |  |  |  |  691|      0|#define SIZE_LENGTH           (int )sizeof(LengthType)
  |  |  ------------------
  ------------------
                  len = SIZE_OP_PUSH_LOOK_BEHIND_NOT + tlen + SIZE_OP_FAIL_LOOK_BEHIND_NOT;
  ------------------
  |  |  746|      0|#define SIZE_OP_FAIL_LOOK_BEHIND_NOT    SIZE_OPCODE
  |  |  ------------------
  |  |  |  |  688|      0|#define SIZE_OPCODE           1
  |  |  ------------------
  ------------------
 1484|      0|    break;
 1485|       |
 1486|  5.74k|  default:
  ------------------
  |  Branch (1486:3): [True: 5.74k, False: 0]
  ------------------
 1487|  5.74k|    len = SIZE_OPCODE;
  ------------------
  |  |  688|  5.74k|#define SIZE_OPCODE           1
  ------------------
 1488|  5.74k|    break;
 1489|  5.74k|  }
 1490|       |
 1491|  5.74k|  return len;
 1492|  5.74k|}
regcomp.c:add_opcode_rel_addr:
  277|  94.1k|{
  278|  94.1k|  int r;
  279|       |
  280|  94.1k|  r = add_opcode(reg, opcode);
  281|  94.1k|  if (r) return r;
  ------------------
  |  Branch (281:7): [True: 0, False: 94.1k]
  ------------------
  282|  94.1k|  r = add_rel_addr(reg, addr);
  283|  94.1k|  return r;
  284|  94.1k|}
regcomp.c:add_rel_addr:
  223|  94.1k|{
  224|  94.1k|  RelAddrType ra = (RelAddrType )addr;
  225|       |
  226|  94.1k|  BBUF_ADD(reg, &ra, SIZE_RELADDR);
  ------------------
  |  |  504|  94.1k|#define BBUF_ADD(buf,bytes,n)       BBUF_WRITE((buf),(buf)->used,(bytes),(n))
  |  |  ------------------
  |  |  |  |  490|  94.1k|#define BBUF_WRITE(buf,pos,bytes,n) do{\
  |  |  |  |  491|  94.1k|  int used = (pos) + (int )(n);\
  |  |  |  |  492|  94.1k|  if ((buf)->alloc < (unsigned int )used) BBUF_EXPAND((buf),used);\
  |  |  |  |  ------------------
  |  |  |  |  |  |  470|  4.35k|#define BBUF_EXPAND(buf,low) do{\
  |  |  |  |  |  |  471|  4.35k|  UChar *tmp;\
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   76|  4.35k|# define UChar OnigUChar
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  472|  4.35k|  do { (buf)->alloc *= 2; } while ((buf)->alloc < (unsigned int )low);\
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (472:36): [True: 0, False: 4.35k]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  473|  4.35k|  tmp = (UChar* )xrealloc((buf)->p, (buf)->alloc);\
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  143|  4.35k|# define xrealloc    realloc
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  474|  4.35k|  if (IS_NULL(tmp)) return(ONIGERR_MEMORY);\
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  311|  4.35k|#define IS_NULL(p)                    (((void*)(p)) == (void*)0)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (311:39): [True: 0, False: 4.35k]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |                 if (IS_NULL(tmp)) return(ONIGERR_MEMORY);\
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  632|      0|#define ONIGERR_MEMORY                                         -5
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  475|  4.35k|  (buf)->p = tmp;\
  |  |  |  |  |  |  476|  4.35k|} while (0)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (476:10): [Folded - Ignored]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (492:7): [True: 4.35k, False: 89.8k]
  |  |  |  |  ------------------
  |  |  |  |  493|  94.1k|  xmemcpy((buf)->p + (pos), (bytes), (n));\
  |  |  |  |  ------------------
  |  |  |  |  |  |  215|  94.1k|#define xmemcpy     memcpy
  |  |  |  |  ------------------
  |  |  |  |  494|  94.1k|  if ((buf)->used < (unsigned int )used) (buf)->used = used;\
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (494:7): [True: 94.1k, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  495|  94.1k|} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (495:10): [Folded - Ignored]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  227|  94.1k|  return 0;
  228|  94.1k|}
regcomp.c:add_compile_string:
  444|  61.0k|{
  445|  61.0k|  int op = select_str_opcode(mb_len, byte_len, ignore_case);
  446|  61.0k|  add_opcode(reg, op);
  447|       |
  448|  61.0k|  if (op == OP_EXACTMBN)
  ------------------
  |  Branch (448:7): [True: 0, False: 61.0k]
  ------------------
  449|      0|    add_length(reg, mb_len);
  450|       |
  451|  61.0k|  if (IS_NEED_STR_LEN_OP_EXACT(op)) {
  ------------------
  |  |  316|  61.0k|   ((op) == OP_EXACTN    || (op) == OP_EXACTMB2N ||\
  |  |  ------------------
  |  |  |  Branch (316:5): [True: 26.2k, False: 34.7k]
  |  |  |  Branch (316:29): [True: 0, False: 34.7k]
  |  |  ------------------
  |  |  317|  61.0k|    (op) == OP_EXACTMB3N || (op) == OP_EXACTMBN  || (op) == OP_EXACTN_IC)
  |  |  ------------------
  |  |  |  Branch (317:5): [True: 0, False: 34.7k]
  |  |  |  Branch (317:29): [True: 0, False: 34.7k]
  |  |  |  Branch (317:53): [True: 0, False: 34.7k]
  |  |  ------------------
  ------------------
  452|  26.2k|    if (op == OP_EXACTN_IC)
  ------------------
  |  Branch (452:9): [True: 0, False: 26.2k]
  ------------------
  453|      0|      add_length(reg, byte_len);
  454|  26.2k|    else
  455|  26.2k|      add_length(reg, byte_len / mb_len);
  456|  26.2k|  }
  457|       |
  458|  61.0k|  add_bytes(reg, s, byte_len);
  459|  61.0k|  return 0;
  460|  61.0k|}
regcomp.c:add_bytes:
  288|  63.8k|{
  289|  63.8k|  BBUF_ADD(reg, bytes, len);
  ------------------
  |  |  504|  63.8k|#define BBUF_ADD(buf,bytes,n)       BBUF_WRITE((buf),(buf)->used,(bytes),(n))
  |  |  ------------------
  |  |  |  |  490|  63.8k|#define BBUF_WRITE(buf,pos,bytes,n) do{\
  |  |  |  |  491|  63.8k|  int used = (pos) + (int )(n);\
  |  |  |  |  492|  63.8k|  if ((buf)->alloc < (unsigned int )used) BBUF_EXPAND((buf),used);\
  |  |  |  |  ------------------
  |  |  |  |  |  |  470|  2.92k|#define BBUF_EXPAND(buf,low) do{\
  |  |  |  |  |  |  471|  2.92k|  UChar *tmp;\
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   76|  2.92k|# define UChar OnigUChar
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  472|  2.92k|  do { (buf)->alloc *= 2; } while ((buf)->alloc < (unsigned int )low);\
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (472:36): [True: 0, False: 2.92k]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  473|  2.92k|  tmp = (UChar* )xrealloc((buf)->p, (buf)->alloc);\
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  143|  2.92k|# define xrealloc    realloc
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  474|  2.92k|  if (IS_NULL(tmp)) return(ONIGERR_MEMORY);\
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  311|  2.92k|#define IS_NULL(p)                    (((void*)(p)) == (void*)0)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (311:39): [True: 0, False: 2.92k]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |                 if (IS_NULL(tmp)) return(ONIGERR_MEMORY);\
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  632|      0|#define ONIGERR_MEMORY                                         -5
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  475|  2.92k|  (buf)->p = tmp;\
  |  |  |  |  |  |  476|  2.92k|} while (0)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (476:10): [Folded - Ignored]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (492:7): [True: 2.92k, False: 60.9k]
  |  |  |  |  ------------------
  |  |  |  |  493|  63.8k|  xmemcpy((buf)->p + (pos), (bytes), (n));\
  |  |  |  |  ------------------
  |  |  |  |  |  |  215|  63.8k|#define xmemcpy     memcpy
  |  |  |  |  ------------------
  |  |  |  |  494|  63.8k|  if ((buf)->used < (unsigned int )used) (buf)->used = used;\
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (494:7): [True: 63.8k, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  495|  63.8k|} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (495:10): [Folded - Ignored]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  290|  63.8k|  return 0;
  291|  63.8k|}
regcomp.c:compile_string_node:
  513|  62.4k|{
  514|  62.4k|  int r, len, prev_len, blen, ambig;
  515|  62.4k|  OnigEncoding enc = reg->enc;
  516|  62.4k|  UChar *p, *prev, *end;
  ------------------
  |  |   76|  62.4k|# define UChar OnigUChar
  ------------------
  517|  62.4k|  StrNode* sn;
  518|       |
  519|  62.4k|  sn = NSTR(node);
  ------------------
  |  |   76|  62.4k|#define NSTR(node)         (&((node)->u.str))
  ------------------
  520|  62.4k|  if (sn->end <= sn->s)
  ------------------
  |  Branch (520:7): [True: 1.45k, False: 61.0k]
  ------------------
  521|  1.45k|    return 0;
  522|       |
  523|  61.0k|  end = sn->end;
  524|  61.0k|  ambig = NSTRING_IS_AMBIG(node);
  ------------------
  |  |  115|  61.0k|#define NSTRING_IS_AMBIG(node)        (((node)->u.str.flag & NSTR_AMBIG) != 0)
  |  |  ------------------
  |  |  |  |  105|  61.0k|#define NSTR_AMBIG              (1<<1)
  |  |  ------------------
  ------------------
  525|       |
  526|  61.0k|  p = prev = sn->s;
  527|  61.0k|  prev_len = enclen(enc, p, end);
  ------------------
  |  |   93|  61.0k|#define enclen(enc,p,e) ((enc->max_enc_len == enc->min_enc_len) ? enc->min_enc_len : ONIGENC_MBC_ENC_LEN(enc,p,e))
  |  |  ------------------
  |  |  |  |  364|  61.0k|#define ONIGENC_MBC_ENC_LEN(enc,p,e)          onigenc_mbclen(p,e,enc)
  |  |  ------------------
  |  |  |  Branch (93:26): [True: 0, False: 61.0k]
  |  |  ------------------
  ------------------
  528|  61.0k|  p += prev_len;
  529|  61.0k|  blen = prev_len;
  530|       |
  531|   535k|  for (; p < end; ) {
  ------------------
  |  Branch (531:10): [True: 474k, False: 61.0k]
  ------------------
  532|   474k|    len = enclen(enc, p, end);
  ------------------
  |  |   93|   474k|#define enclen(enc,p,e) ((enc->max_enc_len == enc->min_enc_len) ? enc->min_enc_len : ONIGENC_MBC_ENC_LEN(enc,p,e))
  |  |  ------------------
  |  |  |  |  364|   474k|#define ONIGENC_MBC_ENC_LEN(enc,p,e)          onigenc_mbclen(p,e,enc)
  |  |  ------------------
  |  |  |  Branch (93:26): [True: 0, False: 474k]
  |  |  ------------------
  ------------------
  533|   474k|    if (len == prev_len || ambig) {
  ------------------
  |  Branch (533:9): [True: 474k, False: 0]
  |  Branch (533:28): [True: 0, False: 0]
  ------------------
  534|   474k|      blen += len;
  535|   474k|    }
  536|      0|    else {
  537|      0|      r = add_compile_string(prev, prev_len, blen, reg, ambig);
  538|      0|      if (p + len > end) {
  ------------------
  |  Branch (538:11): [True: 0, False: 0]
  ------------------
  539|      0|        return 0;
  540|      0|      }
  541|      0|      if (r) return r;
  ------------------
  |  Branch (541:11): [True: 0, False: 0]
  ------------------
  542|       |
  543|      0|      prev  = p;
  544|      0|      blen  = len;
  545|      0|      prev_len = len;
  546|      0|    }
  547|       |
  548|   474k|    p += len;
  549|   474k|  }
  550|  61.0k|  return add_compile_string(prev, prev_len, blen, reg, ambig);
  551|  61.0k|}
regcomp.c:compile_cclass_node:
  612|  57.6k|{
  613|  57.6k|  int r;
  614|       |
  615|  57.6k|  if (IS_NULL(cc->mbuf)) {
  ------------------
  |  |  311|  57.6k|#define IS_NULL(p)                    (((void*)(p)) == (void*)0)
  |  |  ------------------
  |  |  |  Branch (311:39): [True: 57.6k, False: 0]
  |  |  ------------------
  ------------------
  616|  57.6k|    if (IS_NCCLASS_NOT(cc))
  ------------------
  |  |  809|  57.6k|#define IS_NCCLASS_NOT(nd)      IS_NCCLASS_FLAG_ON(nd, FLAG_NCCLASS_NOT)
  |  |  ------------------
  |  |  |  |  802|  57.6k|#define IS_NCCLASS_FLAG_ON(cc,flag) ((NCCLASS_FLAGS(cc) & (flag)) != 0)
  |  |  |  |  ------------------
  |  |  |  |  |  |  799|  57.6k|#define NCCLASS_FLAGS(cc)           ((cc)->flags)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (802:37): [True: 15.7k, False: 41.8k]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  617|  15.7k|      add_opcode(reg, OP_CCLASS_NOT);
  618|  41.8k|    else
  619|  41.8k|      add_opcode(reg, OP_CCLASS);
  620|       |
  621|  57.6k|    r = add_bitset(reg, cc->bs);
  622|  57.6k|  }
  623|      0|  else {
  624|      0|    if (ONIGENC_MBC_MINLEN(reg->enc) > 1 || bitset_is_empty(cc->bs)) {
  ------------------
  |  |  367|      0|#define ONIGENC_MBC_MINLEN(enc)               ((enc)->min_enc_len)
  ------------------
  |  Branch (624:9): [True: 0, False: 0]
  |  Branch (624:45): [True: 0, False: 0]
  ------------------
  625|      0|      if (IS_NCCLASS_NOT(cc))
  ------------------
  |  |  809|      0|#define IS_NCCLASS_NOT(nd)      IS_NCCLASS_FLAG_ON(nd, FLAG_NCCLASS_NOT)
  |  |  ------------------
  |  |  |  |  802|      0|#define IS_NCCLASS_FLAG_ON(cc,flag) ((NCCLASS_FLAGS(cc) & (flag)) != 0)
  |  |  |  |  ------------------
  |  |  |  |  |  |  799|      0|#define NCCLASS_FLAGS(cc)           ((cc)->flags)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (802:37): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  626|      0|	add_opcode(reg, OP_CCLASS_MB_NOT);
  627|      0|      else
  628|      0|	add_opcode(reg, OP_CCLASS_MB);
  629|       |
  630|      0|      r = add_multi_byte_cclass(cc->mbuf, reg);
  631|      0|    }
  632|      0|    else {
  633|      0|      if (IS_NCCLASS_NOT(cc))
  ------------------
  |  |  809|      0|#define IS_NCCLASS_NOT(nd)      IS_NCCLASS_FLAG_ON(nd, FLAG_NCCLASS_NOT)
  |  |  ------------------
  |  |  |  |  802|      0|#define IS_NCCLASS_FLAG_ON(cc,flag) ((NCCLASS_FLAGS(cc) & (flag)) != 0)
  |  |  |  |  ------------------
  |  |  |  |  |  |  799|      0|#define NCCLASS_FLAGS(cc)           ((cc)->flags)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (802:37): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  634|      0|	add_opcode(reg, OP_CCLASS_MIX_NOT);
  635|      0|      else
  636|      0|	add_opcode(reg, OP_CCLASS_MIX);
  637|       |
  638|      0|      r = add_bitset(reg, cc->bs);
  639|      0|      if (r) return r;
  ------------------
  |  Branch (639:11): [True: 0, False: 0]
  ------------------
  640|      0|      r = add_multi_byte_cclass(cc->mbuf, reg);
  641|      0|    }
  642|      0|  }
  643|       |
  644|  57.6k|  return r;
  645|  57.6k|}
regcomp.c:add_bitset:
  295|  57.6k|{
  296|  57.6k|  BBUF_ADD(reg, bs, SIZE_BITSET);
  ------------------
  |  |  504|  57.6k|#define BBUF_ADD(buf,bytes,n)       BBUF_WRITE((buf),(buf)->used,(bytes),(n))
  |  |  ------------------
  |  |  |  |  490|  57.6k|#define BBUF_WRITE(buf,pos,bytes,n) do{\
  |  |  |  |  491|  57.6k|  int used = (pos) + (int )(n);\
  |  |  |  |  492|  57.6k|  if ((buf)->alloc < (unsigned int )used) BBUF_EXPAND((buf),used);\
  |  |  |  |  ------------------
  |  |  |  |  |  |  470|  23.0k|#define BBUF_EXPAND(buf,low) do{\
  |  |  |  |  |  |  471|  23.0k|  UChar *tmp;\
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   76|  23.0k|# define UChar OnigUChar
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  472|  28.7k|  do { (buf)->alloc *= 2; } while ((buf)->alloc < (unsigned int )low);\
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (472:36): [True: 5.76k, False: 23.0k]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  473|  23.0k|  tmp = (UChar* )xrealloc((buf)->p, (buf)->alloc);\
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  143|  23.0k|# define xrealloc    realloc
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  474|  23.0k|  if (IS_NULL(tmp)) return(ONIGERR_MEMORY);\
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  311|  23.0k|#define IS_NULL(p)                    (((void*)(p)) == (void*)0)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (311:39): [True: 0, False: 23.0k]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |                 if (IS_NULL(tmp)) return(ONIGERR_MEMORY);\
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  632|      0|#define ONIGERR_MEMORY                                         -5
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  475|  23.0k|  (buf)->p = tmp;\
  |  |  |  |  |  |  476|  23.0k|} while (0)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (476:10): [Folded - Ignored]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (492:7): [True: 23.0k, False: 34.6k]
  |  |  |  |  ------------------
  |  |  |  |  493|  57.6k|  xmemcpy((buf)->p + (pos), (bytes), (n));\
  |  |  |  |  ------------------
  |  |  |  |  |  |  215|  57.6k|#define xmemcpy     memcpy
  |  |  |  |  ------------------
  |  |  |  |  494|  57.6k|  if ((buf)->used < (unsigned int )used) (buf)->used = used;\
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (494:7): [True: 57.6k, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  495|  57.6k|} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (495:10): [Folded - Ignored]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  297|  57.6k|  return 0;
  298|  57.6k|}
regcomp.c:add_length:
  241|  26.2k|{
  242|  26.2k|  LengthType l = (LengthType )len;
  243|       |
  244|  26.2k|  BBUF_ADD(reg, &l, SIZE_LENGTH);
  ------------------
  |  |  504|  26.2k|#define BBUF_ADD(buf,bytes,n)       BBUF_WRITE((buf),(buf)->used,(bytes),(n))
  |  |  ------------------
  |  |  |  |  490|  26.2k|#define BBUF_WRITE(buf,pos,bytes,n) do{\
  |  |  |  |  491|  26.2k|  int used = (pos) + (int )(n);\
  |  |  |  |  492|  26.2k|  if ((buf)->alloc < (unsigned int )used) BBUF_EXPAND((buf),used);\
  |  |  |  |  ------------------
  |  |  |  |  |  |  470|      0|#define BBUF_EXPAND(buf,low) do{\
  |  |  |  |  |  |  471|      0|  UChar *tmp;\
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   76|      0|# define UChar OnigUChar
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  472|      0|  do { (buf)->alloc *= 2; } while ((buf)->alloc < (unsigned int )low);\
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (472:36): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  473|      0|  tmp = (UChar* )xrealloc((buf)->p, (buf)->alloc);\
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  143|      0|# define xrealloc    realloc
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  474|      0|  if (IS_NULL(tmp)) return(ONIGERR_MEMORY);\
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  311|      0|#define IS_NULL(p)                    (((void*)(p)) == (void*)0)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (311:39): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |                 if (IS_NULL(tmp)) return(ONIGERR_MEMORY);\
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  632|      0|#define ONIGERR_MEMORY                                         -5
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  475|      0|  (buf)->p = tmp;\
  |  |  |  |  |  |  476|      0|} while (0)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (476:10): [Folded - Ignored]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (492:7): [True: 0, False: 26.2k]
  |  |  |  |  ------------------
  |  |  |  |  493|  26.2k|  xmemcpy((buf)->p + (pos), (bytes), (n));\
  |  |  |  |  ------------------
  |  |  |  |  |  |  215|  26.2k|#define xmemcpy     memcpy
  |  |  |  |  ------------------
  |  |  |  |  494|  26.2k|  if ((buf)->used < (unsigned int )used) (buf)->used = used;\
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (494:7): [True: 26.2k, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  495|  26.2k|} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (495:10): [Folded - Ignored]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  245|  26.2k|  return 0;
  246|  26.2k|}
regcomp.c:add_mem_num:
  250|  14.7k|{
  251|  14.7k|  MemNumType n = (MemNumType )num;
  252|       |
  253|  14.7k|  BBUF_ADD(reg, &n, SIZE_MEMNUM);
  ------------------
  |  |  504|  14.7k|#define BBUF_ADD(buf,bytes,n)       BBUF_WRITE((buf),(buf)->used,(bytes),(n))
  |  |  ------------------
  |  |  |  |  490|  14.7k|#define BBUF_WRITE(buf,pos,bytes,n) do{\
  |  |  |  |  491|  14.7k|  int used = (pos) + (int )(n);\
  |  |  |  |  492|  14.7k|  if ((buf)->alloc < (unsigned int )used) BBUF_EXPAND((buf),used);\
  |  |  |  |  ------------------
  |  |  |  |  |  |  470|      0|#define BBUF_EXPAND(buf,low) do{\
  |  |  |  |  |  |  471|      0|  UChar *tmp;\
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   76|      0|# define UChar OnigUChar
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  472|      0|  do { (buf)->alloc *= 2; } while ((buf)->alloc < (unsigned int )low);\
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (472:36): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  473|      0|  tmp = (UChar* )xrealloc((buf)->p, (buf)->alloc);\
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  143|      0|# define xrealloc    realloc
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  474|      0|  if (IS_NULL(tmp)) return(ONIGERR_MEMORY);\
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  311|      0|#define IS_NULL(p)                    (((void*)(p)) == (void*)0)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (311:39): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |                 if (IS_NULL(tmp)) return(ONIGERR_MEMORY);\
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  632|      0|#define ONIGERR_MEMORY                                         -5
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  475|      0|  (buf)->p = tmp;\
  |  |  |  |  |  |  476|      0|} while (0)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (476:10): [Folded - Ignored]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (492:7): [True: 0, False: 14.7k]
  |  |  |  |  ------------------
  |  |  |  |  493|  14.7k|  xmemcpy((buf)->p + (pos), (bytes), (n));\
  |  |  |  |  ------------------
  |  |  |  |  |  |  215|  14.7k|#define xmemcpy     memcpy
  |  |  |  |  ------------------
  |  |  |  |  494|  14.7k|  if ((buf)->used < (unsigned int )used) (buf)->used = used;\
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (494:7): [True: 14.7k, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  495|  14.7k|} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (495:10): [Folded - Ignored]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  254|  14.7k|  return 0;
  255|  14.7k|}
regcomp.c:compile_quantifier_node:
 1033|  24.6k|{
 1034|  24.6k|  int i, r, mod_tlen;
 1035|  24.6k|  int infinite = IS_REPEAT_INFINITE(qn->upper);
  ------------------
  |  |  422|  24.6k|#define IS_REPEAT_INFINITE(n)   ((n) == REPEAT_INFINITE)
  |  |  ------------------
  |  |  |  |  421|  24.6k|#define REPEAT_INFINITE         -1
  |  |  ------------------
  ------------------
 1036|  24.6k|  int empty_info = qn->target_empty_info;
 1037|  24.6k|  int tlen = compile_length_tree(qn->target, reg);
 1038|       |
 1039|  24.6k|  if (tlen < 0) return tlen;
  ------------------
  |  Branch (1039:7): [True: 0, False: 24.6k]
  ------------------
 1040|       |
 1041|  24.6k|  if (is_anychar_star_quantifier(qn)) {
  ------------------
  |  Branch (1041:7): [True: 7.20k, False: 17.4k]
  ------------------
 1042|  7.20k|    r = compile_tree_n_times(qn->target, qn->lower, reg);
 1043|  7.20k|    if (r) return r;
  ------------------
  |  Branch (1043:9): [True: 0, False: 7.20k]
  ------------------
 1044|  7.20k|    if (IS_NOT_NULL(qn->next_head_exact)) {
  ------------------
  |  |  312|  7.20k|#define IS_NOT_NULL(p)                (((void*)(p)) != (void*)0)
  |  |  ------------------
  |  |  |  Branch (312:39): [True: 2.86k, False: 4.34k]
  |  |  ------------------
  ------------------
 1045|  2.86k|      if (IS_MULTILINE(reg->options))
  ------------------
  |  |  395|  2.86k|#define IS_MULTILINE(option)      ((option) & ONIG_OPTION_MULTILINE)
  |  |  ------------------
  |  |  |  |  456|  2.86k|#define ONIG_OPTION_MULTILINE            (ONIG_OPTION_EXTEND             << 1)
  |  |  |  |  ------------------
  |  |  |  |  |  |  455|  2.86k|#define ONIG_OPTION_EXTEND               (ONIG_OPTION_IGNORECASE         << 1)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  454|  2.86k|#define ONIG_OPTION_IGNORECASE           1U
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  |  Branch (395:35): [True: 0, False: 2.86k]
  |  |  ------------------
  ------------------
 1046|      0|	r = add_opcode(reg, OP_ANYCHAR_ML_STAR_PEEK_NEXT);
 1047|  2.86k|      else
 1048|  2.86k|	r = add_opcode(reg, OP_ANYCHAR_STAR_PEEK_NEXT);
 1049|  2.86k|      if (r) return r;
  ------------------
  |  Branch (1049:11): [True: 0, False: 2.86k]
  ------------------
 1050|  2.86k|      return add_bytes(reg, NSTR(qn->next_head_exact)->s, 1);
  ------------------
  |  |   76|  2.86k|#define NSTR(node)         (&((node)->u.str))
  ------------------
 1051|  2.86k|    }
 1052|  4.34k|    else {
 1053|  4.34k|      if (IS_MULTILINE(reg->options))
  ------------------
  |  |  395|  4.34k|#define IS_MULTILINE(option)      ((option) & ONIG_OPTION_MULTILINE)
  |  |  ------------------
  |  |  |  |  456|  4.34k|#define ONIG_OPTION_MULTILINE            (ONIG_OPTION_EXTEND             << 1)
  |  |  |  |  ------------------
  |  |  |  |  |  |  455|  4.34k|#define ONIG_OPTION_EXTEND               (ONIG_OPTION_IGNORECASE         << 1)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  454|  4.34k|#define ONIG_OPTION_IGNORECASE           1U
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  |  Branch (395:35): [True: 0, False: 4.34k]
  |  |  ------------------
  ------------------
 1054|      0|	return add_opcode(reg, OP_ANYCHAR_ML_STAR);
 1055|  4.34k|      else
 1056|  4.34k|	return add_opcode(reg, OP_ANYCHAR_STAR);
 1057|  4.34k|    }
 1058|  7.20k|  }
 1059|       |
 1060|  17.4k|  if (empty_info != 0)
  ------------------
  |  Branch (1060:7): [True: 0, False: 17.4k]
  ------------------
 1061|      0|    mod_tlen = tlen + (SIZE_OP_NULL_CHECK_START + SIZE_OP_NULL_CHECK_END);
  ------------------
  |  |  742|      0|#define SIZE_OP_NULL_CHECK_START       (SIZE_OPCODE + SIZE_MEMNUM)
  |  |  ------------------
  |  |  |  |  688|      0|#define SIZE_OPCODE           1
  |  |  ------------------
  |  |               #define SIZE_OP_NULL_CHECK_START       (SIZE_OPCODE + SIZE_MEMNUM)
  |  |  ------------------
  |  |  |  |  692|      0|#define SIZE_MEMNUM           (int )sizeof(MemNumType)
  |  |  ------------------
  ------------------
                  mod_tlen = tlen + (SIZE_OP_NULL_CHECK_START + SIZE_OP_NULL_CHECK_END);
  ------------------
  |  |  743|      0|#define SIZE_OP_NULL_CHECK_END         (SIZE_OPCODE + SIZE_MEMNUM)
  |  |  ------------------
  |  |  |  |  688|      0|#define SIZE_OPCODE           1
  |  |  ------------------
  |  |               #define SIZE_OP_NULL_CHECK_END         (SIZE_OPCODE + SIZE_MEMNUM)
  |  |  ------------------
  |  |  |  |  692|      0|#define SIZE_MEMNUM           (int )sizeof(MemNumType)
  |  |  ------------------
  ------------------
 1062|  17.4k|  else
 1063|  17.4k|    mod_tlen = tlen;
 1064|       |
 1065|  17.4k|  if (infinite &&
  ------------------
  |  Branch (1065:7): [True: 15.9k, False: 1.46k]
  ------------------
 1066|  17.4k|      (qn->lower <= 1 || tlen * qn->lower <= QUANTIFIER_EXPAND_LIMIT_SIZE)) {
  ------------------
  |  |  724|      0|#define QUANTIFIER_EXPAND_LIMIT_SIZE   50
  ------------------
  |  Branch (1066:8): [True: 15.9k, False: 0]
  |  Branch (1066:26): [True: 0, False: 0]
  ------------------
 1067|  15.9k|    if (qn->lower == 1 && tlen > QUANTIFIER_EXPAND_LIMIT_SIZE) {
  ------------------
  |  |  724|  7.23k|#define QUANTIFIER_EXPAND_LIMIT_SIZE   50
  ------------------
  |  Branch (1067:9): [True: 7.23k, False: 8.70k]
  |  Branch (1067:27): [True: 0, False: 7.23k]
  ------------------
 1068|      0|      if (qn->greedy) {
  ------------------
  |  Branch (1068:11): [True: 0, False: 0]
  ------------------
 1069|       |#ifdef USE_OP_PUSH_OR_JUMP_EXACT
 1070|       |	if (IS_NOT_NULL(qn->head_exact))
 1071|       |	  r = add_opcode_rel_addr(reg, OP_JUMP, SIZE_OP_PUSH_OR_JUMP_EXACT1);
 1072|       |	else
 1073|       |#endif
 1074|      0|	if (IS_NOT_NULL(qn->next_head_exact))
  ------------------
  |  |  312|      0|#define IS_NOT_NULL(p)                (((void*)(p)) != (void*)0)
  |  |  ------------------
  |  |  |  Branch (312:39): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 1075|      0|	  r = add_opcode_rel_addr(reg, OP_JUMP, SIZE_OP_PUSH_IF_PEEK_NEXT);
  ------------------
  |  |  724|      0|#define SIZE_OP_PUSH_IF_PEEK_NEXT      (SIZE_OPCODE + SIZE_RELADDR + 1)
  |  |  ------------------
  |  |  |  |  688|      0|#define SIZE_OPCODE           1
  |  |  ------------------
  |  |               #define SIZE_OP_PUSH_IF_PEEK_NEXT      (SIZE_OPCODE + SIZE_RELADDR + 1)
  |  |  ------------------
  |  |  |  |  689|      0|#define SIZE_RELADDR          (int )sizeof(RelAddrType)
  |  |  ------------------
  ------------------
 1076|      0|	else
 1077|      0|	  r = add_opcode_rel_addr(reg, OP_JUMP, SIZE_OP_PUSH);
  ------------------
  |  |  721|      0|#define SIZE_OP_PUSH                   (SIZE_OPCODE + SIZE_RELADDR)
  |  |  ------------------
  |  |  |  |  688|      0|#define SIZE_OPCODE           1
  |  |  ------------------
  |  |               #define SIZE_OP_PUSH                   (SIZE_OPCODE + SIZE_RELADDR)
  |  |  ------------------
  |  |  |  |  689|      0|#define SIZE_RELADDR          (int )sizeof(RelAddrType)
  |  |  ------------------
  ------------------
 1078|      0|      }
 1079|      0|      else {
 1080|      0|	r = add_opcode_rel_addr(reg, OP_JUMP, SIZE_OP_JUMP);
  ------------------
  |  |  720|      0|#define SIZE_OP_JUMP                   (SIZE_OPCODE + SIZE_RELADDR)
  |  |  ------------------
  |  |  |  |  688|      0|#define SIZE_OPCODE           1
  |  |  ------------------
  |  |               #define SIZE_OP_JUMP                   (SIZE_OPCODE + SIZE_RELADDR)
  |  |  ------------------
  |  |  |  |  689|      0|#define SIZE_RELADDR          (int )sizeof(RelAddrType)
  |  |  ------------------
  ------------------
 1081|      0|      }
 1082|      0|      if (r) return r;
  ------------------
  |  Branch (1082:11): [True: 0, False: 0]
  ------------------
 1083|      0|    }
 1084|  15.9k|    else {
 1085|  15.9k|      r = compile_tree_n_times(qn->target, qn->lower, reg);
 1086|  15.9k|      if (r) return r;
  ------------------
  |  Branch (1086:11): [True: 0, False: 15.9k]
  ------------------
 1087|  15.9k|    }
 1088|       |
 1089|  15.9k|    if (qn->greedy) {
  ------------------
  |  Branch (1089:9): [True: 14.4k, False: 1.47k]
  ------------------
 1090|       |#ifdef USE_OP_PUSH_OR_JUMP_EXACT
 1091|       |      if (IS_NOT_NULL(qn->head_exact)) {
 1092|       |	r = add_opcode_rel_addr(reg, OP_PUSH_OR_JUMP_EXACT1,
 1093|       |			     mod_tlen + SIZE_OP_JUMP);
 1094|       |	if (r) return r;
 1095|       |	add_bytes(reg, NSTR(qn->head_exact)->s, 1);
 1096|       |	r = compile_tree_empty_check(qn->target, reg, empty_info);
 1097|       |	if (r) return r;
 1098|       |	r = add_opcode_rel_addr(reg, OP_JUMP,
 1099|       |	-(mod_tlen + (int )SIZE_OP_JUMP + (int )SIZE_OP_PUSH_OR_JUMP_EXACT1));
 1100|       |      }
 1101|       |      else
 1102|       |#endif
 1103|  14.4k|      if (IS_NOT_NULL(qn->next_head_exact)) {
  ------------------
  |  |  312|  14.4k|#define IS_NOT_NULL(p)                (((void*)(p)) != (void*)0)
  |  |  ------------------
  |  |  |  Branch (312:39): [True: 0, False: 14.4k]
  |  |  ------------------
  ------------------
 1104|      0|	r = add_opcode_rel_addr(reg, OP_PUSH_IF_PEEK_NEXT,
 1105|      0|				mod_tlen + SIZE_OP_JUMP);
  ------------------
  |  |  720|      0|#define SIZE_OP_JUMP                   (SIZE_OPCODE + SIZE_RELADDR)
  |  |  ------------------
  |  |  |  |  688|      0|#define SIZE_OPCODE           1
  |  |  ------------------
  |  |               #define SIZE_OP_JUMP                   (SIZE_OPCODE + SIZE_RELADDR)
  |  |  ------------------
  |  |  |  |  689|      0|#define SIZE_RELADDR          (int )sizeof(RelAddrType)
  |  |  ------------------
  ------------------
 1106|      0|	if (r) return r;
  ------------------
  |  Branch (1106:6): [True: 0, False: 0]
  ------------------
 1107|      0|	add_bytes(reg, NSTR(qn->next_head_exact)->s, 1);
  ------------------
  |  |   76|      0|#define NSTR(node)         (&((node)->u.str))
  ------------------
 1108|      0|	r = compile_tree_empty_check(qn->target, reg, empty_info);
 1109|      0|	if (r) return r;
  ------------------
  |  Branch (1109:6): [True: 0, False: 0]
  ------------------
 1110|      0|	r = add_opcode_rel_addr(reg, OP_JUMP,
 1111|      0|          -(mod_tlen + (int )SIZE_OP_JUMP + (int )SIZE_OP_PUSH_IF_PEEK_NEXT));
  ------------------
  |  |  720|      0|#define SIZE_OP_JUMP                   (SIZE_OPCODE + SIZE_RELADDR)
  |  |  ------------------
  |  |  |  |  688|      0|#define SIZE_OPCODE           1
  |  |  ------------------
  |  |               #define SIZE_OP_JUMP                   (SIZE_OPCODE + SIZE_RELADDR)
  |  |  ------------------
  |  |  |  |  689|      0|#define SIZE_RELADDR          (int )sizeof(RelAddrType)
  |  |  ------------------
  ------------------
                        -(mod_tlen + (int )SIZE_OP_JUMP + (int )SIZE_OP_PUSH_IF_PEEK_NEXT));
  ------------------
  |  |  724|      0|#define SIZE_OP_PUSH_IF_PEEK_NEXT      (SIZE_OPCODE + SIZE_RELADDR + 1)
  |  |  ------------------
  |  |  |  |  688|      0|#define SIZE_OPCODE           1
  |  |  ------------------
  |  |               #define SIZE_OP_PUSH_IF_PEEK_NEXT      (SIZE_OPCODE + SIZE_RELADDR + 1)
  |  |  ------------------
  |  |  |  |  689|      0|#define SIZE_RELADDR          (int )sizeof(RelAddrType)
  |  |  ------------------
  ------------------
 1112|      0|      }
 1113|  14.4k|      else {
 1114|  14.4k|	r = add_opcode_rel_addr(reg, OP_PUSH, mod_tlen + SIZE_OP_JUMP);
  ------------------
  |  |  720|  14.4k|#define SIZE_OP_JUMP                   (SIZE_OPCODE + SIZE_RELADDR)
  |  |  ------------------
  |  |  |  |  688|  14.4k|#define SIZE_OPCODE           1
  |  |  ------------------
  |  |               #define SIZE_OP_JUMP                   (SIZE_OPCODE + SIZE_RELADDR)
  |  |  ------------------
  |  |  |  |  689|  14.4k|#define SIZE_RELADDR          (int )sizeof(RelAddrType)
  |  |  ------------------
  ------------------
 1115|  14.4k|	if (r) return r;
  ------------------
  |  Branch (1115:6): [True: 0, False: 14.4k]
  ------------------
 1116|  14.4k|	r = compile_tree_empty_check(qn->target, reg, empty_info);
 1117|  14.4k|	if (r) return r;
  ------------------
  |  Branch (1117:6): [True: 0, False: 14.4k]
  ------------------
 1118|  14.4k|	r = add_opcode_rel_addr(reg, OP_JUMP,
 1119|  14.4k|		     -(mod_tlen + (int )SIZE_OP_JUMP + (int )SIZE_OP_PUSH));
  ------------------
  |  |  720|  14.4k|#define SIZE_OP_JUMP                   (SIZE_OPCODE + SIZE_RELADDR)
  |  |  ------------------
  |  |  |  |  688|  14.4k|#define SIZE_OPCODE           1
  |  |  ------------------
  |  |               #define SIZE_OP_JUMP                   (SIZE_OPCODE + SIZE_RELADDR)
  |  |  ------------------
  |  |  |  |  689|  14.4k|#define SIZE_RELADDR          (int )sizeof(RelAddrType)
  |  |  ------------------
  ------------------
              		     -(mod_tlen + (int )SIZE_OP_JUMP + (int )SIZE_OP_PUSH));
  ------------------
  |  |  721|  14.4k|#define SIZE_OP_PUSH                   (SIZE_OPCODE + SIZE_RELADDR)
  |  |  ------------------
  |  |  |  |  688|  14.4k|#define SIZE_OPCODE           1
  |  |  ------------------
  |  |               #define SIZE_OP_PUSH                   (SIZE_OPCODE + SIZE_RELADDR)
  |  |  ------------------
  |  |  |  |  689|  14.4k|#define SIZE_RELADDR          (int )sizeof(RelAddrType)
  |  |  ------------------
  ------------------
 1120|  14.4k|      }
 1121|  14.4k|    }
 1122|  1.47k|    else {
 1123|  1.47k|      r = add_opcode_rel_addr(reg, OP_JUMP, mod_tlen);
 1124|  1.47k|      if (r) return r;
  ------------------
  |  Branch (1124:11): [True: 0, False: 1.47k]
  ------------------
 1125|  1.47k|      r = compile_tree_empty_check(qn->target, reg, empty_info);
 1126|  1.47k|      if (r) return r;
  ------------------
  |  Branch (1126:11): [True: 0, False: 1.47k]
  ------------------
 1127|  1.47k|      r = add_opcode_rel_addr(reg, OP_PUSH, -(mod_tlen + (int )SIZE_OP_PUSH));
  ------------------
  |  |  721|  1.47k|#define SIZE_OP_PUSH                   (SIZE_OPCODE + SIZE_RELADDR)
  |  |  ------------------
  |  |  |  |  688|  1.47k|#define SIZE_OPCODE           1
  |  |  ------------------
  |  |               #define SIZE_OP_PUSH                   (SIZE_OPCODE + SIZE_RELADDR)
  |  |  ------------------
  |  |  |  |  689|  1.47k|#define SIZE_RELADDR          (int )sizeof(RelAddrType)
  |  |  ------------------
  ------------------
 1128|  1.47k|    }
 1129|  15.9k|  }
 1130|  1.46k|  else if (qn->upper == 0 && qn->is_referred != 0) { /* /(?<n>..){0}/ */
  ------------------
  |  Branch (1130:12): [True: 0, False: 1.46k]
  |  Branch (1130:30): [True: 0, False: 0]
  ------------------
 1131|      0|    r = add_opcode_rel_addr(reg, OP_JUMP, tlen);
 1132|      0|    if (r) return r;
  ------------------
  |  Branch (1132:9): [True: 0, False: 0]
  ------------------
 1133|      0|    r = compile_tree(qn->target, reg);
 1134|      0|  }
 1135|  1.46k|  else if (!infinite && qn->greedy &&
  ------------------
  |  Branch (1135:12): [True: 1.46k, False: 0]
  |  Branch (1135:25): [True: 1.46k, False: 0]
  ------------------
 1136|  1.46k|           (qn->upper == 1 || (tlen + SIZE_OP_PUSH) * qn->upper
  ------------------
  |  |  721|      0|#define SIZE_OP_PUSH                   (SIZE_OPCODE + SIZE_RELADDR)
  |  |  ------------------
  |  |  |  |  688|      0|#define SIZE_OPCODE           1
  |  |  ------------------
  |  |               #define SIZE_OP_PUSH                   (SIZE_OPCODE + SIZE_RELADDR)
  |  |  ------------------
  |  |  |  |  689|      0|#define SIZE_RELADDR          (int )sizeof(RelAddrType)
  |  |  ------------------
  ------------------
  |  Branch (1136:13): [True: 1.46k, False: 0]
  |  Branch (1136:31): [True: 0, False: 0]
  ------------------
 1137|  1.46k|                                  <= QUANTIFIER_EXPAND_LIMIT_SIZE)) {
  ------------------
  |  |  724|      0|#define QUANTIFIER_EXPAND_LIMIT_SIZE   50
  ------------------
 1138|  1.46k|    int n = qn->upper - qn->lower;
 1139|       |
 1140|  1.46k|    r = compile_tree_n_times(qn->target, qn->lower, reg);
 1141|  1.46k|    if (r) return r;
  ------------------
  |  Branch (1141:9): [True: 0, False: 1.46k]
  ------------------
 1142|       |
 1143|  2.92k|    for (i = 0; i < n; i++) {
  ------------------
  |  Branch (1143:17): [True: 1.46k, False: 1.46k]
  ------------------
 1144|  1.46k|      r = add_opcode_rel_addr(reg, OP_PUSH,
 1145|  1.46k|			   (n - i) * tlen + (n - i - 1) * SIZE_OP_PUSH);
  ------------------
  |  |  721|  1.46k|#define SIZE_OP_PUSH                   (SIZE_OPCODE + SIZE_RELADDR)
  |  |  ------------------
  |  |  |  |  688|  1.46k|#define SIZE_OPCODE           1
  |  |  ------------------
  |  |               #define SIZE_OP_PUSH                   (SIZE_OPCODE + SIZE_RELADDR)
  |  |  ------------------
  |  |  |  |  689|  1.46k|#define SIZE_RELADDR          (int )sizeof(RelAddrType)
  |  |  ------------------
  ------------------
 1146|  1.46k|      if (r) return r;
  ------------------
  |  Branch (1146:11): [True: 0, False: 1.46k]
  ------------------
 1147|  1.46k|      r = compile_tree(qn->target, reg);
 1148|  1.46k|      if (r) return r;
  ------------------
  |  Branch (1148:11): [True: 0, False: 1.46k]
  ------------------
 1149|  1.46k|    }
 1150|  1.46k|  }
 1151|      0|  else if (!qn->greedy && qn->upper == 1 && qn->lower == 0) { /* '??' */
  ------------------
  |  Branch (1151:12): [True: 0, False: 0]
  |  Branch (1151:27): [True: 0, False: 0]
  |  Branch (1151:45): [True: 0, False: 0]
  ------------------
 1152|      0|    r = add_opcode_rel_addr(reg, OP_PUSH, SIZE_OP_JUMP);
  ------------------
  |  |  720|      0|#define SIZE_OP_JUMP                   (SIZE_OPCODE + SIZE_RELADDR)
  |  |  ------------------
  |  |  |  |  688|      0|#define SIZE_OPCODE           1
  |  |  ------------------
  |  |               #define SIZE_OP_JUMP                   (SIZE_OPCODE + SIZE_RELADDR)
  |  |  ------------------
  |  |  |  |  689|      0|#define SIZE_RELADDR          (int )sizeof(RelAddrType)
  |  |  ------------------
  ------------------
 1153|      0|    if (r) return r;
  ------------------
  |  Branch (1153:9): [True: 0, False: 0]
  ------------------
 1154|      0|    r = add_opcode_rel_addr(reg, OP_JUMP, tlen);
 1155|      0|    if (r) return r;
  ------------------
  |  Branch (1155:9): [True: 0, False: 0]
  ------------------
 1156|      0|    r = compile_tree(qn->target, reg);
 1157|      0|  }
 1158|      0|  else {
 1159|      0|    r = compile_range_repeat_node(qn, mod_tlen, empty_info, reg);
 1160|      0|  }
 1161|  17.4k|  return r;
 1162|  17.4k|}
regcomp.c:is_anychar_star_quantifier:
  716|  24.6k|{
  717|  24.6k|  if (qn->greedy && IS_REPEAT_INFINITE(qn->upper) &&
  ------------------
  |  |  422|  47.7k|#define IS_REPEAT_INFINITE(n)   ((n) == REPEAT_INFINITE)
  |  |  ------------------
  |  |  |  |  421|  23.1k|#define REPEAT_INFINITE         -1
  |  |  ------------------
  |  |  |  Branch (422:33): [True: 21.6k, False: 1.46k]
  |  |  ------------------
  ------------------
  |  Branch (717:7): [True: 23.1k, False: 1.47k]
  ------------------
  718|  24.6k|      NTYPE(qn->target) == NT_CANY)
  ------------------
  |  |   69|  21.6k|#define NTYPE(node)             ((node)->u.base.type)
  ------------------
                    NTYPE(qn->target) == NT_CANY)
  ------------------
  |  |   41|  21.6k|#define NT_CANY        3
  ------------------
  |  Branch (718:7): [True: 7.20k, False: 14.4k]
  ------------------
  719|  7.20k|    return 1;
  720|  17.4k|  else
  721|  17.4k|    return 0;
  722|  24.6k|}
regcomp.c:compile_tree_n_times:
  414|  43.3k|{
  415|  43.3k|  int i, r;
  416|       |
  417|  69.2k|  for (i = 0; i < n; i++) {
  ------------------
  |  Branch (417:15): [True: 25.9k, False: 43.3k]
  ------------------
  418|  25.9k|    r = compile_tree(node, reg);
  419|  25.9k|    if (r) return r;
  ------------------
  |  Branch (419:9): [True: 0, False: 25.9k]
  ------------------
  420|  25.9k|  }
  421|  43.3k|  return 0;
  422|  43.3k|}
regcomp.c:compile_tree_empty_check:
  367|  15.9k|{
  368|  15.9k|  int r;
  369|  15.9k|  int saved_num_null_check = reg->num_null_check;
  370|       |
  371|  15.9k|  if (empty_info != 0) {
  ------------------
  |  Branch (371:7): [True: 0, False: 15.9k]
  ------------------
  372|      0|    r = add_opcode(reg, OP_NULL_CHECK_START);
  373|      0|    if (r) return r;
  ------------------
  |  Branch (373:9): [True: 0, False: 0]
  ------------------
  374|      0|    r = add_mem_num(reg, reg->num_null_check); /* NULL CHECK ID */
  375|      0|    if (r) return r;
  ------------------
  |  Branch (375:9): [True: 0, False: 0]
  ------------------
  376|      0|    reg->num_null_check++;
  377|      0|  }
  378|       |
  379|  15.9k|  r = compile_tree(node, reg);
  380|  15.9k|  if (r) return r;
  ------------------
  |  Branch (380:7): [True: 0, False: 15.9k]
  ------------------
  381|       |
  382|  15.9k|  if (empty_info != 0) {
  ------------------
  |  Branch (382:7): [True: 0, False: 15.9k]
  ------------------
  383|      0|    if (empty_info == NQ_TARGET_IS_EMPTY)
  ------------------
  |  |  123|      0|#define NQ_TARGET_IS_EMPTY        1
  ------------------
  |  Branch (383:9): [True: 0, False: 0]
  ------------------
  384|      0|      r = add_opcode(reg, OP_NULL_CHECK_END);
  385|      0|    else if (empty_info == NQ_TARGET_IS_EMPTY_MEM)
  ------------------
  |  |  124|      0|#define NQ_TARGET_IS_EMPTY_MEM    2
  ------------------
  |  Branch (385:14): [True: 0, False: 0]
  ------------------
  386|      0|      r = add_opcode(reg, OP_NULL_CHECK_END_MEMST);
  387|      0|    else if (empty_info == NQ_TARGET_IS_EMPTY_REC)
  ------------------
  |  |  125|      0|#define NQ_TARGET_IS_EMPTY_REC    3
  ------------------
  |  Branch (387:14): [True: 0, False: 0]
  ------------------
  388|      0|      r = add_opcode(reg, OP_NULL_CHECK_END_MEMST_PUSH);
  389|       |
  390|      0|    if (r) return r;
  ------------------
  |  Branch (390:9): [True: 0, False: 0]
  ------------------
  391|      0|    r = add_mem_num(reg, saved_num_null_check); /* NULL CHECK ID */
  392|      0|  }
  393|  15.9k|  return r;
  394|  15.9k|}
regcomp.c:compile_enclose_node:
 1308|  27.5k|{
 1309|  27.5k|  int r, len;
 1310|       |
 1311|  27.5k|  if (node->type == ENCLOSE_OPTION)
  ------------------
  |  |   95|  27.5k|#define ENCLOSE_OPTION           (1<<1)
  ------------------
  |  Branch (1311:7): [True: 1.45k, False: 26.0k]
  ------------------
 1312|  1.45k|    return compile_option_node(node, reg);
 1313|       |
 1314|  26.0k|  switch (node->type) {
 1315|  7.38k|  case ENCLOSE_MEMORY:
  ------------------
  |  |   94|  7.38k|#define ENCLOSE_MEMORY           (1<<0)
  ------------------
  |  Branch (1315:3): [True: 7.38k, False: 18.7k]
  ------------------
 1316|  7.38k|#ifdef USE_SUBEXP_CALL
 1317|  7.38k|    if (IS_ENCLOSE_CALLED(node)) {
  ------------------
  |  |  147|  7.38k|#define IS_ENCLOSE_CALLED(en)          (((en)->state & NST_CALLED)        != 0)
  |  |  ------------------
  |  |  |  |  136|  7.38k|#define NST_CALLED                (1<<8)
  |  |  ------------------
  |  |  |  Branch (147:40): [True: 0, False: 7.38k]
  |  |  ------------------
  ------------------
 1318|      0|      r = add_opcode(reg, OP_CALL);
 1319|      0|      if (r) return r;
  ------------------
  |  Branch (1319:11): [True: 0, False: 0]
  ------------------
 1320|      0|      node->call_addr = BBUF_GET_OFFSET_POS(reg) + SIZE_ABSADDR + SIZE_OP_JUMP;
  ------------------
  |  |  507|      0|#define BBUF_GET_OFFSET_POS(buf)    ((buf)->used)
  ------------------
                    node->call_addr = BBUF_GET_OFFSET_POS(reg) + SIZE_ABSADDR + SIZE_OP_JUMP;
  ------------------
  |  |  690|      0|#define SIZE_ABSADDR          (int )sizeof(AbsAddrType)
  ------------------
                    node->call_addr = BBUF_GET_OFFSET_POS(reg) + SIZE_ABSADDR + SIZE_OP_JUMP;
  ------------------
  |  |  720|      0|#define SIZE_OP_JUMP                   (SIZE_OPCODE + SIZE_RELADDR)
  |  |  ------------------
  |  |  |  |  688|      0|#define SIZE_OPCODE           1
  |  |  ------------------
  |  |               #define SIZE_OP_JUMP                   (SIZE_OPCODE + SIZE_RELADDR)
  |  |  ------------------
  |  |  |  |  689|      0|#define SIZE_RELADDR          (int )sizeof(RelAddrType)
  |  |  ------------------
  ------------------
 1321|      0|      node->state |= NST_ADDR_FIXED;
  ------------------
  |  |  137|      0|#define NST_ADDR_FIXED            (1<<9)
  ------------------
 1322|      0|      r = add_abs_addr(reg, (int )node->call_addr);
 1323|      0|      if (r) return r;
  ------------------
  |  Branch (1323:11): [True: 0, False: 0]
  ------------------
 1324|      0|      len = compile_length_tree(node->target, reg);
 1325|      0|      len += (SIZE_OP_MEMORY_START_PUSH + SIZE_OP_RETURN);
  ------------------
  |  |  735|      0|#define SIZE_OP_MEMORY_START_PUSH      (SIZE_OPCODE + SIZE_MEMNUM)
  |  |  ------------------
  |  |  |  |  688|      0|#define SIZE_OPCODE           1
  |  |  ------------------
  |  |               #define SIZE_OP_MEMORY_START_PUSH      (SIZE_OPCODE + SIZE_MEMNUM)
  |  |  ------------------
  |  |  |  |  692|      0|#define SIZE_MEMNUM           (int )sizeof(MemNumType)
  |  |  ------------------
  ------------------
                    len += (SIZE_OP_MEMORY_START_PUSH + SIZE_OP_RETURN);
  ------------------
  |  |  748|      0|#define SIZE_OP_RETURN                  SIZE_OPCODE
  |  |  ------------------
  |  |  |  |  688|      0|#define SIZE_OPCODE           1
  |  |  ------------------
  ------------------
 1326|      0|      if (BIT_STATUS_AT(reg->bt_mem_end, node->regnum))
  ------------------
  |  |  371|      0|  ((n) < (int )BIT_STATUS_BITS_NUM  ?  ((stats) & ((BitStatusType )1 << n)) : ((stats) & 1))
  |  |  ------------------
  |  |  |  |  367|      0|#define BIT_STATUS_BITS_NUM          (sizeof(BitStatusType) * 8)
  |  |  ------------------
  |  |  |  Branch (371:3): [True: 0, False: 0]
  |  |  |  Branch (371:4): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 1327|      0|	len += (IS_ENCLOSE_RECURSION(node)
  ------------------
  |  |  149|      0|#define IS_ENCLOSE_RECURSION(en)       (((en)->state & NST_RECURSION)     != 0)
  |  |  ------------------
  |  |  |  |  135|      0|#define NST_RECURSION             (1<<7)
  |  |  ------------------
  |  |  |  Branch (149:40): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 1328|      0|		? SIZE_OP_MEMORY_END_PUSH_REC : SIZE_OP_MEMORY_END_PUSH);
  ------------------
  |  |  737|      0|#define SIZE_OP_MEMORY_END_PUSH_REC    (SIZE_OPCODE + SIZE_MEMNUM)
  |  |  ------------------
  |  |  |  |  688|      0|#define SIZE_OPCODE           1
  |  |  ------------------
  |  |               #define SIZE_OP_MEMORY_END_PUSH_REC    (SIZE_OPCODE + SIZE_MEMNUM)
  |  |  ------------------
  |  |  |  |  692|      0|#define SIZE_MEMNUM           (int )sizeof(MemNumType)
  |  |  ------------------
  ------------------
              		? SIZE_OP_MEMORY_END_PUSH_REC : SIZE_OP_MEMORY_END_PUSH);
  ------------------
  |  |  736|      0|#define SIZE_OP_MEMORY_END_PUSH        (SIZE_OPCODE + SIZE_MEMNUM)
  |  |  ------------------
  |  |  |  |  688|      0|#define SIZE_OPCODE           1
  |  |  ------------------
  |  |               #define SIZE_OP_MEMORY_END_PUSH        (SIZE_OPCODE + SIZE_MEMNUM)
  |  |  ------------------
  |  |  |  |  692|      0|#define SIZE_MEMNUM           (int )sizeof(MemNumType)
  |  |  ------------------
  ------------------
 1329|      0|      else
 1330|      0|	len += (IS_ENCLOSE_RECURSION(node)
  ------------------
  |  |  149|      0|#define IS_ENCLOSE_RECURSION(en)       (((en)->state & NST_RECURSION)     != 0)
  |  |  ------------------
  |  |  |  |  135|      0|#define NST_RECURSION             (1<<7)
  |  |  ------------------
  |  |  |  Branch (149:40): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 1331|      0|		? SIZE_OP_MEMORY_END_REC : SIZE_OP_MEMORY_END);
  ------------------
  |  |  739|      0|#define SIZE_OP_MEMORY_END_REC         (SIZE_OPCODE + SIZE_MEMNUM)
  |  |  ------------------
  |  |  |  |  688|      0|#define SIZE_OPCODE           1
  |  |  ------------------
  |  |               #define SIZE_OP_MEMORY_END_REC         (SIZE_OPCODE + SIZE_MEMNUM)
  |  |  ------------------
  |  |  |  |  692|      0|#define SIZE_MEMNUM           (int )sizeof(MemNumType)
  |  |  ------------------
  ------------------
              		? SIZE_OP_MEMORY_END_REC : SIZE_OP_MEMORY_END);
  ------------------
  |  |  738|      0|#define SIZE_OP_MEMORY_END             (SIZE_OPCODE + SIZE_MEMNUM)
  |  |  ------------------
  |  |  |  |  688|      0|#define SIZE_OPCODE           1
  |  |  ------------------
  |  |               #define SIZE_OP_MEMORY_END             (SIZE_OPCODE + SIZE_MEMNUM)
  |  |  ------------------
  |  |  |  |  692|      0|#define SIZE_MEMNUM           (int )sizeof(MemNumType)
  |  |  ------------------
  ------------------
 1332|       |
 1333|      0|      r = add_opcode_rel_addr(reg, OP_JUMP, len);
 1334|      0|      if (r) return r;
  ------------------
  |  Branch (1334:11): [True: 0, False: 0]
  ------------------
 1335|      0|    }
 1336|  7.38k|#endif
 1337|  7.38k|    if (BIT_STATUS_AT(reg->bt_mem_start, node->regnum))
  ------------------
  |  |  371|  7.38k|  ((n) < (int )BIT_STATUS_BITS_NUM  ?  ((stats) & ((BitStatusType )1 << n)) : ((stats) & 1))
  |  |  ------------------
  |  |  |  |  367|  7.38k|#define BIT_STATUS_BITS_NUM          (sizeof(BitStatusType) * 8)
  |  |  ------------------
  |  |  |  Branch (371:3): [True: 0, False: 7.38k]
  |  |  |  Branch (371:4): [True: 7.38k, False: 0]
  |  |  ------------------
  ------------------
 1338|      0|      r = add_opcode(reg, OP_MEMORY_START_PUSH);
 1339|  7.38k|    else
 1340|  7.38k|      r = add_opcode(reg, OP_MEMORY_START);
 1341|  7.38k|    if (r) return r;
  ------------------
  |  Branch (1341:9): [True: 0, False: 7.38k]
  ------------------
 1342|  7.38k|    r = add_mem_num(reg, node->regnum);
 1343|  7.38k|    if (r) return r;
  ------------------
  |  Branch (1343:9): [True: 0, False: 7.38k]
  ------------------
 1344|  7.38k|    r = compile_tree(node->target, reg);
 1345|  7.38k|    if (r) return r;
  ------------------
  |  Branch (1345:9): [True: 0, False: 7.38k]
  ------------------
 1346|  7.38k|#ifdef USE_SUBEXP_CALL
 1347|  7.38k|    if (IS_ENCLOSE_CALLED(node)) {
  ------------------
  |  |  147|  7.38k|#define IS_ENCLOSE_CALLED(en)          (((en)->state & NST_CALLED)        != 0)
  |  |  ------------------
  |  |  |  |  136|  7.38k|#define NST_CALLED                (1<<8)
  |  |  ------------------
  |  |  |  Branch (147:40): [True: 0, False: 7.38k]
  |  |  ------------------
  ------------------
 1348|      0|      if (BIT_STATUS_AT(reg->bt_mem_end, node->regnum))
  ------------------
  |  |  371|      0|  ((n) < (int )BIT_STATUS_BITS_NUM  ?  ((stats) & ((BitStatusType )1 << n)) : ((stats) & 1))
  |  |  ------------------
  |  |  |  |  367|      0|#define BIT_STATUS_BITS_NUM          (sizeof(BitStatusType) * 8)
  |  |  ------------------
  |  |  |  Branch (371:3): [True: 0, False: 0]
  |  |  |  Branch (371:4): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 1349|      0|	r = add_opcode(reg, (IS_ENCLOSE_RECURSION(node)
  ------------------
  |  |  149|      0|#define IS_ENCLOSE_RECURSION(en)       (((en)->state & NST_RECURSION)     != 0)
  |  |  ------------------
  |  |  |  |  135|      0|#define NST_RECURSION             (1<<7)
  |  |  ------------------
  |  |  |  Branch (149:40): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 1350|      0|			     ? OP_MEMORY_END_PUSH_REC : OP_MEMORY_END_PUSH));
 1351|      0|      else
 1352|      0|	r = add_opcode(reg, (IS_ENCLOSE_RECURSION(node)
  ------------------
  |  |  149|      0|#define IS_ENCLOSE_RECURSION(en)       (((en)->state & NST_RECURSION)     != 0)
  |  |  ------------------
  |  |  |  |  135|      0|#define NST_RECURSION             (1<<7)
  |  |  ------------------
  |  |  |  Branch (149:40): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 1353|      0|			     ? OP_MEMORY_END_REC : OP_MEMORY_END));
 1354|       |
 1355|      0|      if (r) return r;
  ------------------
  |  Branch (1355:11): [True: 0, False: 0]
  ------------------
 1356|      0|      r = add_mem_num(reg, node->regnum);
 1357|      0|      if (r) return r;
  ------------------
  |  Branch (1357:11): [True: 0, False: 0]
  ------------------
 1358|      0|      r = add_opcode(reg, OP_RETURN);
 1359|      0|    }
 1360|  7.38k|    else if (IS_ENCLOSE_RECURSION(node)) {
  ------------------
  |  |  149|  7.38k|#define IS_ENCLOSE_RECURSION(en)       (((en)->state & NST_RECURSION)     != 0)
  |  |  ------------------
  |  |  |  |  135|  7.38k|#define NST_RECURSION             (1<<7)
  |  |  ------------------
  |  |  |  Branch (149:40): [True: 0, False: 7.38k]
  |  |  ------------------
  ------------------
 1361|      0|      if (BIT_STATUS_AT(reg->bt_mem_end, node->regnum))
  ------------------
  |  |  371|      0|  ((n) < (int )BIT_STATUS_BITS_NUM  ?  ((stats) & ((BitStatusType )1 << n)) : ((stats) & 1))
  |  |  ------------------
  |  |  |  |  367|      0|#define BIT_STATUS_BITS_NUM          (sizeof(BitStatusType) * 8)
  |  |  ------------------
  |  |  |  Branch (371:3): [True: 0, False: 0]
  |  |  |  Branch (371:4): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 1362|      0|	r = add_opcode(reg, OP_MEMORY_END_PUSH_REC);
 1363|      0|      else
 1364|      0|	r = add_opcode(reg, OP_MEMORY_END_REC);
 1365|      0|      if (r) return r;
  ------------------
  |  Branch (1365:11): [True: 0, False: 0]
  ------------------
 1366|      0|      r = add_mem_num(reg, node->regnum);
 1367|      0|    }
 1368|  7.38k|    else
 1369|  7.38k|#endif
 1370|  7.38k|    {
 1371|  7.38k|      if (BIT_STATUS_AT(reg->bt_mem_end, node->regnum))
  ------------------
  |  |  371|  7.38k|  ((n) < (int )BIT_STATUS_BITS_NUM  ?  ((stats) & ((BitStatusType )1 << n)) : ((stats) & 1))
  |  |  ------------------
  |  |  |  |  367|  7.38k|#define BIT_STATUS_BITS_NUM          (sizeof(BitStatusType) * 8)
  |  |  ------------------
  |  |  |  Branch (371:3): [True: 0, False: 7.38k]
  |  |  |  Branch (371:4): [True: 7.38k, False: 0]
  |  |  ------------------
  ------------------
 1372|      0|	r = add_opcode(reg, OP_MEMORY_END_PUSH);
 1373|  7.38k|      else
 1374|  7.38k|	r = add_opcode(reg, OP_MEMORY_END);
 1375|  7.38k|      if (r) return r;
  ------------------
  |  Branch (1375:11): [True: 0, False: 7.38k]
  ------------------
 1376|  7.38k|      r = add_mem_num(reg, node->regnum);
 1377|  7.38k|    }
 1378|  7.38k|    break;
 1379|       |
 1380|  18.7k|  case ENCLOSE_STOP_BACKTRACK:
  ------------------
  |  |   96|  18.7k|#define ENCLOSE_STOP_BACKTRACK   (1<<2)
  ------------------
  |  Branch (1380:3): [True: 18.7k, False: 7.38k]
  ------------------
 1381|  18.7k|    if (IS_ENCLOSE_STOP_BT_SIMPLE_REPEAT(node)) {
  ------------------
  |  |  156|  18.7k|    (((en)->state & NST_STOP_BT_SIMPLE_REPEAT) != 0)
  |  |  ------------------
  |  |  |  |  134|  18.7k|#define NST_STOP_BT_SIMPLE_REPEAT (1<<6)
  |  |  ------------------
  |  |  |  Branch (156:5): [True: 18.7k, False: 0]
  |  |  ------------------
  ------------------
 1382|  18.7k|      QtfrNode* qn = NQTFR(node->target);
  ------------------
  |  |   80|  18.7k|#define NQTFR(node)        (&((node)->u.qtfr))
  ------------------
 1383|  18.7k|      r = compile_tree_n_times(qn->target, qn->lower, reg);
 1384|  18.7k|      if (r) return r;
  ------------------
  |  Branch (1384:11): [True: 0, False: 18.7k]
  ------------------
 1385|       |
 1386|  18.7k|      len = compile_length_tree(qn->target, reg);
 1387|  18.7k|      if (len < 0) return len;
  ------------------
  |  Branch (1387:11): [True: 0, False: 18.7k]
  ------------------
 1388|       |
 1389|  18.7k|      r = add_opcode_rel_addr(reg, OP_PUSH, len + SIZE_OP_POP + SIZE_OP_JUMP);
  ------------------
  |  |  722|  18.7k|#define SIZE_OP_POP                     SIZE_OPCODE
  |  |  ------------------
  |  |  |  |  688|  18.7k|#define SIZE_OPCODE           1
  |  |  ------------------
  ------------------
                    r = add_opcode_rel_addr(reg, OP_PUSH, len + SIZE_OP_POP + SIZE_OP_JUMP);
  ------------------
  |  |  720|  18.7k|#define SIZE_OP_JUMP                   (SIZE_OPCODE + SIZE_RELADDR)
  |  |  ------------------
  |  |  |  |  688|  18.7k|#define SIZE_OPCODE           1
  |  |  ------------------
  |  |               #define SIZE_OP_JUMP                   (SIZE_OPCODE + SIZE_RELADDR)
  |  |  ------------------
  |  |  |  |  689|  18.7k|#define SIZE_RELADDR          (int )sizeof(RelAddrType)
  |  |  ------------------
  ------------------
 1390|  18.7k|      if (r) return r;
  ------------------
  |  Branch (1390:11): [True: 0, False: 18.7k]
  ------------------
 1391|  18.7k|      r = compile_tree(qn->target, reg);
 1392|  18.7k|      if (r) return r;
  ------------------
  |  Branch (1392:11): [True: 0, False: 18.7k]
  ------------------
 1393|  18.7k|      r = add_opcode(reg, OP_POP);
 1394|  18.7k|      if (r) return r;
  ------------------
  |  Branch (1394:11): [True: 0, False: 18.7k]
  ------------------
 1395|  18.7k|      r = add_opcode_rel_addr(reg, OP_JUMP,
 1396|  18.7k|	 -((int )SIZE_OP_PUSH + len + (int )SIZE_OP_POP + (int )SIZE_OP_JUMP));
  ------------------
  |  |  721|  18.7k|#define SIZE_OP_PUSH                   (SIZE_OPCODE + SIZE_RELADDR)
  |  |  ------------------
  |  |  |  |  688|  18.7k|#define SIZE_OPCODE           1
  |  |  ------------------
  |  |               #define SIZE_OP_PUSH                   (SIZE_OPCODE + SIZE_RELADDR)
  |  |  ------------------
  |  |  |  |  689|  18.7k|#define SIZE_RELADDR          (int )sizeof(RelAddrType)
  |  |  ------------------
  ------------------
              	 -((int )SIZE_OP_PUSH + len + (int )SIZE_OP_POP + (int )SIZE_OP_JUMP));
  ------------------
  |  |  722|  18.7k|#define SIZE_OP_POP                     SIZE_OPCODE
  |  |  ------------------
  |  |  |  |  688|  18.7k|#define SIZE_OPCODE           1
  |  |  ------------------
  ------------------
              	 -((int )SIZE_OP_PUSH + len + (int )SIZE_OP_POP + (int )SIZE_OP_JUMP));
  ------------------
  |  |  720|  18.7k|#define SIZE_OP_JUMP                   (SIZE_OPCODE + SIZE_RELADDR)
  |  |  ------------------
  |  |  |  |  688|  18.7k|#define SIZE_OPCODE           1
  |  |  ------------------
  |  |               #define SIZE_OP_JUMP                   (SIZE_OPCODE + SIZE_RELADDR)
  |  |  ------------------
  |  |  |  |  689|  18.7k|#define SIZE_RELADDR          (int )sizeof(RelAddrType)
  |  |  ------------------
  ------------------
 1397|  18.7k|    }
 1398|      0|    else {
 1399|      0|      r = add_opcode(reg, OP_PUSH_STOP_BT);
 1400|      0|      if (r) return r;
  ------------------
  |  Branch (1400:11): [True: 0, False: 0]
  ------------------
 1401|      0|      r = compile_tree(node->target, reg);
 1402|      0|      if (r) return r;
  ------------------
  |  Branch (1402:11): [True: 0, False: 0]
  ------------------
 1403|      0|      r = add_opcode(reg, OP_POP_STOP_BT);
 1404|      0|    }
 1405|  18.7k|    break;
 1406|       |
 1407|  18.7k|  case ENCLOSE_CONDITION:
  ------------------
  |  |   97|      0|#define ENCLOSE_CONDITION        (1<<3)
  ------------------
  |  Branch (1407:3): [True: 0, False: 26.0k]
  ------------------
 1408|      0|    r = add_opcode(reg, OP_CONDITION);
 1409|      0|    if (r) return r;
  ------------------
  |  Branch (1409:9): [True: 0, False: 0]
  ------------------
 1410|      0|    r = add_mem_num(reg, node->regnum);
 1411|      0|    if (r) return r;
  ------------------
  |  Branch (1411:9): [True: 0, False: 0]
  ------------------
 1412|       |
 1413|      0|    if (NTYPE(node->target) == NT_ALT) {
  ------------------
  |  |   69|      0|#define NTYPE(node)             ((node)->u.base.type)
  ------------------
                  if (NTYPE(node->target) == NT_ALT) {
  ------------------
  |  |   47|      0|#define NT_ALT         9
  ------------------
  |  Branch (1413:9): [True: 0, False: 0]
  ------------------
 1414|      0|      Node* x = node->target;
 1415|      0|      int len2;
 1416|       |
 1417|      0|      len = compile_length_tree(NCAR(x), reg);  /* yes-node */
  ------------------
  |  |   86|      0|#define NCAR(node)         (NCONS(node)->car)
  |  |  ------------------
  |  |  |  |   83|      0|#define NCONS(node)        (&((node)->u.cons))
  |  |  ------------------
  ------------------
 1418|      0|      if (len < 0) return len;
  ------------------
  |  Branch (1418:11): [True: 0, False: 0]
  ------------------
 1419|      0|      if (NCDR(x) == NULL) return ONIGERR_PARSER_BUG;
  ------------------
  |  |   87|      0|#define NCDR(node)         (NCONS(node)->cdr)
  |  |  ------------------
  |  |  |  |   83|      0|#define NCONS(node)        (&((node)->u.cons))
  |  |  ------------------
  ------------------
                    if (NCDR(x) == NULL) return ONIGERR_PARSER_BUG;
  ------------------
  |  |  634|      0|#define ONIGERR_PARSER_BUG                                    -11
  ------------------
  |  Branch (1419:11): [True: 0, False: 0]
  ------------------
 1420|      0|      x = NCDR(x);
  ------------------
  |  |   87|      0|#define NCDR(node)         (NCONS(node)->cdr)
  |  |  ------------------
  |  |  |  |   83|      0|#define NCONS(node)        (&((node)->u.cons))
  |  |  ------------------
  ------------------
 1421|      0|      len2 = compile_length_tree(NCAR(x), reg); /* no-node */
  ------------------
  |  |   86|      0|#define NCAR(node)         (NCONS(node)->car)
  |  |  ------------------
  |  |  |  |   83|      0|#define NCONS(node)        (&((node)->u.cons))
  |  |  ------------------
  ------------------
 1422|      0|      if (len2 < 0) return len2;
  ------------------
  |  Branch (1422:11): [True: 0, False: 0]
  ------------------
 1423|      0|      if (NCDR(x) != NULL) return ONIGERR_INVALID_CONDITION_PATTERN;
  ------------------
  |  |   87|      0|#define NCDR(node)         (NCONS(node)->cdr)
  |  |  ------------------
  |  |  |  |   83|      0|#define NCONS(node)        (&((node)->u.cons))
  |  |  ------------------
  ------------------
                    if (NCDR(x) != NULL) return ONIGERR_INVALID_CONDITION_PATTERN;
  ------------------
  |  |  667|      0|#define ONIGERR_INVALID_CONDITION_PATTERN                    -124
  ------------------
  |  Branch (1423:11): [True: 0, False: 0]
  ------------------
 1424|       |
 1425|      0|      x = node->target;
 1426|      0|      r = add_rel_addr(reg, len + SIZE_OP_JUMP);
  ------------------
  |  |  720|      0|#define SIZE_OP_JUMP                   (SIZE_OPCODE + SIZE_RELADDR)
  |  |  ------------------
  |  |  |  |  688|      0|#define SIZE_OPCODE           1
  |  |  ------------------
  |  |               #define SIZE_OP_JUMP                   (SIZE_OPCODE + SIZE_RELADDR)
  |  |  ------------------
  |  |  |  |  689|      0|#define SIZE_RELADDR          (int )sizeof(RelAddrType)
  |  |  ------------------
  ------------------
 1427|      0|      if (r) return r;
  ------------------
  |  Branch (1427:11): [True: 0, False: 0]
  ------------------
 1428|      0|      r = compile_tree(NCAR(x), reg);   /* yes-node */
  ------------------
  |  |   86|      0|#define NCAR(node)         (NCONS(node)->car)
  |  |  ------------------
  |  |  |  |   83|      0|#define NCONS(node)        (&((node)->u.cons))
  |  |  ------------------
  ------------------
 1429|      0|      if (r) return r;
  ------------------
  |  Branch (1429:11): [True: 0, False: 0]
  ------------------
 1430|      0|      r = add_opcode_rel_addr(reg, OP_JUMP, len2);
 1431|      0|      if (r) return r;
  ------------------
  |  Branch (1431:11): [True: 0, False: 0]
  ------------------
 1432|      0|      x = NCDR(x);
  ------------------
  |  |   87|      0|#define NCDR(node)         (NCONS(node)->cdr)
  |  |  ------------------
  |  |  |  |   83|      0|#define NCONS(node)        (&((node)->u.cons))
  |  |  ------------------
  ------------------
 1433|      0|      r = compile_tree(NCAR(x), reg);   /* no-node */
  ------------------
  |  |   86|      0|#define NCAR(node)         (NCONS(node)->car)
  |  |  ------------------
  |  |  |  |   83|      0|#define NCONS(node)        (&((node)->u.cons))
  |  |  ------------------
  ------------------
 1434|      0|    }
 1435|      0|    else {
 1436|      0|      return ONIGERR_PARSER_BUG;
  ------------------
  |  |  634|      0|#define ONIGERR_PARSER_BUG                                    -11
  ------------------
 1437|      0|    }
 1438|      0|    break;
 1439|       |
 1440|      0|  case ENCLOSE_ABSENT:
  ------------------
  |  |   98|      0|#define ENCLOSE_ABSENT           (1<<4)
  ------------------
  |  Branch (1440:3): [True: 0, False: 26.0k]
  ------------------
 1441|      0|    len = compile_length_tree(node->target, reg);
 1442|      0|    if (len < 0) return len;
  ------------------
  |  Branch (1442:9): [True: 0, False: 0]
  ------------------
 1443|       |
 1444|      0|    r = add_opcode(reg, OP_PUSH_ABSENT_POS);
 1445|      0|    if (r) return r;
  ------------------
  |  Branch (1445:9): [True: 0, False: 0]
  ------------------
 1446|      0|    r = add_opcode_rel_addr(reg, OP_ABSENT, len + SIZE_OP_ABSENT_END);
  ------------------
  |  |  752|      0|#define SIZE_OP_ABSENT_END              SIZE_OPCODE
  |  |  ------------------
  |  |  |  |  688|      0|#define SIZE_OPCODE           1
  |  |  ------------------
  ------------------
 1447|      0|    if (r) return r;
  ------------------
  |  Branch (1447:9): [True: 0, False: 0]
  ------------------
 1448|      0|    r = compile_tree(node->target, reg);
 1449|      0|    if (r) return r;
  ------------------
  |  Branch (1449:9): [True: 0, False: 0]
  ------------------
 1450|      0|    r = add_opcode(reg, OP_ABSENT_END);
 1451|      0|    break;
 1452|       |
 1453|      0|  default:
  ------------------
  |  Branch (1453:3): [True: 0, False: 26.0k]
  ------------------
 1454|      0|    return ONIGERR_TYPE_BUG;
  ------------------
  |  |  633|      0|#define ONIGERR_TYPE_BUG                                       -6
  ------------------
 1455|      0|    break;
 1456|  26.0k|  }
 1457|       |
 1458|  26.0k|  return r;
 1459|  26.0k|}
regcomp.c:compile_option_node:
 1187|  1.45k|{
 1188|  1.45k|  int r;
 1189|  1.45k|  OnigOptionType prev = reg->options;
 1190|       |
 1191|  1.45k|  if (IS_DYNAMIC_OPTION(prev ^ node->option)) {
  ------------------
  |  |  416|  1.45k|#define IS_DYNAMIC_OPTION(option)  0
  |  |  ------------------
  |  |  |  Branch (416:36): [Folded - Ignored]
  |  |  ------------------
  ------------------
 1192|      0|    r = add_opcode_option(reg, OP_SET_OPTION_PUSH, node->option);
 1193|      0|    if (r) return r;
  ------------------
  |  Branch (1193:9): [True: 0, False: 0]
  ------------------
 1194|      0|    r = add_opcode_option(reg, OP_SET_OPTION, prev);
 1195|      0|    if (r) return r;
  ------------------
  |  Branch (1195:9): [True: 0, False: 0]
  ------------------
 1196|      0|    r = add_opcode(reg, OP_FAIL);
 1197|      0|    if (r) return r;
  ------------------
  |  Branch (1197:9): [True: 0, False: 0]
  ------------------
 1198|      0|  }
 1199|       |
 1200|  1.45k|  reg->options = node->option;
 1201|  1.45k|  r = compile_tree(node->target, reg);
 1202|  1.45k|  reg->options = prev;
 1203|       |
 1204|  1.45k|  if (IS_DYNAMIC_OPTION(prev ^ node->option)) {
  ------------------
  |  |  416|  1.45k|#define IS_DYNAMIC_OPTION(option)  0
  |  |  ------------------
  |  |  |  Branch (416:36): [Folded - Ignored]
  |  |  ------------------
  ------------------
 1205|      0|    if (r) return r;
  ------------------
  |  Branch (1205:9): [True: 0, False: 0]
  ------------------
 1206|      0|    r = add_opcode_option(reg, OP_SET_OPTION, prev);
 1207|      0|  }
 1208|  1.45k|  return r;
 1209|  1.45k|}
regcomp.c:compile_anchor_node:
 1496|  41.9k|{
 1497|  41.9k|  int r, len;
 1498|       |
 1499|  41.9k|  switch (node->type) {
 1500|      0|  case ANCHOR_BEGIN_BUF:      r = add_opcode(reg, OP_BEGIN_BUF);      break;
  ------------------
  |  |  540|      0|#define ANCHOR_BEGIN_BUF        (1<<0)
  ------------------
  |  Branch (1500:3): [True: 0, False: 41.9k]
  ------------------
 1501|      0|  case ANCHOR_END_BUF:        r = add_opcode(reg, OP_END_BUF);        break;
  ------------------
  |  |  543|      0|#define ANCHOR_END_BUF          (1<<3)
  ------------------
  |  Branch (1501:3): [True: 0, False: 41.9k]
  ------------------
 1502|  28.9k|  case ANCHOR_BEGIN_LINE:     r = add_opcode(reg, OP_BEGIN_LINE);     break;
  ------------------
  |  |  541|  28.9k|#define ANCHOR_BEGIN_LINE       (1<<1)
  ------------------
  |  Branch (1502:3): [True: 28.9k, False: 13.0k]
  ------------------
 1503|  11.6k|  case ANCHOR_END_LINE:       r = add_opcode(reg, OP_END_LINE);       break;
  ------------------
  |  |  545|  11.6k|#define ANCHOR_END_LINE         (1<<5)
  ------------------
  |  Branch (1503:3): [True: 11.6k, False: 30.3k]
  ------------------
 1504|      0|  case ANCHOR_SEMI_END_BUF:   r = add_opcode(reg, OP_SEMI_END_BUF);   break;
  ------------------
  |  |  544|      0|#define ANCHOR_SEMI_END_BUF     (1<<4)
  ------------------
  |  Branch (1504:3): [True: 0, False: 41.9k]
  ------------------
 1505|      0|  case ANCHOR_BEGIN_POSITION: r = add_opcode(reg, OP_BEGIN_POSITION); break;
  ------------------
  |  |  542|      0|#define ANCHOR_BEGIN_POSITION   (1<<2)
  ------------------
  |  Branch (1505:3): [True: 0, False: 41.9k]
  ------------------
 1506|       |
 1507|  1.44k|  case ANCHOR_WORD_BOUND:
  ------------------
  |  |  547|  1.44k|#define ANCHOR_WORD_BOUND       (1<<6)
  ------------------
  |  Branch (1507:3): [True: 1.44k, False: 40.5k]
  ------------------
 1508|  1.44k|    if (node->ascii_range)    r = add_opcode(reg, OP_ASCII_WORD_BOUND);
  ------------------
  |  Branch (1508:9): [True: 0, False: 1.44k]
  ------------------
 1509|  1.44k|    else                      r = add_opcode(reg, OP_WORD_BOUND);
 1510|  1.44k|    break;
 1511|      0|  case ANCHOR_NOT_WORD_BOUND:
  ------------------
  |  |  548|      0|#define ANCHOR_NOT_WORD_BOUND   (1<<7)
  ------------------
  |  Branch (1511:3): [True: 0, False: 41.9k]
  ------------------
 1512|      0|    if (node->ascii_range)    r = add_opcode(reg, OP_NOT_ASCII_WORD_BOUND);
  ------------------
  |  Branch (1512:9): [True: 0, False: 0]
  ------------------
 1513|      0|    else                      r = add_opcode(reg, OP_NOT_WORD_BOUND);
 1514|      0|    break;
 1515|      0|#ifdef USE_WORD_BEGIN_END
 1516|      0|  case ANCHOR_WORD_BEGIN:
  ------------------
  |  |  549|      0|#define ANCHOR_WORD_BEGIN       (1<<8)
  ------------------
  |  Branch (1516:3): [True: 0, False: 41.9k]
  ------------------
 1517|      0|    if (node->ascii_range)    r = add_opcode(reg, OP_ASCII_WORD_BEGIN);
  ------------------
  |  Branch (1517:9): [True: 0, False: 0]
  ------------------
 1518|      0|    else                      r = add_opcode(reg, OP_WORD_BEGIN);
 1519|      0|    break;
 1520|      0|  case ANCHOR_WORD_END:
  ------------------
  |  |  550|      0|#define ANCHOR_WORD_END         (1<<9)
  ------------------
  |  Branch (1520:3): [True: 0, False: 41.9k]
  ------------------
 1521|      0|    if (node->ascii_range)    r = add_opcode(reg, OP_ASCII_WORD_END);
  ------------------
  |  Branch (1521:9): [True: 0, False: 0]
  ------------------
 1522|      0|    else                      r = add_opcode(reg, OP_WORD_END);
 1523|      0|    break;
 1524|      0|#endif
 1525|      0|  case ANCHOR_KEEP:           r = add_opcode(reg, OP_KEEP);           break;
  ------------------
  |  |  559|      0|#define ANCHOR_KEEP             (1<<16)
  ------------------
  |  Branch (1525:3): [True: 0, False: 41.9k]
  ------------------
 1526|       |
 1527|      0|  case ANCHOR_PREC_READ:
  ------------------
  |  |  551|      0|#define ANCHOR_PREC_READ        (1<<10)
  ------------------
  |  Branch (1527:3): [True: 0, False: 41.9k]
  ------------------
 1528|      0|    r = add_opcode(reg, OP_PUSH_POS);
 1529|      0|    if (r) return r;
  ------------------
  |  Branch (1529:9): [True: 0, False: 0]
  ------------------
 1530|      0|    r = compile_tree(node->target, reg);
 1531|      0|    if (r) return r;
  ------------------
  |  Branch (1531:9): [True: 0, False: 0]
  ------------------
 1532|      0|    r = add_opcode(reg, OP_POP_POS);
 1533|      0|    break;
 1534|       |
 1535|      0|  case ANCHOR_PREC_READ_NOT:
  ------------------
  |  |  552|      0|#define ANCHOR_PREC_READ_NOT    (1<<11)
  ------------------
  |  Branch (1535:3): [True: 0, False: 41.9k]
  ------------------
 1536|      0|    len = compile_length_tree(node->target, reg);
 1537|      0|    if (len < 0) return len;
  ------------------
  |  Branch (1537:9): [True: 0, False: 0]
  ------------------
 1538|      0|    r = add_opcode_rel_addr(reg, OP_PUSH_POS_NOT, len + SIZE_OP_FAIL_POS);
  ------------------
  |  |  730|      0|#define SIZE_OP_FAIL_POS                SIZE_OPCODE
  |  |  ------------------
  |  |  |  |  688|      0|#define SIZE_OPCODE           1
  |  |  ------------------
  ------------------
 1539|      0|    if (r) return r;
  ------------------
  |  Branch (1539:9): [True: 0, False: 0]
  ------------------
 1540|      0|    r = compile_tree(node->target, reg);
 1541|      0|    if (r) return r;
  ------------------
  |  Branch (1541:9): [True: 0, False: 0]
  ------------------
 1542|      0|    r = add_opcode(reg, OP_FAIL_POS);
 1543|      0|    break;
 1544|       |
 1545|      0|  case ANCHOR_LOOK_BEHIND:
  ------------------
  |  |  553|      0|#define ANCHOR_LOOK_BEHIND      (1<<12)
  ------------------
  |  Branch (1545:3): [True: 0, False: 41.9k]
  ------------------
 1546|      0|    {
 1547|      0|      int n;
 1548|      0|      r = add_opcode(reg, OP_LOOK_BEHIND);
 1549|      0|      if (r) return r;
  ------------------
  |  Branch (1549:11): [True: 0, False: 0]
  ------------------
 1550|      0|      if (node->char_len < 0) {
  ------------------
  |  Branch (1550:11): [True: 0, False: 0]
  ------------------
 1551|      0|	r = get_char_length_tree(node->target, reg, &n);
 1552|      0|	if (r) return ONIGERR_INVALID_LOOK_BEHIND_PATTERN;
  ------------------
  |  |  665|      0|#define ONIGERR_INVALID_LOOK_BEHIND_PATTERN                  -122
  ------------------
  |  Branch (1552:6): [True: 0, False: 0]
  ------------------
 1553|      0|      }
 1554|      0|      else
 1555|      0|	n = node->char_len;
 1556|      0|      r = add_length(reg, n);
 1557|      0|      if (r) return r;
  ------------------
  |  Branch (1557:11): [True: 0, False: 0]
  ------------------
 1558|      0|      r = compile_tree(node->target, reg);
 1559|      0|    }
 1560|      0|    break;
 1561|       |
 1562|      0|  case ANCHOR_LOOK_BEHIND_NOT:
  ------------------
  |  |  554|      0|#define ANCHOR_LOOK_BEHIND_NOT  (1<<13)
  ------------------
  |  Branch (1562:3): [True: 0, False: 41.9k]
  ------------------
 1563|      0|    {
 1564|      0|      int n;
 1565|      0|      len = compile_length_tree(node->target, reg);
 1566|      0|      r = add_opcode_rel_addr(reg, OP_PUSH_LOOK_BEHIND_NOT,
 1567|      0|			   len + SIZE_OP_FAIL_LOOK_BEHIND_NOT);
  ------------------
  |  |  746|      0|#define SIZE_OP_FAIL_LOOK_BEHIND_NOT    SIZE_OPCODE
  |  |  ------------------
  |  |  |  |  688|      0|#define SIZE_OPCODE           1
  |  |  ------------------
  ------------------
 1568|      0|      if (r) return r;
  ------------------
  |  Branch (1568:11): [True: 0, False: 0]
  ------------------
 1569|      0|      if (node->char_len < 0) {
  ------------------
  |  Branch (1569:11): [True: 0, False: 0]
  ------------------
 1570|      0|	r = get_char_length_tree(node->target, reg, &n);
 1571|      0|	if (r) return ONIGERR_INVALID_LOOK_BEHIND_PATTERN;
  ------------------
  |  |  665|      0|#define ONIGERR_INVALID_LOOK_BEHIND_PATTERN                  -122
  ------------------
  |  Branch (1571:6): [True: 0, False: 0]
  ------------------
 1572|      0|      }
 1573|      0|      else
 1574|      0|	n = node->char_len;
 1575|      0|      r = add_length(reg, n);
 1576|      0|      if (r) return r;
  ------------------
  |  Branch (1576:11): [True: 0, False: 0]
  ------------------
 1577|      0|      r = compile_tree(node->target, reg);
 1578|      0|      if (r) return r;
  ------------------
  |  Branch (1578:11): [True: 0, False: 0]
  ------------------
 1579|      0|      r = add_opcode(reg, OP_FAIL_LOOK_BEHIND_NOT);
 1580|      0|    }
 1581|      0|    break;
 1582|       |
 1583|      0|  default:
  ------------------
  |  Branch (1583:3): [True: 0, False: 41.9k]
  ------------------
 1584|      0|    return ONIGERR_TYPE_BUG;
  ------------------
  |  |  633|      0|#define ONIGERR_TYPE_BUG                                       -6
  ------------------
 1585|      0|    break;
 1586|  41.9k|  }
 1587|       |
 1588|  41.9k|  return r;
 1589|  41.9k|}
regcomp.c:add_opcode:
  205|   338k|{
  206|   338k|  BBUF_ADD1(reg, opcode);
  ------------------
  |  |  505|   338k|#define BBUF_ADD1(buf,byte)         BBUF_WRITE1((buf),(buf)->used,(byte))
  |  |  ------------------
  |  |  |  |  497|   338k|#define BBUF_WRITE1(buf,pos,byte) do{\
  |  |  |  |  498|   338k|  int used = (pos) + 1;\
  |  |  |  |  499|   338k|  if ((buf)->alloc < (unsigned int )used) BBUF_EXPAND((buf),used);\
  |  |  |  |  ------------------
  |  |  |  |  |  |  470|  4.30k|#define BBUF_EXPAND(buf,low) do{\
  |  |  |  |  |  |  471|  4.30k|  UChar *tmp;\
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   76|  4.30k|# define UChar OnigUChar
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  472|  4.30k|  do { (buf)->alloc *= 2; } while ((buf)->alloc < (unsigned int )low);\
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (472:36): [True: 0, False: 4.30k]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  473|  4.30k|  tmp = (UChar* )xrealloc((buf)->p, (buf)->alloc);\
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  143|  4.30k|# define xrealloc    realloc
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  474|  4.30k|  if (IS_NULL(tmp)) return(ONIGERR_MEMORY);\
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  311|  4.30k|#define IS_NULL(p)                    (((void*)(p)) == (void*)0)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (311:39): [True: 0, False: 4.30k]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |                 if (IS_NULL(tmp)) return(ONIGERR_MEMORY);\
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  632|      0|#define ONIGERR_MEMORY                                         -5
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  475|  4.30k|  (buf)->p = tmp;\
  |  |  |  |  |  |  476|  4.30k|} while (0)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (476:10): [Folded - Ignored]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (499:7): [True: 4.30k, False: 334k]
  |  |  |  |  ------------------
  |  |  |  |  500|   338k|  (buf)->p[(pos)] = (UChar )(byte);\
  |  |  |  |  501|   338k|  if ((buf)->used < (unsigned int )used) (buf)->used = used;\
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (501:7): [True: 338k, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  502|   338k|} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (502:10): [Folded - Ignored]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  207|   338k|  return 0;
  208|   338k|}

onigenc_init:
   37|      1|{
   38|      1|  return 0;
   39|      1|}
onigenc_mbclen:
   56|  2.48M|{
   57|  2.48M|  int ret = ONIGENC_PRECISE_MBC_ENC_LEN(enc, p, e);
  ------------------
  |  |  356|  2.48M|#define ONIGENC_PRECISE_MBC_ENC_LEN(enc,p,e)   (enc)->precise_mbc_enc_len(p,e,enc)
  ------------------
   58|  2.48M|  if (ONIGENC_MBCLEN_CHARFOUND_P(ret)) {
  ------------------
  |  |  346|  2.48M|#define ONIGENC_MBCLEN_CHARFOUND_P(r)           (0 < (r))
  |  |  ------------------
  |  |  |  Branch (346:49): [True: 2.48M, False: 0]
  |  |  ------------------
  ------------------
   59|  2.48M|    ret = ONIGENC_MBCLEN_CHARFOUND_LEN(ret);
  ------------------
  |  |  347|  2.48M|#define ONIGENC_MBCLEN_CHARFOUND_LEN(r)         (r)
  ------------------
   60|  2.48M|    if (ret > (int)(e - p)) ret = (int)(e - p); // just for case
  ------------------
  |  Branch (60:9): [True: 0, False: 2.48M]
  ------------------
   61|  2.48M|    return ret;
   62|  2.48M|  }
   63|      0|  else if (ONIGENC_MBCLEN_NEEDMORE_P(ret)) {
  ------------------
  |  |  353|      0|#define ONIGENC_MBCLEN_NEEDMORE_P(r)            ((r) < -1)
  |  |  ------------------
  |  |  |  Branch (353:49): [True: 0, False: 0]
  |  |  ------------------
  ------------------
   64|      0|    return (int)(e - p);
   65|      0|  }
   66|      0|  return p < e ? 1 : 0;
  ------------------
  |  Branch (66:10): [True: 0, False: 0]
  ------------------
   67|  2.48M|}
onigenc_always_true_is_allowed_reverse_match:
  677|  15.9k|{
  678|  15.9k|  return TRUE;
  ------------------
  |  |   73|  15.9k|# define TRUE    1
  ------------------
  679|  15.9k|}

onig_strcpy:
  260|   540k|{
  261|   540k|  ptrdiff_t len = end - src;
  262|   540k|  if (len > 0) {
  ------------------
  |  Branch (262:7): [True: 540k, False: 0]
  ------------------
  263|   540k|    xmemcpy(dest, src, len);
  ------------------
  |  |  215|   540k|#define xmemcpy     memcpy
  ------------------
  264|   540k|    dest[len] = (UChar )0;
  265|   540k|  }
  266|   540k|}
onig_st_init_strend_table_with_size:
  407|  1.47k|{
  408|  1.47k|  static const struct st_hash_type hashType = {
  409|  1.47k|    str_end_cmp,
  410|  1.47k|    str_end_hash,
  411|  1.47k|  };
  412|       |
  413|  1.47k|  return (hash_table_type* )
  414|  1.47k|           onig_st_init_table_with_size(&hashType, size);
  415|  1.47k|}
onig_st_lookup_strend:
  420|  4.43k|{
  421|  4.43k|  st_str_end_key key;
  422|       |
  423|  4.43k|  key.s   = (UChar* )str_key;
  424|  4.43k|  key.end = (UChar* )end_key;
  425|       |
  426|  4.43k|  return onig_st_lookup(table, (st_data_t )(&key), value);
  427|  4.43k|}
onig_st_insert_strend:
  432|  5.91k|{
  433|  5.91k|  st_str_end_key* key;
  434|  5.91k|  int result;
  435|       |
  436|  5.91k|  key = (st_str_end_key* )xmalloc(sizeof(st_str_end_key));
  ------------------
  |  |  142|  5.91k|# define xmalloc     malloc
  ------------------
  437|  5.91k|  key->s   = (UChar* )str_key;
  438|  5.91k|  key->end = (UChar* )end_key;
  439|  5.91k|  result = onig_st_insert(table, (st_data_t )key, value);
  440|  5.91k|  if (result) {
  ------------------
  |  Branch (440:7): [True: 0, False: 5.91k]
  ------------------
  441|      0|    xfree(key);
  ------------------
  |  |  145|      0|# define xfree       free
  ------------------
  442|      0|  }
  443|  5.91k|  return result;
  444|  5.91k|}
onig_names_free:
  526|  33.2k|{
  527|  33.2k|  int r;
  528|  33.2k|  NameTable* t;
  529|       |
  530|  33.2k|  r = names_clear(reg);
  531|  33.2k|  if (r) return r;
  ------------------
  |  Branch (531:7): [True: 0, False: 33.2k]
  ------------------
  532|       |
  533|  33.2k|  t = (NameTable* )reg->name_table;
  534|  33.2k|  if (IS_NOT_NULL(t)) onig_st_free_table(t);
  ------------------
  |  |  312|  33.2k|#define IS_NOT_NULL(p)                (((void*)(p)) != (void*)0)
  |  |  ------------------
  |  |  |  Branch (312:39): [True: 1.47k, False: 31.7k]
  |  |  ------------------
  ------------------
  535|  33.2k|  reg->name_table = (void* )NULL;
  536|  33.2k|  return 0;
  537|  33.2k|}
onig_node_free:
 1063|   289k|{
 1064|   453k| start:
 1065|   453k|  if (IS_NULL(node)) return ;
  ------------------
  |  |  311|   453k|#define IS_NULL(p)                    (((void*)(p)) == (void*)0)
  |  |  ------------------
  |  |  |  Branch (311:39): [True: 65.1k, False: 388k]
  |  |  ------------------
  ------------------
 1066|       |
 1067|   388k|  switch (NTYPE(node)) {
  ------------------
  |  |   69|   388k|#define NTYPE(node)             ((node)->u.base.type)
  |  |  ------------------
  |  |  |  Branch (69:33): [True: 14.5k, False: 373k]
  |  |  ------------------
  ------------------
 1068|  62.4k|  case NT_STR:
  ------------------
  |  |   38|  62.4k|#define NT_STR         0
  ------------------
  |  Branch (1068:3): [True: 62.4k, False: 325k]
  ------------------
 1069|  62.4k|    if (NSTR(node)->capa != 0 &&
  ------------------
  |  |   76|  62.4k|#define NSTR(node)         (&((node)->u.str))
  ------------------
  |  Branch (1069:9): [True: 5.80k, False: 56.6k]
  ------------------
 1070|  62.4k|	IS_NOT_NULL(NSTR(node)->s) && NSTR(node)->s != NSTR(node)->buf) {
  ------------------
  |  |  312|  68.2k|#define IS_NOT_NULL(p)                (((void*)(p)) != (void*)0)
  |  |  ------------------
  |  |  |  Branch (312:39): [True: 5.80k, False: 0]
  |  |  ------------------
  ------------------
              	IS_NOT_NULL(NSTR(node)->s) && NSTR(node)->s != NSTR(node)->buf) {
  ------------------
  |  |   76|  5.80k|#define NSTR(node)         (&((node)->u.str))
  ------------------
              	IS_NOT_NULL(NSTR(node)->s) && NSTR(node)->s != NSTR(node)->buf) {
  ------------------
  |  |   76|  5.80k|#define NSTR(node)         (&((node)->u.str))
  ------------------
  |  Branch (1070:32): [True: 5.80k, False: 0]
  ------------------
 1071|  5.80k|      xfree(NSTR(node)->s);
  ------------------
  |  |  145|  5.80k|# define xfree       free
  ------------------
                    xfree(NSTR(node)->s);
  ------------------
  |  |   76|  5.80k|#define NSTR(node)         (&((node)->u.str))
  ------------------
 1072|  5.80k|    }
 1073|  62.4k|    break;
 1074|       |
 1075|   143k|  case NT_LIST:
  ------------------
  |  |   46|   143k|#define NT_LIST        8
  ------------------
  |  Branch (1075:3): [True: 143k, False: 244k]
  ------------------
 1076|   163k|  case NT_ALT:
  ------------------
  |  |   47|   163k|#define NT_ALT         9
  ------------------
  |  Branch (1076:3): [True: 20.4k, False: 367k]
  ------------------
 1077|   163k|    onig_node_free(NCAR(node));
  ------------------
  |  |   86|   163k|#define NCAR(node)         (NCONS(node)->car)
  |  |  ------------------
  |  |  |  |   83|   163k|#define NCONS(node)        (&((node)->u.cons))
  |  |  ------------------
  ------------------
 1078|   163k|    {
 1079|   163k|      Node* next_node = NCDR(node);
  ------------------
  |  |   87|   163k|#define NCDR(node)         (NCONS(node)->cdr)
  |  |  ------------------
  |  |  |  |   83|   163k|#define NCONS(node)        (&((node)->u.cons))
  |  |  ------------------
  ------------------
 1080|       |
 1081|   163k|      xfree(node);
  ------------------
  |  |  145|   163k|# define xfree       free
  ------------------
 1082|   163k|      node = next_node;
 1083|   163k|      goto start;
 1084|   143k|    }
 1085|      0|    break;
 1086|       |
 1087|  34.6k|  case NT_CCLASS:
  ------------------
  |  |   39|  34.6k|#define NT_CCLASS      1
  ------------------
  |  Branch (1087:3): [True: 34.6k, False: 353k]
  ------------------
 1088|  34.6k|    {
 1089|  34.6k|      CClassNode* cc = NCCLASS(node);
  ------------------
  |  |   77|  34.6k|#define NCCLASS(node)      (&((node)->u.cclass))
  ------------------
 1090|       |
 1091|  34.6k|      if (cc->mbuf)
  ------------------
  |  Branch (1091:11): [True: 0, False: 34.6k]
  ------------------
 1092|      0|	bbuf_free(cc->mbuf);
 1093|  34.6k|    }
 1094|  34.6k|    break;
 1095|       |
 1096|  43.3k|  case NT_QTFR:
  ------------------
  |  |   43|  43.3k|#define NT_QTFR        5
  ------------------
  |  Branch (1096:3): [True: 43.3k, False: 344k]
  ------------------
 1097|  43.3k|    if (NQTFR(node)->target)
  ------------------
  |  |   80|  43.3k|#define NQTFR(node)        (&((node)->u.qtfr))
  ------------------
  |  Branch (1097:9): [True: 43.3k, False: 0]
  ------------------
 1098|  43.3k|      onig_node_free(NQTFR(node)->target);
  ------------------
  |  |   80|  43.3k|#define NQTFR(node)        (&((node)->u.qtfr))
  ------------------
 1099|  43.3k|    break;
 1100|       |
 1101|  27.5k|  case NT_ENCLOSE:
  ------------------
  |  |   44|  27.5k|#define NT_ENCLOSE     6
  ------------------
  |  Branch (1101:3): [True: 27.5k, False: 360k]
  ------------------
 1102|  27.5k|    if (NENCLOSE(node)->target)
  ------------------
  |  |   81|  27.5k|#define NENCLOSE(node)     (&((node)->u.enclose))
  ------------------
  |  Branch (1102:9): [True: 27.5k, False: 0]
  ------------------
 1103|  27.5k|      onig_node_free(NENCLOSE(node)->target);
  ------------------
  |  |   81|  27.5k|#define NENCLOSE(node)     (&((node)->u.enclose))
  ------------------
 1104|  27.5k|    break;
 1105|       |
 1106|      0|  case NT_BREF:
  ------------------
  |  |   42|      0|#define NT_BREF        4
  ------------------
  |  Branch (1106:3): [True: 0, False: 388k]
  ------------------
 1107|      0|    if (IS_NOT_NULL(NBREF(node)->back_dynamic))
  ------------------
  |  |  312|      0|#define IS_NOT_NULL(p)                (((void*)(p)) != (void*)0)
  |  |  ------------------
  |  |  |  Branch (312:39): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 1108|      0|      xfree(NBREF(node)->back_dynamic);
  ------------------
  |  |  145|      0|# define xfree       free
  ------------------
                    xfree(NBREF(node)->back_dynamic);
  ------------------
  |  |   79|      0|#define NBREF(node)        (&((node)->u.bref))
  ------------------
 1109|      0|    break;
 1110|       |
 1111|  41.9k|  case NT_ANCHOR:
  ------------------
  |  |   45|  41.9k|#define NT_ANCHOR      7
  ------------------
  |  Branch (1111:3): [True: 41.9k, False: 346k]
  ------------------
 1112|  41.9k|    if (NANCHOR(node)->target)
  ------------------
  |  |   82|  41.9k|#define NANCHOR(node)      (&((node)->u.anchor))
  ------------------
  |  Branch (1112:9): [True: 0, False: 41.9k]
  ------------------
 1113|      0|      onig_node_free(NANCHOR(node)->target);
  ------------------
  |  |   82|      0|#define NANCHOR(node)      (&((node)->u.anchor))
  ------------------
 1114|  41.9k|    break;
 1115|   388k|  }
 1116|       |
 1117|   224k|  xfree(node);
  ------------------
  |  |  145|   224k|# define xfree       free
  ------------------
 1118|   224k|}
onig_node_new_alt:
 1211|  20.4k|{
 1212|  20.4k|  Node* node = node_new();
 1213|  20.4k|  CHECK_NULL_RETURN(node);
  ------------------
  |  |  313|  20.4k|#define CHECK_NULL_RETURN(p)          if (IS_NULL(p)) return NULL
  |  |  ------------------
  |  |  |  |  311|  20.4k|#define IS_NULL(p)                    (((void*)(p)) == (void*)0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (311:39): [True: 0, False: 20.4k]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1214|       |
 1215|  20.4k|  SET_NTYPE(node, NT_ALT);
  ------------------
  |  |   71|  20.4k|    do { \
  |  |   72|  20.4k|	int value = ntype; \
  |  |   73|  20.4k|	memcpy(&((node)->u.base.type), &value, sizeof(int)); \
  |  |   74|  20.4k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (74:14): [Folded - Ignored]
  |  |  ------------------
  ------------------
 1216|  20.4k|  NCAR(node)  = left;
  ------------------
  |  |   86|  20.4k|#define NCAR(node)         (NCONS(node)->car)
  |  |  ------------------
  |  |  |  |   83|  20.4k|#define NCONS(node)        (&((node)->u.cons))
  |  |  ------------------
  ------------------
 1217|  20.4k|  NCDR(node) = right;
  ------------------
  |  |   87|  20.4k|#define NCDR(node)         (NCONS(node)->cdr)
  |  |  ------------------
  |  |  |  |   83|  20.4k|#define NCONS(node)        (&((node)->u.cons))
  |  |  ------------------
  ------------------
 1218|  20.4k|  return node;
 1219|  20.4k|}
onig_node_new_anchor:
 1223|  41.9k|{
 1224|  41.9k|  Node* node = node_new();
 1225|  41.9k|  CHECK_NULL_RETURN(node);
  ------------------
  |  |  313|  41.9k|#define CHECK_NULL_RETURN(p)          if (IS_NULL(p)) return NULL
  |  |  ------------------
  |  |  |  |  311|  41.9k|#define IS_NULL(p)                    (((void*)(p)) == (void*)0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (311:39): [True: 0, False: 41.9k]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1226|       |
 1227|  41.9k|  SET_NTYPE(node, NT_ANCHOR);
  ------------------
  |  |   71|  41.9k|    do { \
  |  |   72|  41.9k|	int value = ntype; \
  |  |   73|  41.9k|	memcpy(&((node)->u.base.type), &value, sizeof(int)); \
  |  |   74|  41.9k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (74:14): [Folded - Ignored]
  |  |  ------------------
  ------------------
 1228|  41.9k|  NANCHOR(node)->type     = type;
  ------------------
  |  |   82|  41.9k|#define NANCHOR(node)      (&((node)->u.anchor))
  ------------------
 1229|  41.9k|  NANCHOR(node)->target   = NULL;
  ------------------
  |  |   82|  41.9k|#define NANCHOR(node)      (&((node)->u.anchor))
  ------------------
 1230|  41.9k|  NANCHOR(node)->char_len = -1;
  ------------------
  |  |   82|  41.9k|#define NANCHOR(node)      (&((node)->u.anchor))
  ------------------
 1231|  41.9k|  NANCHOR(node)->ascii_range = 0;
  ------------------
  |  |   82|  41.9k|#define NANCHOR(node)      (&((node)->u.anchor))
  ------------------
 1232|  41.9k|  return node;
 1233|  41.9k|}
onig_node_new_enclose:
 1348|  18.7k|{
 1349|  18.7k|  return node_new_enclose(type);
 1350|  18.7k|}
onig_node_str_cat:
 1377|   536k|{
 1378|   536k|  ptrdiff_t addlen = end - s;
 1379|       |
 1380|   536k|  if (addlen > 0) {
  ------------------
  |  Branch (1380:7): [True: 535k, False: 1.45k]
  ------------------
 1381|   535k|    ptrdiff_t len  = NSTR(node)->end - NSTR(node)->s;
  ------------------
  |  |   76|   535k|#define NSTR(node)         (&((node)->u.str))
  ------------------
                  ptrdiff_t len  = NSTR(node)->end - NSTR(node)->s;
  ------------------
  |  |   76|   535k|#define NSTR(node)         (&((node)->u.str))
  ------------------
 1382|       |
 1383|   535k|    if (NSTR(node)->capa > 0 || (len + addlen > NODE_STR_BUF_SIZE - 1)) {
  ------------------
  |  |   76|   535k|#define NSTR(node)         (&((node)->u.str))
  ------------------
                  if (NSTR(node)->capa > 0 || (len + addlen > NODE_STR_BUF_SIZE - 1)) {
  ------------------
  |  |  101|   453k|#define NODE_STR_BUF_SIZE       24  /* sizeof(CClassNode) - sizeof(int)*4 */
  ------------------
  |  Branch (1383:9): [True: 81.4k, False: 453k]
  |  Branch (1383:33): [True: 5.80k, False: 447k]
  ------------------
 1384|  87.2k|      UChar* p;
  ------------------
  |  |   76|  87.2k|# define UChar OnigUChar
  ------------------
 1385|  87.2k|      ptrdiff_t capa = len + addlen + NODE_STR_MARGIN;
  ------------------
  |  |  100|  87.2k|#define NODE_STR_MARGIN         16
  ------------------
 1386|       |
 1387|  87.2k|      if (capa <= NSTR(node)->capa) {
  ------------------
  |  |   76|  87.2k|#define NSTR(node)         (&((node)->u.str))
  ------------------
  |  Branch (1387:11): [True: 0, False: 87.2k]
  ------------------
 1388|      0|	onig_strcpy(NSTR(node)->s + len, s, end);
  ------------------
  |  |   76|      0|#define NSTR(node)         (&((node)->u.str))
  ------------------
 1389|      0|      }
 1390|  87.2k|      else {
 1391|  87.2k|	if (NSTR(node)->s == NSTR(node)->buf)
  ------------------
  |  |   76|  87.2k|#define NSTR(node)         (&((node)->u.str))
  ------------------
              	if (NSTR(node)->s == NSTR(node)->buf)
  ------------------
  |  |   76|  87.2k|#define NSTR(node)         (&((node)->u.str))
  ------------------
  |  Branch (1391:6): [True: 5.80k, False: 81.4k]
  ------------------
 1392|  5.80k|	  p = strcat_capa_from_static(NSTR(node)->s, NSTR(node)->end,
  ------------------
  |  |   76|  5.80k|#define NSTR(node)         (&((node)->u.str))
  ------------------
              	  p = strcat_capa_from_static(NSTR(node)->s, NSTR(node)->end,
  ------------------
  |  |   76|  5.80k|#define NSTR(node)         (&((node)->u.str))
  ------------------
 1393|  5.80k|				      s, end, capa);
 1394|  81.4k|	else
 1395|  81.4k|	  p = strcat_capa(NSTR(node)->s, NSTR(node)->end, s, end, capa);
  ------------------
  |  |   76|  81.4k|#define NSTR(node)         (&((node)->u.str))
  ------------------
              	  p = strcat_capa(NSTR(node)->s, NSTR(node)->end, s, end, capa);
  ------------------
  |  |   76|  81.4k|#define NSTR(node)         (&((node)->u.str))
  ------------------
 1396|       |
 1397|  87.2k|	CHECK_NULL_RETURN_MEMERR(p);
  ------------------
  |  |  314|  87.2k|#define CHECK_NULL_RETURN_MEMERR(p)   if (IS_NULL(p)) return ONIGERR_MEMORY
  |  |  ------------------
  |  |  |  |  311|  87.2k|#define IS_NULL(p)                    (((void*)(p)) == (void*)0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (311:39): [True: 0, False: 87.2k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |               #define CHECK_NULL_RETURN_MEMERR(p)   if (IS_NULL(p)) return ONIGERR_MEMORY
  |  |  ------------------
  |  |  |  |  632|      0|#define ONIGERR_MEMORY                                         -5
  |  |  ------------------
  ------------------
 1398|  87.2k|	NSTR(node)->s    = p;
  ------------------
  |  |   76|  87.2k|#define NSTR(node)         (&((node)->u.str))
  ------------------
 1399|  87.2k|	NSTR(node)->capa = (int )capa;
  ------------------
  |  |   76|  87.2k|#define NSTR(node)         (&((node)->u.str))
  ------------------
 1400|  87.2k|      }
 1401|  87.2k|    }
 1402|   447k|    else {
 1403|   447k|      onig_strcpy(NSTR(node)->s + len, s, end);
  ------------------
  |  |   76|   447k|#define NSTR(node)         (&((node)->u.str))
  ------------------
 1404|   447k|    }
 1405|   535k|    NSTR(node)->end = NSTR(node)->s + len + addlen;
  ------------------
  |  |   76|   535k|#define NSTR(node)         (&((node)->u.str))
  ------------------
                  NSTR(node)->end = NSTR(node)->s + len + addlen;
  ------------------
  |  |   76|   535k|#define NSTR(node)         (&((node)->u.str))
  ------------------
 1406|   535k|  }
 1407|       |
 1408|   536k|  return 0;
 1409|   536k|}
onig_parse_make_tree:
 6633|  33.2k|{
 6634|  33.2k|  int r;
 6635|  33.2k|  UChar* p;
  ------------------
  |  |   76|  33.2k|# define UChar OnigUChar
  ------------------
 6636|       |
 6637|  33.2k|#ifdef USE_NAMED_GROUP
 6638|  33.2k|  names_clear(reg);
 6639|  33.2k|#endif
 6640|       |
 6641|  33.2k|  scan_env_clear(env);
 6642|  33.2k|  env->option         = reg->options;
 6643|  33.2k|  env->case_fold_flag = reg->case_fold_flag;
 6644|  33.2k|  env->enc            = reg->enc;
 6645|  33.2k|  env->syntax         = reg->syntax;
 6646|  33.2k|  env->pattern        = (UChar* )pattern;
 6647|  33.2k|  env->pattern_end    = (UChar* )end;
 6648|  33.2k|  env->reg            = reg;
 6649|       |
 6650|  33.2k|  *root = NULL;
 6651|  33.2k|  p = (UChar* )pattern;
 6652|  33.2k|  r = parse_regexp(root, &p, (UChar* )end, env);
 6653|  33.2k|  reg->num_mem = env->num_mem;
 6654|  33.2k|  return r;
 6655|  33.2k|}
regparse.c:str_end_hash:
  392|  10.3k|{
  393|  10.3k|  const st_str_end_key *x = (const st_str_end_key *)xp;
  394|  10.3k|  const UChar *p;
  395|  10.3k|  st_index_t val = 0;
  396|       |
  397|  10.3k|  p = x->s;
  398|  48.7k|  while (p < x->end) {
  ------------------
  |  Branch (398:10): [True: 38.4k, False: 10.3k]
  ------------------
  399|  38.4k|    val = val * 997 + (int )*p++;
  400|  38.4k|  }
  401|       |
  402|  10.3k|  return val + (val >> 5);
  403|  10.3k|}
regparse.c:names_clear:
  515|  66.5k|{
  516|  66.5k|  NameTable* t = (NameTable* )reg->name_table;
  517|       |
  518|  66.5k|  if (IS_NOT_NULL(t)) {
  ------------------
  |  |  312|  66.5k|#define IS_NOT_NULL(p)                (((void*)(p)) != (void*)0)
  |  |  ------------------
  |  |  |  Branch (312:39): [True: 1.47k, False: 65.0k]
  |  |  ------------------
  ------------------
  519|  1.47k|    onig_st_foreach(t, i_free_name_entry, 0);
  520|  1.47k|  }
  521|  66.5k|  return 0;
  522|  66.5k|}
regparse.c:i_free_name_entry:
  505|  5.91k|{
  506|  5.91k|  xfree(e->name);
  ------------------
  |  |  145|  5.91k|# define xfree       free
  ------------------
  507|  5.91k|  if (IS_NOT_NULL(e->back_refs)) xfree(e->back_refs);
  ------------------
  |  |  312|  5.91k|#define IS_NOT_NULL(p)                (((void*)(p)) != (void*)0)
  |  |  ------------------
  |  |  |  Branch (312:39): [True: 0, False: 5.91k]
  |  |  ------------------
  ------------------
                if (IS_NOT_NULL(e->back_refs)) xfree(e->back_refs);
  ------------------
  |  |  145|      0|# define xfree       free
  ------------------
  508|  5.91k|  xfree(key);
  ------------------
  |  |  145|  5.91k|# define xfree       free
  ------------------
  509|  5.91k|  xfree(e);
  ------------------
  |  |  145|  5.91k|# define xfree       free
  ------------------
  510|  5.91k|  return ST_DELETE;
  511|  5.91k|}
regparse.c:name_find:
  541|  5.91k|{
  542|  5.91k|  NameEntry* e;
  543|  5.91k|  NameTable* t = (NameTable* )reg->name_table;
  544|       |
  545|  5.91k|  e = (NameEntry* )NULL;
  546|  5.91k|  if (IS_NOT_NULL(t)) {
  ------------------
  |  |  312|  5.91k|#define IS_NOT_NULL(p)                (((void*)(p)) != (void*)0)
  |  |  ------------------
  |  |  |  Branch (312:39): [True: 4.43k, False: 1.47k]
  |  |  ------------------
  ------------------
  547|  4.43k|    onig_st_lookup_strend(t, name, name_end, (HashDataType* )((void* )(&e)));
  548|  4.43k|  }
  549|  5.91k|  return e;
  550|  5.91k|}
regparse.c:bbuf_free:
  135|  37.2k|{
  136|  37.2k|  if (IS_NOT_NULL(bbuf)) {
  ------------------
  |  |  312|  37.2k|#define IS_NOT_NULL(p)                (((void*)(p)) != (void*)0)
  |  |  ------------------
  |  |  |  Branch (312:39): [True: 18.6k, False: 18.6k]
  |  |  ------------------
  ------------------
  137|  18.6k|    if (IS_NOT_NULL(bbuf->p)) xfree(bbuf->p);
  ------------------
  |  |  312|  18.6k|#define IS_NOT_NULL(p)                (((void*)(p)) != (void*)0)
  |  |  ------------------
  |  |  |  Branch (312:39): [True: 18.6k, False: 0]
  |  |  ------------------
  ------------------
                  if (IS_NOT_NULL(bbuf->p)) xfree(bbuf->p);
  ------------------
  |  |  145|  18.6k|# define xfree       free
  ------------------
  138|  18.6k|    xfree(bbuf);
  ------------------
  |  |  145|  18.6k|# define xfree       free
  ------------------
  139|  18.6k|  }
  140|  37.2k|}
regparse.c:node_new_list:
 1175|   143k|{
 1176|   143k|  Node* node = node_new();
 1177|   143k|  CHECK_NULL_RETURN(node);
  ------------------
  |  |  313|   143k|#define CHECK_NULL_RETURN(p)          if (IS_NULL(p)) return NULL
  |  |  ------------------
  |  |  |  |  311|   143k|#define IS_NULL(p)                    (((void*)(p)) == (void*)0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (311:39): [True: 0, False: 143k]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1178|       |
 1179|   143k|  SET_NTYPE(node, NT_LIST);
  ------------------
  |  |   71|   143k|    do { \
  |  |   72|   143k|	int value = ntype; \
  |  |   73|   143k|	memcpy(&((node)->u.base.type), &value, sizeof(int)); \
  |  |   74|   143k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (74:14): [Folded - Ignored]
  |  |  ------------------
  ------------------
 1180|   143k|  NCAR(node)  = left;
  ------------------
  |  |   86|   143k|#define NCAR(node)         (NCONS(node)->car)
  |  |  ------------------
  |  |  |  |   83|   143k|#define NCONS(node)        (&((node)->u.cons))
  |  |  ------------------
  ------------------
 1181|   143k|  NCDR(node) = right;
  ------------------
  |  |   87|   143k|#define NCDR(node)         (NCONS(node)->cdr)
  |  |  ------------------
  |  |  |  |   83|   143k|#define NCONS(node)        (&((node)->u.cons))
  |  |  ------------------
  ------------------
 1182|   143k|  return node;
 1183|   143k|}
regparse.c:node_new:
 1122|   388k|{
 1123|   388k|  Node* node;
 1124|       |
 1125|   388k|  node = (Node* )xmalloc(sizeof(Node));
  ------------------
  |  |  142|   388k|# define xmalloc     malloc
  ------------------
 1126|       |  /* xmemset(node, 0, sizeof(Node)); */
 1127|   388k|  return node;
 1128|   388k|}
regparse.c:node_new_enclose:
 1331|  27.5k|{
 1332|  27.5k|  Node* node = node_new();
 1333|  27.5k|  CHECK_NULL_RETURN(node);
  ------------------
  |  |  313|  27.5k|#define CHECK_NULL_RETURN(p)          if (IS_NULL(p)) return NULL
  |  |  ------------------
  |  |  |  |  311|  27.5k|#define IS_NULL(p)                    (((void*)(p)) == (void*)0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (311:39): [True: 0, False: 27.5k]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1334|       |
 1335|  27.5k|  SET_NTYPE(node, NT_ENCLOSE);
  ------------------
  |  |   71|  27.5k|    do { \
  |  |   72|  27.5k|	int value = ntype; \
  |  |   73|  27.5k|	memcpy(&((node)->u.base.type), &value, sizeof(int)); \
  |  |   74|  27.5k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (74:14): [Folded - Ignored]
  |  |  ------------------
  ------------------
 1336|  27.5k|  NENCLOSE(node)->type      = type;
  ------------------
  |  |   81|  27.5k|#define NENCLOSE(node)     (&((node)->u.enclose))
  ------------------
 1337|  27.5k|  NENCLOSE(node)->state     =  0;
  ------------------
  |  |   81|  27.5k|#define NENCLOSE(node)     (&((node)->u.enclose))
  ------------------
 1338|  27.5k|  NENCLOSE(node)->regnum    =  0;
  ------------------
  |  |   81|  27.5k|#define NENCLOSE(node)     (&((node)->u.enclose))
  ------------------
 1339|  27.5k|  NENCLOSE(node)->option    =  0;
  ------------------
  |  |   81|  27.5k|#define NENCLOSE(node)     (&((node)->u.enclose))
  ------------------
 1340|  27.5k|  NENCLOSE(node)->target    = NULL;
  ------------------
  |  |   81|  27.5k|#define NENCLOSE(node)     (&((node)->u.enclose))
  ------------------
 1341|  27.5k|  NENCLOSE(node)->call_addr = -1;
  ------------------
  |  |   81|  27.5k|#define NENCLOSE(node)     (&((node)->u.enclose))
  ------------------
 1342|  27.5k|  NENCLOSE(node)->opt_count =  0;
  ------------------
  |  |   81|  27.5k|#define NENCLOSE(node)     (&((node)->u.enclose))
  ------------------
 1343|  27.5k|  return node;
 1344|  27.5k|}
regparse.c:strcat_capa_from_static:
  342|  5.80k|{
  343|  5.80k|  UChar* r;
  ------------------
  |  |   76|  5.80k|# define UChar OnigUChar
  ------------------
  344|       |
  345|  5.80k|  r = (UChar* )xmalloc(capa + 1);
  ------------------
  |  |  142|  5.80k|# define xmalloc     malloc
  ------------------
  346|  5.80k|  CHECK_NULL_RETURN(r);
  ------------------
  |  |  313|  5.80k|#define CHECK_NULL_RETURN(p)          if (IS_NULL(p)) return NULL
  |  |  ------------------
  |  |  |  |  311|  5.80k|#define IS_NULL(p)                    (((void*)(p)) == (void*)0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (311:39): [True: 0, False: 5.80k]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  347|  5.80k|  onig_strcpy(r, dest, dest_end);
  348|  5.80k|  onig_strcpy(r + (dest_end - dest), src, src_end);
  349|  5.80k|  return r;
  350|  5.80k|}
regparse.c:strcat_capa:
  325|  81.4k|{
  326|  81.4k|  UChar* r;
  ------------------
  |  |   76|  81.4k|# define UChar OnigUChar
  ------------------
  327|       |
  328|  81.4k|  if (dest)
  ------------------
  |  Branch (328:7): [True: 81.4k, False: 0]
  ------------------
  329|  81.4k|    r = (UChar* )xrealloc(dest, capa + 1);
  ------------------
  |  |  143|  81.4k|# define xrealloc    realloc
  ------------------
  330|      0|  else
  331|      0|    r = (UChar* )xmalloc(capa + 1);
  ------------------
  |  |  142|      0|# define xmalloc     malloc
  ------------------
  332|       |
  333|  81.4k|  CHECK_NULL_RETURN(r);
  ------------------
  |  |  313|  81.4k|#define CHECK_NULL_RETURN(p)          if (IS_NULL(p)) return NULL
  |  |  ------------------
  |  |  |  |  311|  81.4k|#define IS_NULL(p)                    (((void*)(p)) == (void*)0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (311:39): [True: 0, False: 81.4k]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  334|  81.4k|  onig_strcpy(r + (dest_end - dest), src, src_end);
  335|  81.4k|  return r;
  336|  81.4k|}
regparse.c:node_new_str:
 1464|  62.4k|{
 1465|  62.4k|  Node* node = node_new();
 1466|  62.4k|  CHECK_NULL_RETURN(node);
  ------------------
  |  |  313|  62.4k|#define CHECK_NULL_RETURN(p)          if (IS_NULL(p)) return NULL
  |  |  ------------------
  |  |  |  |  311|  62.4k|#define IS_NULL(p)                    (((void*)(p)) == (void*)0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (311:39): [True: 0, False: 62.4k]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1467|       |
 1468|  62.4k|  SET_NTYPE(node, NT_STR);
  ------------------
  |  |   71|  62.4k|    do { \
  |  |   72|  62.4k|	int value = ntype; \
  |  |   73|  62.4k|	memcpy(&((node)->u.base.type), &value, sizeof(int)); \
  |  |   74|  62.4k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (74:14): [Folded - Ignored]
  |  |  ------------------
  ------------------
 1469|  62.4k|  NSTR(node)->capa = 0;
  ------------------
  |  |   76|  62.4k|#define NSTR(node)         (&((node)->u.str))
  ------------------
 1470|  62.4k|  NSTR(node)->flag = 0;
  ------------------
  |  |   76|  62.4k|#define NSTR(node)         (&((node)->u.str))
  ------------------
 1471|  62.4k|  NSTR(node)->s    = NSTR(node)->buf;
  ------------------
  |  |   76|  62.4k|#define NSTR(node)         (&((node)->u.str))
  ------------------
                NSTR(node)->s    = NSTR(node)->buf;
  ------------------
  |  |   76|  62.4k|#define NSTR(node)         (&((node)->u.str))
  ------------------
 1472|  62.4k|  NSTR(node)->end  = NSTR(node)->buf;
  ------------------
  |  |   76|  62.4k|#define NSTR(node)         (&((node)->u.str))
  ------------------
                NSTR(node)->end  = NSTR(node)->buf;
  ------------------
  |  |   76|  62.4k|#define NSTR(node)         (&((node)->u.str))
  ------------------
 1473|  62.4k|  if (onig_node_str_cat(node, s, end)) {
  ------------------
  |  Branch (1473:7): [True: 0, False: 62.4k]
  ------------------
 1474|      0|    onig_node_free(node);
 1475|      0|    return NULL;
 1476|      0|  }
 1477|  62.4k|  return node;
 1478|  62.4k|}
regparse.c:scan_env_clear:
  984|  33.2k|{
  985|  33.2k|  int i;
  986|       |
  987|  33.2k|  BIT_STATUS_CLEAR(env->capture_history);
  ------------------
  |  |  368|  33.2k|#define BIT_STATUS_CLEAR(stats)      (stats) = 0
  ------------------
  988|  33.2k|  BIT_STATUS_CLEAR(env->bt_mem_start);
  ------------------
  |  |  368|  33.2k|#define BIT_STATUS_CLEAR(stats)      (stats) = 0
  ------------------
  989|  33.2k|  BIT_STATUS_CLEAR(env->bt_mem_end);
  ------------------
  |  |  368|  33.2k|#define BIT_STATUS_CLEAR(stats)      (stats) = 0
  ------------------
  990|  33.2k|  BIT_STATUS_CLEAR(env->backrefed_mem);
  ------------------
  |  |  368|  33.2k|#define BIT_STATUS_CLEAR(stats)      (stats) = 0
  ------------------
  991|  33.2k|  env->error      = (UChar* )NULL;
  992|  33.2k|  env->error_end  = (UChar* )NULL;
  993|  33.2k|  env->num_call   = 0;
  994|  33.2k|  env->num_mem    = 0;
  995|  33.2k|#ifdef USE_NAMED_GROUP
  996|  33.2k|  env->num_named  = 0;
  997|  33.2k|#endif
  998|  33.2k|  env->mem_alloc         = 0;
  999|  33.2k|  env->mem_nodes_dynamic = (Node** )NULL;
 1000|       |
 1001|   299k|  for (i = 0; i < SCANENV_MEMNODES_SIZE; i++)
  ------------------
  |  |  285|   299k|#define SCANENV_MEMNODES_SIZE               8
  ------------------
  |  Branch (1001:15): [True: 266k, False: 33.2k]
  ------------------
 1002|   266k|    env->mem_nodes_static[i] = NULL_NODE;
  ------------------
  |  |  283|   266k|#define NULL_NODE  ((Node* )0)
  ------------------
 1003|       |
 1004|       |#ifdef USE_COMBINATION_EXPLOSION_CHECK
 1005|       |  env->num_comb_exp_check  = 0;
 1006|       |  env->comb_exp_max_regnum = 0;
 1007|       |  env->curr_max_regnum     = 0;
 1008|       |  env->has_recursion       = 0;
 1009|       |#endif
 1010|  33.2k|  env->parse_depth         = 0;
 1011|  33.2k|  env->warnings_flag       = 0;
 1012|  33.2k|}
regparse.c:parse_regexp:
 6601|  33.2k|{
 6602|  33.2k|  int r;
 6603|  33.2k|  OnigToken tok;
 6604|       |
 6605|  33.2k|  r = fetch_token(&tok, src, end, env);
 6606|  33.2k|  if (r < 0) return r;
  ------------------
  |  Branch (6606:7): [True: 0, False: 33.2k]
  ------------------
 6607|  33.2k|  r = parse_subexp(top, &tok, TK_EOT, src, end, env);
 6608|  33.2k|  if (r < 0) return r;
  ------------------
  |  Branch (6608:7): [True: 0, False: 33.2k]
  ------------------
 6609|       |
 6610|  33.2k|#ifdef USE_SUBEXP_CALL
 6611|  33.2k|  if (env->num_call > 0) {
  ------------------
  |  Branch (6611:7): [True: 0, False: 33.2k]
  ------------------
 6612|       |    /* Capture the pattern itself. It is used for (?R), (?0) and \g<0>. */
 6613|      0|    const int num = 0;
 6614|      0|    Node* np;
 6615|      0|    np = node_new_enclose_memory(env->option, 0);
 6616|      0|    CHECK_NULL_RETURN_MEMERR(np);
  ------------------
  |  |  314|      0|#define CHECK_NULL_RETURN_MEMERR(p)   if (IS_NULL(p)) return ONIGERR_MEMORY
  |  |  ------------------
  |  |  |  |  311|      0|#define IS_NULL(p)                    (((void*)(p)) == (void*)0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (311:39): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |               #define CHECK_NULL_RETURN_MEMERR(p)   if (IS_NULL(p)) return ONIGERR_MEMORY
  |  |  ------------------
  |  |  |  |  632|      0|#define ONIGERR_MEMORY                                         -5
  |  |  ------------------
  ------------------
 6617|      0|    NENCLOSE(np)->regnum = num;
  ------------------
  |  |   81|      0|#define NENCLOSE(node)     (&((node)->u.enclose))
  ------------------
 6618|      0|    NENCLOSE(np)->target = *top;
  ------------------
  |  |   81|      0|#define NENCLOSE(node)     (&((node)->u.enclose))
  ------------------
 6619|      0|    r = scan_env_set_mem_node(env, num, np);
 6620|      0|    if (r != 0) {
  ------------------
  |  Branch (6620:9): [True: 0, False: 0]
  ------------------
 6621|      0|	onig_node_free(np);
 6622|      0|	return r;
 6623|      0|    }
 6624|      0|    *top = np;
 6625|      0|  }
 6626|  33.2k|#endif
 6627|  33.2k|  return 0;
 6628|  33.2k|}
regparse.c:fetch_token:
 3306|   749k|{
 3307|   749k|  int r, num;
 3308|   749k|  OnigCodePoint c;
 3309|   749k|  OnigEncoding enc = env->enc;
 3310|   749k|  const OnigSyntaxType* syn = env->syntax;
 3311|   749k|  UChar* prev;
  ------------------
  |  |   76|   749k|# define UChar OnigUChar
  ------------------
 3312|   749k|  UChar* p = *src;
  ------------------
  |  |   76|   749k|# define UChar OnigUChar
  ------------------
 3313|   749k|  PFETCH_READY;
  ------------------
  |  |  295|   749k|# define PFETCH_READY  UChar* pfetch_prev = NULL; (void)pfetch_prev
  |  |  ------------------
  |  |  |  |   76|   749k|# define UChar OnigUChar
  |  |  ------------------
  ------------------
 3314|       |
 3315|   749k| start:
 3316|   749k|  if (PEND) {
  ------------------
  |  |  299|   749k|#define PEND         (p < end ?  0 : 1)
  |  |  ------------------
  |  |  |  Branch (299:22): [True: 33.2k, False: 716k]
  |  |  |  Branch (299:23): [True: 716k, False: 33.2k]
  |  |  ------------------
  ------------------
 3317|  33.2k|    tok->type = TK_EOT;
 3318|  33.2k|    return tok->type;
 3319|  33.2k|  }
 3320|       |
 3321|   716k|  tok->type  = TK_STRING;
 3322|   716k|  tok->base  = 0;
 3323|   716k|  tok->backp = p;
 3324|       |
 3325|   716k|  PFETCH(c);
  ------------------
  |  |  305|   716k|#define PFETCH(c)  do { \
  |  |  306|   716k|  c = ((enc->max_enc_len == 1) ? *p : ONIGENC_MBC_TO_CODE(enc, p, end)); \
  |  |  ------------------
  |  |  |  |  369|   716k|#define ONIGENC_MBC_TO_CODE(enc,p,end)         (enc)->mbc_to_code((p),(end),enc)
  |  |  ------------------
  |  |  |  Branch (306:8): [True: 0, False: 716k]
  |  |  ------------------
  |  |  307|   716k|  pfetch_prev = p; \
  |  |  308|   716k|  p += enclen(enc, p, end); \
  |  |  ------------------
  |  |  |  |   93|   716k|#define enclen(enc,p,e) ((enc->max_enc_len == enc->min_enc_len) ? enc->min_enc_len : ONIGENC_MBC_ENC_LEN(enc,p,e))
  |  |  |  |  ------------------
  |  |  |  |  |  |  364|   716k|#define ONIGENC_MBC_ENC_LEN(enc,p,e)          onigenc_mbclen(p,e,enc)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (93:26): [True: 0, False: 716k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  309|   716k|} while (0)
  |  |  ------------------
  |  |  |  Branch (309:10): [Folded - Ignored]
  |  |  ------------------
  ------------------
 3326|   716k|	if (p > end) return ONIGERR_PREMATURE_END_OF_CHAR_CLASS;
  ------------------
  |  |  648|      0|#define ONIGERR_PREMATURE_END_OF_CHAR_CLASS                  -103
  ------------------
  |  Branch (3326:6): [True: 0, False: 716k]
  ------------------
 3327|   716k|  if (IS_MC_ESC_CODE(c, syn)) {
  ------------------
  |  |  769|   716k|  ((code) == MC_ESC(syn) && \
  |  |  ------------------
  |  |  |  |  761|  1.43M|#define MC_ESC(syn)               (syn)->meta_char_table.esc
  |  |  ------------------
  |  |  |  Branch (769:4): [True: 25.8k, False: 690k]
  |  |  ------------------
  |  |  770|   716k|   !IS_SYNTAX_OP2((syn), ONIG_SYN_OP2_INEFFECTIVE_ESCAPE))
  |  |  ------------------
  |  |  |  |  331|  25.8k|#define IS_SYNTAX_OP2(syn, opm)   (((syn)->op2 & (opm)) != 0)
  |  |  ------------------
  |  |  |  Branch (770:4): [True: 25.8k, False: 0]
  |  |  ------------------
  ------------------
 3328|  25.8k|    if (PEND) return ONIGERR_END_PATTERN_AT_ESCAPE;
  ------------------
  |  |  299|  25.8k|#define PEND         (p < end ?  0 : 1)
  |  |  ------------------
  |  |  |  Branch (299:22): [True: 0, False: 25.8k]
  |  |  |  Branch (299:23): [True: 25.8k, False: 0]
  |  |  ------------------
  ------------------
                  if (PEND) return ONIGERR_END_PATTERN_AT_ESCAPE;
  ------------------
  |  |  649|      0|#define ONIGERR_END_PATTERN_AT_ESCAPE                        -104
  ------------------
 3329|       |
 3330|  25.8k|    tok->backp = p;
 3331|  25.8k|    PFETCH(c);
  ------------------
  |  |  305|  25.8k|#define PFETCH(c)  do { \
  |  |  306|  25.8k|  c = ((enc->max_enc_len == 1) ? *p : ONIGENC_MBC_TO_CODE(enc, p, end)); \
  |  |  ------------------
  |  |  |  |  369|  25.8k|#define ONIGENC_MBC_TO_CODE(enc,p,end)         (enc)->mbc_to_code((p),(end),enc)
  |  |  ------------------
  |  |  |  Branch (306:8): [True: 0, False: 25.8k]
  |  |  ------------------
  |  |  307|  25.8k|  pfetch_prev = p; \
  |  |  308|  25.8k|  p += enclen(enc, p, end); \
  |  |  ------------------
  |  |  |  |   93|  25.8k|#define enclen(enc,p,e) ((enc->max_enc_len == enc->min_enc_len) ? enc->min_enc_len : ONIGENC_MBC_ENC_LEN(enc,p,e))
  |  |  |  |  ------------------
  |  |  |  |  |  |  364|  25.8k|#define ONIGENC_MBC_ENC_LEN(enc,p,e)          onigenc_mbclen(p,e,enc)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (93:26): [True: 0, False: 25.8k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  309|  25.8k|} while (0)
  |  |  ------------------
  |  |  |  Branch (309:10): [Folded - Ignored]
  |  |  ------------------
  ------------------
 3332|       |
 3333|  25.8k|    tok->u.c = c;
 3334|  25.8k|    tok->escaped = 1;
 3335|  25.8k|    switch (c) {
 3336|      0|    case '*':
  ------------------
  |  Branch (3336:5): [True: 0, False: 25.8k]
  ------------------
 3337|      0|      if (! IS_SYNTAX_OP(syn, ONIG_SYN_OP_ESC_ASTERISK_ZERO_INF)) break;
  ------------------
  |  |  330|      0|#define IS_SYNTAX_OP(syn, opm)    (((syn)->op  & (opm)) != 0)
  ------------------
  |  Branch (3337:11): [True: 0, False: 0]
  ------------------
 3338|      0|      tok->type = TK_OP_REPEAT;
 3339|      0|      tok->u.repeat.lower = 0;
 3340|      0|      tok->u.repeat.upper = REPEAT_INFINITE;
  ------------------
  |  |  421|      0|#define REPEAT_INFINITE         -1
  ------------------
 3341|      0|      goto greedy_check;
 3342|      0|      break;
 3343|       |
 3344|      0|    case '+':
  ------------------
  |  Branch (3344:5): [True: 0, False: 25.8k]
  ------------------
 3345|      0|      if (! IS_SYNTAX_OP(syn, ONIG_SYN_OP_ESC_PLUS_ONE_INF)) break;
  ------------------
  |  |  330|      0|#define IS_SYNTAX_OP(syn, opm)    (((syn)->op  & (opm)) != 0)
  ------------------
  |  Branch (3345:11): [True: 0, False: 0]
  ------------------
 3346|      0|      tok->type = TK_OP_REPEAT;
 3347|      0|      tok->u.repeat.lower = 1;
 3348|      0|      tok->u.repeat.upper = REPEAT_INFINITE;
  ------------------
  |  |  421|      0|#define REPEAT_INFINITE         -1
  ------------------
 3349|      0|      goto greedy_check;
 3350|      0|      break;
 3351|       |
 3352|      0|    case '?':
  ------------------
  |  Branch (3352:5): [True: 0, False: 25.8k]
  ------------------
 3353|      0|      if (! IS_SYNTAX_OP(syn, ONIG_SYN_OP_ESC_QMARK_ZERO_ONE)) break;
  ------------------
  |  |  330|      0|#define IS_SYNTAX_OP(syn, opm)    (((syn)->op  & (opm)) != 0)
  ------------------
  |  Branch (3353:11): [True: 0, False: 0]
  ------------------
 3354|      0|      tok->type = TK_OP_REPEAT;
 3355|      0|      tok->u.repeat.lower = 0;
 3356|      0|      tok->u.repeat.upper = 1;
 3357|  43.3k|    greedy_check:
 3358|  43.3k|      if (!PEND && PPEEK_IS('?') &&
  ------------------
  |  |  299|  86.6k|#define PEND         (p < end ?  0 : 1)
  |  |  ------------------
  |  |  |  Branch (299:23): [True: 38.9k, False: 4.33k]
  |  |  ------------------
  ------------------
                    if (!PEND && PPEEK_IS('?') &&
  ------------------
  |  |  320|  82.2k|#define PPEEK_IS(c)  (PPEEK == (OnigCodePoint )c)
  |  |  ------------------
  |  |  |  |  319|  38.9k|#define PPEEK        (p < end ? ONIGENC_MBC_TO_CODE(enc, p, end) : PEND_VALUE)
  |  |  |  |  ------------------
  |  |  |  |  |  |  369|  38.9k|#define ONIGENC_MBC_TO_CODE(enc,p,end)         (enc)->mbc_to_code((p),(end),enc)
  |  |  |  |  ------------------
  |  |  |  |               #define PPEEK        (p < end ? ONIGENC_MBC_TO_CODE(enc, p, end) : PEND_VALUE)
  |  |  |  |  ------------------
  |  |  |  |  |  |  291|      0|#define PEND_VALUE   0
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (319:23): [True: 38.9k, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  |  Branch (320:22): [True: 1.47k, False: 37.5k]
  |  |  ------------------
  ------------------
  |  Branch (3358:11): [True: 38.9k, False: 4.33k]
  ------------------
 3359|  43.3k|	  IS_SYNTAX_OP(syn, ONIG_SYN_OP_QMARK_NON_GREEDY)) {
  ------------------
  |  |  330|  1.47k|#define IS_SYNTAX_OP(syn, opm)    (((syn)->op  & (opm)) != 0)
  |  |  ------------------
  |  |  |  Branch (330:35): [True: 1.47k, False: 0]
  |  |  ------------------
  ------------------
 3360|  1.47k|	PFETCH(c);
  ------------------
  |  |  305|  1.47k|#define PFETCH(c)  do { \
  |  |  306|  1.47k|  c = ((enc->max_enc_len == 1) ? *p : ONIGENC_MBC_TO_CODE(enc, p, end)); \
  |  |  ------------------
  |  |  |  |  369|  1.47k|#define ONIGENC_MBC_TO_CODE(enc,p,end)         (enc)->mbc_to_code((p),(end),enc)
  |  |  ------------------
  |  |  |  Branch (306:8): [True: 0, False: 1.47k]
  |  |  ------------------
  |  |  307|  1.47k|  pfetch_prev = p; \
  |  |  308|  1.47k|  p += enclen(enc, p, end); \
  |  |  ------------------
  |  |  |  |   93|  1.47k|#define enclen(enc,p,e) ((enc->max_enc_len == enc->min_enc_len) ? enc->min_enc_len : ONIGENC_MBC_ENC_LEN(enc,p,e))
  |  |  |  |  ------------------
  |  |  |  |  |  |  364|  1.47k|#define ONIGENC_MBC_ENC_LEN(enc,p,e)          onigenc_mbclen(p,e,enc)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (93:26): [True: 0, False: 1.47k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  309|  1.47k|} while (0)
  |  |  ------------------
  |  |  |  Branch (309:10): [Folded - Ignored]
  |  |  ------------------
  ------------------
 3361|  1.47k|	tok->u.repeat.greedy     = 0;
 3362|  1.47k|	tok->u.repeat.possessive = 0;
 3363|  1.47k|      }
 3364|  41.8k|      else {
 3365|  41.8k|      possessive_check:
 3366|  41.8k|	if (!PEND && PPEEK_IS('+') &&
  ------------------
  |  |  299|  83.6k|#define PEND         (p < end ?  0 : 1)
  |  |  ------------------
  |  |  |  Branch (299:23): [True: 37.5k, False: 4.33k]
  |  |  ------------------
  ------------------
              	if (!PEND && PPEEK_IS('+') &&
  ------------------
  |  |  320|  79.3k|#define PPEEK_IS(c)  (PPEEK == (OnigCodePoint )c)
  |  |  ------------------
  |  |  |  |  319|  37.5k|#define PPEEK        (p < end ? ONIGENC_MBC_TO_CODE(enc, p, end) : PEND_VALUE)
  |  |  |  |  ------------------
  |  |  |  |  |  |  369|  37.5k|#define ONIGENC_MBC_TO_CODE(enc,p,end)         (enc)->mbc_to_code((p),(end),enc)
  |  |  |  |  ------------------
  |  |  |  |               #define PPEEK        (p < end ? ONIGENC_MBC_TO_CODE(enc, p, end) : PEND_VALUE)
  |  |  |  |  ------------------
  |  |  |  |  |  |  291|      0|#define PEND_VALUE   0
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (319:23): [True: 37.5k, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  |  Branch (320:22): [True: 0, False: 37.5k]
  |  |  ------------------
  ------------------
  |  Branch (3366:6): [True: 37.5k, False: 4.33k]
  ------------------
 3367|  41.8k|	    ((IS_SYNTAX_OP2(syn, ONIG_SYN_OP2_PLUS_POSSESSIVE_REPEAT) &&
  ------------------
  |  |  331|      0|#define IS_SYNTAX_OP2(syn, opm)   (((syn)->op2 & (opm)) != 0)
  |  |  ------------------
  |  |  |  Branch (331:35): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 3368|      0|	      tok->type != TK_INTERVAL)  ||
  ------------------
  |  Branch (3368:8): [True: 0, False: 0]
  ------------------
 3369|      0|	     (IS_SYNTAX_OP2(syn, ONIG_SYN_OP2_PLUS_POSSESSIVE_INTERVAL) &&
  ------------------
  |  |  331|      0|#define IS_SYNTAX_OP2(syn, opm)   (((syn)->op2 & (opm)) != 0)
  |  |  ------------------
  |  |  |  Branch (331:35): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 3370|      0|	      tok->type == TK_INTERVAL))) {
  ------------------
  |  Branch (3370:8): [True: 0, False: 0]
  ------------------
 3371|      0|	  PFETCH(c);
  ------------------
  |  |  305|      0|#define PFETCH(c)  do { \
  |  |  306|      0|  c = ((enc->max_enc_len == 1) ? *p : ONIGENC_MBC_TO_CODE(enc, p, end)); \
  |  |  ------------------
  |  |  |  |  369|      0|#define ONIGENC_MBC_TO_CODE(enc,p,end)         (enc)->mbc_to_code((p),(end),enc)
  |  |  ------------------
  |  |  |  Branch (306:8): [True: 0, False: 0]
  |  |  ------------------
  |  |  307|      0|  pfetch_prev = p; \
  |  |  308|      0|  p += enclen(enc, p, end); \
  |  |  ------------------
  |  |  |  |   93|      0|#define enclen(enc,p,e) ((enc->max_enc_len == enc->min_enc_len) ? enc->min_enc_len : ONIGENC_MBC_ENC_LEN(enc,p,e))
  |  |  |  |  ------------------
  |  |  |  |  |  |  364|      0|#define ONIGENC_MBC_ENC_LEN(enc,p,e)          onigenc_mbclen(p,e,enc)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (93:26): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  309|      0|} while (0)
  |  |  ------------------
  |  |  |  Branch (309:10): [Folded - Ignored]
  |  |  ------------------
  ------------------
 3372|      0|	  tok->u.repeat.greedy     = 1;
 3373|      0|	  tok->u.repeat.possessive = 1;
 3374|      0|	}
 3375|  41.8k|	else {
 3376|  41.8k|	  tok->u.repeat.greedy     = 1;
 3377|  41.8k|	  tok->u.repeat.possessive = 0;
 3378|  41.8k|	}
 3379|  41.8k|      }
 3380|  43.3k|      break;
 3381|       |
 3382|  43.3k|    case '{':
  ------------------
  |  Branch (3382:5): [True: 0, False: 25.8k]
  ------------------
 3383|      0|      if (! IS_SYNTAX_OP(syn, ONIG_SYN_OP_ESC_BRACE_INTERVAL)) break;
  ------------------
  |  |  330|      0|#define IS_SYNTAX_OP(syn, opm)    (((syn)->op  & (opm)) != 0)
  ------------------
  |  Branch (3383:11): [True: 0, False: 0]
  ------------------
 3384|      0|      r = fetch_range_quantifier(&p, end, tok, env);
 3385|      0|      if (r < 0) return r;  /* error */
  ------------------
  |  Branch (3385:11): [True: 0, False: 0]
  ------------------
 3386|      0|      if (r == 0) goto greedy_check;
  ------------------
  |  Branch (3386:11): [True: 0, False: 0]
  ------------------
 3387|      0|      else if (r == 2) { /* {n} */
  ------------------
  |  Branch (3387:16): [True: 0, False: 0]
  ------------------
 3388|      0|	if (IS_SYNTAX_BV(syn, ONIG_SYN_FIXED_INTERVAL_IS_GREEDY_ONLY))
  ------------------
  |  |  332|      0|#define IS_SYNTAX_BV(syn, bvm)    (((syn)->behavior & (bvm)) != 0)
  |  |  ------------------
  |  |  |  Branch (332:35): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 3389|      0|	  goto possessive_check;
 3390|       |
 3391|      0|	goto greedy_check;
 3392|      0|      }
 3393|       |      /* r == 1 : normal char */
 3394|      0|      break;
 3395|       |
 3396|      0|    case '|':
  ------------------
  |  Branch (3396:5): [True: 0, False: 25.8k]
  ------------------
 3397|      0|      if (! IS_SYNTAX_OP(syn, ONIG_SYN_OP_ESC_VBAR_ALT)) break;
  ------------------
  |  |  330|      0|#define IS_SYNTAX_OP(syn, opm)    (((syn)->op  & (opm)) != 0)
  ------------------
  |  Branch (3397:11): [True: 0, False: 0]
  ------------------
 3398|      0|      tok->type = TK_ALT;
 3399|      0|      break;
 3400|       |
 3401|  2.86k|    case '(':
  ------------------
  |  Branch (3401:5): [True: 2.86k, False: 22.9k]
  ------------------
 3402|  2.86k|      if (! IS_SYNTAX_OP(syn, ONIG_SYN_OP_ESC_LPAREN_SUBEXP)) break;
  ------------------
  |  |  330|  2.86k|#define IS_SYNTAX_OP(syn, opm)    (((syn)->op  & (opm)) != 0)
  ------------------
  |  Branch (3402:11): [True: 2.86k, False: 0]
  ------------------
 3403|      0|      tok->type = TK_SUBEXP_OPEN;
 3404|      0|      break;
 3405|       |
 3406|  1.42k|    case ')':
  ------------------
  |  Branch (3406:5): [True: 1.42k, False: 24.4k]
  ------------------
 3407|  1.42k|      if (! IS_SYNTAX_OP(syn, ONIG_SYN_OP_ESC_LPAREN_SUBEXP)) break;
  ------------------
  |  |  330|  1.42k|#define IS_SYNTAX_OP(syn, opm)    (((syn)->op  & (opm)) != 0)
  ------------------
  |  Branch (3407:11): [True: 1.42k, False: 0]
  ------------------
 3408|      0|      tok->type = TK_SUBEXP_CLOSE;
 3409|      0|      break;
 3410|       |
 3411|      0|    case 'w':
  ------------------
  |  Branch (3411:5): [True: 0, False: 25.8k]
  ------------------
 3412|      0|      if (! IS_SYNTAX_OP(syn, ONIG_SYN_OP_ESC_W_WORD)) break;
  ------------------
  |  |  330|      0|#define IS_SYNTAX_OP(syn, opm)    (((syn)->op  & (opm)) != 0)
  ------------------
  |  Branch (3412:11): [True: 0, False: 0]
  ------------------
 3413|      0|      tok->type = TK_CHAR_TYPE;
 3414|      0|      tok->u.prop.ctype = ONIGENC_CTYPE_WORD;
  ------------------
  |  |  306|      0|#define ONIGENC_CTYPE_WORD     12
  ------------------
 3415|      0|      tok->u.prop.not   = 0;
 3416|      0|      break;
 3417|       |
 3418|      0|    case 'W':
  ------------------
  |  Branch (3418:5): [True: 0, False: 25.8k]
  ------------------
 3419|      0|      if (! IS_SYNTAX_OP(syn, ONIG_SYN_OP_ESC_W_WORD)) break;
  ------------------
  |  |  330|      0|#define IS_SYNTAX_OP(syn, opm)    (((syn)->op  & (opm)) != 0)
  ------------------
  |  Branch (3419:11): [True: 0, False: 0]
  ------------------
 3420|      0|      tok->type = TK_CHAR_TYPE;
 3421|      0|      tok->u.prop.ctype = ONIGENC_CTYPE_WORD;
  ------------------
  |  |  306|      0|#define ONIGENC_CTYPE_WORD     12
  ------------------
 3422|      0|      tok->u.prop.not   = 1;
 3423|      0|      break;
 3424|       |
 3425|  1.44k|    case 'b':
  ------------------
  |  Branch (3425:5): [True: 1.44k, False: 24.3k]
  ------------------
 3426|  1.44k|      if (! IS_SYNTAX_OP(syn, ONIG_SYN_OP_ESC_B_WORD_BOUND)) break;
  ------------------
  |  |  330|  1.44k|#define IS_SYNTAX_OP(syn, opm)    (((syn)->op  & (opm)) != 0)
  ------------------
  |  Branch (3426:11): [True: 0, False: 1.44k]
  ------------------
 3427|  1.44k|      tok->type = TK_ANCHOR;
 3428|  1.44k|      tok->u.anchor.subtype = ANCHOR_WORD_BOUND;
  ------------------
  |  |  547|  1.44k|#define ANCHOR_WORD_BOUND       (1<<6)
  ------------------
 3429|  1.44k|      tok->u.anchor.ascii_range = IS_ASCII_RANGE(env->option)
  ------------------
  |  |  406|  2.88k|#define IS_ASCII_RANGE(option)    ((option) & ONIG_OPTION_ASCII_RANGE)
  |  |  ------------------
  |  |  |  |  470|  1.44k|#define ONIG_OPTION_ASCII_RANGE          (ONIG_OPTION_NOTEOS << 1)
  |  |  |  |  ------------------
  |  |  |  |  |  |  468|  1.44k|#define ONIG_OPTION_NOTEOS               (ONIG_OPTION_NOTBOS << 1)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  467|  1.44k|#define ONIG_OPTION_NOTBOS               (ONIG_OPTION_NOTEOL << 1)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  466|  1.44k|#define ONIG_OPTION_NOTEOL               (ONIG_OPTION_NOTBOL << 1)
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  465|  1.44k|#define ONIG_OPTION_NOTBOL               (ONIG_OPTION_CAPTURE_GROUP << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  463|  1.44k|#define ONIG_OPTION_CAPTURE_GROUP        (ONIG_OPTION_DONT_CAPTURE_GROUP << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  462|  1.44k|#define ONIG_OPTION_DONT_CAPTURE_GROUP   (ONIG_OPTION_NEGATE_SINGLELINE  << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  461|  1.44k|#define ONIG_OPTION_NEGATE_SINGLELINE    (ONIG_OPTION_FIND_NOT_EMPTY     << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  460|  1.44k|#define ONIG_OPTION_FIND_NOT_EMPTY       (ONIG_OPTION_FIND_LONGEST       << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  459|  1.44k|#define ONIG_OPTION_FIND_LONGEST         (ONIG_OPTION_SINGLELINE         << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  458|  1.44k|#define ONIG_OPTION_SINGLELINE           (ONIG_OPTION_MULTILINE          << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  456|  1.44k|#define ONIG_OPTION_MULTILINE            (ONIG_OPTION_EXTEND             << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  455|  1.44k|#define ONIG_OPTION_EXTEND               (ONIG_OPTION_IGNORECASE         << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  454|  1.44k|#define ONIG_OPTION_IGNORECASE           1U
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  |  Branch (406:35): [True: 1.44k, False: 0]
  |  |  ------------------
  ------------------
 3430|  1.44k|		&& ! IS_WORD_BOUND_ALL_RANGE(env->option);
  ------------------
  |  |  408|  2.88k|#define IS_WORD_BOUND_ALL_RANGE(option)     ((option) & ONIG_OPTION_WORD_BOUND_ALL_RANGE)
  |  |  ------------------
  |  |  |  |  472|  1.44k|#define ONIG_OPTION_WORD_BOUND_ALL_RANGE    (ONIG_OPTION_POSIX_BRACKET_ALL_RANGE << 1)
  |  |  |  |  ------------------
  |  |  |  |  |  |  471|  1.44k|#define ONIG_OPTION_POSIX_BRACKET_ALL_RANGE (ONIG_OPTION_ASCII_RANGE << 1)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  470|  1.44k|#define ONIG_OPTION_ASCII_RANGE          (ONIG_OPTION_NOTEOS << 1)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  468|  1.44k|#define ONIG_OPTION_NOTEOS               (ONIG_OPTION_NOTBOS << 1)
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  467|  1.44k|#define ONIG_OPTION_NOTBOS               (ONIG_OPTION_NOTEOL << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  466|  1.44k|#define ONIG_OPTION_NOTEOL               (ONIG_OPTION_NOTBOL << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  465|  1.44k|#define ONIG_OPTION_NOTBOL               (ONIG_OPTION_CAPTURE_GROUP << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  463|  1.44k|#define ONIG_OPTION_CAPTURE_GROUP        (ONIG_OPTION_DONT_CAPTURE_GROUP << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  462|  1.44k|#define ONIG_OPTION_DONT_CAPTURE_GROUP   (ONIG_OPTION_NEGATE_SINGLELINE  << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  461|  1.44k|#define ONIG_OPTION_NEGATE_SINGLELINE    (ONIG_OPTION_FIND_NOT_EMPTY     << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  460|  1.44k|#define ONIG_OPTION_FIND_NOT_EMPTY       (ONIG_OPTION_FIND_LONGEST       << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  459|  1.44k|#define ONIG_OPTION_FIND_LONGEST         (ONIG_OPTION_SINGLELINE         << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  458|  1.44k|#define ONIG_OPTION_SINGLELINE           (ONIG_OPTION_MULTILINE          << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  456|  1.44k|#define ONIG_OPTION_MULTILINE            (ONIG_OPTION_EXTEND             << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  455|  1.44k|#define ONIG_OPTION_EXTEND               (ONIG_OPTION_IGNORECASE         << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  454|  1.44k|#define ONIG_OPTION_IGNORECASE           1U
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  |  Branch (3430:6): [True: 0, False: 1.44k]
  ------------------
 3431|  1.44k|      break;
 3432|       |
 3433|      0|    case 'B':
  ------------------
  |  Branch (3433:5): [True: 0, False: 25.8k]
  ------------------
 3434|      0|      if (! IS_SYNTAX_OP(syn, ONIG_SYN_OP_ESC_B_WORD_BOUND)) break;
  ------------------
  |  |  330|      0|#define IS_SYNTAX_OP(syn, opm)    (((syn)->op  & (opm)) != 0)
  ------------------
  |  Branch (3434:11): [True: 0, False: 0]
  ------------------
 3435|      0|      tok->type = TK_ANCHOR;
 3436|      0|      tok->u.anchor.subtype = ANCHOR_NOT_WORD_BOUND;
  ------------------
  |  |  548|      0|#define ANCHOR_NOT_WORD_BOUND   (1<<7)
  ------------------
 3437|      0|      tok->u.anchor.ascii_range = IS_ASCII_RANGE(env->option)
  ------------------
  |  |  406|      0|#define IS_ASCII_RANGE(option)    ((option) & ONIG_OPTION_ASCII_RANGE)
  |  |  ------------------
  |  |  |  |  470|      0|#define ONIG_OPTION_ASCII_RANGE          (ONIG_OPTION_NOTEOS << 1)
  |  |  |  |  ------------------
  |  |  |  |  |  |  468|      0|#define ONIG_OPTION_NOTEOS               (ONIG_OPTION_NOTBOS << 1)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  467|      0|#define ONIG_OPTION_NOTBOS               (ONIG_OPTION_NOTEOL << 1)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  466|      0|#define ONIG_OPTION_NOTEOL               (ONIG_OPTION_NOTBOL << 1)
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  465|      0|#define ONIG_OPTION_NOTBOL               (ONIG_OPTION_CAPTURE_GROUP << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  463|      0|#define ONIG_OPTION_CAPTURE_GROUP        (ONIG_OPTION_DONT_CAPTURE_GROUP << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  462|      0|#define ONIG_OPTION_DONT_CAPTURE_GROUP   (ONIG_OPTION_NEGATE_SINGLELINE  << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  461|      0|#define ONIG_OPTION_NEGATE_SINGLELINE    (ONIG_OPTION_FIND_NOT_EMPTY     << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  460|      0|#define ONIG_OPTION_FIND_NOT_EMPTY       (ONIG_OPTION_FIND_LONGEST       << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  459|      0|#define ONIG_OPTION_FIND_LONGEST         (ONIG_OPTION_SINGLELINE         << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  458|      0|#define ONIG_OPTION_SINGLELINE           (ONIG_OPTION_MULTILINE          << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  456|      0|#define ONIG_OPTION_MULTILINE            (ONIG_OPTION_EXTEND             << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  455|      0|#define ONIG_OPTION_EXTEND               (ONIG_OPTION_IGNORECASE         << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  454|      0|#define ONIG_OPTION_IGNORECASE           1U
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  |  Branch (406:35): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 3438|      0|		&& ! IS_WORD_BOUND_ALL_RANGE(env->option);
  ------------------
  |  |  408|      0|#define IS_WORD_BOUND_ALL_RANGE(option)     ((option) & ONIG_OPTION_WORD_BOUND_ALL_RANGE)
  |  |  ------------------
  |  |  |  |  472|      0|#define ONIG_OPTION_WORD_BOUND_ALL_RANGE    (ONIG_OPTION_POSIX_BRACKET_ALL_RANGE << 1)
  |  |  |  |  ------------------
  |  |  |  |  |  |  471|      0|#define ONIG_OPTION_POSIX_BRACKET_ALL_RANGE (ONIG_OPTION_ASCII_RANGE << 1)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  470|      0|#define ONIG_OPTION_ASCII_RANGE          (ONIG_OPTION_NOTEOS << 1)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  468|      0|#define ONIG_OPTION_NOTEOS               (ONIG_OPTION_NOTBOS << 1)
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  467|      0|#define ONIG_OPTION_NOTBOS               (ONIG_OPTION_NOTEOL << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  466|      0|#define ONIG_OPTION_NOTEOL               (ONIG_OPTION_NOTBOL << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  465|      0|#define ONIG_OPTION_NOTBOL               (ONIG_OPTION_CAPTURE_GROUP << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  463|      0|#define ONIG_OPTION_CAPTURE_GROUP        (ONIG_OPTION_DONT_CAPTURE_GROUP << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  462|      0|#define ONIG_OPTION_DONT_CAPTURE_GROUP   (ONIG_OPTION_NEGATE_SINGLELINE  << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  461|      0|#define ONIG_OPTION_NEGATE_SINGLELINE    (ONIG_OPTION_FIND_NOT_EMPTY     << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  460|      0|#define ONIG_OPTION_FIND_NOT_EMPTY       (ONIG_OPTION_FIND_LONGEST       << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  459|      0|#define ONIG_OPTION_FIND_LONGEST         (ONIG_OPTION_SINGLELINE         << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  458|      0|#define ONIG_OPTION_SINGLELINE           (ONIG_OPTION_MULTILINE          << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  456|      0|#define ONIG_OPTION_MULTILINE            (ONIG_OPTION_EXTEND             << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  455|      0|#define ONIG_OPTION_EXTEND               (ONIG_OPTION_IGNORECASE         << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  454|      0|#define ONIG_OPTION_IGNORECASE           1U
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  |  Branch (3438:6): [True: 0, False: 0]
  ------------------
 3439|      0|      break;
 3440|       |
 3441|      0|#ifdef USE_WORD_BEGIN_END
 3442|      0|    case '<':
  ------------------
  |  Branch (3442:5): [True: 0, False: 25.8k]
  ------------------
 3443|      0|      if (! IS_SYNTAX_OP(syn, ONIG_SYN_OP_ESC_LTGT_WORD_BEGIN_END)) break;
  ------------------
  |  |  330|      0|#define IS_SYNTAX_OP(syn, opm)    (((syn)->op  & (opm)) != 0)
  ------------------
  |  Branch (3443:11): [True: 0, False: 0]
  ------------------
 3444|      0|      tok->type = TK_ANCHOR;
 3445|      0|      tok->u.anchor.subtype = ANCHOR_WORD_BEGIN;
  ------------------
  |  |  549|      0|#define ANCHOR_WORD_BEGIN       (1<<8)
  ------------------
 3446|      0|      tok->u.anchor.ascii_range = IS_ASCII_RANGE(env->option);
  ------------------
  |  |  406|      0|#define IS_ASCII_RANGE(option)    ((option) & ONIG_OPTION_ASCII_RANGE)
  |  |  ------------------
  |  |  |  |  470|      0|#define ONIG_OPTION_ASCII_RANGE          (ONIG_OPTION_NOTEOS << 1)
  |  |  |  |  ------------------
  |  |  |  |  |  |  468|      0|#define ONIG_OPTION_NOTEOS               (ONIG_OPTION_NOTBOS << 1)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  467|      0|#define ONIG_OPTION_NOTBOS               (ONIG_OPTION_NOTEOL << 1)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  466|      0|#define ONIG_OPTION_NOTEOL               (ONIG_OPTION_NOTBOL << 1)
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  465|      0|#define ONIG_OPTION_NOTBOL               (ONIG_OPTION_CAPTURE_GROUP << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  463|      0|#define ONIG_OPTION_CAPTURE_GROUP        (ONIG_OPTION_DONT_CAPTURE_GROUP << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  462|      0|#define ONIG_OPTION_DONT_CAPTURE_GROUP   (ONIG_OPTION_NEGATE_SINGLELINE  << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  461|      0|#define ONIG_OPTION_NEGATE_SINGLELINE    (ONIG_OPTION_FIND_NOT_EMPTY     << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  460|      0|#define ONIG_OPTION_FIND_NOT_EMPTY       (ONIG_OPTION_FIND_LONGEST       << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  459|      0|#define ONIG_OPTION_FIND_LONGEST         (ONIG_OPTION_SINGLELINE         << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  458|      0|#define ONIG_OPTION_SINGLELINE           (ONIG_OPTION_MULTILINE          << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  456|      0|#define ONIG_OPTION_MULTILINE            (ONIG_OPTION_EXTEND             << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  455|      0|#define ONIG_OPTION_EXTEND               (ONIG_OPTION_IGNORECASE         << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  454|      0|#define ONIG_OPTION_IGNORECASE           1U
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 3447|      0|      break;
 3448|       |
 3449|      0|    case '>':
  ------------------
  |  Branch (3449:5): [True: 0, False: 25.8k]
  ------------------
 3450|      0|      if (! IS_SYNTAX_OP(syn, ONIG_SYN_OP_ESC_LTGT_WORD_BEGIN_END)) break;
  ------------------
  |  |  330|      0|#define IS_SYNTAX_OP(syn, opm)    (((syn)->op  & (opm)) != 0)
  ------------------
  |  Branch (3450:11): [True: 0, False: 0]
  ------------------
 3451|      0|      tok->type = TK_ANCHOR;
 3452|      0|      tok->u.anchor.subtype = ANCHOR_WORD_END;
  ------------------
  |  |  550|      0|#define ANCHOR_WORD_END         (1<<9)
  ------------------
 3453|      0|      tok->u.anchor.ascii_range = IS_ASCII_RANGE(env->option);
  ------------------
  |  |  406|      0|#define IS_ASCII_RANGE(option)    ((option) & ONIG_OPTION_ASCII_RANGE)
  |  |  ------------------
  |  |  |  |  470|      0|#define ONIG_OPTION_ASCII_RANGE          (ONIG_OPTION_NOTEOS << 1)
  |  |  |  |  ------------------
  |  |  |  |  |  |  468|      0|#define ONIG_OPTION_NOTEOS               (ONIG_OPTION_NOTBOS << 1)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  467|      0|#define ONIG_OPTION_NOTBOS               (ONIG_OPTION_NOTEOL << 1)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  466|      0|#define ONIG_OPTION_NOTEOL               (ONIG_OPTION_NOTBOL << 1)
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  465|      0|#define ONIG_OPTION_NOTBOL               (ONIG_OPTION_CAPTURE_GROUP << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  463|      0|#define ONIG_OPTION_CAPTURE_GROUP        (ONIG_OPTION_DONT_CAPTURE_GROUP << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  462|      0|#define ONIG_OPTION_DONT_CAPTURE_GROUP   (ONIG_OPTION_NEGATE_SINGLELINE  << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  461|      0|#define ONIG_OPTION_NEGATE_SINGLELINE    (ONIG_OPTION_FIND_NOT_EMPTY     << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  460|      0|#define ONIG_OPTION_FIND_NOT_EMPTY       (ONIG_OPTION_FIND_LONGEST       << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  459|      0|#define ONIG_OPTION_FIND_LONGEST         (ONIG_OPTION_SINGLELINE         << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  458|      0|#define ONIG_OPTION_SINGLELINE           (ONIG_OPTION_MULTILINE          << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  456|      0|#define ONIG_OPTION_MULTILINE            (ONIG_OPTION_EXTEND             << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  455|      0|#define ONIG_OPTION_EXTEND               (ONIG_OPTION_IGNORECASE         << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  454|      0|#define ONIG_OPTION_IGNORECASE           1U
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 3454|      0|      break;
 3455|      0|#endif
 3456|       |
 3457|  7.16k|    case 's':
  ------------------
  |  Branch (3457:5): [True: 7.16k, False: 18.6k]
  ------------------
 3458|  7.16k|      if (! IS_SYNTAX_OP(syn, ONIG_SYN_OP_ESC_S_WHITE_SPACE)) break;
  ------------------
  |  |  330|  7.16k|#define IS_SYNTAX_OP(syn, opm)    (((syn)->op  & (opm)) != 0)
  ------------------
  |  Branch (3458:11): [True: 0, False: 7.16k]
  ------------------
 3459|  7.16k|      tok->type = TK_CHAR_TYPE;
 3460|  7.16k|      tok->u.prop.ctype = ONIGENC_CTYPE_SPACE;
  ------------------
  |  |  303|  7.16k|#define ONIGENC_CTYPE_SPACE     9
  ------------------
 3461|  7.16k|      tok->u.prop.not   = 0;
 3462|  7.16k|      break;
 3463|       |
 3464|      0|    case 'S':
  ------------------
  |  Branch (3464:5): [True: 0, False: 25.8k]
  ------------------
 3465|      0|      if (! IS_SYNTAX_OP(syn, ONIG_SYN_OP_ESC_S_WHITE_SPACE)) break;
  ------------------
  |  |  330|      0|#define IS_SYNTAX_OP(syn, opm)    (((syn)->op  & (opm)) != 0)
  ------------------
  |  Branch (3465:11): [True: 0, False: 0]
  ------------------
 3466|      0|      tok->type = TK_CHAR_TYPE;
 3467|      0|      tok->u.prop.ctype = ONIGENC_CTYPE_SPACE;
  ------------------
  |  |  303|      0|#define ONIGENC_CTYPE_SPACE     9
  ------------------
 3468|      0|      tok->u.prop.not   = 1;
 3469|      0|      break;
 3470|       |
 3471|  5.75k|    case 'd':
  ------------------
  |  Branch (3471:5): [True: 5.75k, False: 20.0k]
  ------------------
 3472|  5.75k|      if (! IS_SYNTAX_OP(syn, ONIG_SYN_OP_ESC_D_DIGIT)) break;
  ------------------
  |  |  330|  5.75k|#define IS_SYNTAX_OP(syn, opm)    (((syn)->op  & (opm)) != 0)
  ------------------
  |  Branch (3472:11): [True: 0, False: 5.75k]
  ------------------
 3473|  5.75k|      tok->type = TK_CHAR_TYPE;
 3474|  5.75k|      tok->u.prop.ctype = ONIGENC_CTYPE_DIGIT;
  ------------------
  |  |  298|  5.75k|#define ONIGENC_CTYPE_DIGIT     4
  ------------------
 3475|  5.75k|      tok->u.prop.not   = 0;
 3476|  5.75k|      break;
 3477|       |
 3478|      0|    case 'D':
  ------------------
  |  Branch (3478:5): [True: 0, False: 25.8k]
  ------------------
 3479|      0|      if (! IS_SYNTAX_OP(syn, ONIG_SYN_OP_ESC_D_DIGIT)) break;
  ------------------
  |  |  330|      0|#define IS_SYNTAX_OP(syn, opm)    (((syn)->op  & (opm)) != 0)
  ------------------
  |  Branch (3479:11): [True: 0, False: 0]
  ------------------
 3480|      0|      tok->type = TK_CHAR_TYPE;
 3481|      0|      tok->u.prop.ctype = ONIGENC_CTYPE_DIGIT;
  ------------------
  |  |  298|      0|#define ONIGENC_CTYPE_DIGIT     4
  ------------------
 3482|      0|      tok->u.prop.not   = 1;
 3483|      0|      break;
 3484|       |
 3485|      0|    case 'h':
  ------------------
  |  Branch (3485:5): [True: 0, False: 25.8k]
  ------------------
 3486|      0|      if (! IS_SYNTAX_OP2(syn, ONIG_SYN_OP2_ESC_H_XDIGIT)) break;
  ------------------
  |  |  331|      0|#define IS_SYNTAX_OP2(syn, opm)   (((syn)->op2 & (opm)) != 0)
  ------------------
  |  Branch (3486:11): [True: 0, False: 0]
  ------------------
 3487|      0|      tok->type = TK_CHAR_TYPE;
 3488|      0|      tok->u.prop.ctype = ONIGENC_CTYPE_XDIGIT;
  ------------------
  |  |  305|      0|#define ONIGENC_CTYPE_XDIGIT   11
  ------------------
 3489|      0|      tok->u.prop.not   = 0;
 3490|      0|      break;
 3491|       |
 3492|      0|    case 'H':
  ------------------
  |  Branch (3492:5): [True: 0, False: 25.8k]
  ------------------
 3493|      0|      if (! IS_SYNTAX_OP2(syn, ONIG_SYN_OP2_ESC_H_XDIGIT)) break;
  ------------------
  |  |  331|      0|#define IS_SYNTAX_OP2(syn, opm)   (((syn)->op2 & (opm)) != 0)
  ------------------
  |  Branch (3493:11): [True: 0, False: 0]
  ------------------
 3494|      0|      tok->type = TK_CHAR_TYPE;
 3495|      0|      tok->u.prop.ctype = ONIGENC_CTYPE_XDIGIT;
  ------------------
  |  |  305|      0|#define ONIGENC_CTYPE_XDIGIT   11
  ------------------
 3496|      0|      tok->u.prop.not   = 1;
 3497|      0|      break;
 3498|       |
 3499|      0|    case 'A':
  ------------------
  |  Branch (3499:5): [True: 0, False: 25.8k]
  ------------------
 3500|      0|      if (! IS_SYNTAX_OP(syn, ONIG_SYN_OP_ESC_AZ_BUF_ANCHOR)) break;
  ------------------
  |  |  330|      0|#define IS_SYNTAX_OP(syn, opm)    (((syn)->op  & (opm)) != 0)
  ------------------
  |  Branch (3500:11): [True: 0, False: 0]
  ------------------
 3501|      0|    begin_buf:
 3502|      0|      tok->type = TK_ANCHOR;
 3503|      0|      tok->u.anchor.subtype = ANCHOR_BEGIN_BUF;
  ------------------
  |  |  540|      0|#define ANCHOR_BEGIN_BUF        (1<<0)
  ------------------
 3504|      0|      break;
 3505|       |
 3506|      0|    case 'Z':
  ------------------
  |  Branch (3506:5): [True: 0, False: 25.8k]
  ------------------
 3507|      0|      if (! IS_SYNTAX_OP(syn, ONIG_SYN_OP_ESC_AZ_BUF_ANCHOR)) break;
  ------------------
  |  |  330|      0|#define IS_SYNTAX_OP(syn, opm)    (((syn)->op  & (opm)) != 0)
  ------------------
  |  Branch (3507:11): [True: 0, False: 0]
  ------------------
 3508|      0|      tok->type = TK_ANCHOR;
 3509|      0|      tok->u.anchor.subtype = ANCHOR_SEMI_END_BUF;
  ------------------
  |  |  544|      0|#define ANCHOR_SEMI_END_BUF     (1<<4)
  ------------------
 3510|      0|      break;
 3511|       |
 3512|      0|    case 'z':
  ------------------
  |  Branch (3512:5): [True: 0, False: 25.8k]
  ------------------
 3513|      0|      if (! IS_SYNTAX_OP(syn, ONIG_SYN_OP_ESC_AZ_BUF_ANCHOR)) break;
  ------------------
  |  |  330|      0|#define IS_SYNTAX_OP(syn, opm)    (((syn)->op  & (opm)) != 0)
  ------------------
  |  Branch (3513:11): [True: 0, False: 0]
  ------------------
 3514|      0|    end_buf:
 3515|      0|      tok->type = TK_ANCHOR;
 3516|      0|      tok->u.anchor.subtype = ANCHOR_END_BUF;
  ------------------
  |  |  543|      0|#define ANCHOR_END_BUF          (1<<3)
  ------------------
 3517|      0|      break;
 3518|       |
 3519|      0|    case 'G':
  ------------------
  |  Branch (3519:5): [True: 0, False: 25.8k]
  ------------------
 3520|      0|      if (! IS_SYNTAX_OP(syn, ONIG_SYN_OP_ESC_CAPITAL_G_BEGIN_ANCHOR)) break;
  ------------------
  |  |  330|      0|#define IS_SYNTAX_OP(syn, opm)    (((syn)->op  & (opm)) != 0)
  ------------------
  |  Branch (3520:11): [True: 0, False: 0]
  ------------------
 3521|      0|      tok->type = TK_ANCHOR;
 3522|      0|      tok->u.anchor.subtype = ANCHOR_BEGIN_POSITION;
  ------------------
  |  |  542|      0|#define ANCHOR_BEGIN_POSITION   (1<<2)
  ------------------
 3523|      0|      break;
 3524|       |
 3525|      0|    case '`':
  ------------------
  |  Branch (3525:5): [True: 0, False: 25.8k]
  ------------------
 3526|      0|      if (! IS_SYNTAX_OP2(syn, ONIG_SYN_OP2_ESC_GNU_BUF_ANCHOR)) break;
  ------------------
  |  |  331|      0|#define IS_SYNTAX_OP2(syn, opm)   (((syn)->op2 & (opm)) != 0)
  ------------------
  |  Branch (3526:11): [True: 0, False: 0]
  ------------------
 3527|      0|      goto begin_buf;
 3528|      0|      break;
 3529|       |
 3530|      0|    case '\'':
  ------------------
  |  Branch (3530:5): [True: 0, False: 25.8k]
  ------------------
 3531|      0|      if (! IS_SYNTAX_OP2(syn, ONIG_SYN_OP2_ESC_GNU_BUF_ANCHOR)) break;
  ------------------
  |  |  331|      0|#define IS_SYNTAX_OP2(syn, opm)   (((syn)->op2 & (opm)) != 0)
  ------------------
  |  Branch (3531:11): [True: 0, False: 0]
  ------------------
 3532|      0|      goto end_buf;
 3533|      0|      break;
 3534|       |
 3535|      0|    case 'x':
  ------------------
  |  Branch (3535:5): [True: 0, False: 25.8k]
  ------------------
 3536|      0|      if (PEND) break;
  ------------------
  |  |  299|      0|#define PEND         (p < end ?  0 : 1)
  |  |  ------------------
  |  |  |  Branch (299:22): [True: 0, False: 0]
  |  |  |  Branch (299:23): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 3537|       |
 3538|      0|      prev = p;
 3539|      0|      if (PPEEK_IS('{') && IS_SYNTAX_OP(syn, ONIG_SYN_OP_ESC_X_BRACE_HEX8)) {
  ------------------
  |  |  320|      0|#define PPEEK_IS(c)  (PPEEK == (OnigCodePoint )c)
  |  |  ------------------
  |  |  |  |  319|      0|#define PPEEK        (p < end ? ONIGENC_MBC_TO_CODE(enc, p, end) : PEND_VALUE)
  |  |  |  |  ------------------
  |  |  |  |  |  |  369|      0|#define ONIGENC_MBC_TO_CODE(enc,p,end)         (enc)->mbc_to_code((p),(end),enc)
  |  |  |  |  ------------------
  |  |  |  |               #define PPEEK        (p < end ? ONIGENC_MBC_TO_CODE(enc, p, end) : PEND_VALUE)
  |  |  |  |  ------------------
  |  |  |  |  |  |  291|      0|#define PEND_VALUE   0
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (319:23): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  |  Branch (320:22): [True: 0, False: 0]
  |  |  ------------------
  ------------------
                    if (PPEEK_IS('{') && IS_SYNTAX_OP(syn, ONIG_SYN_OP_ESC_X_BRACE_HEX8)) {
  ------------------
  |  |  330|      0|#define IS_SYNTAX_OP(syn, opm)    (((syn)->op  & (opm)) != 0)
  |  |  ------------------
  |  |  |  Branch (330:35): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 3540|      0|	PINC;
  ------------------
  |  |  301|      0|#define PINC       do { \
  |  |  302|      0|  pfetch_prev = p; \
  |  |  303|      0|  p += enclen(enc, p, end); \
  |  |  ------------------
  |  |  |  |   93|      0|#define enclen(enc,p,e) ((enc->max_enc_len == enc->min_enc_len) ? enc->min_enc_len : ONIGENC_MBC_ENC_LEN(enc,p,e))
  |  |  |  |  ------------------
  |  |  |  |  |  |  364|      0|#define ONIGENC_MBC_ENC_LEN(enc,p,e)          onigenc_mbclen(p,e,enc)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (93:26): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  304|      0|} while (0)
  |  |  ------------------
  |  |  |  Branch (304:10): [Folded - Ignored]
  |  |  ------------------
  ------------------
 3541|      0|	num = scan_unsigned_hexadecimal_number(&p, end, 0, 8, enc);
 3542|      0|	if (num < 0) return ONIGERR_TOO_BIG_WIDE_CHAR_VALUE;
  ------------------
  |  |  694|      0|#define ONIGERR_TOO_BIG_WIDE_CHAR_VALUE                      -401
  ------------------
  |  Branch (3542:6): [True: 0, False: 0]
  ------------------
 3543|      0|	if (!PEND) {
  ------------------
  |  |  299|      0|#define PEND         (p < end ?  0 : 1)
  |  |  ------------------
  |  |  |  Branch (299:23): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  |  Branch (3543:6): [True: 0, False: 0]
  ------------------
 3544|      0|	  if (ONIGENC_IS_CODE_XDIGIT(enc, PPEEK))
  ------------------
  |  |  402|      0|        ONIGENC_IS_CODE_CTYPE(enc,code,ONIGENC_CTYPE_XDIGIT)
  |  |  ------------------
  |  |  |  |  375|      0|#define ONIGENC_IS_CODE_CTYPE(enc,code,ctype)  (enc)->is_code_ctype(code,ctype,enc)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (375:48): [True: 0, False: 0]
  |  |  |  |  |  Branch (375:69): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 3545|      0|	    return ONIGERR_TOO_LONG_WIDE_CHAR_VALUE;
  ------------------
  |  |  681|      0|#define ONIGERR_TOO_LONG_WIDE_CHAR_VALUE                     -212
  ------------------
 3546|      0|	}
 3547|       |
 3548|      0|	if ((p > prev + enclen(enc, prev, end)) && !PEND && PPEEK_IS('}')) {
  ------------------
  |  |   93|      0|#define enclen(enc,p,e) ((enc->max_enc_len == enc->min_enc_len) ? enc->min_enc_len : ONIGENC_MBC_ENC_LEN(enc,p,e))
  |  |  ------------------
  |  |  |  |  364|      0|#define ONIGENC_MBC_ENC_LEN(enc,p,e)          onigenc_mbclen(p,e,enc)
  |  |  ------------------
  |  |  |  Branch (93:26): [True: 0, False: 0]
  |  |  ------------------
  ------------------
              	if ((p > prev + enclen(enc, prev, end)) && !PEND && PPEEK_IS('}')) {
  ------------------
  |  |  299|      0|#define PEND         (p < end ?  0 : 1)
  |  |  ------------------
  |  |  |  Branch (299:23): [True: 0, False: 0]
  |  |  ------------------
  ------------------
              	if ((p > prev + enclen(enc, prev, end)) && !PEND && PPEEK_IS('}')) {
  ------------------
  |  |  320|      0|#define PPEEK_IS(c)  (PPEEK == (OnigCodePoint )c)
  |  |  ------------------
  |  |  |  |  319|      0|#define PPEEK        (p < end ? ONIGENC_MBC_TO_CODE(enc, p, end) : PEND_VALUE)
  |  |  |  |  ------------------
  |  |  |  |  |  |  369|      0|#define ONIGENC_MBC_TO_CODE(enc,p,end)         (enc)->mbc_to_code((p),(end),enc)
  |  |  |  |  ------------------
  |  |  |  |               #define PPEEK        (p < end ? ONIGENC_MBC_TO_CODE(enc, p, end) : PEND_VALUE)
  |  |  |  |  ------------------
  |  |  |  |  |  |  291|      0|#define PEND_VALUE   0
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (319:23): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  |  Branch (320:22): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  |  Branch (3548:6): [True: 0, False: 0]
  |  Branch (3548:45): [True: 0, False: 0]
  ------------------
 3549|      0|	  PINC;
  ------------------
  |  |  301|      0|#define PINC       do { \
  |  |  302|      0|  pfetch_prev = p; \
  |  |  303|      0|  p += enclen(enc, p, end); \
  |  |  ------------------
  |  |  |  |   93|      0|#define enclen(enc,p,e) ((enc->max_enc_len == enc->min_enc_len) ? enc->min_enc_len : ONIGENC_MBC_ENC_LEN(enc,p,e))
  |  |  |  |  ------------------
  |  |  |  |  |  |  364|      0|#define ONIGENC_MBC_ENC_LEN(enc,p,e)          onigenc_mbclen(p,e,enc)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (93:26): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  304|      0|} while (0)
  |  |  ------------------
  |  |  |  Branch (304:10): [Folded - Ignored]
  |  |  ------------------
  ------------------
 3550|      0|	  tok->type   = TK_CODE_POINT;
 3551|      0|	  tok->u.code = (OnigCodePoint )num;
 3552|      0|	}
 3553|      0|	else {
 3554|       |	  /* can't read nothing or invalid format */
 3555|      0|	  p = prev;
 3556|      0|	}
 3557|      0|      }
 3558|      0|      else if (IS_SYNTAX_OP(syn, ONIG_SYN_OP_ESC_X_HEX2)) {
  ------------------
  |  |  330|      0|#define IS_SYNTAX_OP(syn, opm)    (((syn)->op  & (opm)) != 0)
  |  |  ------------------
  |  |  |  Branch (330:35): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 3559|      0|	num = scan_unsigned_hexadecimal_number(&p, end, 0, 2, enc);
 3560|      0|	if (num < 0) return ONIGERR_TOO_BIG_NUMBER;
  ------------------
  |  |  669|      0|#define ONIGERR_TOO_BIG_NUMBER                               -200
  ------------------
  |  Branch (3560:6): [True: 0, False: 0]
  ------------------
 3561|      0|	if (p == prev) {  /* can't read nothing. */
  ------------------
  |  Branch (3561:6): [True: 0, False: 0]
  ------------------
 3562|      0|	  num = 0; /* but, it's not error */
 3563|      0|	}
 3564|      0|	tok->type = TK_RAW_BYTE;
 3565|      0|	tok->base = 16;
 3566|      0|	tok->u.c  = num;
 3567|      0|      }
 3568|      0|      break;
 3569|       |
 3570|      0|    case 'u':
  ------------------
  |  Branch (3570:5): [True: 0, False: 25.8k]
  ------------------
 3571|      0|      if (PEND) break;
  ------------------
  |  |  299|      0|#define PEND         (p < end ?  0 : 1)
  |  |  ------------------
  |  |  |  Branch (299:22): [True: 0, False: 0]
  |  |  |  Branch (299:23): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 3572|       |
 3573|      0|      prev = p;
 3574|      0|      if (IS_SYNTAX_OP2(syn, ONIG_SYN_OP2_ESC_U_HEX4)) {
  ------------------
  |  |  331|      0|#define IS_SYNTAX_OP2(syn, opm)   (((syn)->op2 & (opm)) != 0)
  |  |  ------------------
  |  |  |  Branch (331:35): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 3575|      0|	num = scan_unsigned_hexadecimal_number(&p, end, 4, 4, enc);
 3576|      0|	if (num < -1) return ONIGERR_TOO_SHORT_DIGITS;
  ------------------
  |  |  680|      0|#define ONIGERR_TOO_SHORT_DIGITS                             -211
  ------------------
  |  Branch (3576:6): [True: 0, False: 0]
  ------------------
 3577|      0|	else if (num < 0) return ONIGERR_TOO_BIG_NUMBER;
  ------------------
  |  |  669|      0|#define ONIGERR_TOO_BIG_NUMBER                               -200
  ------------------
  |  Branch (3577:11): [True: 0, False: 0]
  ------------------
 3578|      0|	if (p == prev) {  /* can't read nothing. */
  ------------------
  |  Branch (3578:6): [True: 0, False: 0]
  ------------------
 3579|      0|	  num = 0; /* but, it's not error */
 3580|      0|	}
 3581|      0|	tok->type   = TK_CODE_POINT;
 3582|      0|	tok->base   = 16;
 3583|      0|	tok->u.code = (OnigCodePoint )num;
 3584|      0|      }
 3585|      0|      break;
 3586|       |
 3587|      0|    case 'o':
  ------------------
  |  Branch (3587:5): [True: 0, False: 25.8k]
  ------------------
 3588|      0|      if (PEND) break;
  ------------------
  |  |  299|      0|#define PEND         (p < end ?  0 : 1)
  |  |  ------------------
  |  |  |  Branch (299:22): [True: 0, False: 0]
  |  |  |  Branch (299:23): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 3589|       |
 3590|      0|      prev = p;
 3591|      0|      if (PPEEK_IS('{') && IS_SYNTAX_OP(syn, ONIG_SYN_OP_ESC_O_BRACE_OCTAL)) {
  ------------------
  |  |  320|      0|#define PPEEK_IS(c)  (PPEEK == (OnigCodePoint )c)
  |  |  ------------------
  |  |  |  |  319|      0|#define PPEEK        (p < end ? ONIGENC_MBC_TO_CODE(enc, p, end) : PEND_VALUE)
  |  |  |  |  ------------------
  |  |  |  |  |  |  369|      0|#define ONIGENC_MBC_TO_CODE(enc,p,end)         (enc)->mbc_to_code((p),(end),enc)
  |  |  |  |  ------------------
  |  |  |  |               #define PPEEK        (p < end ? ONIGENC_MBC_TO_CODE(enc, p, end) : PEND_VALUE)
  |  |  |  |  ------------------
  |  |  |  |  |  |  291|      0|#define PEND_VALUE   0
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (319:23): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  |  Branch (320:22): [True: 0, False: 0]
  |  |  ------------------
  ------------------
                    if (PPEEK_IS('{') && IS_SYNTAX_OP(syn, ONIG_SYN_OP_ESC_O_BRACE_OCTAL)) {
  ------------------
  |  |  330|      0|#define IS_SYNTAX_OP(syn, opm)    (((syn)->op  & (opm)) != 0)
  |  |  ------------------
  |  |  |  Branch (330:35): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 3592|      0|	PINC;
  ------------------
  |  |  301|      0|#define PINC       do { \
  |  |  302|      0|  pfetch_prev = p; \
  |  |  303|      0|  p += enclen(enc, p, end); \
  |  |  ------------------
  |  |  |  |   93|      0|#define enclen(enc,p,e) ((enc->max_enc_len == enc->min_enc_len) ? enc->min_enc_len : ONIGENC_MBC_ENC_LEN(enc,p,e))
  |  |  |  |  ------------------
  |  |  |  |  |  |  364|      0|#define ONIGENC_MBC_ENC_LEN(enc,p,e)          onigenc_mbclen(p,e,enc)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (93:26): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  304|      0|} while (0)
  |  |  ------------------
  |  |  |  Branch (304:10): [Folded - Ignored]
  |  |  ------------------
  ------------------
 3593|      0|	num = scan_unsigned_octal_number(&p, end, 11, enc);
 3594|      0|	if (num < 0) return ONIGERR_TOO_BIG_WIDE_CHAR_VALUE;
  ------------------
  |  |  694|      0|#define ONIGERR_TOO_BIG_WIDE_CHAR_VALUE                      -401
  ------------------
  |  Branch (3594:6): [True: 0, False: 0]
  ------------------
 3595|      0|	if (!PEND) {
  ------------------
  |  |  299|      0|#define PEND         (p < end ?  0 : 1)
  |  |  ------------------
  |  |  |  Branch (299:23): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  |  Branch (3595:6): [True: 0, False: 0]
  ------------------
 3596|      0|	  OnigCodePoint c = PPEEK;
  ------------------
  |  |  319|      0|#define PPEEK        (p < end ? ONIGENC_MBC_TO_CODE(enc, p, end) : PEND_VALUE)
  |  |  ------------------
  |  |  |  |  369|      0|#define ONIGENC_MBC_TO_CODE(enc,p,end)         (enc)->mbc_to_code((p),(end),enc)
  |  |  ------------------
  |  |               #define PPEEK        (p < end ? ONIGENC_MBC_TO_CODE(enc, p, end) : PEND_VALUE)
  |  |  ------------------
  |  |  |  |  291|      0|#define PEND_VALUE   0
  |  |  ------------------
  |  |  |  Branch (319:23): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 3597|      0|	  if (ONIGENC_IS_CODE_DIGIT(enc, c) && c < '8')
  ------------------
  |  |  400|      0|        ONIGENC_IS_CODE_CTYPE(enc,code,ONIGENC_CTYPE_DIGIT)
  |  |  ------------------
  |  |  |  |  375|      0|#define ONIGENC_IS_CODE_CTYPE(enc,code,ctype)  (enc)->is_code_ctype(code,ctype,enc)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (375:48): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  |  Branch (3597:41): [True: 0, False: 0]
  ------------------
 3598|      0|	    return ONIGERR_TOO_LONG_WIDE_CHAR_VALUE;
  ------------------
  |  |  681|      0|#define ONIGERR_TOO_LONG_WIDE_CHAR_VALUE                     -212
  ------------------
 3599|      0|	}
 3600|       |
 3601|      0|	if ((p > prev + enclen(enc, prev, end)) && !PEND && PPEEK_IS('}')) {
  ------------------
  |  |   93|      0|#define enclen(enc,p,e) ((enc->max_enc_len == enc->min_enc_len) ? enc->min_enc_len : ONIGENC_MBC_ENC_LEN(enc,p,e))
  |  |  ------------------
  |  |  |  |  364|      0|#define ONIGENC_MBC_ENC_LEN(enc,p,e)          onigenc_mbclen(p,e,enc)
  |  |  ------------------
  |  |  |  Branch (93:26): [True: 0, False: 0]
  |  |  ------------------
  ------------------
              	if ((p > prev + enclen(enc, prev, end)) && !PEND && PPEEK_IS('}')) {
  ------------------
  |  |  299|      0|#define PEND         (p < end ?  0 : 1)
  |  |  ------------------
  |  |  |  Branch (299:23): [True: 0, False: 0]
  |  |  ------------------
  ------------------
              	if ((p > prev + enclen(enc, prev, end)) && !PEND && PPEEK_IS('}')) {
  ------------------
  |  |  320|      0|#define PPEEK_IS(c)  (PPEEK == (OnigCodePoint )c)
  |  |  ------------------
  |  |  |  |  319|      0|#define PPEEK        (p < end ? ONIGENC_MBC_TO_CODE(enc, p, end) : PEND_VALUE)
  |  |  |  |  ------------------
  |  |  |  |  |  |  369|      0|#define ONIGENC_MBC_TO_CODE(enc,p,end)         (enc)->mbc_to_code((p),(end),enc)
  |  |  |  |  ------------------
  |  |  |  |               #define PPEEK        (p < end ? ONIGENC_MBC_TO_CODE(enc, p, end) : PEND_VALUE)
  |  |  |  |  ------------------
  |  |  |  |  |  |  291|      0|#define PEND_VALUE   0
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (319:23): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  |  Branch (320:22): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  |  Branch (3601:6): [True: 0, False: 0]
  |  Branch (3601:45): [True: 0, False: 0]
  ------------------
 3602|      0|	  PINC;
  ------------------
  |  |  301|      0|#define PINC       do { \
  |  |  302|      0|  pfetch_prev = p; \
  |  |  303|      0|  p += enclen(enc, p, end); \
  |  |  ------------------
  |  |  |  |   93|      0|#define enclen(enc,p,e) ((enc->max_enc_len == enc->min_enc_len) ? enc->min_enc_len : ONIGENC_MBC_ENC_LEN(enc,p,e))
  |  |  |  |  ------------------
  |  |  |  |  |  |  364|      0|#define ONIGENC_MBC_ENC_LEN(enc,p,e)          onigenc_mbclen(p,e,enc)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (93:26): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  304|      0|} while (0)
  |  |  ------------------
  |  |  |  Branch (304:10): [Folded - Ignored]
  |  |  ------------------
  ------------------
 3603|      0|	  tok->type   = TK_CODE_POINT;
 3604|      0|	  tok->u.code = (OnigCodePoint )num;
 3605|      0|	}
 3606|      0|	else {
 3607|       |	  /* can't read nothing or invalid format */
 3608|      0|	  p = prev;
 3609|      0|	}
 3610|      0|      }
 3611|      0|      break;
 3612|       |
 3613|      0|    case '1': case '2': case '3': case '4':
  ------------------
  |  Branch (3613:5): [True: 0, False: 25.8k]
  |  Branch (3613:15): [True: 0, False: 25.8k]
  |  Branch (3613:25): [True: 0, False: 25.8k]
  |  Branch (3613:35): [True: 0, False: 25.8k]
  ------------------
 3614|      0|    case '5': case '6': case '7': case '8': case '9':
  ------------------
  |  Branch (3614:5): [True: 0, False: 25.8k]
  |  Branch (3614:15): [True: 0, False: 25.8k]
  |  Branch (3614:25): [True: 0, False: 25.8k]
  |  Branch (3614:35): [True: 0, False: 25.8k]
  |  Branch (3614:45): [True: 0, False: 25.8k]
  ------------------
 3615|      0|      PUNFETCH;
  ------------------
  |  |  300|      0|#define PUNFETCH     p = pfetch_prev
  ------------------
 3616|      0|      prev = p;
 3617|      0|      num = onig_scan_unsigned_number(&p, end, enc);
 3618|      0|      if (num < 0 || num > ONIG_MAX_BACKREF_NUM) {
  ------------------
  |  |  442|      0|#define ONIG_MAX_BACKREF_NUM                1000
  ------------------
  |  Branch (3618:11): [True: 0, False: 0]
  |  Branch (3618:22): [True: 0, False: 0]
  ------------------
 3619|      0|	goto skip_backref;
 3620|      0|      }
 3621|       |
 3622|      0|      if (IS_SYNTAX_OP(syn, ONIG_SYN_OP_DECIMAL_BACKREF) &&
  ------------------
  |  |  330|      0|#define IS_SYNTAX_OP(syn, opm)    (((syn)->op  & (opm)) != 0)
  |  |  ------------------
  |  |  |  Branch (330:35): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 3623|      0|	  (num <= env->num_mem || num <= 9)) { /* This spec. from GNU regex */
  ------------------
  |  Branch (3623:5): [True: 0, False: 0]
  |  Branch (3623:28): [True: 0, False: 0]
  ------------------
 3624|      0|	if (IS_SYNTAX_BV(syn, ONIG_SYN_STRICT_CHECK_BACKREF)) {
  ------------------
  |  |  332|      0|#define IS_SYNTAX_BV(syn, bvm)    (((syn)->behavior & (bvm)) != 0)
  |  |  ------------------
  |  |  |  Branch (332:35): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 3625|      0|	  if (num > env->num_mem || IS_NULL(SCANENV_MEM_NODES(env)[num]))
  ------------------
  |  |  311|      0|#define IS_NULL(p)                    (((void*)(p)) == (void*)0)
  |  |  ------------------
  |  |  |  Branch (311:39): [True: 0, False: 0]
  |  |  |  Branch (311:49): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  |  Branch (3625:8): [True: 0, False: 0]
  ------------------
 3626|      0|	    return ONIGERR_INVALID_BACKREF;
  ------------------
  |  |  677|      0|#define ONIGERR_INVALID_BACKREF                              -208
  ------------------
 3627|      0|	}
 3628|       |
 3629|      0|	tok->type = TK_BACKREF;
 3630|      0|	tok->u.backref.num     = 1;
 3631|      0|	tok->u.backref.ref1    = num;
 3632|      0|	tok->u.backref.by_name = 0;
 3633|      0|#ifdef USE_BACKREF_WITH_LEVEL
 3634|      0|	tok->u.backref.exist_level = 0;
 3635|      0|#endif
 3636|      0|	break;
 3637|      0|      }
 3638|       |
 3639|      0|    skip_backref:
 3640|      0|      if (c == '8' || c == '9') {
  ------------------
  |  Branch (3640:11): [True: 0, False: 0]
  |  Branch (3640:23): [True: 0, False: 0]
  ------------------
 3641|       |	/* normal char */
 3642|      0|	p = prev; PINC;
  ------------------
  |  |  301|      0|#define PINC       do { \
  |  |  302|      0|  pfetch_prev = p; \
  |  |  303|      0|  p += enclen(enc, p, end); \
  |  |  ------------------
  |  |  |  |   93|      0|#define enclen(enc,p,e) ((enc->max_enc_len == enc->min_enc_len) ? enc->min_enc_len : ONIGENC_MBC_ENC_LEN(enc,p,e))
  |  |  |  |  ------------------
  |  |  |  |  |  |  364|      0|#define ONIGENC_MBC_ENC_LEN(enc,p,e)          onigenc_mbclen(p,e,enc)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (93:26): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  304|      0|} while (0)
  |  |  ------------------
  |  |  |  Branch (304:10): [Folded - Ignored]
  |  |  ------------------
  ------------------
 3643|      0|	break;
 3644|      0|      }
 3645|       |
 3646|      0|      p = prev;
 3647|       |      /* fall through */
 3648|      0|    case '0':
  ------------------
  |  Branch (3648:5): [True: 0, False: 25.8k]
  ------------------
 3649|      0|      if (IS_SYNTAX_OP(syn, ONIG_SYN_OP_ESC_OCTAL3)) {
  ------------------
  |  |  330|      0|#define IS_SYNTAX_OP(syn, opm)    (((syn)->op  & (opm)) != 0)
  |  |  ------------------
  |  |  |  Branch (330:35): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 3650|      0|	prev = p;
 3651|      0|	num = scan_unsigned_octal_number(&p, end, (c == '0' ? 2:3), enc);
  ------------------
  |  Branch (3651:45): [True: 0, False: 0]
  ------------------
 3652|      0|	if (num < 0 || 0xff < num) return ONIGERR_TOO_BIG_NUMBER;
  ------------------
  |  |  669|      0|#define ONIGERR_TOO_BIG_NUMBER                               -200
  ------------------
  |  Branch (3652:6): [True: 0, False: 0]
  |  Branch (3652:17): [True: 0, False: 0]
  ------------------
 3653|      0|	if (p == prev) {  /* can't read nothing. */
  ------------------
  |  Branch (3653:6): [True: 0, False: 0]
  ------------------
 3654|      0|	  num = 0; /* but, it's not error */
 3655|      0|	}
 3656|      0|	tok->type = TK_RAW_BYTE;
 3657|      0|	tok->base = 8;
 3658|      0|	tok->u.c  = num;
 3659|      0|      }
 3660|      0|      else if (c != '0') {
  ------------------
  |  Branch (3660:16): [True: 0, False: 0]
  ------------------
 3661|      0|	PINC;
  ------------------
  |  |  301|      0|#define PINC       do { \
  |  |  302|      0|  pfetch_prev = p; \
  |  |  303|      0|  p += enclen(enc, p, end); \
  |  |  ------------------
  |  |  |  |   93|      0|#define enclen(enc,p,e) ((enc->max_enc_len == enc->min_enc_len) ? enc->min_enc_len : ONIGENC_MBC_ENC_LEN(enc,p,e))
  |  |  |  |  ------------------
  |  |  |  |  |  |  364|      0|#define ONIGENC_MBC_ENC_LEN(enc,p,e)          onigenc_mbclen(p,e,enc)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (93:26): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  304|      0|} while (0)
  |  |  ------------------
  |  |  |  Branch (304:10): [Folded - Ignored]
  |  |  ------------------
  ------------------
 3662|      0|      }
 3663|      0|      break;
 3664|       |
 3665|      0|#ifdef USE_NAMED_GROUP
 3666|      0|    case 'k':
  ------------------
  |  Branch (3666:5): [True: 0, False: 25.8k]
  ------------------
 3667|      0|      if (!PEND && IS_SYNTAX_OP2(syn, ONIG_SYN_OP2_ESC_K_NAMED_BACKREF)) {
  ------------------
  |  |  299|      0|#define PEND         (p < end ?  0 : 1)
  |  |  ------------------
  |  |  |  Branch (299:23): [True: 0, False: 0]
  |  |  ------------------
  ------------------
                    if (!PEND && IS_SYNTAX_OP2(syn, ONIG_SYN_OP2_ESC_K_NAMED_BACKREF)) {
  ------------------
  |  |  331|      0|#define IS_SYNTAX_OP2(syn, opm)   (((syn)->op2 & (opm)) != 0)
  |  |  ------------------
  |  |  |  Branch (331:35): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  |  Branch (3667:11): [True: 0, False: 0]
  ------------------
 3668|      0|	PFETCH(c);
  ------------------
  |  |  305|      0|#define PFETCH(c)  do { \
  |  |  306|      0|  c = ((enc->max_enc_len == 1) ? *p : ONIGENC_MBC_TO_CODE(enc, p, end)); \
  |  |  ------------------
  |  |  |  |  369|      0|#define ONIGENC_MBC_TO_CODE(enc,p,end)         (enc)->mbc_to_code((p),(end),enc)
  |  |  ------------------
  |  |  |  Branch (306:8): [True: 0, False: 0]
  |  |  ------------------
  |  |  307|      0|  pfetch_prev = p; \
  |  |  308|      0|  p += enclen(enc, p, end); \
  |  |  ------------------
  |  |  |  |   93|      0|#define enclen(enc,p,e) ((enc->max_enc_len == enc->min_enc_len) ? enc->min_enc_len : ONIGENC_MBC_ENC_LEN(enc,p,e))
  |  |  |  |  ------------------
  |  |  |  |  |  |  364|      0|#define ONIGENC_MBC_ENC_LEN(enc,p,e)          onigenc_mbclen(p,e,enc)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (93:26): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  309|      0|} while (0)
  |  |  ------------------
  |  |  |  Branch (309:10): [Folded - Ignored]
  |  |  ------------------
  ------------------
 3669|      0|	if (c == '<' || c == '\'') {
  ------------------
  |  Branch (3669:6): [True: 0, False: 0]
  |  Branch (3669:18): [True: 0, False: 0]
  ------------------
 3670|      0|	  r = fetch_named_backref_token(c, tok, &p, end, env);
 3671|      0|	  if (r < 0) return r;
  ------------------
  |  Branch (3671:8): [True: 0, False: 0]
  ------------------
 3672|      0|	}
 3673|      0|	else {
 3674|      0|	  PUNFETCH;
  ------------------
  |  |  300|      0|#define PUNFETCH     p = pfetch_prev
  ------------------
 3675|      0|	  onig_syntax_warn(env, "invalid back reference");
 3676|      0|	}
 3677|      0|      }
 3678|      0|      break;
 3679|      0|#endif
 3680|       |
 3681|      0|#if defined(USE_SUBEXP_CALL) || defined(USE_NAMED_GROUP)
 3682|      0|    case 'g':
  ------------------
  |  Branch (3682:5): [True: 0, False: 25.8k]
  ------------------
 3683|      0|# ifdef USE_NAMED_GROUP
 3684|      0|      if (!PEND && IS_SYNTAX_OP2(syn, ONIG_SYN_OP2_ESC_G_BRACE_BACKREF)) {
  ------------------
  |  |  299|      0|#define PEND         (p < end ?  0 : 1)
  |  |  ------------------
  |  |  |  Branch (299:23): [True: 0, False: 0]
  |  |  ------------------
  ------------------
                    if (!PEND && IS_SYNTAX_OP2(syn, ONIG_SYN_OP2_ESC_G_BRACE_BACKREF)) {
  ------------------
  |  |  331|      0|#define IS_SYNTAX_OP2(syn, opm)   (((syn)->op2 & (opm)) != 0)
  |  |  ------------------
  |  |  |  Branch (331:35): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  |  Branch (3684:11): [True: 0, False: 0]
  ------------------
 3685|      0|	PFETCH(c);
  ------------------
  |  |  305|      0|#define PFETCH(c)  do { \
  |  |  306|      0|  c = ((enc->max_enc_len == 1) ? *p : ONIGENC_MBC_TO_CODE(enc, p, end)); \
  |  |  ------------------
  |  |  |  |  369|      0|#define ONIGENC_MBC_TO_CODE(enc,p,end)         (enc)->mbc_to_code((p),(end),enc)
  |  |  ------------------
  |  |  |  Branch (306:8): [True: 0, False: 0]
  |  |  ------------------
  |  |  307|      0|  pfetch_prev = p; \
  |  |  308|      0|  p += enclen(enc, p, end); \
  |  |  ------------------
  |  |  |  |   93|      0|#define enclen(enc,p,e) ((enc->max_enc_len == enc->min_enc_len) ? enc->min_enc_len : ONIGENC_MBC_ENC_LEN(enc,p,e))
  |  |  |  |  ------------------
  |  |  |  |  |  |  364|      0|#define ONIGENC_MBC_ENC_LEN(enc,p,e)          onigenc_mbclen(p,e,enc)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (93:26): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  309|      0|} while (0)
  |  |  ------------------
  |  |  |  Branch (309:10): [Folded - Ignored]
  |  |  ------------------
  ------------------
 3686|      0|	if (c == '{') {
  ------------------
  |  Branch (3686:6): [True: 0, False: 0]
  ------------------
 3687|      0|	  r = fetch_named_backref_token(c, tok, &p, end, env);
 3688|      0|	  if (r < 0) return r;
  ------------------
  |  Branch (3688:8): [True: 0, False: 0]
  ------------------
 3689|      0|	}
 3690|      0|	else
 3691|      0|	  PUNFETCH;
  ------------------
  |  |  300|      0|#define PUNFETCH     p = pfetch_prev
  ------------------
 3692|      0|      }
 3693|      0|# endif
 3694|      0|# ifdef USE_SUBEXP_CALL
 3695|      0|      if (!PEND && IS_SYNTAX_OP2(syn, ONIG_SYN_OP2_ESC_G_SUBEXP_CALL)) {
  ------------------
  |  |  299|      0|#define PEND         (p < end ?  0 : 1)
  |  |  ------------------
  |  |  |  Branch (299:23): [True: 0, False: 0]
  |  |  ------------------
  ------------------
                    if (!PEND && IS_SYNTAX_OP2(syn, ONIG_SYN_OP2_ESC_G_SUBEXP_CALL)) {
  ------------------
  |  |  331|      0|#define IS_SYNTAX_OP2(syn, opm)   (((syn)->op2 & (opm)) != 0)
  |  |  ------------------
  |  |  |  Branch (331:35): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  |  Branch (3695:11): [True: 0, False: 0]
  ------------------
 3696|      0|	PFETCH(c);
  ------------------
  |  |  305|      0|#define PFETCH(c)  do { \
  |  |  306|      0|  c = ((enc->max_enc_len == 1) ? *p : ONIGENC_MBC_TO_CODE(enc, p, end)); \
  |  |  ------------------
  |  |  |  |  369|      0|#define ONIGENC_MBC_TO_CODE(enc,p,end)         (enc)->mbc_to_code((p),(end),enc)
  |  |  ------------------
  |  |  |  Branch (306:8): [True: 0, False: 0]
  |  |  ------------------
  |  |  307|      0|  pfetch_prev = p; \
  |  |  308|      0|  p += enclen(enc, p, end); \
  |  |  ------------------
  |  |  |  |   93|      0|#define enclen(enc,p,e) ((enc->max_enc_len == enc->min_enc_len) ? enc->min_enc_len : ONIGENC_MBC_ENC_LEN(enc,p,e))
  |  |  |  |  ------------------
  |  |  |  |  |  |  364|      0|#define ONIGENC_MBC_ENC_LEN(enc,p,e)          onigenc_mbclen(p,e,enc)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (93:26): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  309|      0|} while (0)
  |  |  ------------------
  |  |  |  Branch (309:10): [Folded - Ignored]
  |  |  ------------------
  ------------------
 3697|      0|	if (c == '<' || c == '\'') {
  ------------------
  |  Branch (3697:6): [True: 0, False: 0]
  |  Branch (3697:18): [True: 0, False: 0]
  ------------------
 3698|      0|	  int gnum = -1, rel = 0;
 3699|      0|	  UChar* name_end;
  ------------------
  |  |   76|      0|# define UChar OnigUChar
  ------------------
 3700|      0|	  OnigCodePoint cnext;
 3701|       |
 3702|      0|	  cnext = PPEEK;
  ------------------
  |  |  319|      0|#define PPEEK        (p < end ? ONIGENC_MBC_TO_CODE(enc, p, end) : PEND_VALUE)
  |  |  ------------------
  |  |  |  |  369|      0|#define ONIGENC_MBC_TO_CODE(enc,p,end)         (enc)->mbc_to_code((p),(end),enc)
  |  |  ------------------
  |  |               #define PPEEK        (p < end ? ONIGENC_MBC_TO_CODE(enc, p, end) : PEND_VALUE)
  |  |  ------------------
  |  |  |  |  291|      0|#define PEND_VALUE   0
  |  |  ------------------
  |  |  |  Branch (319:23): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 3703|      0|	  if (cnext == '0') {
  ------------------
  |  Branch (3703:8): [True: 0, False: 0]
  ------------------
 3704|      0|	    PINC;
  ------------------
  |  |  301|      0|#define PINC       do { \
  |  |  302|      0|  pfetch_prev = p; \
  |  |  303|      0|  p += enclen(enc, p, end); \
  |  |  ------------------
  |  |  |  |   93|      0|#define enclen(enc,p,e) ((enc->max_enc_len == enc->min_enc_len) ? enc->min_enc_len : ONIGENC_MBC_ENC_LEN(enc,p,e))
  |  |  |  |  ------------------
  |  |  |  |  |  |  364|      0|#define ONIGENC_MBC_ENC_LEN(enc,p,e)          onigenc_mbclen(p,e,enc)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (93:26): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  304|      0|} while (0)
  |  |  ------------------
  |  |  |  Branch (304:10): [Folded - Ignored]
  |  |  ------------------
  ------------------
 3705|      0|	    if (PPEEK_IS(get_name_end_code_point(c))) {  /* \g<0>, \g'0' */
  ------------------
  |  |  320|      0|#define PPEEK_IS(c)  (PPEEK == (OnigCodePoint )c)
  |  |  ------------------
  |  |  |  |  319|      0|#define PPEEK        (p < end ? ONIGENC_MBC_TO_CODE(enc, p, end) : PEND_VALUE)
  |  |  |  |  ------------------
  |  |  |  |  |  |  369|      0|#define ONIGENC_MBC_TO_CODE(enc,p,end)         (enc)->mbc_to_code((p),(end),enc)
  |  |  |  |  ------------------
  |  |  |  |               #define PPEEK        (p < end ? ONIGENC_MBC_TO_CODE(enc, p, end) : PEND_VALUE)
  |  |  |  |  ------------------
  |  |  |  |  |  |  291|      0|#define PEND_VALUE   0
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (319:23): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  |  Branch (320:22): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 3706|      0|	      PINC;
  ------------------
  |  |  301|      0|#define PINC       do { \
  |  |  302|      0|  pfetch_prev = p; \
  |  |  303|      0|  p += enclen(enc, p, end); \
  |  |  ------------------
  |  |  |  |   93|      0|#define enclen(enc,p,e) ((enc->max_enc_len == enc->min_enc_len) ? enc->min_enc_len : ONIGENC_MBC_ENC_LEN(enc,p,e))
  |  |  |  |  ------------------
  |  |  |  |  |  |  364|      0|#define ONIGENC_MBC_ENC_LEN(enc,p,e)          onigenc_mbclen(p,e,enc)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (93:26): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  304|      0|} while (0)
  |  |  ------------------
  |  |  |  Branch (304:10): [Folded - Ignored]
  |  |  ------------------
  ------------------
 3707|      0|	      name_end = p;
 3708|      0|	      gnum = 0;
 3709|      0|	    }
 3710|      0|	  }
 3711|      0|	  else if (cnext == '+') {
  ------------------
  |  Branch (3711:13): [True: 0, False: 0]
  ------------------
 3712|      0|	    PINC;
  ------------------
  |  |  301|      0|#define PINC       do { \
  |  |  302|      0|  pfetch_prev = p; \
  |  |  303|      0|  p += enclen(enc, p, end); \
  |  |  ------------------
  |  |  |  |   93|      0|#define enclen(enc,p,e) ((enc->max_enc_len == enc->min_enc_len) ? enc->min_enc_len : ONIGENC_MBC_ENC_LEN(enc,p,e))
  |  |  |  |  ------------------
  |  |  |  |  |  |  364|      0|#define ONIGENC_MBC_ENC_LEN(enc,p,e)          onigenc_mbclen(p,e,enc)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (93:26): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  304|      0|} while (0)
  |  |  ------------------
  |  |  |  Branch (304:10): [Folded - Ignored]
  |  |  ------------------
  ------------------
 3713|      0|	    rel = 1;
 3714|      0|	  }
 3715|      0|	  prev = p;
 3716|      0|	  if (gnum < 0) {
  ------------------
  |  Branch (3716:8): [True: 0, False: 0]
  ------------------
 3717|      0|	    r = fetch_name((OnigCodePoint )c, &p, end, &name_end, env, &gnum, 1);
 3718|      0|	    if (r < 0) return r;
  ------------------
  |  Branch (3718:10): [True: 0, False: 0]
  ------------------
 3719|      0|	  }
 3720|       |
 3721|      0|	  tok->type = TK_CALL;
 3722|      0|	  tok->u.call.name     = prev;
 3723|      0|	  tok->u.call.name_end = name_end;
 3724|      0|	  tok->u.call.gnum     = gnum;
 3725|      0|	  tok->u.call.rel      = rel;
 3726|      0|	}
 3727|      0|	else {
 3728|      0|	  onig_syntax_warn(env, "invalid subexp call");
 3729|      0|	  PUNFETCH;
  ------------------
  |  |  300|      0|#define PUNFETCH     p = pfetch_prev
  ------------------
 3730|      0|	}
 3731|      0|      }
 3732|      0|# endif
 3733|      0|      break;
 3734|      0|#endif
 3735|       |
 3736|      0|    case 'Q':
  ------------------
  |  Branch (3736:5): [True: 0, False: 25.8k]
  ------------------
 3737|      0|      if (IS_SYNTAX_OP2(syn, ONIG_SYN_OP2_ESC_CAPITAL_Q_QUOTE)) {
  ------------------
  |  |  331|      0|#define IS_SYNTAX_OP2(syn, opm)   (((syn)->op2 & (opm)) != 0)
  |  |  ------------------
  |  |  |  Branch (331:35): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 3738|      0|	tok->type = TK_QUOTE_OPEN;
 3739|      0|      }
 3740|      0|      break;
 3741|       |
 3742|      0|    case 'p':
  ------------------
  |  Branch (3742:5): [True: 0, False: 25.8k]
  ------------------
 3743|      0|    case 'P':
  ------------------
  |  Branch (3743:5): [True: 0, False: 25.8k]
  ------------------
 3744|      0|      if (PPEEK_IS('{') &&
  ------------------
  |  |  320|      0|#define PPEEK_IS(c)  (PPEEK == (OnigCodePoint )c)
  |  |  ------------------
  |  |  |  |  319|      0|#define PPEEK        (p < end ? ONIGENC_MBC_TO_CODE(enc, p, end) : PEND_VALUE)
  |  |  |  |  ------------------
  |  |  |  |  |  |  369|      0|#define ONIGENC_MBC_TO_CODE(enc,p,end)         (enc)->mbc_to_code((p),(end),enc)
  |  |  |  |  ------------------
  |  |  |  |               #define PPEEK        (p < end ? ONIGENC_MBC_TO_CODE(enc, p, end) : PEND_VALUE)
  |  |  |  |  ------------------
  |  |  |  |  |  |  291|      0|#define PEND_VALUE   0
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (319:23): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  |  Branch (320:22): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 3745|      0|	  IS_SYNTAX_OP2(syn, ONIG_SYN_OP2_ESC_P_BRACE_CHAR_PROPERTY)) {
  ------------------
  |  |  331|      0|#define IS_SYNTAX_OP2(syn, opm)   (((syn)->op2 & (opm)) != 0)
  |  |  ------------------
  |  |  |  Branch (331:35): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 3746|      0|	PINC;
  ------------------
  |  |  301|      0|#define PINC       do { \
  |  |  302|      0|  pfetch_prev = p; \
  |  |  303|      0|  p += enclen(enc, p, end); \
  |  |  ------------------
  |  |  |  |   93|      0|#define enclen(enc,p,e) ((enc->max_enc_len == enc->min_enc_len) ? enc->min_enc_len : ONIGENC_MBC_ENC_LEN(enc,p,e))
  |  |  |  |  ------------------
  |  |  |  |  |  |  364|      0|#define ONIGENC_MBC_ENC_LEN(enc,p,e)          onigenc_mbclen(p,e,enc)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (93:26): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  304|      0|} while (0)
  |  |  ------------------
  |  |  |  Branch (304:10): [Folded - Ignored]
  |  |  ------------------
  ------------------
 3747|      0|	tok->type = TK_CHAR_PROPERTY;
 3748|      0|	tok->u.prop.not = (c == 'P' ? 1 : 0);
  ------------------
  |  Branch (3748:21): [True: 0, False: 0]
  ------------------
 3749|       |
 3750|      0|	if (!PEND && IS_SYNTAX_OP2(syn, ONIG_SYN_OP2_ESC_P_BRACE_CIRCUMFLEX_NOT)) {
  ------------------
  |  |  299|      0|#define PEND         (p < end ?  0 : 1)
  |  |  ------------------
  |  |  |  Branch (299:23): [True: 0, False: 0]
  |  |  ------------------
  ------------------
              	if (!PEND && IS_SYNTAX_OP2(syn, ONIG_SYN_OP2_ESC_P_BRACE_CIRCUMFLEX_NOT)) {
  ------------------
  |  |  331|      0|#define IS_SYNTAX_OP2(syn, opm)   (((syn)->op2 & (opm)) != 0)
  |  |  ------------------
  |  |  |  Branch (331:35): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  |  Branch (3750:6): [True: 0, False: 0]
  ------------------
 3751|      0|	  PFETCH(c);
  ------------------
  |  |  305|      0|#define PFETCH(c)  do { \
  |  |  306|      0|  c = ((enc->max_enc_len == 1) ? *p : ONIGENC_MBC_TO_CODE(enc, p, end)); \
  |  |  ------------------
  |  |  |  |  369|      0|#define ONIGENC_MBC_TO_CODE(enc,p,end)         (enc)->mbc_to_code((p),(end),enc)
  |  |  ------------------
  |  |  |  Branch (306:8): [True: 0, False: 0]
  |  |  ------------------
  |  |  307|      0|  pfetch_prev = p; \
  |  |  308|      0|  p += enclen(enc, p, end); \
  |  |  ------------------
  |  |  |  |   93|      0|#define enclen(enc,p,e) ((enc->max_enc_len == enc->min_enc_len) ? enc->min_enc_len : ONIGENC_MBC_ENC_LEN(enc,p,e))
  |  |  |  |  ------------------
  |  |  |  |  |  |  364|      0|#define ONIGENC_MBC_ENC_LEN(enc,p,e)          onigenc_mbclen(p,e,enc)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (93:26): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  309|      0|} while (0)
  |  |  ------------------
  |  |  |  Branch (309:10): [Folded - Ignored]
  |  |  ------------------
  ------------------
 3752|      0|	  if (c == '^') {
  ------------------
  |  Branch (3752:8): [True: 0, False: 0]
  ------------------
 3753|      0|	    tok->u.prop.not = (tok->u.prop.not == 0 ? 1 : 0);
  ------------------
  |  Branch (3753:25): [True: 0, False: 0]
  ------------------
 3754|      0|	  }
 3755|      0|	  else
 3756|      0|	    PUNFETCH;
  ------------------
  |  |  300|      0|#define PUNFETCH     p = pfetch_prev
  ------------------
 3757|      0|	}
 3758|      0|      }
 3759|      0|      else {
 3760|      0|	onig_syntax_warn(env, "invalid Unicode Property \\%c", c);
 3761|      0|      }
 3762|      0|      break;
 3763|       |
 3764|      0|    case 'R':
  ------------------
  |  Branch (3764:5): [True: 0, False: 25.8k]
  ------------------
 3765|      0|      if (IS_SYNTAX_OP2(syn, ONIG_SYN_OP2_ESC_CAPITAL_R_LINEBREAK)) {
  ------------------
  |  |  331|      0|#define IS_SYNTAX_OP2(syn, opm)   (((syn)->op2 & (opm)) != 0)
  |  |  ------------------
  |  |  |  Branch (331:35): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 3766|      0|	tok->type = TK_LINEBREAK;
 3767|      0|      }
 3768|      0|      break;
 3769|       |
 3770|      0|    case 'X':
  ------------------
  |  Branch (3770:5): [True: 0, False: 25.8k]
  ------------------
 3771|      0|      if (IS_SYNTAX_OP2(syn, ONIG_SYN_OP2_ESC_CAPITAL_X_EXTENDED_GRAPHEME_CLUSTER)) {
  ------------------
  |  |  331|      0|#define IS_SYNTAX_OP2(syn, opm)   (((syn)->op2 & (opm)) != 0)
  |  |  ------------------
  |  |  |  Branch (331:35): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 3772|      0|	tok->type = TK_EXTENDED_GRAPHEME_CLUSTER;
 3773|      0|      }
 3774|      0|      break;
 3775|       |
 3776|      0|    case 'K':
  ------------------
  |  Branch (3776:5): [True: 0, False: 25.8k]
  ------------------
 3777|      0|      if (IS_SYNTAX_OP2(syn, ONIG_SYN_OP2_ESC_CAPITAL_K_KEEP)) {
  ------------------
  |  |  331|      0|#define IS_SYNTAX_OP2(syn, opm)   (((syn)->op2 & (opm)) != 0)
  |  |  ------------------
  |  |  |  Branch (331:35): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 3778|      0|	tok->type = TK_KEEP;
 3779|      0|      }
 3780|      0|      break;
 3781|       |
 3782|  7.17k|    default:
  ------------------
  |  Branch (3782:5): [True: 7.17k, False: 18.6k]
  ------------------
 3783|  7.17k|      {
 3784|  7.17k|	OnigCodePoint c2;
 3785|       |
 3786|  7.17k|	PUNFETCH;
  ------------------
  |  |  300|  7.17k|#define PUNFETCH     p = pfetch_prev
  ------------------
 3787|  7.17k|	num = fetch_escaped_value(&p, end, env, &c2);
 3788|  7.17k|	if (num < 0) return num;
  ------------------
  |  Branch (3788:6): [True: 0, False: 7.17k]
  ------------------
 3789|       |	/* set_raw: */
 3790|  7.17k|	if ((OnigCodePoint )tok->u.c != c2) {
  ------------------
  |  Branch (3790:6): [True: 0, False: 7.17k]
  ------------------
 3791|      0|	  tok->type = TK_CODE_POINT;
 3792|      0|	  tok->u.code = (OnigCodePoint )c2;
 3793|      0|	}
 3794|  7.17k|	else { /* string */
 3795|  7.17k|	  p = tok->backp + enclen(enc, tok->backp, end);
  ------------------
  |  |   93|  7.17k|#define enclen(enc,p,e) ((enc->max_enc_len == enc->min_enc_len) ? enc->min_enc_len : ONIGENC_MBC_ENC_LEN(enc,p,e))
  |  |  ------------------
  |  |  |  |  364|  7.17k|#define ONIGENC_MBC_ENC_LEN(enc,p,e)          onigenc_mbclen(p,e,enc)
  |  |  ------------------
  |  |  |  Branch (93:26): [True: 0, False: 7.17k]
  |  |  ------------------
  ------------------
 3796|  7.17k|	}
 3797|  7.17k|      }
 3798|      0|      break;
 3799|  25.8k|    }
 3800|  25.8k|  }
 3801|   690k|  else {
 3802|   690k|    tok->u.c = c;
 3803|   690k|    tok->escaped = 0;
 3804|       |
 3805|   690k|#ifdef USE_VARIABLE_META_CHARS
 3806|   690k|    if ((c != ONIG_INEFFECTIVE_META_CHAR) &&
  ------------------
  |  |  622|   690k|#define ONIG_INEFFECTIVE_META_CHAR          0
  ------------------
  |  Branch (3806:9): [True: 690k, False: 0]
  ------------------
 3807|   690k|	IS_SYNTAX_OP(syn, ONIG_SYN_OP_VARIABLE_META_CHARACTERS)) {
  ------------------
  |  |  330|   690k|#define IS_SYNTAX_OP(syn, opm)    (((syn)->op  & (opm)) != 0)
  |  |  ------------------
  |  |  |  Branch (330:35): [True: 0, False: 690k]
  |  |  ------------------
  ------------------
 3808|      0|      if (c == MC_ANYCHAR(syn))
  ------------------
  |  |  762|      0|#define MC_ANYCHAR(syn)           (syn)->meta_char_table.anychar
  ------------------
  |  Branch (3808:11): [True: 0, False: 0]
  ------------------
 3809|      0|	goto any_char;
 3810|      0|      else if (c == MC_ANYTIME(syn))
  ------------------
  |  |  763|      0|#define MC_ANYTIME(syn)           (syn)->meta_char_table.anytime
  ------------------
  |  Branch (3810:16): [True: 0, False: 0]
  ------------------
 3811|      0|	goto anytime;
 3812|      0|      else if (c == MC_ZERO_OR_ONE_TIME(syn))
  ------------------
  |  |  764|      0|#define MC_ZERO_OR_ONE_TIME(syn)  (syn)->meta_char_table.zero_or_one_time
  ------------------
  |  Branch (3812:16): [True: 0, False: 0]
  ------------------
 3813|      0|	goto zero_or_one_time;
 3814|      0|      else if (c == MC_ONE_OR_MORE_TIME(syn))
  ------------------
  |  |  765|      0|#define MC_ONE_OR_MORE_TIME(syn)  (syn)->meta_char_table.one_or_more_time
  ------------------
  |  Branch (3814:16): [True: 0, False: 0]
  ------------------
 3815|      0|	goto one_or_more_time;
 3816|      0|      else if (c == MC_ANYCHAR_ANYTIME(syn)) {
  ------------------
  |  |  766|      0|#define MC_ANYCHAR_ANYTIME(syn)   (syn)->meta_char_table.anychar_anytime
  ------------------
  |  Branch (3816:16): [True: 0, False: 0]
  ------------------
 3817|      0|	tok->type = TK_ANYCHAR_ANYTIME;
 3818|      0|	goto out;
 3819|      0|      }
 3820|      0|    }
 3821|   690k|#endif
 3822|       |
 3823|   690k|    switch (c) {
 3824|  14.5k|    case '.':
  ------------------
  |  Branch (3824:5): [True: 14.5k, False: 675k]
  ------------------
 3825|  14.5k|      if (! IS_SYNTAX_OP(syn, ONIG_SYN_OP_DOT_ANYCHAR)) break;
  ------------------
  |  |  330|  14.5k|#define IS_SYNTAX_OP(syn, opm)    (((syn)->op  & (opm)) != 0)
  ------------------
  |  Branch (3825:11): [True: 0, False: 14.5k]
  ------------------
 3826|  14.5k|#ifdef USE_VARIABLE_META_CHARS
 3827|  14.5k|    any_char:
 3828|  14.5k|#endif
 3829|  14.5k|      tok->type = TK_ANYCHAR;
 3830|  14.5k|      break;
 3831|       |
 3832|  15.9k|    case '*':
  ------------------
  |  Branch (3832:5): [True: 15.9k, False: 674k]
  ------------------
 3833|  15.9k|      if (! IS_SYNTAX_OP(syn, ONIG_SYN_OP_ASTERISK_ZERO_INF)) break;
  ------------------
  |  |  330|  15.9k|#define IS_SYNTAX_OP(syn, opm)    (((syn)->op  & (opm)) != 0)
  ------------------
  |  Branch (3833:11): [True: 0, False: 15.9k]
  ------------------
 3834|  15.9k|#ifdef USE_VARIABLE_META_CHARS
 3835|  15.9k|    anytime:
 3836|  15.9k|#endif
 3837|  15.9k|      tok->type = TK_OP_REPEAT;
 3838|  15.9k|      tok->u.repeat.lower = 0;
 3839|  15.9k|      tok->u.repeat.upper = REPEAT_INFINITE;
  ------------------
  |  |  421|  15.9k|#define REPEAT_INFINITE         -1
  ------------------
 3840|  15.9k|      goto greedy_check;
 3841|      0|      break;
 3842|       |
 3843|  25.9k|    case '+':
  ------------------
  |  Branch (3843:5): [True: 25.9k, False: 664k]
  ------------------
 3844|  25.9k|      if (! IS_SYNTAX_OP(syn, ONIG_SYN_OP_PLUS_ONE_INF)) break;
  ------------------
  |  |  330|  25.9k|#define IS_SYNTAX_OP(syn, opm)    (((syn)->op  & (opm)) != 0)
  ------------------
  |  Branch (3844:11): [True: 0, False: 25.9k]
  ------------------
 3845|  25.9k|#ifdef USE_VARIABLE_META_CHARS
 3846|  25.9k|    one_or_more_time:
 3847|  25.9k|#endif
 3848|  25.9k|      tok->type = TK_OP_REPEAT;
 3849|  25.9k|      tok->u.repeat.lower = 1;
 3850|  25.9k|      tok->u.repeat.upper = REPEAT_INFINITE;
  ------------------
  |  |  421|  25.9k|#define REPEAT_INFINITE         -1
  ------------------
 3851|  25.9k|      goto greedy_check;
 3852|      0|      break;
 3853|       |
 3854|  1.46k|    case '?':
  ------------------
  |  Branch (3854:5): [True: 1.46k, False: 689k]
  ------------------
 3855|  1.46k|      if (! IS_SYNTAX_OP(syn, ONIG_SYN_OP_QMARK_ZERO_ONE)) break;
  ------------------
  |  |  330|  1.46k|#define IS_SYNTAX_OP(syn, opm)    (((syn)->op  & (opm)) != 0)
  ------------------
  |  Branch (3855:11): [True: 0, False: 1.46k]
  ------------------
 3856|  1.46k|#ifdef USE_VARIABLE_META_CHARS
 3857|  1.46k|    zero_or_one_time:
 3858|  1.46k|#endif
 3859|  1.46k|      tok->type = TK_OP_REPEAT;
 3860|  1.46k|      tok->u.repeat.lower = 0;
 3861|  1.46k|      tok->u.repeat.upper = 1;
 3862|  1.46k|      goto greedy_check;
 3863|      0|      break;
 3864|       |
 3865|      0|    case '{':
  ------------------
  |  Branch (3865:5): [True: 0, False: 690k]
  ------------------
 3866|      0|      if (! IS_SYNTAX_OP(syn, ONIG_SYN_OP_BRACE_INTERVAL)) break;
  ------------------
  |  |  330|      0|#define IS_SYNTAX_OP(syn, opm)    (((syn)->op  & (opm)) != 0)
  ------------------
  |  Branch (3866:11): [True: 0, False: 0]
  ------------------
 3867|      0|      r = fetch_range_quantifier(&p, end, tok, env);
 3868|      0|      if (r < 0) return r;  /* error */
  ------------------
  |  Branch (3868:11): [True: 0, False: 0]
  ------------------
 3869|      0|      if (r == 0) goto greedy_check;
  ------------------
  |  Branch (3869:11): [True: 0, False: 0]
  ------------------
 3870|      0|      else if (r == 2) { /* {n} */
  ------------------
  |  Branch (3870:16): [True: 0, False: 0]
  ------------------
 3871|      0|	if (IS_SYNTAX_BV(syn, ONIG_SYN_FIXED_INTERVAL_IS_GREEDY_ONLY))
  ------------------
  |  |  332|      0|#define IS_SYNTAX_BV(syn, bvm)    (((syn)->behavior & (bvm)) != 0)
  |  |  ------------------
  |  |  |  Branch (332:35): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 3872|      0|	  goto possessive_check;
 3873|       |
 3874|      0|	goto greedy_check;
 3875|      0|      }
 3876|       |      /* r == 1 : normal char */
 3877|      0|      break;
 3878|       |
 3879|  11.7k|    case '|':
  ------------------
  |  Branch (3879:5): [True: 11.7k, False: 678k]
  ------------------
 3880|  11.7k|      if (! IS_SYNTAX_OP(syn, ONIG_SYN_OP_VBAR_ALT)) break;
  ------------------
  |  |  330|  11.7k|#define IS_SYNTAX_OP(syn, opm)    (((syn)->op  & (opm)) != 0)
  ------------------
  |  Branch (3880:11): [True: 0, False: 11.7k]
  ------------------
 3881|  11.7k|      tok->type = TK_ALT;
 3882|  11.7k|      break;
 3883|       |
 3884|  17.5k|    case '(':
  ------------------
  |  Branch (3884:5): [True: 17.5k, False: 672k]
  ------------------
 3885|  17.5k|      if (PPEEK_IS('?') &&
  ------------------
  |  |  320|  35.0k|#define PPEEK_IS(c)  (PPEEK == (OnigCodePoint )c)
  |  |  ------------------
  |  |  |  |  319|  17.5k|#define PPEEK        (p < end ? ONIGENC_MBC_TO_CODE(enc, p, end) : PEND_VALUE)
  |  |  |  |  ------------------
  |  |  |  |  |  |  369|  17.5k|#define ONIGENC_MBC_TO_CODE(enc,p,end)         (enc)->mbc_to_code((p),(end),enc)
  |  |  |  |  ------------------
  |  |  |  |               #define PPEEK        (p < end ? ONIGENC_MBC_TO_CODE(enc, p, end) : PEND_VALUE)
  |  |  |  |  ------------------
  |  |  |  |  |  |  291|      0|#define PEND_VALUE   0
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (319:23): [True: 17.5k, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  |  Branch (320:22): [True: 16.0k, False: 1.46k]
  |  |  ------------------
  ------------------
 3886|  17.5k|	  IS_SYNTAX_OP2(syn, ONIG_SYN_OP2_QMARK_GROUP_EFFECT)) {
  ------------------
  |  |  331|  16.0k|#define IS_SYNTAX_OP2(syn, opm)   (((syn)->op2 & (opm)) != 0)
  |  |  ------------------
  |  |  |  Branch (331:35): [True: 16.0k, False: 0]
  |  |  ------------------
  ------------------
 3887|  16.0k|	PINC;
  ------------------
  |  |  301|  16.0k|#define PINC       do { \
  |  |  302|  16.0k|  pfetch_prev = p; \
  |  |  303|  16.0k|  p += enclen(enc, p, end); \
  |  |  ------------------
  |  |  |  |   93|  16.0k|#define enclen(enc,p,e) ((enc->max_enc_len == enc->min_enc_len) ? enc->min_enc_len : ONIGENC_MBC_ENC_LEN(enc,p,e))
  |  |  |  |  ------------------
  |  |  |  |  |  |  364|  16.0k|#define ONIGENC_MBC_ENC_LEN(enc,p,e)          onigenc_mbclen(p,e,enc)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (93:26): [True: 0, False: 16.0k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  304|  16.0k|} while (0)
  |  |  ------------------
  |  |  |  Branch (304:10): [Folded - Ignored]
  |  |  ------------------
  ------------------
 3888|  16.0k|	if (PPEEK_IS('#')) {
  ------------------
  |  |  320|  16.0k|#define PPEEK_IS(c)  (PPEEK == (OnigCodePoint )c)
  |  |  ------------------
  |  |  |  |  319|  16.0k|#define PPEEK        (p < end ? ONIGENC_MBC_TO_CODE(enc, p, end) : PEND_VALUE)
  |  |  |  |  ------------------
  |  |  |  |  |  |  369|  16.0k|#define ONIGENC_MBC_TO_CODE(enc,p,end)         (enc)->mbc_to_code((p),(end),enc)
  |  |  |  |  ------------------
  |  |  |  |               #define PPEEK        (p < end ? ONIGENC_MBC_TO_CODE(enc, p, end) : PEND_VALUE)
  |  |  |  |  ------------------
  |  |  |  |  |  |  291|      0|#define PEND_VALUE   0
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (319:23): [True: 16.0k, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  |  Branch (320:22): [True: 0, False: 16.0k]
  |  |  ------------------
  ------------------
 3889|      0|	  PFETCH(c);
  ------------------
  |  |  305|      0|#define PFETCH(c)  do { \
  |  |  306|      0|  c = ((enc->max_enc_len == 1) ? *p : ONIGENC_MBC_TO_CODE(enc, p, end)); \
  |  |  ------------------
  |  |  |  |  369|      0|#define ONIGENC_MBC_TO_CODE(enc,p,end)         (enc)->mbc_to_code((p),(end),enc)
  |  |  ------------------
  |  |  |  Branch (306:8): [True: 0, False: 0]
  |  |  ------------------
  |  |  307|      0|  pfetch_prev = p; \
  |  |  308|      0|  p += enclen(enc, p, end); \
  |  |  ------------------
  |  |  |  |   93|      0|#define enclen(enc,p,e) ((enc->max_enc_len == enc->min_enc_len) ? enc->min_enc_len : ONIGENC_MBC_ENC_LEN(enc,p,e))
  |  |  |  |  ------------------
  |  |  |  |  |  |  364|      0|#define ONIGENC_MBC_ENC_LEN(enc,p,e)          onigenc_mbclen(p,e,enc)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (93:26): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  309|      0|} while (0)
  |  |  ------------------
  |  |  |  Branch (309:10): [Folded - Ignored]
  |  |  ------------------
  ------------------
 3890|      0|	  while (1) {
  ------------------
  |  Branch (3890:11): [Folded - Ignored]
  ------------------
 3891|      0|	    if (PEND) return ONIGERR_END_PATTERN_IN_GROUP;
  ------------------
  |  |  299|      0|#define PEND         (p < end ?  0 : 1)
  |  |  ------------------
  |  |  |  Branch (299:22): [True: 0, False: 0]
  |  |  |  Branch (299:23): [True: 0, False: 0]
  |  |  ------------------
  ------------------
              	    if (PEND) return ONIGERR_END_PATTERN_IN_GROUP;
  ------------------
  |  |  662|      0|#define ONIGERR_END_PATTERN_IN_GROUP                         -118
  ------------------
 3892|      0|	    PFETCH(c);
  ------------------
  |  |  305|      0|#define PFETCH(c)  do { \
  |  |  306|      0|  c = ((enc->max_enc_len == 1) ? *p : ONIGENC_MBC_TO_CODE(enc, p, end)); \
  |  |  ------------------
  |  |  |  |  369|      0|#define ONIGENC_MBC_TO_CODE(enc,p,end)         (enc)->mbc_to_code((p),(end),enc)
  |  |  ------------------
  |  |  |  Branch (306:8): [True: 0, False: 0]
  |  |  ------------------
  |  |  307|      0|  pfetch_prev = p; \
  |  |  308|      0|  p += enclen(enc, p, end); \
  |  |  ------------------
  |  |  |  |   93|      0|#define enclen(enc,p,e) ((enc->max_enc_len == enc->min_enc_len) ? enc->min_enc_len : ONIGENC_MBC_ENC_LEN(enc,p,e))
  |  |  |  |  ------------------
  |  |  |  |  |  |  364|      0|#define ONIGENC_MBC_ENC_LEN(enc,p,e)          onigenc_mbclen(p,e,enc)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (93:26): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  309|      0|} while (0)
  |  |  ------------------
  |  |  |  Branch (309:10): [Folded - Ignored]
  |  |  ------------------
  ------------------
 3893|      0|	    if (c == MC_ESC(syn)) {
  ------------------
  |  |  761|      0|#define MC_ESC(syn)               (syn)->meta_char_table.esc
  ------------------
  |  Branch (3893:10): [True: 0, False: 0]
  ------------------
 3894|      0|	      if (!PEND) PFETCH(c);
  ------------------
  |  |  299|      0|#define PEND         (p < end ?  0 : 1)
  |  |  ------------------
  |  |  |  Branch (299:23): [True: 0, False: 0]
  |  |  ------------------
  ------------------
              	      if (!PEND) PFETCH(c);
  ------------------
  |  |  305|      0|#define PFETCH(c)  do { \
  |  |  306|      0|  c = ((enc->max_enc_len == 1) ? *p : ONIGENC_MBC_TO_CODE(enc, p, end)); \
  |  |  ------------------
  |  |  |  |  369|      0|#define ONIGENC_MBC_TO_CODE(enc,p,end)         (enc)->mbc_to_code((p),(end),enc)
  |  |  ------------------
  |  |  |  Branch (306:8): [True: 0, False: 0]
  |  |  ------------------
  |  |  307|      0|  pfetch_prev = p; \
  |  |  308|      0|  p += enclen(enc, p, end); \
  |  |  ------------------
  |  |  |  |   93|      0|#define enclen(enc,p,e) ((enc->max_enc_len == enc->min_enc_len) ? enc->min_enc_len : ONIGENC_MBC_ENC_LEN(enc,p,e))
  |  |  |  |  ------------------
  |  |  |  |  |  |  364|      0|#define ONIGENC_MBC_ENC_LEN(enc,p,e)          onigenc_mbclen(p,e,enc)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (93:26): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  309|      0|} while (0)
  |  |  ------------------
  |  |  |  Branch (309:10): [Folded - Ignored]
  |  |  ------------------
  ------------------
  |  Branch (3894:12): [True: 0, False: 0]
  ------------------
 3895|      0|	    }
 3896|      0|	    else {
 3897|      0|	      if (c == ')') break;
  ------------------
  |  Branch (3897:12): [True: 0, False: 0]
  ------------------
 3898|      0|	    }
 3899|      0|	  }
 3900|      0|	  goto start;
 3901|      0|	}
 3902|  16.0k|#ifdef USE_PERL_SUBEXP_CALL
 3903|       |	/* (?&name), (?n), (?R), (?0), (?+n), (?-n) */
 3904|  16.0k|	c = PPEEK;
  ------------------
  |  |  319|  16.0k|#define PPEEK        (p < end ? ONIGENC_MBC_TO_CODE(enc, p, end) : PEND_VALUE)
  |  |  ------------------
  |  |  |  |  369|  16.0k|#define ONIGENC_MBC_TO_CODE(enc,p,end)         (enc)->mbc_to_code((p),(end),enc)
  |  |  ------------------
  |  |               #define PPEEK        (p < end ? ONIGENC_MBC_TO_CODE(enc, p, end) : PEND_VALUE)
  |  |  ------------------
  |  |  |  |  291|      0|#define PEND_VALUE   0
  |  |  ------------------
  |  |  |  Branch (319:23): [True: 16.0k, False: 0]
  |  |  ------------------
  ------------------
 3905|  16.0k|	if ((c == '&' || c == 'R' || ONIGENC_IS_CODE_DIGIT(enc, c)) &&
  ------------------
  |  |  400|  16.0k|        ONIGENC_IS_CODE_CTYPE(enc,code,ONIGENC_CTYPE_DIGIT)
  |  |  ------------------
  |  |  |  |  375|  16.0k|#define ONIGENC_IS_CODE_CTYPE(enc,code,ctype)  (enc)->is_code_ctype(code,ctype,enc)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (375:48): [True: 0, False: 16.0k]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  |  Branch (3905:7): [True: 0, False: 16.0k]
  |  Branch (3905:19): [True: 0, False: 16.0k]
  ------------------
 3906|  16.0k|	    IS_SYNTAX_OP2(env->syntax, ONIG_SYN_OP2_QMARK_SUBEXP_CALL)) {
  ------------------
  |  |  331|      0|#define IS_SYNTAX_OP2(syn, opm)   (((syn)->op2 & (opm)) != 0)
  |  |  ------------------
  |  |  |  Branch (331:35): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 3907|       |	  /* (?&name), (?n), (?R), (?0) */
 3908|      0|	  int gnum;
 3909|      0|	  UChar *name;
  ------------------
  |  |   76|      0|# define UChar OnigUChar
  ------------------
 3910|      0|	  UChar *name_end;
  ------------------
  |  |   76|      0|# define UChar OnigUChar
  ------------------
 3911|       |
 3912|      0|	  if (c == 'R' || c == '0') {
  ------------------
  |  Branch (3912:8): [True: 0, False: 0]
  |  Branch (3912:20): [True: 0, False: 0]
  ------------------
 3913|      0|	    PINC;   /* skip 'R' / '0' */
  ------------------
  |  |  301|      0|#define PINC       do { \
  |  |  302|      0|  pfetch_prev = p; \
  |  |  303|      0|  p += enclen(enc, p, end); \
  |  |  ------------------
  |  |  |  |   93|      0|#define enclen(enc,p,e) ((enc->max_enc_len == enc->min_enc_len) ? enc->min_enc_len : ONIGENC_MBC_ENC_LEN(enc,p,e))
  |  |  |  |  ------------------
  |  |  |  |  |  |  364|      0|#define ONIGENC_MBC_ENC_LEN(enc,p,e)          onigenc_mbclen(p,e,enc)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (93:26): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  304|      0|} while (0)
  |  |  ------------------
  |  |  |  Branch (304:10): [Folded - Ignored]
  |  |  ------------------
  ------------------
 3914|      0|	    if (!PPEEK_IS(')')) {
  ------------------
  |  |  320|      0|#define PPEEK_IS(c)  (PPEEK == (OnigCodePoint )c)
  |  |  ------------------
  |  |  |  |  319|      0|#define PPEEK        (p < end ? ONIGENC_MBC_TO_CODE(enc, p, end) : PEND_VALUE)
  |  |  |  |  ------------------
  |  |  |  |  |  |  369|      0|#define ONIGENC_MBC_TO_CODE(enc,p,end)         (enc)->mbc_to_code((p),(end),enc)
  |  |  |  |  ------------------
  |  |  |  |               #define PPEEK        (p < end ? ONIGENC_MBC_TO_CODE(enc, p, end) : PEND_VALUE)
  |  |  |  |  ------------------
  |  |  |  |  |  |  291|      0|#define PEND_VALUE   0
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (319:23): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  |  Branch (3914:10): [True: 0, False: 0]
  ------------------
 3915|      0|	      r = ONIGERR_INVALID_GROUP_NAME;
  ------------------
  |  |  683|      0|#define ONIGERR_INVALID_GROUP_NAME                           -215
  ------------------
 3916|      0|	      onig_scan_env_set_error_string(env, r, p - 1, p + 1);
 3917|      0|	      return r;
 3918|      0|	    }
 3919|      0|	    PINC;   /* skip ')' */
  ------------------
  |  |  301|      0|#define PINC       do { \
  |  |  302|      0|  pfetch_prev = p; \
  |  |  303|      0|  p += enclen(enc, p, end); \
  |  |  ------------------
  |  |  |  |   93|      0|#define enclen(enc,p,e) ((enc->max_enc_len == enc->min_enc_len) ? enc->min_enc_len : ONIGENC_MBC_ENC_LEN(enc,p,e))
  |  |  |  |  ------------------
  |  |  |  |  |  |  364|      0|#define ONIGENC_MBC_ENC_LEN(enc,p,e)          onigenc_mbclen(p,e,enc)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (93:26): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  304|      0|} while (0)
  |  |  ------------------
  |  |  |  Branch (304:10): [Folded - Ignored]
  |  |  ------------------
  ------------------
 3920|      0|	    name_end = name = p;
 3921|      0|	    gnum = 0;
 3922|      0|	  }
 3923|      0|	  else {
 3924|      0|	    int numref = 1;
 3925|      0|	    if (c == '&') {     /* (?&name) */
  ------------------
  |  Branch (3925:10): [True: 0, False: 0]
  ------------------
 3926|      0|	      PINC;
  ------------------
  |  |  301|      0|#define PINC       do { \
  |  |  302|      0|  pfetch_prev = p; \
  |  |  303|      0|  p += enclen(enc, p, end); \
  |  |  ------------------
  |  |  |  |   93|      0|#define enclen(enc,p,e) ((enc->max_enc_len == enc->min_enc_len) ? enc->min_enc_len : ONIGENC_MBC_ENC_LEN(enc,p,e))
  |  |  |  |  ------------------
  |  |  |  |  |  |  364|      0|#define ONIGENC_MBC_ENC_LEN(enc,p,e)          onigenc_mbclen(p,e,enc)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (93:26): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  304|      0|} while (0)
  |  |  ------------------
  |  |  |  Branch (304:10): [Folded - Ignored]
  |  |  ------------------
  ------------------
 3927|      0|	      numref = 0;       /* don't allow number name */
 3928|      0|	    }
 3929|      0|	    name = p;
 3930|      0|	    r = fetch_name((OnigCodePoint )'(', &p, end, &name_end, env, &gnum, numref);
 3931|      0|	    if (r < 0) return r;
  ------------------
  |  Branch (3931:10): [True: 0, False: 0]
  ------------------
 3932|      0|	  }
 3933|       |
 3934|      0|	  tok->type = TK_CALL;
 3935|      0|	  tok->u.call.name     = name;
 3936|      0|	  tok->u.call.name_end = name_end;
 3937|      0|	  tok->u.call.gnum     = gnum;
 3938|      0|	  tok->u.call.rel      = 0;
 3939|      0|	  break;
 3940|      0|	}
 3941|  16.0k|	else if ((c == '-' || c == '+') &&
  ------------------
  |  Branch (3941:12): [True: 0, False: 16.0k]
  |  Branch (3941:24): [True: 0, False: 16.0k]
  ------------------
 3942|  16.0k|	    IS_SYNTAX_OP2(env->syntax, ONIG_SYN_OP2_QMARK_SUBEXP_CALL)) {
  ------------------
  |  |  331|      0|#define IS_SYNTAX_OP2(syn, opm)   (((syn)->op2 & (opm)) != 0)
  |  |  ------------------
  |  |  |  Branch (331:35): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 3943|       |	  /* (?+n), (?-n) */
 3944|      0|	  int gnum;
 3945|      0|	  UChar *name;
  ------------------
  |  |   76|      0|# define UChar OnigUChar
  ------------------
 3946|      0|	  UChar *name_end;
  ------------------
  |  |   76|      0|# define UChar OnigUChar
  ------------------
 3947|      0|	  OnigCodePoint cnext;
 3948|      0|	  PFETCH_READY;
  ------------------
  |  |  295|      0|# define PFETCH_READY  UChar* pfetch_prev = NULL; (void)pfetch_prev
  |  |  ------------------
  |  |  |  |   76|      0|# define UChar OnigUChar
  |  |  ------------------
  ------------------
 3949|       |
 3950|      0|	  PINC;     /* skip '-' / '+' */
  ------------------
  |  |  301|      0|#define PINC       do { \
  |  |  302|      0|  pfetch_prev = p; \
  |  |  303|      0|  p += enclen(enc, p, end); \
  |  |  ------------------
  |  |  |  |   93|      0|#define enclen(enc,p,e) ((enc->max_enc_len == enc->min_enc_len) ? enc->min_enc_len : ONIGENC_MBC_ENC_LEN(enc,p,e))
  |  |  |  |  ------------------
  |  |  |  |  |  |  364|      0|#define ONIGENC_MBC_ENC_LEN(enc,p,e)          onigenc_mbclen(p,e,enc)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (93:26): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  304|      0|} while (0)
  |  |  ------------------
  |  |  |  Branch (304:10): [Folded - Ignored]
  |  |  ------------------
  ------------------
 3951|      0|	  cnext = PPEEK;
  ------------------
  |  |  319|      0|#define PPEEK        (p < end ? ONIGENC_MBC_TO_CODE(enc, p, end) : PEND_VALUE)
  |  |  ------------------
  |  |  |  |  369|      0|#define ONIGENC_MBC_TO_CODE(enc,p,end)         (enc)->mbc_to_code((p),(end),enc)
  |  |  ------------------
  |  |               #define PPEEK        (p < end ? ONIGENC_MBC_TO_CODE(enc, p, end) : PEND_VALUE)
  |  |  ------------------
  |  |  |  |  291|      0|#define PEND_VALUE   0
  |  |  ------------------
  |  |  |  Branch (319:23): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 3952|      0|	  if (ONIGENC_IS_CODE_DIGIT(enc, cnext)) {
  ------------------
  |  |  400|      0|        ONIGENC_IS_CODE_CTYPE(enc,code,ONIGENC_CTYPE_DIGIT)
  |  |  ------------------
  |  |  |  |  375|      0|#define ONIGENC_IS_CODE_CTYPE(enc,code,ctype)  (enc)->is_code_ctype(code,ctype,enc)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (375:48): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 3953|      0|	    if (c == '-') PUNFETCH;
  ------------------
  |  |  300|      0|#define PUNFETCH     p = pfetch_prev
  ------------------
  |  Branch (3953:10): [True: 0, False: 0]
  ------------------
 3954|      0|	    name = p;
 3955|      0|	    r = fetch_name((OnigCodePoint )'(', &p, end, &name_end, env, &gnum, 1);
 3956|      0|	    if (r < 0) return r;
  ------------------
  |  Branch (3956:10): [True: 0, False: 0]
  ------------------
 3957|       |
 3958|      0|	    tok->type = TK_CALL;
 3959|      0|	    tok->u.call.name     = name;
 3960|      0|	    tok->u.call.name_end = name_end;
 3961|      0|	    tok->u.call.gnum     = gnum;
 3962|      0|	    tok->u.call.rel      = 1;
 3963|      0|	    break;
 3964|      0|	  }
 3965|      0|	}
 3966|  16.0k|#endif /* USE_PERL_SUBEXP_CALL */
 3967|  16.0k|#ifdef USE_CAPITAL_P_NAMED_GROUP
 3968|  16.0k|	if (PPEEK_IS('P') &&
  ------------------
  |  |  320|  32.1k|#define PPEEK_IS(c)  (PPEEK == (OnigCodePoint )c)
  |  |  ------------------
  |  |  |  |  319|  16.0k|#define PPEEK        (p < end ? ONIGENC_MBC_TO_CODE(enc, p, end) : PEND_VALUE)
  |  |  |  |  ------------------
  |  |  |  |  |  |  369|  16.0k|#define ONIGENC_MBC_TO_CODE(enc,p,end)         (enc)->mbc_to_code((p),(end),enc)
  |  |  |  |  ------------------
  |  |  |  |               #define PPEEK        (p < end ? ONIGENC_MBC_TO_CODE(enc, p, end) : PEND_VALUE)
  |  |  |  |  ------------------
  |  |  |  |  |  |  291|      0|#define PEND_VALUE   0
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (319:23): [True: 16.0k, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  |  Branch (320:22): [True: 0, False: 16.0k]
  |  |  ------------------
  ------------------
 3969|  16.0k|	    IS_SYNTAX_OP2(env->syntax, ONIG_SYN_OP2_QMARK_CAPITAL_P_NAMED_GROUP)) {
  ------------------
  |  |  331|      0|#define IS_SYNTAX_OP2(syn, opm)   (((syn)->op2 & (opm)) != 0)
  |  |  ------------------
  |  |  |  Branch (331:35): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 3970|      0|	  int gnum;
 3971|      0|	  UChar *name;
  ------------------
  |  |   76|      0|# define UChar OnigUChar
  ------------------
 3972|      0|	  UChar *name_end;
  ------------------
  |  |   76|      0|# define UChar OnigUChar
  ------------------
 3973|      0|	  PFETCH_READY;
  ------------------
  |  |  295|      0|# define PFETCH_READY  UChar* pfetch_prev = NULL; (void)pfetch_prev
  |  |  ------------------
  |  |  |  |   76|      0|# define UChar OnigUChar
  |  |  ------------------
  ------------------
 3974|       |
 3975|      0|	  PINC;     /* skip 'P' */
  ------------------
  |  |  301|      0|#define PINC       do { \
  |  |  302|      0|  pfetch_prev = p; \
  |  |  303|      0|  p += enclen(enc, p, end); \
  |  |  ------------------
  |  |  |  |   93|      0|#define enclen(enc,p,e) ((enc->max_enc_len == enc->min_enc_len) ? enc->min_enc_len : ONIGENC_MBC_ENC_LEN(enc,p,e))
  |  |  |  |  ------------------
  |  |  |  |  |  |  364|      0|#define ONIGENC_MBC_ENC_LEN(enc,p,e)          onigenc_mbclen(p,e,enc)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (93:26): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  304|      0|} while (0)
  |  |  ------------------
  |  |  |  Branch (304:10): [Folded - Ignored]
  |  |  ------------------
  ------------------
 3976|      0|	  if (PEND) return ONIGERR_UNDEFINED_GROUP_OPTION;
  ------------------
  |  |  299|      0|#define PEND         (p < end ?  0 : 1)
  |  |  ------------------
  |  |  |  Branch (299:22): [True: 0, False: 0]
  |  |  |  Branch (299:23): [True: 0, False: 0]
  |  |  ------------------
  ------------------
              	  if (PEND) return ONIGERR_UNDEFINED_GROUP_OPTION;
  ------------------
  |  |  663|      0|#define ONIGERR_UNDEFINED_GROUP_OPTION                       -119
  ------------------
 3977|      0|	  PFETCH(c);
  ------------------
  |  |  305|      0|#define PFETCH(c)  do { \
  |  |  306|      0|  c = ((enc->max_enc_len == 1) ? *p : ONIGENC_MBC_TO_CODE(enc, p, end)); \
  |  |  ------------------
  |  |  |  |  369|      0|#define ONIGENC_MBC_TO_CODE(enc,p,end)         (enc)->mbc_to_code((p),(end),enc)
  |  |  ------------------
  |  |  |  Branch (306:8): [True: 0, False: 0]
  |  |  ------------------
  |  |  307|      0|  pfetch_prev = p; \
  |  |  308|      0|  p += enclen(enc, p, end); \
  |  |  ------------------
  |  |  |  |   93|      0|#define enclen(enc,p,e) ((enc->max_enc_len == enc->min_enc_len) ? enc->min_enc_len : ONIGENC_MBC_ENC_LEN(enc,p,e))
  |  |  |  |  ------------------
  |  |  |  |  |  |  364|      0|#define ONIGENC_MBC_ENC_LEN(enc,p,e)          onigenc_mbclen(p,e,enc)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (93:26): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  309|      0|} while (0)
  |  |  ------------------
  |  |  |  Branch (309:10): [Folded - Ignored]
  |  |  ------------------
  ------------------
 3978|      0|	  if (c == '=') {       /* (?P=name): backref */
  ------------------
  |  Branch (3978:8): [True: 0, False: 0]
  ------------------
 3979|      0|	    r = fetch_named_backref_token((OnigCodePoint )'(', tok, &p, end, env);
 3980|      0|	    if (r < 0) return r;
  ------------------
  |  Branch (3980:10): [True: 0, False: 0]
  ------------------
 3981|      0|	    break;
 3982|      0|	  }
 3983|      0|	  else if (c == '>') {  /* (?P>name): subexp call */
  ------------------
  |  Branch (3983:13): [True: 0, False: 0]
  ------------------
 3984|      0|	    name = p;
 3985|      0|	    r = fetch_name((OnigCodePoint )'(', &p, end, &name_end, env, &gnum, 0);
 3986|      0|	    if (r < 0) return r;
  ------------------
  |  Branch (3986:10): [True: 0, False: 0]
  ------------------
 3987|       |
 3988|      0|	    tok->type = TK_CALL;
 3989|      0|	    tok->u.call.name     = name;
 3990|      0|	    tok->u.call.name_end = name_end;
 3991|      0|	    tok->u.call.gnum     = gnum;
 3992|      0|	    tok->u.call.rel      = 0;
 3993|      0|	    break;
 3994|      0|	  }
 3995|      0|	}
 3996|  16.0k|#endif /* USE_CAPITAL_P_NAMED_GROUP */
 3997|  16.0k|	PUNFETCH;
  ------------------
  |  |  300|  16.0k|#define PUNFETCH     p = pfetch_prev
  ------------------
 3998|  16.0k|      }
 3999|       |
 4000|  17.5k|      if (! IS_SYNTAX_OP(syn, ONIG_SYN_OP_LPAREN_SUBEXP)) break;
  ------------------
  |  |  330|  17.5k|#define IS_SYNTAX_OP(syn, opm)    (((syn)->op  & (opm)) != 0)
  ------------------
  |  Branch (4000:11): [True: 0, False: 17.5k]
  ------------------
 4001|  17.5k|      tok->type = TK_SUBEXP_OPEN;
 4002|  17.5k|      break;
 4003|       |
 4004|  17.5k|    case ')':
  ------------------
  |  Branch (4004:5): [True: 17.5k, False: 672k]
  ------------------
 4005|  17.5k|      if (! IS_SYNTAX_OP(syn, ONIG_SYN_OP_LPAREN_SUBEXP)) break;
  ------------------
  |  |  330|  17.5k|#define IS_SYNTAX_OP(syn, opm)    (((syn)->op  & (opm)) != 0)
  ------------------
  |  Branch (4005:11): [True: 0, False: 17.5k]
  ------------------
 4006|  17.5k|      tok->type = TK_SUBEXP_CLOSE;
 4007|  17.5k|      break;
 4008|       |
 4009|  28.9k|    case '^':
  ------------------
  |  Branch (4009:5): [True: 28.9k, False: 661k]
  ------------------
 4010|  28.9k|      if (! IS_SYNTAX_OP(syn, ONIG_SYN_OP_LINE_ANCHOR)) break;
  ------------------
  |  |  330|  28.9k|#define IS_SYNTAX_OP(syn, opm)    (((syn)->op  & (opm)) != 0)
  ------------------
  |  Branch (4010:11): [True: 0, False: 28.9k]
  ------------------
 4011|  28.9k|      tok->type = TK_ANCHOR;
 4012|  28.9k|      tok->u.anchor.subtype = (IS_SINGLELINE(env->option)
  ------------------
  |  |  394|  28.9k|#define IS_SINGLELINE(option)     ((option) & ONIG_OPTION_SINGLELINE)
  |  |  ------------------
  |  |  |  |  458|  28.9k|#define ONIG_OPTION_SINGLELINE           (ONIG_OPTION_MULTILINE          << 1)
  |  |  |  |  ------------------
  |  |  |  |  |  |  456|  28.9k|#define ONIG_OPTION_MULTILINE            (ONIG_OPTION_EXTEND             << 1)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  455|  28.9k|#define ONIG_OPTION_EXTEND               (ONIG_OPTION_IGNORECASE         << 1)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  454|  28.9k|#define ONIG_OPTION_IGNORECASE           1U
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  |  Branch (394:35): [True: 0, False: 28.9k]
  |  |  ------------------
  ------------------
 4013|  28.9k|			       ? ANCHOR_BEGIN_BUF : ANCHOR_BEGIN_LINE);
  ------------------
  |  |  540|      0|#define ANCHOR_BEGIN_BUF        (1<<0)
  ------------------
              			       ? ANCHOR_BEGIN_BUF : ANCHOR_BEGIN_LINE);
  ------------------
  |  |  541|  28.9k|#define ANCHOR_BEGIN_LINE       (1<<1)
  ------------------
 4014|  28.9k|      break;
 4015|       |
 4016|  11.6k|    case '$':
  ------------------
  |  Branch (4016:5): [True: 11.6k, False: 678k]
  ------------------
 4017|  11.6k|      if (! IS_SYNTAX_OP(syn, ONIG_SYN_OP_LINE_ANCHOR)) break;
  ------------------
  |  |  330|  11.6k|#define IS_SYNTAX_OP(syn, opm)    (((syn)->op  & (opm)) != 0)
  ------------------
  |  Branch (4017:11): [True: 0, False: 11.6k]
  ------------------
 4018|  11.6k|      tok->type = TK_ANCHOR;
 4019|  11.6k|      tok->u.anchor.subtype = (IS_SINGLELINE(env->option)
  ------------------
  |  |  394|  11.6k|#define IS_SINGLELINE(option)     ((option) & ONIG_OPTION_SINGLELINE)
  |  |  ------------------
  |  |  |  |  458|  11.6k|#define ONIG_OPTION_SINGLELINE           (ONIG_OPTION_MULTILINE          << 1)
  |  |  |  |  ------------------
  |  |  |  |  |  |  456|  11.6k|#define ONIG_OPTION_MULTILINE            (ONIG_OPTION_EXTEND             << 1)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  455|  11.6k|#define ONIG_OPTION_EXTEND               (ONIG_OPTION_IGNORECASE         << 1)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  454|  11.6k|#define ONIG_OPTION_IGNORECASE           1U
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  |  Branch (394:35): [True: 0, False: 11.6k]
  |  |  ------------------
  ------------------
 4020|  11.6k|			       ? ANCHOR_SEMI_END_BUF : ANCHOR_END_LINE);
  ------------------
  |  |  544|      0|#define ANCHOR_SEMI_END_BUF     (1<<4)
  ------------------
              			       ? ANCHOR_SEMI_END_BUF : ANCHOR_END_LINE);
  ------------------
  |  |  545|  11.6k|#define ANCHOR_END_LINE         (1<<5)
  ------------------
 4021|  11.6k|      break;
 4022|       |
 4023|  21.7k|    case '[':
  ------------------
  |  Branch (4023:5): [True: 21.7k, False: 668k]
  ------------------
 4024|  21.7k|      if (! IS_SYNTAX_OP(syn, ONIG_SYN_OP_BRACKET_CC)) break;
  ------------------
  |  |  330|  21.7k|#define IS_SYNTAX_OP(syn, opm)    (((syn)->op  & (opm)) != 0)
  ------------------
  |  Branch (4024:11): [True: 0, False: 21.7k]
  ------------------
 4025|  21.7k|      tok->type = TK_CC_OPEN;
 4026|  21.7k|      break;
 4027|       |
 4028|      0|    case ']':
  ------------------
  |  Branch (4028:5): [True: 0, False: 690k]
  ------------------
 4029|      0|      if (*src > env->pattern)   /* /].../ is allowed. */
  ------------------
  |  Branch (4029:11): [True: 0, False: 0]
  ------------------
 4030|      0|	CLOSE_BRACKET_WITHOUT_ESC_WARN(env, (UChar* )"]");
 4031|      0|      break;
 4032|       |
 4033|      0|    case '#':
  ------------------
  |  Branch (4033:5): [True: 0, False: 690k]
  ------------------
 4034|      0|      if (IS_EXTEND(env->option)) {
  ------------------
  |  |  397|      0|#define IS_EXTEND(option)         ((option) & ONIG_OPTION_EXTEND)
  |  |  ------------------
  |  |  |  |  455|      0|#define ONIG_OPTION_EXTEND               (ONIG_OPTION_IGNORECASE         << 1)
  |  |  |  |  ------------------
  |  |  |  |  |  |  454|      0|#define ONIG_OPTION_IGNORECASE           1U
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  |  Branch (397:35): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 4035|      0|	while (!PEND) {
  ------------------
  |  |  299|      0|#define PEND         (p < end ?  0 : 1)
  |  |  ------------------
  |  |  |  Branch (299:23): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  |  Branch (4035:9): [True: 0, False: 0]
  ------------------
 4036|      0|	  PFETCH(c);
  ------------------
  |  |  305|      0|#define PFETCH(c)  do { \
  |  |  306|      0|  c = ((enc->max_enc_len == 1) ? *p : ONIGENC_MBC_TO_CODE(enc, p, end)); \
  |  |  ------------------
  |  |  |  |  369|      0|#define ONIGENC_MBC_TO_CODE(enc,p,end)         (enc)->mbc_to_code((p),(end),enc)
  |  |  ------------------
  |  |  |  Branch (306:8): [True: 0, False: 0]
  |  |  ------------------
  |  |  307|      0|  pfetch_prev = p; \
  |  |  308|      0|  p += enclen(enc, p, end); \
  |  |  ------------------
  |  |  |  |   93|      0|#define enclen(enc,p,e) ((enc->max_enc_len == enc->min_enc_len) ? enc->min_enc_len : ONIGENC_MBC_ENC_LEN(enc,p,e))
  |  |  |  |  ------------------
  |  |  |  |  |  |  364|      0|#define ONIGENC_MBC_ENC_LEN(enc,p,e)          onigenc_mbclen(p,e,enc)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (93:26): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  309|      0|} while (0)
  |  |  ------------------
  |  |  |  Branch (309:10): [Folded - Ignored]
  |  |  ------------------
  ------------------
 4037|      0|	  if (ONIGENC_IS_CODE_NEWLINE(enc, c))
  ------------------
  |  |  378|      0|        ONIGENC_IS_CODE_CTYPE(enc,code,ONIGENC_CTYPE_NEWLINE)
  |  |  ------------------
  |  |  |  |  375|      0|#define ONIGENC_IS_CODE_CTYPE(enc,code,ctype)  (enc)->is_code_ctype(code,ctype,enc)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (375:48): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 4038|      0|	    break;
 4039|      0|	}
 4040|      0|	goto start;
 4041|      0|	break;
 4042|      0|      }
 4043|      0|      break;
 4044|       |
 4045|  68.3k|    case ' ': case '\t': case '\n': case '\r': case '\f':
  ------------------
  |  Branch (4045:5): [True: 68.3k, False: 622k]
  |  Branch (4045:15): [True: 0, False: 690k]
  |  Branch (4045:26): [True: 0, False: 690k]
  |  Branch (4045:37): [True: 0, False: 690k]
  |  Branch (4045:48): [True: 0, False: 690k]
  ------------------
 4046|  68.3k|      if (IS_EXTEND(env->option))
  ------------------
  |  |  397|  68.3k|#define IS_EXTEND(option)         ((option) & ONIG_OPTION_EXTEND)
  |  |  ------------------
  |  |  |  |  455|  68.3k|#define ONIG_OPTION_EXTEND               (ONIG_OPTION_IGNORECASE         << 1)
  |  |  |  |  ------------------
  |  |  |  |  |  |  454|  68.3k|#define ONIG_OPTION_IGNORECASE           1U
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  |  Branch (397:35): [True: 0, False: 68.3k]
  |  |  ------------------
  ------------------
 4047|      0|	goto start;
 4048|  68.3k|      break;
 4049|       |
 4050|   455k|    default:
  ------------------
  |  Branch (4050:5): [True: 455k, False: 235k]
  ------------------
 4051|       |      /* string */
 4052|   455k|      break;
 4053|   690k|    }
 4054|   690k|  }
 4055|       |
 4056|   716k|#ifdef USE_VARIABLE_META_CHARS
 4057|   716k| out:
 4058|   716k|#endif
 4059|   716k|  *src = p;
 4060|   716k|  return tok->type;
 4061|   716k|}
regparse.c:get_name_end_code_point:
 2495|  5.91k|{
 2496|  5.91k|  switch (start) {
 2497|  5.91k|  case '<':  return (OnigCodePoint )'>'; break;
  ------------------
  |  Branch (2497:3): [True: 5.91k, False: 0]
  ------------------
 2498|      0|  case '\'': return (OnigCodePoint )'\''; break;
  ------------------
  |  Branch (2498:3): [True: 0, False: 5.91k]
  ------------------
 2499|      0|  case '(':  return (OnigCodePoint )')'; break;
  ------------------
  |  Branch (2499:3): [True: 0, False: 5.91k]
  ------------------
 2500|      0|  case '{':  return (OnigCodePoint )'}'; break;
  ------------------
  |  Branch (2500:3): [True: 0, False: 5.91k]
  ------------------
 2501|      0|  default:
  ------------------
  |  Branch (2501:3): [True: 0, False: 5.91k]
  ------------------
 2502|      0|    break;
 2503|  5.91k|  }
 2504|       |
 2505|      0|  return (OnigCodePoint )0;
 2506|  5.91k|}
regparse.c:fetch_name:
 2644|  5.91k|{
 2645|  5.91k|  int r, is_num, sign;
 2646|  5.91k|  OnigCodePoint end_code;
 2647|  5.91k|  OnigCodePoint c = 0;
 2648|  5.91k|  OnigEncoding enc = env->enc;
 2649|  5.91k|  UChar *name_end;
  ------------------
  |  |   76|  5.91k|# define UChar OnigUChar
  ------------------
 2650|  5.91k|  UChar *pnum_head;
  ------------------
  |  |   76|  5.91k|# define UChar OnigUChar
  ------------------
 2651|  5.91k|  UChar *p = *src;
  ------------------
  |  |   76|  5.91k|# define UChar OnigUChar
  ------------------
 2652|       |
 2653|  5.91k|  *rback_num = 0;
 2654|       |
 2655|  5.91k|  end_code = get_name_end_code_point(start_code);
 2656|       |
 2657|  5.91k|  name_end = end;
 2658|  5.91k|  pnum_head = *src;
 2659|  5.91k|  r = 0;
 2660|  5.91k|  is_num = 0;
 2661|  5.91k|  sign = 1;
 2662|  5.91k|  if (PEND) {
  ------------------
  |  |  299|  5.91k|#define PEND         (p < end ?  0 : 1)
  |  |  ------------------
  |  |  |  Branch (299:22): [True: 0, False: 5.91k]
  |  |  |  Branch (299:23): [True: 5.91k, False: 0]
  |  |  ------------------
  ------------------
 2663|      0|    return ONIGERR_EMPTY_GROUP_NAME;
  ------------------
  |  |  682|      0|#define ONIGERR_EMPTY_GROUP_NAME                             -214
  ------------------
 2664|      0|  }
 2665|  5.91k|  else {
 2666|  5.91k|    PFETCH_S(c);
  ------------------
  |  |  314|  5.91k|#define PFETCH_S(c) do { \
  |  |  315|  5.91k|  c = ((enc->max_enc_len == 1) ? *p : ONIGENC_MBC_TO_CODE(enc, p, end)); \
  |  |  ------------------
  |  |  |  |  369|  5.91k|#define ONIGENC_MBC_TO_CODE(enc,p,end)         (enc)->mbc_to_code((p),(end),enc)
  |  |  ------------------
  |  |  |  Branch (315:8): [True: 0, False: 5.91k]
  |  |  ------------------
  |  |  316|  5.91k|  p += enclen(enc, p, end); \
  |  |  ------------------
  |  |  |  |   93|  5.91k|#define enclen(enc,p,e) ((enc->max_enc_len == enc->min_enc_len) ? enc->min_enc_len : ONIGENC_MBC_ENC_LEN(enc,p,e))
  |  |  |  |  ------------------
  |  |  |  |  |  |  364|  5.91k|#define ONIGENC_MBC_ENC_LEN(enc,p,e)          onigenc_mbclen(p,e,enc)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (93:26): [True: 0, False: 5.91k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  317|  5.91k|} while (0)
  |  |  ------------------
  |  |  |  Branch (317:10): [Folded - Ignored]
  |  |  ------------------
  ------------------
 2667|  5.91k|    if (c == end_code)
  ------------------
  |  Branch (2667:9): [True: 0, False: 5.91k]
  ------------------
 2668|      0|      return ONIGERR_EMPTY_GROUP_NAME;
  ------------------
  |  |  682|      0|#define ONIGERR_EMPTY_GROUP_NAME                             -214
  ------------------
 2669|       |
 2670|  5.91k|    if (ONIGENC_IS_CODE_DIGIT(enc, c)) {
  ------------------
  |  |  400|  5.91k|        ONIGENC_IS_CODE_CTYPE(enc,code,ONIGENC_CTYPE_DIGIT)
  |  |  ------------------
  |  |  |  |  375|  5.91k|#define ONIGENC_IS_CODE_CTYPE(enc,code,ctype)  (enc)->is_code_ctype(code,ctype,enc)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (375:48): [True: 0, False: 5.91k]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2671|      0|      if (ref == 1)
  ------------------
  |  Branch (2671:11): [True: 0, False: 0]
  ------------------
 2672|      0|	is_num = 1;
 2673|      0|      else {
 2674|      0|	r = ONIGERR_INVALID_GROUP_NAME;
  ------------------
  |  |  683|      0|#define ONIGERR_INVALID_GROUP_NAME                           -215
  ------------------
 2675|      0|	is_num = 0;
 2676|      0|      }
 2677|      0|    }
 2678|  5.91k|    else if (c == '-') {
  ------------------
  |  Branch (2678:14): [True: 0, False: 5.91k]
  ------------------
 2679|      0|      if (ref == 1) {
  ------------------
  |  Branch (2679:11): [True: 0, False: 0]
  ------------------
 2680|      0|	is_num = 2;
 2681|      0|	sign = -1;
 2682|      0|	pnum_head = p;
 2683|      0|      }
 2684|      0|      else {
 2685|      0|	r = ONIGERR_INVALID_GROUP_NAME;
  ------------------
  |  |  683|      0|#define ONIGERR_INVALID_GROUP_NAME                           -215
  ------------------
 2686|      0|	is_num = 0;
 2687|      0|      }
 2688|      0|    }
 2689|  5.91k|    else if (!ONIGENC_IS_CODE_NAME(enc, c)) {
  ------------------
  |  | 2512|  5.91k|#  define ONIGENC_IS_CODE_NAME(enc, c)  ONIGENC_IS_CODE_WORD(enc, c)
  |  |  ------------------
  |  |  |  |  404|  5.91k|        ONIGENC_IS_CODE_CTYPE(enc,code,ONIGENC_CTYPE_WORD)
  |  |  |  |  ------------------
  |  |  |  |  |  |  375|  5.91k|#define ONIGENC_IS_CODE_CTYPE(enc,code,ctype)  (enc)->is_code_ctype(code,ctype,enc)
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  |  Branch (2689:14): [True: 0, False: 5.91k]
  ------------------
 2690|      0|      r = ONIGERR_INVALID_CHAR_IN_GROUP_NAME;
  ------------------
  |  |  684|      0|#define ONIGERR_INVALID_CHAR_IN_GROUP_NAME                   -216
  ------------------
 2691|      0|    }
 2692|  5.91k|  }
 2693|       |
 2694|  5.91k|  if (r == 0) {
  ------------------
  |  Branch (2694:7): [True: 5.91k, False: 0]
  ------------------
 2695|  22.1k|    while (!PEND) {
  ------------------
  |  |  299|  22.1k|#define PEND         (p < end ?  0 : 1)
  |  |  ------------------
  |  |  |  Branch (299:23): [True: 22.1k, False: 0]
  |  |  ------------------
  ------------------
  |  Branch (2695:12): [True: 22.1k, False: 0]
  ------------------
 2696|  22.1k|      name_end = p;
 2697|  22.1k|      PFETCH_S(c);
  ------------------
  |  |  314|  22.1k|#define PFETCH_S(c) do { \
  |  |  315|  22.1k|  c = ((enc->max_enc_len == 1) ? *p : ONIGENC_MBC_TO_CODE(enc, p, end)); \
  |  |  ------------------
  |  |  |  |  369|  22.1k|#define ONIGENC_MBC_TO_CODE(enc,p,end)         (enc)->mbc_to_code((p),(end),enc)
  |  |  ------------------
  |  |  |  Branch (315:8): [True: 0, False: 22.1k]
  |  |  ------------------
  |  |  316|  22.1k|  p += enclen(enc, p, end); \
  |  |  ------------------
  |  |  |  |   93|  22.1k|#define enclen(enc,p,e) ((enc->max_enc_len == enc->min_enc_len) ? enc->min_enc_len : ONIGENC_MBC_ENC_LEN(enc,p,e))
  |  |  |  |  ------------------
  |  |  |  |  |  |  364|  22.1k|#define ONIGENC_MBC_ENC_LEN(enc,p,e)          onigenc_mbclen(p,e,enc)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (93:26): [True: 0, False: 22.1k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  317|  22.1k|} while (0)
  |  |  ------------------
  |  |  |  Branch (317:10): [Folded - Ignored]
  |  |  ------------------
  ------------------
 2698|  22.1k|      if (c == end_code || c == ')') {
  ------------------
  |  Branch (2698:11): [True: 5.91k, False: 16.2k]
  |  Branch (2698:28): [True: 0, False: 16.2k]
  ------------------
 2699|  5.91k|	if (is_num == 2) {
  ------------------
  |  Branch (2699:6): [True: 0, False: 5.91k]
  ------------------
 2700|      0|	  r = ONIGERR_INVALID_GROUP_NAME;
  ------------------
  |  |  683|      0|#define ONIGERR_INVALID_GROUP_NAME                           -215
  ------------------
 2701|      0|	  goto teardown;
 2702|      0|	}
 2703|  5.91k|	break;
 2704|  5.91k|      }
 2705|       |
 2706|  16.2k|      if (is_num != 0) {
  ------------------
  |  Branch (2706:11): [True: 0, False: 16.2k]
  ------------------
 2707|      0|	if (ONIGENC_IS_CODE_DIGIT(enc, c)) {
  ------------------
  |  |  400|      0|        ONIGENC_IS_CODE_CTYPE(enc,code,ONIGENC_CTYPE_DIGIT)
  |  |  ------------------
  |  |  |  |  375|      0|#define ONIGENC_IS_CODE_CTYPE(enc,code,ctype)  (enc)->is_code_ctype(code,ctype,enc)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (375:48): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2708|      0|	  is_num = 1;
 2709|      0|	}
 2710|      0|	else {
 2711|      0|	  if (!ONIGENC_IS_CODE_WORD(enc, c))
  ------------------
  |  |  404|      0|        ONIGENC_IS_CODE_CTYPE(enc,code,ONIGENC_CTYPE_WORD)
  |  |  ------------------
  |  |  |  |  375|      0|#define ONIGENC_IS_CODE_CTYPE(enc,code,ctype)  (enc)->is_code_ctype(code,ctype,enc)
  |  |  ------------------
  ------------------
  |  Branch (2711:8): [True: 0, False: 0]
  ------------------
 2712|      0|	    r = ONIGERR_INVALID_CHAR_IN_GROUP_NAME;
  ------------------
  |  |  684|      0|#define ONIGERR_INVALID_CHAR_IN_GROUP_NAME                   -216
  ------------------
 2713|      0|	  else
 2714|      0|	    r = ONIGERR_INVALID_GROUP_NAME;
  ------------------
  |  |  683|      0|#define ONIGERR_INVALID_GROUP_NAME                           -215
  ------------------
 2715|      0|	  goto teardown;
 2716|      0|	}
 2717|      0|      }
 2718|  16.2k|      else {
 2719|  16.2k|	if (!ONIGENC_IS_CODE_NAME(enc, c)) {
  ------------------
  |  | 2512|  16.2k|#  define ONIGENC_IS_CODE_NAME(enc, c)  ONIGENC_IS_CODE_WORD(enc, c)
  |  |  ------------------
  |  |  |  |  404|  16.2k|        ONIGENC_IS_CODE_CTYPE(enc,code,ONIGENC_CTYPE_WORD)
  |  |  |  |  ------------------
  |  |  |  |  |  |  375|  16.2k|#define ONIGENC_IS_CODE_CTYPE(enc,code,ctype)  (enc)->is_code_ctype(code,ctype,enc)
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  |  Branch (2719:6): [True: 0, False: 16.2k]
  ------------------
 2720|      0|	  r = ONIGERR_INVALID_CHAR_IN_GROUP_NAME;
  ------------------
  |  |  684|      0|#define ONIGERR_INVALID_CHAR_IN_GROUP_NAME                   -216
  ------------------
 2721|      0|	  goto teardown;
 2722|      0|	}
 2723|  16.2k|      }
 2724|  16.2k|    }
 2725|       |
 2726|  5.91k|    if (c != end_code) {
  ------------------
  |  Branch (2726:9): [True: 0, False: 5.91k]
  ------------------
 2727|      0|      r = ONIGERR_INVALID_GROUP_NAME;
  ------------------
  |  |  683|      0|#define ONIGERR_INVALID_GROUP_NAME                           -215
  ------------------
 2728|      0|      name_end = end;
 2729|      0|      goto err;
 2730|      0|    }
 2731|       |
 2732|  5.91k|    if (is_num != 0) {
  ------------------
  |  Branch (2732:9): [True: 0, False: 5.91k]
  ------------------
 2733|      0|      *rback_num = onig_scan_unsigned_number(&pnum_head, name_end, enc);
 2734|      0|      if (*rback_num < 0) return ONIGERR_TOO_BIG_NUMBER;
  ------------------
  |  |  669|      0|#define ONIGERR_TOO_BIG_NUMBER                               -200
  ------------------
  |  Branch (2734:11): [True: 0, False: 0]
  ------------------
 2735|      0|      else if (*rback_num == 0) {
  ------------------
  |  Branch (2735:16): [True: 0, False: 0]
  ------------------
 2736|      0|	r = ONIGERR_INVALID_GROUP_NAME;
  ------------------
  |  |  683|      0|#define ONIGERR_INVALID_GROUP_NAME                           -215
  ------------------
 2737|      0|	goto err;
 2738|      0|      }
 2739|       |
 2740|      0|      *rback_num *= sign;
 2741|      0|    }
 2742|       |
 2743|  5.91k|    *rname_end = name_end;
 2744|  5.91k|    *src = p;
 2745|  5.91k|    return 0;
 2746|  5.91k|  }
 2747|      0|  else {
 2748|      0|teardown:
 2749|      0|    while (!PEND) {
  ------------------
  |  |  299|      0|#define PEND         (p < end ?  0 : 1)
  |  |  ------------------
  |  |  |  Branch (299:23): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  |  Branch (2749:12): [True: 0, False: 0]
  ------------------
 2750|      0|      name_end = p;
 2751|      0|      PFETCH_S(c);
  ------------------
  |  |  314|      0|#define PFETCH_S(c) do { \
  |  |  315|      0|  c = ((enc->max_enc_len == 1) ? *p : ONIGENC_MBC_TO_CODE(enc, p, end)); \
  |  |  ------------------
  |  |  |  |  369|      0|#define ONIGENC_MBC_TO_CODE(enc,p,end)         (enc)->mbc_to_code((p),(end),enc)
  |  |  ------------------
  |  |  |  Branch (315:8): [True: 0, False: 0]
  |  |  ------------------
  |  |  316|      0|  p += enclen(enc, p, end); \
  |  |  ------------------
  |  |  |  |   93|      0|#define enclen(enc,p,e) ((enc->max_enc_len == enc->min_enc_len) ? enc->min_enc_len : ONIGENC_MBC_ENC_LEN(enc,p,e))
  |  |  |  |  ------------------
  |  |  |  |  |  |  364|      0|#define ONIGENC_MBC_ENC_LEN(enc,p,e)          onigenc_mbclen(p,e,enc)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (93:26): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  317|      0|} while (0)
  |  |  ------------------
  |  |  |  Branch (317:10): [Folded - Ignored]
  |  |  ------------------
  ------------------
 2752|      0|      if (c == end_code || c == ')')
  ------------------
  |  Branch (2752:11): [True: 0, False: 0]
  |  Branch (2752:28): [True: 0, False: 0]
  ------------------
 2753|      0|	break;
 2754|      0|    }
 2755|      0|    if (PEND)
  ------------------
  |  |  299|      0|#define PEND         (p < end ?  0 : 1)
  |  |  ------------------
  |  |  |  Branch (299:22): [True: 0, False: 0]
  |  |  |  Branch (299:23): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 2756|      0|      name_end = end;
 2757|       |
 2758|      0|  err:
 2759|      0|    onig_scan_env_set_error_string(env, r, *src, name_end);
 2760|      0|    return r;
 2761|      0|  }
 2762|  5.91k|}
regparse.c:fetch_escaped_value:
 2422|  26.1k|{
 2423|  26.1k|  int v;
 2424|  26.1k|  OnigCodePoint c;
 2425|  26.1k|  OnigEncoding enc = env->enc;
 2426|  26.1k|  UChar* p = *src;
  ------------------
  |  |   76|  26.1k|# define UChar OnigUChar
  ------------------
 2427|       |
 2428|  26.1k|  if (PEND) return ONIGERR_END_PATTERN_AT_ESCAPE;
  ------------------
  |  |  299|  26.1k|#define PEND         (p < end ?  0 : 1)
  |  |  ------------------
  |  |  |  Branch (299:22): [True: 0, False: 26.1k]
  |  |  |  Branch (299:23): [True: 26.1k, False: 0]
  |  |  ------------------
  ------------------
                if (PEND) return ONIGERR_END_PATTERN_AT_ESCAPE;
  ------------------
  |  |  649|      0|#define ONIGERR_END_PATTERN_AT_ESCAPE                        -104
  ------------------
 2429|       |
 2430|  26.1k|  PFETCH_S(c);
  ------------------
  |  |  314|  26.1k|#define PFETCH_S(c) do { \
  |  |  315|  26.1k|  c = ((enc->max_enc_len == 1) ? *p : ONIGENC_MBC_TO_CODE(enc, p, end)); \
  |  |  ------------------
  |  |  |  |  369|  26.1k|#define ONIGENC_MBC_TO_CODE(enc,p,end)         (enc)->mbc_to_code((p),(end),enc)
  |  |  ------------------
  |  |  |  Branch (315:8): [True: 0, False: 26.1k]
  |  |  ------------------
  |  |  316|  26.1k|  p += enclen(enc, p, end); \
  |  |  ------------------
  |  |  |  |   93|  26.1k|#define enclen(enc,p,e) ((enc->max_enc_len == enc->min_enc_len) ? enc->min_enc_len : ONIGENC_MBC_ENC_LEN(enc,p,e))
  |  |  |  |  ------------------
  |  |  |  |  |  |  364|  26.1k|#define ONIGENC_MBC_ENC_LEN(enc,p,e)          onigenc_mbclen(p,e,enc)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (93:26): [True: 0, False: 26.1k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  317|  26.1k|} while (0)
  |  |  ------------------
  |  |  |  Branch (317:10): [Folded - Ignored]
  |  |  ------------------
  ------------------
 2431|  26.1k|  switch (c) {
 2432|      0|  case 'M':
  ------------------
  |  Branch (2432:3): [True: 0, False: 26.1k]
  ------------------
 2433|      0|    if (IS_SYNTAX_OP2(env->syntax, ONIG_SYN_OP2_ESC_CAPITAL_M_BAR_META)) {
  ------------------
  |  |  331|      0|#define IS_SYNTAX_OP2(syn, opm)   (((syn)->op2 & (opm)) != 0)
  |  |  ------------------
  |  |  |  Branch (331:35): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 2434|      0|      if (PEND) return ONIGERR_END_PATTERN_AT_META;
  ------------------
  |  |  299|      0|#define PEND         (p < end ?  0 : 1)
  |  |  ------------------
  |  |  |  Branch (299:22): [True: 0, False: 0]
  |  |  |  Branch (299:23): [True: 0, False: 0]
  |  |  ------------------
  ------------------
                    if (PEND) return ONIGERR_END_PATTERN_AT_META;
  ------------------
  |  |  650|      0|#define ONIGERR_END_PATTERN_AT_META                          -105
  ------------------
 2435|      0|      PFETCH_S(c);
  ------------------
  |  |  314|      0|#define PFETCH_S(c) do { \
  |  |  315|      0|  c = ((enc->max_enc_len == 1) ? *p : ONIGENC_MBC_TO_CODE(enc, p, end)); \
  |  |  ------------------
  |  |  |  |  369|      0|#define ONIGENC_MBC_TO_CODE(enc,p,end)         (enc)->mbc_to_code((p),(end),enc)
  |  |  ------------------
  |  |  |  Branch (315:8): [True: 0, False: 0]
  |  |  ------------------
  |  |  316|      0|  p += enclen(enc, p, end); \
  |  |  ------------------
  |  |  |  |   93|      0|#define enclen(enc,p,e) ((enc->max_enc_len == enc->min_enc_len) ? enc->min_enc_len : ONIGENC_MBC_ENC_LEN(enc,p,e))
  |  |  |  |  ------------------
  |  |  |  |  |  |  364|      0|#define ONIGENC_MBC_ENC_LEN(enc,p,e)          onigenc_mbclen(p,e,enc)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (93:26): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  317|      0|} while (0)
  |  |  ------------------
  |  |  |  Branch (317:10): [Folded - Ignored]
  |  |  ------------------
  ------------------
 2436|      0|      if (c != '-') return ONIGERR_META_CODE_SYNTAX;
  ------------------
  |  |  652|      0|#define ONIGERR_META_CODE_SYNTAX                             -108
  ------------------
  |  Branch (2436:11): [True: 0, False: 0]
  ------------------
 2437|      0|      if (PEND) return ONIGERR_END_PATTERN_AT_META;
  ------------------
  |  |  299|      0|#define PEND         (p < end ?  0 : 1)
  |  |  ------------------
  |  |  |  Branch (299:22): [True: 0, False: 0]
  |  |  |  Branch (299:23): [True: 0, False: 0]
  |  |  ------------------
  ------------------
                    if (PEND) return ONIGERR_END_PATTERN_AT_META;
  ------------------
  |  |  650|      0|#define ONIGERR_END_PATTERN_AT_META                          -105
  ------------------
 2438|      0|      PFETCH_S(c);
  ------------------
  |  |  314|      0|#define PFETCH_S(c) do { \
  |  |  315|      0|  c = ((enc->max_enc_len == 1) ? *p : ONIGENC_MBC_TO_CODE(enc, p, end)); \
  |  |  ------------------
  |  |  |  |  369|      0|#define ONIGENC_MBC_TO_CODE(enc,p,end)         (enc)->mbc_to_code((p),(end),enc)
  |  |  ------------------
  |  |  |  Branch (315:8): [True: 0, False: 0]
  |  |  ------------------
  |  |  316|      0|  p += enclen(enc, p, end); \
  |  |  ------------------
  |  |  |  |   93|      0|#define enclen(enc,p,e) ((enc->max_enc_len == enc->min_enc_len) ? enc->min_enc_len : ONIGENC_MBC_ENC_LEN(enc,p,e))
  |  |  |  |  ------------------
  |  |  |  |  |  |  364|      0|#define ONIGENC_MBC_ENC_LEN(enc,p,e)          onigenc_mbclen(p,e,enc)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (93:26): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  317|      0|} while (0)
  |  |  ------------------
  |  |  |  Branch (317:10): [Folded - Ignored]
  |  |  ------------------
  ------------------
 2439|      0|      if (c == MC_ESC(env->syntax)) {
  ------------------
  |  |  761|      0|#define MC_ESC(syn)               (syn)->meta_char_table.esc
  ------------------
  |  Branch (2439:11): [True: 0, False: 0]
  ------------------
 2440|      0|	v = fetch_escaped_value(&p, end, env, &c);
 2441|      0|	if (v < 0) return v;
  ------------------
  |  Branch (2441:6): [True: 0, False: 0]
  ------------------
 2442|      0|      }
 2443|      0|      c = ((c & 0xff) | 0x80);
 2444|      0|    }
 2445|      0|    else
 2446|      0|      goto backslash;
 2447|      0|    break;
 2448|       |
 2449|      0|  case 'C':
  ------------------
  |  Branch (2449:3): [True: 0, False: 26.1k]
  ------------------
 2450|      0|    if (IS_SYNTAX_OP2(env->syntax, ONIG_SYN_OP2_ESC_CAPITAL_C_BAR_CONTROL)) {
  ------------------
  |  |  331|      0|#define IS_SYNTAX_OP2(syn, opm)   (((syn)->op2 & (opm)) != 0)
  |  |  ------------------
  |  |  |  Branch (331:35): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 2451|      0|      if (PEND) return ONIGERR_END_PATTERN_AT_CONTROL;
  ------------------
  |  |  299|      0|#define PEND         (p < end ?  0 : 1)
  |  |  ------------------
  |  |  |  Branch (299:22): [True: 0, False: 0]
  |  |  |  Branch (299:23): [True: 0, False: 0]
  |  |  ------------------
  ------------------
                    if (PEND) return ONIGERR_END_PATTERN_AT_CONTROL;
  ------------------
  |  |  651|      0|#define ONIGERR_END_PATTERN_AT_CONTROL                       -106
  ------------------
 2452|      0|      PFETCH_S(c);
  ------------------
  |  |  314|      0|#define PFETCH_S(c) do { \
  |  |  315|      0|  c = ((enc->max_enc_len == 1) ? *p : ONIGENC_MBC_TO_CODE(enc, p, end)); \
  |  |  ------------------
  |  |  |  |  369|      0|#define ONIGENC_MBC_TO_CODE(enc,p,end)         (enc)->mbc_to_code((p),(end),enc)
  |  |  ------------------
  |  |  |  Branch (315:8): [True: 0, False: 0]
  |  |  ------------------
  |  |  316|      0|  p += enclen(enc, p, end); \
  |  |  ------------------
  |  |  |  |   93|      0|#define enclen(enc,p,e) ((enc->max_enc_len == enc->min_enc_len) ? enc->min_enc_len : ONIGENC_MBC_ENC_LEN(enc,p,e))
  |  |  |  |  ------------------
  |  |  |  |  |  |  364|      0|#define ONIGENC_MBC_ENC_LEN(enc,p,e)          onigenc_mbclen(p,e,enc)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (93:26): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  317|      0|} while (0)
  |  |  ------------------
  |  |  |  Branch (317:10): [Folded - Ignored]
  |  |  ------------------
  ------------------
 2453|      0|      if (c != '-') return ONIGERR_CONTROL_CODE_SYNTAX;
  ------------------
  |  |  653|      0|#define ONIGERR_CONTROL_CODE_SYNTAX                          -109
  ------------------
  |  Branch (2453:11): [True: 0, False: 0]
  ------------------
 2454|      0|      goto control;
 2455|      0|    }
 2456|      0|    else
 2457|      0|      goto backslash;
 2458|       |
 2459|      0|  case 'c':
  ------------------
  |  Branch (2459:3): [True: 0, False: 26.1k]
  ------------------
 2460|      0|    if (IS_SYNTAX_OP(env->syntax, ONIG_SYN_OP_ESC_C_CONTROL)) {
  ------------------
  |  |  330|      0|#define IS_SYNTAX_OP(syn, opm)    (((syn)->op  & (opm)) != 0)
  |  |  ------------------
  |  |  |  Branch (330:35): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 2461|      0|    control:
 2462|      0|      if (PEND) return ONIGERR_END_PATTERN_AT_CONTROL;
  ------------------
  |  |  299|      0|#define PEND         (p < end ?  0 : 1)
  |  |  ------------------
  |  |  |  Branch (299:22): [True: 0, False: 0]
  |  |  |  Branch (299:23): [True: 0, False: 0]
  |  |  ------------------
  ------------------
                    if (PEND) return ONIGERR_END_PATTERN_AT_CONTROL;
  ------------------
  |  |  651|      0|#define ONIGERR_END_PATTERN_AT_CONTROL                       -106
  ------------------
 2463|      0|      PFETCH_S(c);
  ------------------
  |  |  314|      0|#define PFETCH_S(c) do { \
  |  |  315|      0|  c = ((enc->max_enc_len == 1) ? *p : ONIGENC_MBC_TO_CODE(enc, p, end)); \
  |  |  ------------------
  |  |  |  |  369|      0|#define ONIGENC_MBC_TO_CODE(enc,p,end)         (enc)->mbc_to_code((p),(end),enc)
  |  |  ------------------
  |  |  |  Branch (315:8): [True: 0, False: 0]
  |  |  ------------------
  |  |  316|      0|  p += enclen(enc, p, end); \
  |  |  ------------------
  |  |  |  |   93|      0|#define enclen(enc,p,e) ((enc->max_enc_len == enc->min_enc_len) ? enc->min_enc_len : ONIGENC_MBC_ENC_LEN(enc,p,e))
  |  |  |  |  ------------------
  |  |  |  |  |  |  364|      0|#define ONIGENC_MBC_ENC_LEN(enc,p,e)          onigenc_mbclen(p,e,enc)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (93:26): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  317|      0|} while (0)
  |  |  ------------------
  |  |  |  Branch (317:10): [Folded - Ignored]
  |  |  ------------------
  ------------------
 2464|      0|      if (c == '?') {
  ------------------
  |  Branch (2464:11): [True: 0, False: 0]
  ------------------
 2465|      0|	c = 0177;
 2466|      0|      }
 2467|      0|      else {
 2468|      0|	if (c == MC_ESC(env->syntax)) {
  ------------------
  |  |  761|      0|#define MC_ESC(syn)               (syn)->meta_char_table.esc
  ------------------
  |  Branch (2468:6): [True: 0, False: 0]
  ------------------
 2469|      0|	  v = fetch_escaped_value(&p, end, env, &c);
 2470|      0|	  if (v < 0) return v;
  ------------------
  |  Branch (2470:8): [True: 0, False: 0]
  ------------------
 2471|      0|	}
 2472|      0|	c &= 0x9f;
 2473|      0|      }
 2474|      0|      break;
 2475|      0|    }
 2476|       |    /* fall through */
 2477|       |
 2478|  26.1k|  default:
  ------------------
  |  Branch (2478:3): [True: 26.1k, False: 0]
  ------------------
 2479|  26.1k|    {
 2480|  26.1k|    backslash:
 2481|  26.1k|      c = conv_backslash_value(c, env);
 2482|  26.1k|    }
 2483|  26.1k|    break;
 2484|  26.1k|  }
 2485|       |
 2486|  26.1k|  *src = p;
 2487|  26.1k|  *val = c;
 2488|  26.1k|  return 0;
 2489|  26.1k|}
regparse.c:conv_backslash_value:
 2097|  26.1k|{
 2098|  26.1k|  if (IS_SYNTAX_OP(env->syntax, ONIG_SYN_OP_ESC_CONTROL_CHARS)) {
  ------------------
  |  |  330|  26.1k|#define IS_SYNTAX_OP(syn, opm)    (((syn)->op  & (opm)) != 0)
  |  |  ------------------
  |  |  |  Branch (330:35): [True: 26.1k, False: 0]
  |  |  ------------------
  ------------------
 2099|  26.1k|    switch (c) {
 2100|  2.93k|    case 'n': return '\n';
  ------------------
  |  Branch (2100:5): [True: 2.93k, False: 23.1k]
  ------------------
 2101|  11.6k|    case 't': return '\t';
  ------------------
  |  Branch (2101:5): [True: 11.6k, False: 14.4k]
  ------------------
 2102|  2.93k|    case 'r': return '\r';
  ------------------
  |  Branch (2102:5): [True: 2.93k, False: 23.1k]
  ------------------
 2103|      0|    case 'f': return '\f';
  ------------------
  |  Branch (2103:5): [True: 0, False: 26.1k]
  ------------------
 2104|      0|    case 'a': return '\007';
  ------------------
  |  Branch (2104:5): [True: 0, False: 26.1k]
  ------------------
 2105|      0|    case 'b': return '\010';
  ------------------
  |  Branch (2105:5): [True: 0, False: 26.1k]
  ------------------
 2106|      0|    case 'e': return '\033';
  ------------------
  |  Branch (2106:5): [True: 0, False: 26.1k]
  ------------------
 2107|      0|    case 'v':
  ------------------
  |  Branch (2107:5): [True: 0, False: 26.1k]
  ------------------
 2108|      0|      if (IS_SYNTAX_OP2(env->syntax, ONIG_SYN_OP2_ESC_V_VTAB))
  ------------------
  |  |  331|      0|#define IS_SYNTAX_OP2(syn, opm)   (((syn)->op2 & (opm)) != 0)
  |  |  ------------------
  |  |  |  Branch (331:35): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 2109|      0|	return '\v';
 2110|      0|      break;
 2111|       |
 2112|  8.61k|    default:
  ------------------
  |  Branch (2112:5): [True: 8.61k, False: 17.4k]
  ------------------
 2113|  8.61k|      if (('a' <= c && c <= 'z') || ('A' <= c && c <= 'Z'))
  ------------------
  |  Branch (2113:12): [True: 0, False: 8.61k]
  |  Branch (2113:24): [True: 0, False: 0]
  |  Branch (2113:38): [True: 5.75k, False: 2.86k]
  |  Branch (2113:50): [True: 0, False: 5.75k]
  ------------------
 2114|      0|	  UNKNOWN_ESC_WARN(env, c);
 2115|  8.61k|      break;
 2116|  26.1k|    }
 2117|  26.1k|  }
 2118|  8.61k|  return c;
 2119|  26.1k|}
regparse.c:parse_subexp:
 6550|  50.8k|{
 6551|  50.8k|  int r;
 6552|  50.8k|  Node *node, **headp;
 6553|       |
 6554|  50.8k|  *top = NULL;
 6555|  50.8k|  env->parse_depth++;
 6556|  50.8k|  if (env->parse_depth > ParseDepthLimit)
  ------------------
  |  Branch (6556:7): [True: 0, False: 50.8k]
  ------------------
 6557|      0|    return ONIGERR_PARSE_DEPTH_LIMIT_OVER;
  ------------------
  |  |  639|      0|#define ONIGERR_PARSE_DEPTH_LIMIT_OVER                        -16
  ------------------
 6558|  50.8k|  r = parse_branch(&node, tok, term, src, end, env);
 6559|  50.8k|  if (r < 0) {
  ------------------
  |  Branch (6559:7): [True: 0, False: 50.8k]
  ------------------
 6560|      0|    onig_node_free(node);
 6561|      0|    return r;
 6562|      0|  }
 6563|       |
 6564|  50.8k|  if (r == term) {
  ------------------
  |  Branch (6564:7): [True: 42.0k, False: 8.77k]
  ------------------
 6565|  42.0k|    *top = node;
 6566|  42.0k|  }
 6567|  8.77k|  else if (r == TK_ALT) {
  ------------------
  |  Branch (6567:12): [True: 8.77k, False: 0]
  ------------------
 6568|  8.77k|    *top  = onig_node_new_alt(node, NULL);
 6569|  8.77k|    headp = &(NCDR(*top));
  ------------------
  |  |   87|  8.77k|#define NCDR(node)         (NCONS(node)->cdr)
  |  |  ------------------
  |  |  |  |   83|  8.77k|#define NCONS(node)        (&((node)->u.cons))
  |  |  ------------------
  ------------------
 6570|  20.4k|    while (r == TK_ALT) {
  ------------------
  |  Branch (6570:12): [True: 11.7k, False: 8.77k]
  ------------------
 6571|  11.7k|      r = fetch_token(tok, src, end, env);
 6572|  11.7k|      if (r < 0) return r;
  ------------------
  |  Branch (6572:11): [True: 0, False: 11.7k]
  ------------------
 6573|  11.7k|      r = parse_branch(&node, tok, term, src, end, env);
 6574|  11.7k|      if (r < 0) {
  ------------------
  |  Branch (6574:11): [True: 0, False: 11.7k]
  ------------------
 6575|      0|	onig_node_free(node);
 6576|      0|	return r;
 6577|      0|      }
 6578|       |
 6579|  11.7k|      *headp = onig_node_new_alt(node, NULL);
 6580|  11.7k|      headp = &(NCDR(*headp));
  ------------------
  |  |   87|  11.7k|#define NCDR(node)         (NCONS(node)->cdr)
  |  |  ------------------
  |  |  |  |   83|  11.7k|#define NCONS(node)        (&((node)->u.cons))
  |  |  ------------------
  ------------------
 6581|  11.7k|    }
 6582|       |
 6583|  8.77k|    if (tok->type != (enum TokenSyms )term)
  ------------------
  |  Branch (6583:9): [True: 0, False: 8.77k]
  ------------------
 6584|      0|      goto err;
 6585|  8.77k|  }
 6586|      0|  else {
 6587|      0|    onig_node_free(node);
 6588|      0|  err:
 6589|      0|    if (term == TK_SUBEXP_CLOSE)
  ------------------
  |  Branch (6589:9): [True: 0, False: 0]
  ------------------
 6590|      0|      return ONIGERR_END_PATTERN_WITH_UNMATCHED_PARENTHESIS;
  ------------------
  |  |  661|      0|#define ONIGERR_END_PATTERN_WITH_UNMATCHED_PARENTHESIS       -117
  ------------------
 6591|      0|    else
 6592|      0|      return ONIGERR_PARSER_BUG;
  ------------------
  |  |  634|      0|#define ONIGERR_PARSER_BUG                                    -11
  ------------------
 6593|      0|  }
 6594|       |
 6595|  50.8k|  env->parse_depth--;
 6596|  50.8k|  return r;
 6597|  50.8k|}
regparse.c:parse_branch:
 6507|  62.5k|{
 6508|  62.5k|  int r;
 6509|  62.5k|  Node *node, **headp;
 6510|       |
 6511|  62.5k|  *top = NULL;
 6512|  62.5k|  r = parse_exp(&node, tok, term, src, end, env);
 6513|  62.5k|  if (r < 0) {
  ------------------
  |  Branch (6513:7): [True: 0, False: 62.5k]
  ------------------
 6514|      0|    onig_node_free(node);
 6515|      0|    return r;
 6516|      0|  }
 6517|       |
 6518|  62.5k|  if (r == TK_EOT || r == term || r == TK_ALT) {
  ------------------
  |  Branch (6518:7): [True: 2.86k, False: 59.6k]
  |  Branch (6518:22): [True: 14.6k, False: 44.9k]
  |  Branch (6518:35): [True: 10.2k, False: 34.6k]
  ------------------
 6519|  27.8k|    *top = node;
 6520|  27.8k|  }
 6521|  34.6k|  else {
 6522|  34.6k|    *top  = node_new_list(node, NULL);
 6523|  34.6k|    headp = &(NCDR(*top));
  ------------------
  |  |   87|  34.6k|#define NCDR(node)         (NCONS(node)->cdr)
  |  |  ------------------
  |  |  |  |   83|  34.6k|#define NCONS(node)        (&((node)->u.cons))
  |  |  ------------------
  ------------------
 6524|   143k|    while (r != TK_EOT && r != term && r != TK_ALT) {
  ------------------
  |  Branch (6524:12): [True: 112k, False: 30.3k]
  |  Branch (6524:27): [True: 110k, False: 2.86k]
  |  Branch (6524:40): [True: 108k, False: 1.43k]
  ------------------
 6525|   108k|      r = parse_exp(&node, tok, term, src, end, env);
 6526|   108k|      if (r < 0) {
  ------------------
  |  Branch (6526:11): [True: 0, False: 108k]
  ------------------
 6527|      0|	onig_node_free(node);
 6528|      0|	return r;
 6529|      0|      }
 6530|       |
 6531|   108k|      if (NTYPE(node) == NT_LIST) {
  ------------------
  |  |   69|   108k|#define NTYPE(node)             ((node)->u.base.type)
  ------------------
                    if (NTYPE(node) == NT_LIST) {
  ------------------
  |  |   46|   108k|#define NT_LIST        8
  ------------------
  |  Branch (6531:11): [True: 0, False: 108k]
  ------------------
 6532|      0|	*headp = node;
 6533|      0|	while (IS_NOT_NULL(NCDR(node))) node = NCDR(node);
  ------------------
  |  |  312|      0|#define IS_NOT_NULL(p)                (((void*)(p)) != (void*)0)
  |  |  ------------------
  |  |  |  Branch (312:39): [True: 0, False: 0]
  |  |  ------------------
  ------------------
              	while (IS_NOT_NULL(NCDR(node))) node = NCDR(node);
  ------------------
  |  |   87|      0|#define NCDR(node)         (NCONS(node)->cdr)
  |  |  ------------------
  |  |  |  |   83|      0|#define NCONS(node)        (&((node)->u.cons))
  |  |  ------------------
  ------------------
 6534|      0|	headp = &(NCDR(node));
  ------------------
  |  |   87|      0|#define NCDR(node)         (NCONS(node)->cdr)
  |  |  ------------------
  |  |  |  |   83|      0|#define NCONS(node)        (&((node)->u.cons))
  |  |  ------------------
  ------------------
 6535|      0|      }
 6536|   108k|      else {
 6537|   108k|	*headp = node_new_list(node, NULL);
 6538|   108k|	headp = &(NCDR(*headp));
  ------------------
  |  |   87|   108k|#define NCDR(node)         (NCONS(node)->cdr)
  |  |  ------------------
  |  |  |  |   83|   108k|#define NCONS(node)        (&((node)->u.cons))
  |  |  ------------------
  ------------------
 6539|   108k|      }
 6540|   108k|    }
 6541|  34.6k|  }
 6542|       |
 6543|  62.5k|  return r;
 6544|  62.5k|}
regparse.c:parse_exp:
 6129|   171k|{
 6130|   171k|  int r, len, group = 0;
 6131|   171k|  Node* qn;
 6132|   171k|  Node** targetp;
 6133|   171k|  unsigned int parse_depth;
 6134|       |
 6135|   171k|  *np = NULL;
 6136|   171k|  if (tok->type == (enum TokenSyms )term)
  ------------------
  |  Branch (6136:7): [True: 1.45k, False: 169k]
  ------------------
 6137|  1.45k|    goto end_of_token;
 6138|       |
 6139|   169k|  parse_depth = env->parse_depth;
 6140|       |
 6141|   169k|  switch (tok->type) {
 6142|      0|  case TK_ALT:
  ------------------
  |  Branch (6142:3): [True: 0, False: 169k]
  ------------------
 6143|      0|  case TK_EOT:
  ------------------
  |  Branch (6143:3): [True: 0, False: 169k]
  ------------------
 6144|  1.45k|  end_of_token:
 6145|  1.45k|    *np = node_new_empty();
 6146|  1.45k|    return tok->type;
 6147|      0|    break;
 6148|       |
 6149|  17.5k|  case TK_SUBEXP_OPEN:
  ------------------
  |  Branch (6149:3): [True: 17.5k, False: 152k]
  ------------------
 6150|  17.5k|    r = parse_enclose(np, tok, TK_SUBEXP_CLOSE, src, end, env);
 6151|  17.5k|    if (r < 0) return r;
  ------------------
  |  Branch (6151:9): [True: 0, False: 17.5k]
  ------------------
 6152|  17.5k|    if (r == 1) group = 1;
  ------------------
  |  Branch (6152:9): [True: 8.70k, False: 8.84k]
  ------------------
 6153|  8.84k|    else if (r == 2) { /* option only */
  ------------------
  |  Branch (6153:14): [True: 0, False: 8.84k]
  ------------------
 6154|      0|      Node* target;
 6155|      0|      OnigOptionType prev = env->option;
 6156|       |
 6157|      0|      env->option = NENCLOSE(*np)->option;
  ------------------
  |  |   81|      0|#define NENCLOSE(node)     (&((node)->u.enclose))
  ------------------
 6158|      0|      r = fetch_token(tok, src, end, env);
 6159|      0|      if (r < 0) {
  ------------------
  |  Branch (6159:11): [True: 0, False: 0]
  ------------------
 6160|      0|	env->option = prev;
 6161|      0|	return r;
 6162|      0|      }
 6163|      0|      r = parse_subexp(&target, tok, term, src, end, env);
 6164|      0|      env->option = prev;
 6165|      0|      if (r < 0) {
  ------------------
  |  Branch (6165:11): [True: 0, False: 0]
  ------------------
 6166|      0|	onig_node_free(target);
 6167|      0|	return r;
 6168|      0|      }
 6169|      0|      NENCLOSE(*np)->target = target;
  ------------------
  |  |   81|      0|#define NENCLOSE(node)     (&((node)->u.enclose))
  ------------------
 6170|      0|      return tok->type;
 6171|      0|    }
 6172|  17.5k|    break;
 6173|       |
 6174|  17.5k|  case TK_SUBEXP_CLOSE:
  ------------------
  |  Branch (6174:3): [True: 0, False: 169k]
  ------------------
 6175|      0|    if (! IS_SYNTAX_BV(env->syntax, ONIG_SYN_ALLOW_UNMATCHED_CLOSE_SUBEXP))
  ------------------
  |  |  332|      0|#define IS_SYNTAX_BV(syn, bvm)    (((syn)->behavior & (bvm)) != 0)
  ------------------
  |  Branch (6175:9): [True: 0, False: 0]
  ------------------
 6176|      0|      return ONIGERR_UNMATCHED_CLOSE_PARENTHESIS;
  ------------------
  |  |  660|      0|#define ONIGERR_UNMATCHED_CLOSE_PARENTHESIS                  -116
  ------------------
 6177|       |
 6178|      0|    if (tok->escaped) goto tk_raw_byte;
  ------------------
  |  Branch (6178:9): [True: 0, False: 0]
  ------------------
 6179|      0|    else goto tk_byte;
 6180|      0|    break;
 6181|       |
 6182|      0|  case TK_LINEBREAK:
  ------------------
  |  Branch (6182:3): [True: 0, False: 169k]
  ------------------
 6183|      0|    r = node_linebreak(np, env);
 6184|      0|    if (r < 0) return r;
  ------------------
  |  Branch (6184:9): [True: 0, False: 0]
  ------------------
 6185|      0|    break;
 6186|       |
 6187|      0|  case TK_EXTENDED_GRAPHEME_CLUSTER:
  ------------------
  |  Branch (6187:3): [True: 0, False: 169k]
  ------------------
 6188|      0|    r = node_extended_grapheme_cluster(np, env);
 6189|      0|    if (r < 0) return r;
  ------------------
  |  Branch (6189:9): [True: 0, False: 0]
  ------------------
 6190|      0|    break;
 6191|       |
 6192|      0|  case TK_KEEP:
  ------------------
  |  Branch (6192:3): [True: 0, False: 169k]
  ------------------
 6193|      0|    *np = onig_node_new_anchor(ANCHOR_KEEP);
  ------------------
  |  |  559|      0|#define ANCHOR_KEEP             (1<<16)
  ------------------
 6194|      0|    CHECK_NULL_RETURN_MEMERR(*np);
  ------------------
  |  |  314|      0|#define CHECK_NULL_RETURN_MEMERR(p)   if (IS_NULL(p)) return ONIGERR_MEMORY
  |  |  ------------------
  |  |  |  |  311|      0|#define IS_NULL(p)                    (((void*)(p)) == (void*)0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (311:39): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |               #define CHECK_NULL_RETURN_MEMERR(p)   if (IS_NULL(p)) return ONIGERR_MEMORY
  |  |  ------------------
  |  |  |  |  632|      0|#define ONIGERR_MEMORY                                         -5
  |  |  ------------------
  ------------------
 6195|      0|    break;
 6196|       |
 6197|  61.0k|  case TK_STRING:
  ------------------
  |  Branch (6197:3): [True: 61.0k, False: 108k]
  ------------------
 6198|  61.0k|  tk_byte:
 6199|  61.0k|    {
 6200|  61.0k|      *np = node_new_str(tok->backp, *src);
 6201|  61.0k|      CHECK_NULL_RETURN_MEMERR(*np);
  ------------------
  |  |  314|  61.0k|#define CHECK_NULL_RETURN_MEMERR(p)   if (IS_NULL(p)) return ONIGERR_MEMORY
  |  |  ------------------
  |  |  |  |  311|  61.0k|#define IS_NULL(p)                    (((void*)(p)) == (void*)0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (311:39): [True: 0, False: 61.0k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |               #define CHECK_NULL_RETURN_MEMERR(p)   if (IS_NULL(p)) return ONIGERR_MEMORY
  |  |  ------------------
  |  |  |  |  632|      0|#define ONIGERR_MEMORY                                         -5
  |  |  ------------------
  ------------------
 6202|       |
 6203|  61.0k|    string_loop:
 6204|   535k|      while (1) {
  ------------------
  |  Branch (6204:14): [Folded - Ignored]
  ------------------
 6205|   535k|	r = fetch_token(tok, src, end, env);
 6206|   535k|	if (r < 0) return r;
  ------------------
  |  Branch (6206:6): [True: 0, False: 535k]
  ------------------
 6207|   535k|	if (r == TK_STRING) {
  ------------------
  |  Branch (6207:6): [True: 474k, False: 61.0k]
  ------------------
 6208|   474k|	  r = onig_node_str_cat(*np, tok->backp, *src);
 6209|   474k|	}
 6210|  61.0k|#ifndef NUMBERED_CHAR_IS_NOT_CASE_AMBIG
 6211|  61.0k|	else if (r == TK_CODE_POINT) {
  ------------------
  |  Branch (6211:11): [True: 0, False: 61.0k]
  ------------------
 6212|      0|	  r = node_str_cat_codepoint(*np, env->enc, tok->u.code);
 6213|      0|	}
 6214|  61.0k|#endif
 6215|  61.0k|	else {
 6216|  61.0k|	  break;
 6217|  61.0k|	}
 6218|   474k|	if (r < 0) return r;
  ------------------
  |  Branch (6218:6): [True: 0, False: 474k]
  ------------------
 6219|   474k|      }
 6220|       |
 6221|  61.0k|    string_end:
 6222|  61.0k|      targetp = np;
 6223|  61.0k|      goto repeat;
 6224|  61.0k|    }
 6225|      0|    break;
 6226|       |
 6227|      0|  case TK_RAW_BYTE:
  ------------------
  |  Branch (6227:3): [True: 0, False: 169k]
  ------------------
 6228|      0|  tk_raw_byte:
 6229|      0|    {
 6230|      0|      *np = node_new_str_raw_char((UChar )tok->u.c);
 6231|      0|      CHECK_NULL_RETURN_MEMERR(*np);
  ------------------
  |  |  314|      0|#define CHECK_NULL_RETURN_MEMERR(p)   if (IS_NULL(p)) return ONIGERR_MEMORY
  |  |  ------------------
  |  |  |  |  311|      0|#define IS_NULL(p)                    (((void*)(p)) == (void*)0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (311:39): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |               #define CHECK_NULL_RETURN_MEMERR(p)   if (IS_NULL(p)) return ONIGERR_MEMORY
  |  |  ------------------
  |  |  |  |  632|      0|#define ONIGERR_MEMORY                                         -5
  |  |  ------------------
  ------------------
 6232|      0|      len = 1;
 6233|      0|      while (1) {
  ------------------
  |  Branch (6233:14): [Folded - Ignored]
  ------------------
 6234|      0|	if (len >= ONIGENC_MBC_MINLEN(env->enc)) {
  ------------------
  |  |  367|      0|#define ONIGENC_MBC_MINLEN(enc)               ((enc)->min_enc_len)
  ------------------
  |  Branch (6234:6): [True: 0, False: 0]
  ------------------
 6235|      0|	  if (len == enclen(env->enc, NSTR(*np)->s, NSTR(*np)->end)) {
  ------------------
  |  |   93|      0|#define enclen(enc,p,e) ((enc->max_enc_len == enc->min_enc_len) ? enc->min_enc_len : ONIGENC_MBC_ENC_LEN(enc,p,e))
  |  |  ------------------
  |  |  |  |  364|      0|#define ONIGENC_MBC_ENC_LEN(enc,p,e)          onigenc_mbclen(p,e,enc)
  |  |  ------------------
  |  |  |  Branch (93:26): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  |  Branch (6235:8): [True: 0, False: 0]
  ------------------
 6236|      0|	    r = fetch_token(tok, src, end, env);
 6237|      0|	    NSTRING_CLEAR_RAW(*np);
  ------------------
  |  |  110|      0|#define NSTRING_CLEAR_RAW(node)        (node)->u.str.flag &= ~NSTR_RAW
  |  |  ------------------
  |  |  |  |  104|      0|#define NSTR_RAW                (1<<0) /* by backslashed number */
  |  |  ------------------
  ------------------
 6238|      0|	    goto string_end;
 6239|      0|	  }
 6240|      0|	}
 6241|       |
 6242|      0|	r = fetch_token(tok, src, end, env);
 6243|      0|	if (r < 0) return r;
  ------------------
  |  Branch (6243:6): [True: 0, False: 0]
  ------------------
 6244|      0|	if (r != TK_RAW_BYTE) {
  ------------------
  |  Branch (6244:6): [True: 0, False: 0]
  ------------------
 6245|       |	  /* Don't use this, it is wrong for little endian encodings. */
 6246|       |#ifdef USE_PAD_TO_SHORT_BYTE_CHAR
 6247|       |	  int rem;
 6248|       |	  if (len < ONIGENC_MBC_MINLEN(env->enc)) {
 6249|       |	    rem = ONIGENC_MBC_MINLEN(env->enc) - len;
 6250|       |	    (void )node_str_head_pad(NSTR(*np), rem, (UChar )0);
 6251|       |	    if (len + rem == enclen(env->enc, NSTR(*np)->s)) {
 6252|       |	      NSTRING_CLEAR_RAW(*np);
 6253|       |	      goto string_end;
 6254|       |	    }
 6255|       |	  }
 6256|       |#endif
 6257|      0|	  return ONIGERR_TOO_SHORT_MULTI_BYTE_STRING;
  ------------------
  |  |  675|      0|#define ONIGERR_TOO_SHORT_MULTI_BYTE_STRING                  -206
  ------------------
 6258|      0|	}
 6259|       |
 6260|      0|	r = node_str_cat_char(*np, (UChar )tok->u.c);
 6261|      0|	if (r < 0) return r;
  ------------------
  |  Branch (6261:6): [True: 0, False: 0]
  ------------------
 6262|       |
 6263|      0|	len++;
 6264|      0|      }
 6265|      0|    }
 6266|      0|    break;
 6267|       |
 6268|      0|  case TK_CODE_POINT:
  ------------------
  |  Branch (6268:3): [True: 0, False: 169k]
  ------------------
 6269|      0|    {
 6270|      0|      *np = node_new_empty();
 6271|      0|      CHECK_NULL_RETURN_MEMERR(*np);
  ------------------
  |  |  314|      0|#define CHECK_NULL_RETURN_MEMERR(p)   if (IS_NULL(p)) return ONIGERR_MEMORY
  |  |  ------------------
  |  |  |  |  311|      0|#define IS_NULL(p)                    (((void*)(p)) == (void*)0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (311:39): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |               #define CHECK_NULL_RETURN_MEMERR(p)   if (IS_NULL(p)) return ONIGERR_MEMORY
  |  |  ------------------
  |  |  |  |  632|      0|#define ONIGERR_MEMORY                                         -5
  |  |  ------------------
  ------------------
 6272|      0|      r = node_str_cat_codepoint(*np, env->enc, tok->u.code);
 6273|      0|      if (r != 0) return r;
  ------------------
  |  Branch (6273:11): [True: 0, False: 0]
  ------------------
 6274|       |#ifdef NUMBERED_CHAR_IS_NOT_CASE_AMBIG
 6275|       |      NSTRING_SET_RAW(*np);
 6276|       |#else
 6277|      0|      goto string_loop;
 6278|      0|#endif
 6279|      0|    }
 6280|      0|    break;
 6281|       |
 6282|      0|  case TK_QUOTE_OPEN:
  ------------------
  |  Branch (6282:3): [True: 0, False: 169k]
  ------------------
 6283|      0|    {
 6284|      0|      OnigCodePoint end_op[2];
 6285|      0|      UChar *qstart, *qend, *nextp;
  ------------------
  |  |   76|      0|# define UChar OnigUChar
  ------------------
 6286|       |
 6287|      0|      end_op[0] = (OnigCodePoint )MC_ESC(env->syntax);
  ------------------
  |  |  761|      0|#define MC_ESC(syn)               (syn)->meta_char_table.esc
  ------------------
 6288|      0|      end_op[1] = (OnigCodePoint )'E';
 6289|      0|      qstart = *src;
 6290|      0|      qend = find_str_position(end_op, 2, qstart, end, &nextp, env->enc);
 6291|      0|      if (IS_NULL(qend)) {
  ------------------
  |  |  311|      0|#define IS_NULL(p)                    (((void*)(p)) == (void*)0)
  |  |  ------------------
  |  |  |  Branch (311:39): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 6292|      0|	nextp = qend = end;
 6293|      0|      }
 6294|      0|      *np = node_new_str(qstart, qend);
 6295|      0|      CHECK_NULL_RETURN_MEMERR(*np);
  ------------------
  |  |  314|      0|#define CHECK_NULL_RETURN_MEMERR(p)   if (IS_NULL(p)) return ONIGERR_MEMORY
  |  |  ------------------
  |  |  |  |  311|      0|#define IS_NULL(p)                    (((void*)(p)) == (void*)0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (311:39): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |               #define CHECK_NULL_RETURN_MEMERR(p)   if (IS_NULL(p)) return ONIGERR_MEMORY
  |  |  ------------------
  |  |  |  |  632|      0|#define ONIGERR_MEMORY                                         -5
  |  |  ------------------
  ------------------
 6296|      0|      *src = nextp;
 6297|      0|    }
 6298|      0|    break;
 6299|       |
 6300|  12.9k|  case TK_CHAR_TYPE:
  ------------------
  |  Branch (6300:3): [True: 12.9k, False: 156k]
  ------------------
 6301|  12.9k|    {
 6302|  12.9k|      switch (tok->u.prop.ctype) {
 6303|      0|      case ONIGENC_CTYPE_WORD:
  ------------------
  |  |  306|      0|#define ONIGENC_CTYPE_WORD     12
  ------------------
  |  Branch (6303:7): [True: 0, False: 12.9k]
  ------------------
 6304|      0|	*np = node_new_ctype(tok->u.prop.ctype, tok->u.prop.not,
 6305|      0|			     IS_ASCII_RANGE(env->option));
  ------------------
  |  |  406|      0|#define IS_ASCII_RANGE(option)    ((option) & ONIG_OPTION_ASCII_RANGE)
  |  |  ------------------
  |  |  |  |  470|      0|#define ONIG_OPTION_ASCII_RANGE          (ONIG_OPTION_NOTEOS << 1)
  |  |  |  |  ------------------
  |  |  |  |  |  |  468|      0|#define ONIG_OPTION_NOTEOS               (ONIG_OPTION_NOTBOS << 1)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  467|      0|#define ONIG_OPTION_NOTBOS               (ONIG_OPTION_NOTEOL << 1)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  466|      0|#define ONIG_OPTION_NOTEOL               (ONIG_OPTION_NOTBOL << 1)
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  465|      0|#define ONIG_OPTION_NOTBOL               (ONIG_OPTION_CAPTURE_GROUP << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  463|      0|#define ONIG_OPTION_CAPTURE_GROUP        (ONIG_OPTION_DONT_CAPTURE_GROUP << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  462|      0|#define ONIG_OPTION_DONT_CAPTURE_GROUP   (ONIG_OPTION_NEGATE_SINGLELINE  << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  461|      0|#define ONIG_OPTION_NEGATE_SINGLELINE    (ONIG_OPTION_FIND_NOT_EMPTY     << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  460|      0|#define ONIG_OPTION_FIND_NOT_EMPTY       (ONIG_OPTION_FIND_LONGEST       << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  459|      0|#define ONIG_OPTION_FIND_LONGEST         (ONIG_OPTION_SINGLELINE         << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  458|      0|#define ONIG_OPTION_SINGLELINE           (ONIG_OPTION_MULTILINE          << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  456|      0|#define ONIG_OPTION_MULTILINE            (ONIG_OPTION_EXTEND             << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  455|      0|#define ONIG_OPTION_EXTEND               (ONIG_OPTION_IGNORECASE         << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  454|      0|#define ONIG_OPTION_IGNORECASE           1U
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 6306|      0|	CHECK_NULL_RETURN_MEMERR(*np);
  ------------------
  |  |  314|      0|#define CHECK_NULL_RETURN_MEMERR(p)   if (IS_NULL(p)) return ONIGERR_MEMORY
  |  |  ------------------
  |  |  |  |  311|      0|#define IS_NULL(p)                    (((void*)(p)) == (void*)0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (311:39): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |               #define CHECK_NULL_RETURN_MEMERR(p)   if (IS_NULL(p)) return ONIGERR_MEMORY
  |  |  ------------------
  |  |  |  |  632|      0|#define ONIGERR_MEMORY                                         -5
  |  |  ------------------
  ------------------
 6307|      0|	break;
 6308|       |
 6309|  7.16k|      case ONIGENC_CTYPE_SPACE:
  ------------------
  |  |  303|  7.16k|#define ONIGENC_CTYPE_SPACE     9
  ------------------
  |  Branch (6309:7): [True: 7.16k, False: 5.75k]
  ------------------
 6310|  12.9k|      case ONIGENC_CTYPE_DIGIT:
  ------------------
  |  |  298|  12.9k|#define ONIGENC_CTYPE_DIGIT     4
  ------------------
  |  Branch (6310:7): [True: 5.75k, False: 7.16k]
  ------------------
 6311|  12.9k|      case ONIGENC_CTYPE_XDIGIT:
  ------------------
  |  |  305|  12.9k|#define ONIGENC_CTYPE_XDIGIT   11
  ------------------
  |  Branch (6311:7): [True: 0, False: 12.9k]
  ------------------
 6312|  12.9k|	{
 6313|  12.9k|	  CClassNode* cc;
 6314|       |
 6315|  12.9k|	  *np = node_new_cclass();
 6316|  12.9k|	  CHECK_NULL_RETURN_MEMERR(*np);
  ------------------
  |  |  314|  12.9k|#define CHECK_NULL_RETURN_MEMERR(p)   if (IS_NULL(p)) return ONIGERR_MEMORY
  |  |  ------------------
  |  |  |  |  311|  12.9k|#define IS_NULL(p)                    (((void*)(p)) == (void*)0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (311:39): [True: 0, False: 12.9k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |               #define CHECK_NULL_RETURN_MEMERR(p)   if (IS_NULL(p)) return ONIGERR_MEMORY
  |  |  ------------------
  |  |  |  |  632|      0|#define ONIGERR_MEMORY                                         -5
  |  |  ------------------
  ------------------
 6317|  12.9k|	  cc = NCCLASS(*np);
  ------------------
  |  |   77|  12.9k|#define NCCLASS(node)      (&((node)->u.cclass))
  ------------------
 6318|  12.9k|	  r = add_ctype_to_cc(cc, tok->u.prop.ctype, 0,
 6319|  12.9k|	      IS_ASCII_RANGE(env->option), env);
  ------------------
  |  |  406|  12.9k|#define IS_ASCII_RANGE(option)    ((option) & ONIG_OPTION_ASCII_RANGE)
  |  |  ------------------
  |  |  |  |  470|  12.9k|#define ONIG_OPTION_ASCII_RANGE          (ONIG_OPTION_NOTEOS << 1)
  |  |  |  |  ------------------
  |  |  |  |  |  |  468|  12.9k|#define ONIG_OPTION_NOTEOS               (ONIG_OPTION_NOTBOS << 1)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  467|  12.9k|#define ONIG_OPTION_NOTBOS               (ONIG_OPTION_NOTEOL << 1)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  466|  12.9k|#define ONIG_OPTION_NOTEOL               (ONIG_OPTION_NOTBOL << 1)
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  465|  12.9k|#define ONIG_OPTION_NOTBOL               (ONIG_OPTION_CAPTURE_GROUP << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  463|  12.9k|#define ONIG_OPTION_CAPTURE_GROUP        (ONIG_OPTION_DONT_CAPTURE_GROUP << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  462|  12.9k|#define ONIG_OPTION_DONT_CAPTURE_GROUP   (ONIG_OPTION_NEGATE_SINGLELINE  << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  461|  12.9k|#define ONIG_OPTION_NEGATE_SINGLELINE    (ONIG_OPTION_FIND_NOT_EMPTY     << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  460|  12.9k|#define ONIG_OPTION_FIND_NOT_EMPTY       (ONIG_OPTION_FIND_LONGEST       << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  459|  12.9k|#define ONIG_OPTION_FIND_LONGEST         (ONIG_OPTION_SINGLELINE         << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  458|  12.9k|#define ONIG_OPTION_SINGLELINE           (ONIG_OPTION_MULTILINE          << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  456|  12.9k|#define ONIG_OPTION_MULTILINE            (ONIG_OPTION_EXTEND             << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  455|  12.9k|#define ONIG_OPTION_EXTEND               (ONIG_OPTION_IGNORECASE         << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  454|  12.9k|#define ONIG_OPTION_IGNORECASE           1U
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 6320|  12.9k|	  if (r != 0) return r;
  ------------------
  |  Branch (6320:8): [True: 0, False: 12.9k]
  ------------------
 6321|  12.9k|	  if (tok->u.prop.not != 0) NCCLASS_SET_NOT(cc);
  ------------------
  |  |  807|      0|#define NCCLASS_SET_NOT(nd)     NCCLASS_FLAG_SET(nd, FLAG_NCCLASS_NOT)
  |  |  ------------------
  |  |  |  |  800|      0|#define NCCLASS_FLAG_SET(cc,flag)    (NCCLASS_FLAGS(cc) |= (flag))
  |  |  |  |  ------------------
  |  |  |  |  |  |  799|      0|#define NCCLASS_FLAGS(cc)           ((cc)->flags)
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  |  Branch (6321:8): [True: 0, False: 12.9k]
  ------------------
 6322|  12.9k|	}
 6323|      0|	break;
 6324|       |
 6325|      0|      default:
  ------------------
  |  Branch (6325:7): [True: 0, False: 12.9k]
  ------------------
 6326|      0|	return ONIGERR_PARSER_BUG;
  ------------------
  |  |  634|      0|#define ONIGERR_PARSER_BUG                                    -11
  ------------------
 6327|      0|	break;
 6328|  12.9k|      }
 6329|  12.9k|    }
 6330|  12.9k|    break;
 6331|       |
 6332|  12.9k|  case TK_CHAR_PROPERTY:
  ------------------
  |  Branch (6332:3): [True: 0, False: 169k]
  ------------------
 6333|      0|    r = parse_char_property(np, tok, src, end, env);
 6334|      0|    if (r != 0) return r;
  ------------------
  |  Branch (6334:9): [True: 0, False: 0]
  ------------------
 6335|      0|    break;
 6336|       |
 6337|  21.7k|  case TK_CC_OPEN:
  ------------------
  |  Branch (6337:3): [True: 21.7k, False: 147k]
  ------------------
 6338|  21.7k|    {
 6339|  21.7k|      Node *asc_node;
 6340|  21.7k|      CClassNode* cc;
 6341|  21.7k|      OnigCodePoint code;
 6342|       |
 6343|  21.7k|      r = parse_char_class(np, &asc_node, tok, src, end, env);
 6344|  21.7k|      if (r != 0) {
  ------------------
  |  Branch (6344:11): [True: 0, False: 21.7k]
  ------------------
 6345|      0|	onig_node_free(asc_node);
 6346|      0|	return r;
 6347|      0|      }
 6348|       |
 6349|  21.7k|      cc = NCCLASS(*np);
  ------------------
  |  |   77|  21.7k|#define NCCLASS(node)      (&((node)->u.cclass))
  ------------------
 6350|  21.7k|      if (is_onechar_cclass(cc, &code)) {
  ------------------
  |  Branch (6350:11): [True: 0, False: 21.7k]
  ------------------
 6351|      0|	onig_node_free(*np);
 6352|      0|	onig_node_free(asc_node);
 6353|      0|	*np = node_new_empty();
 6354|      0|	CHECK_NULL_RETURN_MEMERR(*np);
  ------------------
  |  |  314|      0|#define CHECK_NULL_RETURN_MEMERR(p)   if (IS_NULL(p)) return ONIGERR_MEMORY
  |  |  ------------------
  |  |  |  |  311|      0|#define IS_NULL(p)                    (((void*)(p)) == (void*)0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (311:39): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |               #define CHECK_NULL_RETURN_MEMERR(p)   if (IS_NULL(p)) return ONIGERR_MEMORY
  |  |  ------------------
  |  |  |  |  632|      0|#define ONIGERR_MEMORY                                         -5
  |  |  ------------------
  ------------------
 6355|      0|	r = node_str_cat_codepoint(*np, env->enc, code);
 6356|      0|	if (r != 0) return r;
  ------------------
  |  Branch (6356:6): [True: 0, False: 0]
  ------------------
 6357|      0|	goto string_loop;
 6358|      0|      }
 6359|  21.7k|      if (IS_IGNORECASE(env->option)) {
  ------------------
  |  |  396|  21.7k|#define IS_IGNORECASE(option)     ((option) & ONIG_OPTION_IGNORECASE)
  |  |  ------------------
  |  |  |  |  454|  21.7k|#define ONIG_OPTION_IGNORECASE           1U
  |  |  ------------------
  |  |  |  Branch (396:35): [True: 0, False: 21.7k]
  |  |  ------------------
  ------------------
 6360|      0|	r = cclass_case_fold(np, cc, NCCLASS(asc_node), env);
  ------------------
  |  |   77|      0|#define NCCLASS(node)      (&((node)->u.cclass))
  ------------------
 6361|      0|	if (r != 0) {
  ------------------
  |  Branch (6361:6): [True: 0, False: 0]
  ------------------
 6362|      0|	  onig_node_free(asc_node);
 6363|      0|	  return r;
 6364|      0|	}
 6365|      0|      }
 6366|  21.7k|      onig_node_free(asc_node);
 6367|  21.7k|    }
 6368|      0|    break;
 6369|       |
 6370|  14.5k|  case TK_ANYCHAR:
  ------------------
  |  Branch (6370:3): [True: 14.5k, False: 155k]
  ------------------
 6371|  14.5k|    *np = node_new_anychar();
 6372|  14.5k|    CHECK_NULL_RETURN_MEMERR(*np);
  ------------------
  |  |  314|  14.5k|#define CHECK_NULL_RETURN_MEMERR(p)   if (IS_NULL(p)) return ONIGERR_MEMORY
  |  |  ------------------
  |  |  |  |  311|  14.5k|#define IS_NULL(p)                    (((void*)(p)) == (void*)0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (311:39): [True: 0, False: 14.5k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |               #define CHECK_NULL_RETURN_MEMERR(p)   if (IS_NULL(p)) return ONIGERR_MEMORY
  |  |  ------------------
  |  |  |  |  632|      0|#define ONIGERR_MEMORY                                         -5
  |  |  ------------------
  ------------------
 6373|  14.5k|    break;
 6374|       |
 6375|  14.5k|  case TK_ANYCHAR_ANYTIME:
  ------------------
  |  Branch (6375:3): [True: 0, False: 169k]
  ------------------
 6376|      0|    *np = node_new_anychar();
 6377|      0|    CHECK_NULL_RETURN_MEMERR(*np);
  ------------------
  |  |  314|      0|#define CHECK_NULL_RETURN_MEMERR(p)   if (IS_NULL(p)) return ONIGERR_MEMORY
  |  |  ------------------
  |  |  |  |  311|      0|#define IS_NULL(p)                    (((void*)(p)) == (void*)0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (311:39): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |               #define CHECK_NULL_RETURN_MEMERR(p)   if (IS_NULL(p)) return ONIGERR_MEMORY
  |  |  ------------------
  |  |  |  |  632|      0|#define ONIGERR_MEMORY                                         -5
  |  |  ------------------
  ------------------
 6378|      0|    qn = node_new_quantifier(0, REPEAT_INFINITE, 0);
  ------------------
  |  |  421|      0|#define REPEAT_INFINITE         -1
  ------------------
 6379|      0|    CHECK_NULL_RETURN_MEMERR(qn);
  ------------------
  |  |  314|      0|#define CHECK_NULL_RETURN_MEMERR(p)   if (IS_NULL(p)) return ONIGERR_MEMORY
  |  |  ------------------
  |  |  |  |  311|      0|#define IS_NULL(p)                    (((void*)(p)) == (void*)0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (311:39): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |               #define CHECK_NULL_RETURN_MEMERR(p)   if (IS_NULL(p)) return ONIGERR_MEMORY
  |  |  ------------------
  |  |  |  |  632|      0|#define ONIGERR_MEMORY                                         -5
  |  |  ------------------
  ------------------
 6380|      0|    NQTFR(qn)->target = *np;
  ------------------
  |  |   80|      0|#define NQTFR(node)        (&((node)->u.qtfr))
  ------------------
 6381|      0|    *np = qn;
 6382|      0|    break;
 6383|       |
 6384|      0|  case TK_BACKREF:
  ------------------
  |  Branch (6384:3): [True: 0, False: 169k]
  ------------------
 6385|      0|    len = tok->u.backref.num;
 6386|      0|    *np = node_new_backref(len,
 6387|      0|		   (len > 1 ? tok->u.backref.refs : &(tok->u.backref.ref1)),
  ------------------
  |  Branch (6387:7): [True: 0, False: 0]
  ------------------
 6388|      0|			   tok->u.backref.by_name,
 6389|      0|#ifdef USE_BACKREF_WITH_LEVEL
 6390|      0|			   tok->u.backref.exist_level,
 6391|      0|			   tok->u.backref.level,
 6392|      0|#endif
 6393|      0|			   env);
 6394|      0|    CHECK_NULL_RETURN_MEMERR(*np);
  ------------------
  |  |  314|      0|#define CHECK_NULL_RETURN_MEMERR(p)   if (IS_NULL(p)) return ONIGERR_MEMORY
  |  |  ------------------
  |  |  |  |  311|      0|#define IS_NULL(p)                    (((void*)(p)) == (void*)0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (311:39): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |               #define CHECK_NULL_RETURN_MEMERR(p)   if (IS_NULL(p)) return ONIGERR_MEMORY
  |  |  ------------------
  |  |  |  |  632|      0|#define ONIGERR_MEMORY                                         -5
  |  |  ------------------
  ------------------
 6395|      0|    break;
 6396|       |
 6397|      0|#ifdef USE_SUBEXP_CALL
 6398|      0|  case TK_CALL:
  ------------------
  |  Branch (6398:3): [True: 0, False: 169k]
  ------------------
 6399|      0|    {
 6400|      0|      int gnum = tok->u.call.gnum;
 6401|       |
 6402|      0|      if (gnum < 0 || tok->u.call.rel != 0) {
  ------------------
  |  Branch (6402:11): [True: 0, False: 0]
  |  Branch (6402:23): [True: 0, False: 0]
  ------------------
 6403|      0|	if (gnum > 0) gnum--;
  ------------------
  |  Branch (6403:6): [True: 0, False: 0]
  ------------------
 6404|      0|	gnum = BACKREF_REL_TO_ABS(gnum, env);
  ------------------
  |  |  158|      0|  ((env)->num_mem + 1 + (rel_no))
  ------------------
 6405|      0|	if (gnum <= 0)
  ------------------
  |  Branch (6405:6): [True: 0, False: 0]
  ------------------
 6406|      0|	  return ONIGERR_INVALID_BACKREF;
  ------------------
  |  |  677|      0|#define ONIGERR_INVALID_BACKREF                              -208
  ------------------
 6407|      0|      }
 6408|      0|      *np = node_new_call(tok->u.call.name, tok->u.call.name_end, gnum);
 6409|      0|      CHECK_NULL_RETURN_MEMERR(*np);
  ------------------
  |  |  314|      0|#define CHECK_NULL_RETURN_MEMERR(p)   if (IS_NULL(p)) return ONIGERR_MEMORY
  |  |  ------------------
  |  |  |  |  311|      0|#define IS_NULL(p)                    (((void*)(p)) == (void*)0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (311:39): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |               #define CHECK_NULL_RETURN_MEMERR(p)   if (IS_NULL(p)) return ONIGERR_MEMORY
  |  |  ------------------
  |  |  |  |  632|      0|#define ONIGERR_MEMORY                                         -5
  |  |  ------------------
  ------------------
 6410|      0|      env->num_call++;
 6411|      0|    }
 6412|      0|    break;
 6413|      0|#endif
 6414|       |
 6415|  41.9k|  case TK_ANCHOR:
  ------------------
  |  Branch (6415:3): [True: 41.9k, False: 127k]
  ------------------
 6416|  41.9k|    *np = onig_node_new_anchor(tok->u.anchor.subtype);
 6417|  41.9k|    CHECK_NULL_RETURN_MEMERR(*np);
  ------------------
  |  |  314|  41.9k|#define CHECK_NULL_RETURN_MEMERR(p)   if (IS_NULL(p)) return ONIGERR_MEMORY
  |  |  ------------------
  |  |  |  |  311|  41.9k|#define IS_NULL(p)                    (((void*)(p)) == (void*)0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (311:39): [True: 0, False: 41.9k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |               #define CHECK_NULL_RETURN_MEMERR(p)   if (IS_NULL(p)) return ONIGERR_MEMORY
  |  |  ------------------
  |  |  |  |  632|      0|#define ONIGERR_MEMORY                                         -5
  |  |  ------------------
  ------------------
 6418|  41.9k|    NANCHOR(*np)->ascii_range = tok->u.anchor.ascii_range;
  ------------------
  |  |   82|  41.9k|#define NANCHOR(node)      (&((node)->u.anchor))
  ------------------
 6419|  41.9k|    break;
 6420|       |
 6421|      0|  case TK_OP_REPEAT:
  ------------------
  |  Branch (6421:3): [True: 0, False: 169k]
  ------------------
 6422|      0|  case TK_INTERVAL:
  ------------------
  |  Branch (6422:3): [True: 0, False: 169k]
  ------------------
 6423|      0|    if (IS_SYNTAX_BV(env->syntax, ONIG_SYN_CONTEXT_INDEP_REPEAT_OPS)) {
  ------------------
  |  |  332|      0|#define IS_SYNTAX_BV(syn, bvm)    (((syn)->behavior & (bvm)) != 0)
  |  |  ------------------
  |  |  |  Branch (332:35): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 6424|      0|      if (IS_SYNTAX_BV(env->syntax, ONIG_SYN_CONTEXT_INVALID_REPEAT_OPS))
  ------------------
  |  |  332|      0|#define IS_SYNTAX_BV(syn, bvm)    (((syn)->behavior & (bvm)) != 0)
  |  |  ------------------
  |  |  |  Branch (332:35): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 6425|      0|	return ONIGERR_TARGET_OF_REPEAT_OPERATOR_NOT_SPECIFIED;
  ------------------
  |  |  657|      0|#define ONIGERR_TARGET_OF_REPEAT_OPERATOR_NOT_SPECIFIED      -113
  ------------------
 6426|      0|      else
 6427|      0|	*np = node_new_empty();
 6428|      0|    }
 6429|      0|    else {
 6430|      0|      goto tk_byte;
 6431|      0|    }
 6432|      0|    break;
 6433|       |
 6434|      0|  default:
  ------------------
  |  Branch (6434:3): [True: 0, False: 169k]
  ------------------
 6435|      0|    return ONIGERR_PARSER_BUG;
  ------------------
  |  |  634|      0|#define ONIGERR_PARSER_BUG                                    -11
  ------------------
 6436|      0|    break;
 6437|   169k|  }
 6438|       |
 6439|   108k|  {
 6440|   108k|    targetp = np;
 6441|       |
 6442|   151k|  re_entry:
 6443|   151k|    r = fetch_token(tok, src, end, env);
 6444|   151k|    if (r < 0) return r;
  ------------------
  |  Branch (6444:9): [True: 0, False: 151k]
  ------------------
 6445|       |
 6446|   212k|  repeat:
 6447|   212k|    if (r == TK_OP_REPEAT || r == TK_INTERVAL) {
  ------------------
  |  Branch (6447:9): [True: 43.3k, False: 169k]
  |  Branch (6447:30): [True: 0, False: 169k]
  ------------------
 6448|  43.3k|      if (is_invalid_quantifier_target(*targetp))
  ------------------
  |  | 2122|  43.3k|# define is_invalid_quantifier_target(node) 0
  |  |  ------------------
  |  |  |  Branch (2122:45): [Folded - Ignored]
  |  |  ------------------
  ------------------
 6449|      0|	return ONIGERR_TARGET_OF_REPEAT_OPERATOR_INVALID;
  ------------------
  |  |  658|      0|#define ONIGERR_TARGET_OF_REPEAT_OPERATOR_INVALID            -114
  ------------------
 6450|       |
 6451|  43.3k|      parse_depth++;
 6452|  43.3k|      if (parse_depth > ParseDepthLimit)
  ------------------
  |  Branch (6452:11): [True: 0, False: 43.3k]
  ------------------
 6453|      0|	return ONIGERR_PARSE_DEPTH_LIMIT_OVER;
  ------------------
  |  |  639|      0|#define ONIGERR_PARSE_DEPTH_LIMIT_OVER                        -16
  ------------------
 6454|       |
 6455|  43.3k|      qn = node_new_quantifier(tok->u.repeat.lower, tok->u.repeat.upper,
 6456|  43.3k|			       (r == TK_INTERVAL ? 1 : 0));
  ------------------
  |  Branch (6456:12): [True: 0, False: 43.3k]
  ------------------
 6457|  43.3k|      CHECK_NULL_RETURN_MEMERR(qn);
  ------------------
  |  |  314|  43.3k|#define CHECK_NULL_RETURN_MEMERR(p)   if (IS_NULL(p)) return ONIGERR_MEMORY
  |  |  ------------------
  |  |  |  |  311|  43.3k|#define IS_NULL(p)                    (((void*)(p)) == (void*)0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (311:39): [True: 0, False: 43.3k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |               #define CHECK_NULL_RETURN_MEMERR(p)   if (IS_NULL(p)) return ONIGERR_MEMORY
  |  |  ------------------
  |  |  |  |  632|      0|#define ONIGERR_MEMORY                                         -5
  |  |  ------------------
  ------------------
 6458|  43.3k|      NQTFR(qn)->greedy = tok->u.repeat.greedy;
  ------------------
  |  |   80|  43.3k|#define NQTFR(node)        (&((node)->u.qtfr))
  ------------------
 6459|  43.3k|      r = set_quantifier(qn, *targetp, group, env);
 6460|  43.3k|      if (r < 0) {
  ------------------
  |  Branch (6460:11): [True: 0, False: 43.3k]
  ------------------
 6461|      0|	onig_node_free(qn);
 6462|      0|	return r;
 6463|      0|      }
 6464|       |
 6465|  43.3k|      if (tok->u.repeat.possessive != 0) {
  ------------------
  |  Branch (6465:11): [True: 0, False: 43.3k]
  ------------------
 6466|      0|	Node* en;
 6467|      0|	en = node_new_enclose(ENCLOSE_STOP_BACKTRACK);
  ------------------
  |  |   96|      0|#define ENCLOSE_STOP_BACKTRACK   (1<<2)
  ------------------
 6468|      0|	if (IS_NULL(en)) {
  ------------------
  |  |  311|      0|#define IS_NULL(p)                    (((void*)(p)) == (void*)0)
  |  |  ------------------
  |  |  |  Branch (311:39): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 6469|      0|	  onig_node_free(qn);
 6470|      0|	  return ONIGERR_MEMORY;
  ------------------
  |  |  632|      0|#define ONIGERR_MEMORY                                         -5
  ------------------
 6471|      0|	}
 6472|      0|	NENCLOSE(en)->target = qn;
  ------------------
  |  |   81|      0|#define NENCLOSE(node)     (&((node)->u.enclose))
  ------------------
 6473|      0|	qn = en;
 6474|      0|      }
 6475|       |
 6476|  43.3k|      if (r == 0) {
  ------------------
  |  Branch (6476:11): [True: 43.3k, False: 0]
  ------------------
 6477|  43.3k|	*targetp = qn;
 6478|  43.3k|      }
 6479|      0|      else if (r == 1) {
  ------------------
  |  Branch (6479:16): [True: 0, False: 0]
  ------------------
 6480|      0|	onig_node_free(qn);
 6481|      0|      }
 6482|      0|      else if (r == 2) { /* split case: /abc+/ */
  ------------------
  |  Branch (6482:16): [True: 0, False: 0]
  ------------------
 6483|      0|	Node *tmp;
 6484|       |
 6485|      0|	*targetp = node_new_list(*targetp, NULL);
 6486|      0|	if (IS_NULL(*targetp)) {
  ------------------
  |  |  311|      0|#define IS_NULL(p)                    (((void*)(p)) == (void*)0)
  |  |  ------------------
  |  |  |  Branch (311:39): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 6487|      0|	  onig_node_free(qn);
 6488|      0|	  return ONIGERR_MEMORY;
  ------------------
  |  |  632|      0|#define ONIGERR_MEMORY                                         -5
  ------------------
 6489|      0|	}
 6490|      0|	tmp = NCDR(*targetp) = node_new_list(qn, NULL);
  ------------------
  |  |   87|      0|#define NCDR(node)         (NCONS(node)->cdr)
  |  |  ------------------
  |  |  |  |   83|      0|#define NCONS(node)        (&((node)->u.cons))
  |  |  ------------------
  ------------------
 6491|      0|	if (IS_NULL(tmp)) {
  ------------------
  |  |  311|      0|#define IS_NULL(p)                    (((void*)(p)) == (void*)0)
  |  |  ------------------
  |  |  |  Branch (311:39): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 6492|      0|	  onig_node_free(qn);
 6493|      0|	  return ONIGERR_MEMORY;
  ------------------
  |  |  632|      0|#define ONIGERR_MEMORY                                         -5
  ------------------
 6494|      0|	}
 6495|      0|	targetp = &(NCAR(tmp));
  ------------------
  |  |   86|      0|#define NCAR(node)         (NCONS(node)->car)
  |  |  ------------------
  |  |  |  |   83|      0|#define NCONS(node)        (&((node)->u.cons))
  |  |  ------------------
  ------------------
 6496|      0|      }
 6497|  43.3k|      goto re_entry;
 6498|  43.3k|    }
 6499|   212k|  }
 6500|       |
 6501|   169k|  return r;
 6502|   212k|}
regparse.c:node_new_empty:
 1497|  1.45k|{
 1498|  1.45k|  return node_new_str(NULL, NULL);
 1499|  1.45k|}
regparse.c:parse_enclose:
 4965|  17.5k|{
 4966|  17.5k|  int r = 0, num;
 4967|  17.5k|  Node *target, *work1 = NULL, *work2 = NULL;
 4968|  17.5k|  OnigOptionType option;
 4969|  17.5k|  OnigCodePoint c;
 4970|  17.5k|  OnigEncoding enc = env->enc;
 4971|       |
 4972|  17.5k|#ifdef USE_NAMED_GROUP
 4973|  17.5k|  int list_capture;
 4974|  17.5k|#endif
 4975|       |
 4976|  17.5k|  UChar* p = *src;
  ------------------
  |  |   76|  17.5k|# define UChar OnigUChar
  ------------------
 4977|  17.5k|  PFETCH_READY;
  ------------------
  |  |  295|  17.5k|# define PFETCH_READY  UChar* pfetch_prev = NULL; (void)pfetch_prev
  |  |  ------------------
  |  |  |  |   76|  17.5k|# define UChar OnigUChar
  |  |  ------------------
  ------------------
 4978|       |
 4979|  17.5k|  *np = NULL;
 4980|  17.5k|  if (PEND) return ONIGERR_END_PATTERN_WITH_UNMATCHED_PARENTHESIS;
  ------------------
  |  |  299|  17.5k|#define PEND         (p < end ?  0 : 1)
  |  |  ------------------
  |  |  |  Branch (299:22): [True: 0, False: 17.5k]
  |  |  |  Branch (299:23): [True: 17.5k, False: 0]
  |  |  ------------------
  ------------------
                if (PEND) return ONIGERR_END_PATTERN_WITH_UNMATCHED_PARENTHESIS;
  ------------------
  |  |  661|      0|#define ONIGERR_END_PATTERN_WITH_UNMATCHED_PARENTHESIS       -117
  ------------------
 4981|       |
 4982|  17.5k|  option = env->option;
 4983|  17.5k|  if (PPEEK_IS('?') &&
  ------------------
  |  |  320|  35.0k|#define PPEEK_IS(c)  (PPEEK == (OnigCodePoint )c)
  |  |  ------------------
  |  |  |  |  319|  17.5k|#define PPEEK        (p < end ? ONIGENC_MBC_TO_CODE(enc, p, end) : PEND_VALUE)
  |  |  |  |  ------------------
  |  |  |  |  |  |  369|  17.5k|#define ONIGENC_MBC_TO_CODE(enc,p,end)         (enc)->mbc_to_code((p),(end),enc)
  |  |  |  |  ------------------
  |  |  |  |               #define PPEEK        (p < end ? ONIGENC_MBC_TO_CODE(enc, p, end) : PEND_VALUE)
  |  |  |  |  ------------------
  |  |  |  |  |  |  291|      0|#define PEND_VALUE   0
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (319:23): [True: 17.5k, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  |  Branch (320:22): [True: 16.0k, False: 1.46k]
  |  |  ------------------
  ------------------
 4984|  17.5k|      IS_SYNTAX_OP2(env->syntax, ONIG_SYN_OP2_QMARK_GROUP_EFFECT)) {
  ------------------
  |  |  331|  16.0k|#define IS_SYNTAX_OP2(syn, opm)   (((syn)->op2 & (opm)) != 0)
  |  |  ------------------
  |  |  |  Branch (331:35): [True: 16.0k, False: 0]
  |  |  ------------------
  ------------------
 4985|  16.0k|    PINC;
  ------------------
  |  |  301|  16.0k|#define PINC       do { \
  |  |  302|  16.0k|  pfetch_prev = p; \
  |  |  303|  16.0k|  p += enclen(enc, p, end); \
  |  |  ------------------
  |  |  |  |   93|  16.0k|#define enclen(enc,p,e) ((enc->max_enc_len == enc->min_enc_len) ? enc->min_enc_len : ONIGENC_MBC_ENC_LEN(enc,p,e))
  |  |  |  |  ------------------
  |  |  |  |  |  |  364|  16.0k|#define ONIGENC_MBC_ENC_LEN(enc,p,e)          onigenc_mbclen(p,e,enc)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (93:26): [True: 0, False: 16.0k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  304|  16.0k|} while (0)
  |  |  ------------------
  |  |  |  Branch (304:10): [Folded - Ignored]
  |  |  ------------------
  ------------------
 4986|  16.0k|    if (PEND) return ONIGERR_END_PATTERN_IN_GROUP;
  ------------------
  |  |  299|  16.0k|#define PEND         (p < end ?  0 : 1)
  |  |  ------------------
  |  |  |  Branch (299:22): [True: 0, False: 16.0k]
  |  |  |  Branch (299:23): [True: 16.0k, False: 0]
  |  |  ------------------
  ------------------
                  if (PEND) return ONIGERR_END_PATTERN_IN_GROUP;
  ------------------
  |  |  662|      0|#define ONIGERR_END_PATTERN_IN_GROUP                         -118
  ------------------
 4987|       |
 4988|  16.0k|    PFETCH(c);
  ------------------
  |  |  305|  16.0k|#define PFETCH(c)  do { \
  |  |  306|  16.0k|  c = ((enc->max_enc_len == 1) ? *p : ONIGENC_MBC_TO_CODE(enc, p, end)); \
  |  |  ------------------
  |  |  |  |  369|  16.0k|#define ONIGENC_MBC_TO_CODE(enc,p,end)         (enc)->mbc_to_code((p),(end),enc)
  |  |  ------------------
  |  |  |  Branch (306:8): [True: 0, False: 16.0k]
  |  |  ------------------
  |  |  307|  16.0k|  pfetch_prev = p; \
  |  |  308|  16.0k|  p += enclen(enc, p, end); \
  |  |  ------------------
  |  |  |  |   93|  16.0k|#define enclen(enc,p,e) ((enc->max_enc_len == enc->min_enc_len) ? enc->min_enc_len : ONIGENC_MBC_ENC_LEN(enc,p,e))
  |  |  |  |  ------------------
  |  |  |  |  |  |  364|  16.0k|#define ONIGENC_MBC_ENC_LEN(enc,p,e)          onigenc_mbclen(p,e,enc)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (93:26): [True: 0, False: 16.0k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  309|  16.0k|} while (0)
  |  |  ------------------
  |  |  |  Branch (309:10): [Folded - Ignored]
  |  |  ------------------
  ------------------
 4989|  16.0k|    switch (c) {
 4990|  8.70k|    case ':':   /* (?:...) grouping only */
  ------------------
  |  Branch (4990:5): [True: 8.70k, False: 7.37k]
  ------------------
 4991|  8.70k|    group:
 4992|  8.70k|      r = fetch_token(tok, &p, end, env);
 4993|  8.70k|      if (r < 0) return r;
  ------------------
  |  Branch (4993:11): [True: 0, False: 8.70k]
  ------------------
 4994|  8.70k|      r = parse_subexp(np, tok, term, &p, end, env);
 4995|  8.70k|      if (r < 0) return r;
  ------------------
  |  Branch (4995:11): [True: 0, False: 8.70k]
  ------------------
 4996|  8.70k|      *src = p;
 4997|  8.70k|      return 1; /* group */
 4998|      0|      break;
 4999|       |
 5000|      0|    case '=':
  ------------------
  |  Branch (5000:5): [True: 0, False: 16.0k]
  ------------------
 5001|      0|      *np = onig_node_new_anchor(ANCHOR_PREC_READ);
  ------------------
  |  |  551|      0|#define ANCHOR_PREC_READ        (1<<10)
  ------------------
 5002|      0|      break;
 5003|      0|    case '!':   /* preceding read */
  ------------------
  |  Branch (5003:5): [True: 0, False: 16.0k]
  ------------------
 5004|      0|      *np = onig_node_new_anchor(ANCHOR_PREC_READ_NOT);
  ------------------
  |  |  552|      0|#define ANCHOR_PREC_READ_NOT    (1<<11)
  ------------------
 5005|      0|      break;
 5006|      0|    case '>':   /* (?>...) stop backtrack */
  ------------------
  |  Branch (5006:5): [True: 0, False: 16.0k]
  ------------------
 5007|      0|      *np = node_new_enclose(ENCLOSE_STOP_BACKTRACK);
  ------------------
  |  |   96|      0|#define ENCLOSE_STOP_BACKTRACK   (1<<2)
  ------------------
 5008|      0|      break;
 5009|      0|    case '~':   /* (?~...) absent operator */
  ------------------
  |  Branch (5009:5): [True: 0, False: 16.0k]
  ------------------
 5010|      0|      if (IS_SYNTAX_OP2(env->syntax, ONIG_SYN_OP2_QMARK_TILDE_ABSENT)) {
  ------------------
  |  |  331|      0|#define IS_SYNTAX_OP2(syn, opm)   (((syn)->op2 & (opm)) != 0)
  |  |  ------------------
  |  |  |  Branch (331:35): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 5011|      0|	*np = node_new_enclose(ENCLOSE_ABSENT);
  ------------------
  |  |   98|      0|#define ENCLOSE_ABSENT           (1<<4)
  ------------------
 5012|      0|      }
 5013|      0|      else {
 5014|      0|	return ONIGERR_UNDEFINED_GROUP_OPTION;
  ------------------
  |  |  663|      0|#define ONIGERR_UNDEFINED_GROUP_OPTION                       -119
  ------------------
 5015|      0|      }
 5016|      0|      break;
 5017|       |
 5018|      0|#ifdef USE_NAMED_GROUP
 5019|      0|    case '\'':
  ------------------
  |  Branch (5019:5): [True: 0, False: 16.0k]
  ------------------
 5020|      0|      if (IS_SYNTAX_OP2(env->syntax, ONIG_SYN_OP2_QMARK_LT_NAMED_GROUP)) {
  ------------------
  |  |  331|      0|#define IS_SYNTAX_OP2(syn, opm)   (((syn)->op2 & (opm)) != 0)
  |  |  ------------------
  |  |  |  Branch (331:35): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 5021|      0|	goto named_group1;
 5022|      0|      }
 5023|      0|      else
 5024|      0|	return ONIGERR_UNDEFINED_GROUP_OPTION;
  ------------------
  |  |  663|      0|#define ONIGERR_UNDEFINED_GROUP_OPTION                       -119
  ------------------
 5025|      0|      break;
 5026|       |
 5027|      0|# ifdef USE_CAPITAL_P_NAMED_GROUP
 5028|      0|    case 'P':   /* (?P<name>...) */
  ------------------
  |  Branch (5028:5): [True: 0, False: 16.0k]
  ------------------
 5029|      0|      if (!PEND &&
  ------------------
  |  |  299|      0|#define PEND         (p < end ?  0 : 1)
  |  |  ------------------
  |  |  |  Branch (299:23): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  |  Branch (5029:11): [True: 0, False: 0]
  ------------------
 5030|      0|	  IS_SYNTAX_OP2(env->syntax, ONIG_SYN_OP2_QMARK_CAPITAL_P_NAMED_GROUP)) {
  ------------------
  |  |  331|      0|#define IS_SYNTAX_OP2(syn, opm)   (((syn)->op2 & (opm)) != 0)
  |  |  ------------------
  |  |  |  Branch (331:35): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 5031|      0|	PFETCH(c);
  ------------------
  |  |  305|      0|#define PFETCH(c)  do { \
  |  |  306|      0|  c = ((enc->max_enc_len == 1) ? *p : ONIGENC_MBC_TO_CODE(enc, p, end)); \
  |  |  ------------------
  |  |  |  |  369|      0|#define ONIGENC_MBC_TO_CODE(enc,p,end)         (enc)->mbc_to_code((p),(end),enc)
  |  |  ------------------
  |  |  |  Branch (306:8): [True: 0, False: 0]
  |  |  ------------------
  |  |  307|      0|  pfetch_prev = p; \
  |  |  308|      0|  p += enclen(enc, p, end); \
  |  |  ------------------
  |  |  |  |   93|      0|#define enclen(enc,p,e) ((enc->max_enc_len == enc->min_enc_len) ? enc->min_enc_len : ONIGENC_MBC_ENC_LEN(enc,p,e))
  |  |  |  |  ------------------
  |  |  |  |  |  |  364|      0|#define ONIGENC_MBC_ENC_LEN(enc,p,e)          onigenc_mbclen(p,e,enc)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (93:26): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  309|      0|} while (0)
  |  |  ------------------
  |  |  |  Branch (309:10): [Folded - Ignored]
  |  |  ------------------
  ------------------
 5032|      0|	if (c == '<') goto named_group1;
  ------------------
  |  Branch (5032:6): [True: 0, False: 0]
  ------------------
 5033|      0|      }
 5034|      0|      return ONIGERR_UNDEFINED_GROUP_OPTION;
  ------------------
  |  |  663|      0|#define ONIGERR_UNDEFINED_GROUP_OPTION                       -119
  ------------------
 5035|      0|      break;
 5036|      0|# endif
 5037|      0|#endif
 5038|       |
 5039|  5.91k|    case '<':   /* look behind (?<=...), (?<!...) */
  ------------------
  |  Branch (5039:5): [True: 5.91k, False: 10.1k]
  ------------------
 5040|  5.91k|      if (PEND) return ONIGERR_END_PATTERN_WITH_UNMATCHED_PARENTHESIS;
  ------------------
  |  |  299|  5.91k|#define PEND         (p < end ?  0 : 1)
  |  |  ------------------
  |  |  |  Branch (299:22): [True: 0, False: 5.91k]
  |  |  |  Branch (299:23): [True: 5.91k, False: 0]
  |  |  ------------------
  ------------------
                    if (PEND) return ONIGERR_END_PATTERN_WITH_UNMATCHED_PARENTHESIS;
  ------------------
  |  |  661|      0|#define ONIGERR_END_PATTERN_WITH_UNMATCHED_PARENTHESIS       -117
  ------------------
 5041|  5.91k|      PFETCH(c);
  ------------------
  |  |  305|  5.91k|#define PFETCH(c)  do { \
  |  |  306|  5.91k|  c = ((enc->max_enc_len == 1) ? *p : ONIGENC_MBC_TO_CODE(enc, p, end)); \
  |  |  ------------------
  |  |  |  |  369|  5.91k|#define ONIGENC_MBC_TO_CODE(enc,p,end)         (enc)->mbc_to_code((p),(end),enc)
  |  |  ------------------
  |  |  |  Branch (306:8): [True: 0, False: 5.91k]
  |  |  ------------------
  |  |  307|  5.91k|  pfetch_prev = p; \
  |  |  308|  5.91k|  p += enclen(enc, p, end); \
  |  |  ------------------
  |  |  |  |   93|  5.91k|#define enclen(enc,p,e) ((enc->max_enc_len == enc->min_enc_len) ? enc->min_enc_len : ONIGENC_MBC_ENC_LEN(enc,p,e))
  |  |  |  |  ------------------
  |  |  |  |  |  |  364|  5.91k|#define ONIGENC_MBC_ENC_LEN(enc,p,e)          onigenc_mbclen(p,e,enc)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (93:26): [True: 0, False: 5.91k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  309|  5.91k|} while (0)
  |  |  ------------------
  |  |  |  Branch (309:10): [Folded - Ignored]
  |  |  ------------------
  ------------------
 5042|  5.91k|      if (c == '=')
  ------------------
  |  Branch (5042:11): [True: 0, False: 5.91k]
  ------------------
 5043|      0|	*np = onig_node_new_anchor(ANCHOR_LOOK_BEHIND);
  ------------------
  |  |  553|      0|#define ANCHOR_LOOK_BEHIND      (1<<12)
  ------------------
 5044|  5.91k|      else if (c == '!')
  ------------------
  |  Branch (5044:16): [True: 0, False: 5.91k]
  ------------------
 5045|      0|	*np = onig_node_new_anchor(ANCHOR_LOOK_BEHIND_NOT);
  ------------------
  |  |  554|      0|#define ANCHOR_LOOK_BEHIND_NOT  (1<<13)
  ------------------
 5046|  5.91k|#ifdef USE_NAMED_GROUP
 5047|  5.91k|      else {    /* (?<name>...) */
 5048|  5.91k|	if (IS_SYNTAX_OP2(env->syntax, ONIG_SYN_OP2_QMARK_LT_NAMED_GROUP)) {
  ------------------
  |  |  331|  5.91k|#define IS_SYNTAX_OP2(syn, opm)   (((syn)->op2 & (opm)) != 0)
  |  |  ------------------
  |  |  |  Branch (331:35): [True: 5.91k, False: 0]
  |  |  ------------------
  ------------------
 5049|  5.91k|	  UChar *name;
  ------------------
  |  |   76|  5.91k|# define UChar OnigUChar
  ------------------
 5050|  5.91k|	  UChar *name_end;
  ------------------
  |  |   76|  5.91k|# define UChar OnigUChar
  ------------------
 5051|       |
 5052|  5.91k|	  PUNFETCH;
  ------------------
  |  |  300|  5.91k|#define PUNFETCH     p = pfetch_prev
  ------------------
 5053|  5.91k|	  c = '<';
 5054|       |
 5055|  5.91k|	named_group1:
 5056|  5.91k|	  list_capture = 0;
 5057|       |
 5058|  5.91k|# ifdef USE_CAPTURE_HISTORY
 5059|  5.91k|	named_group2:
 5060|  5.91k|# endif
 5061|  5.91k|	  name = p;
 5062|  5.91k|	  r = fetch_name((OnigCodePoint )c, &p, end, &name_end, env, &num, 0);
 5063|  5.91k|	  if (r < 0) return r;
  ------------------
  |  Branch (5063:8): [True: 0, False: 5.91k]
  ------------------
 5064|       |
 5065|  5.91k|	  num = scan_env_add_mem_entry(env);
 5066|  5.91k|	  if (num < 0) return num;
  ------------------
  |  Branch (5066:8): [True: 0, False: 5.91k]
  ------------------
 5067|  5.91k|	  if (list_capture != 0 && num >= (int )BIT_STATUS_BITS_NUM)
  ------------------
  |  |  367|      0|#define BIT_STATUS_BITS_NUM          (sizeof(BitStatusType) * 8)
  ------------------
  |  Branch (5067:8): [True: 0, False: 5.91k]
  |  Branch (5067:29): [True: 0, False: 0]
  ------------------
 5068|      0|	    return ONIGERR_GROUP_NUMBER_OVER_FOR_CAPTURE_HISTORY;
  ------------------
  |  |  690|      0|#define ONIGERR_GROUP_NUMBER_OVER_FOR_CAPTURE_HISTORY        -222
  ------------------
 5069|       |
 5070|  5.91k|	  r = name_add(env->reg, name, name_end, num, env);
 5071|  5.91k|	  if (r != 0) return r;
  ------------------
  |  Branch (5071:8): [True: 0, False: 5.91k]
  ------------------
 5072|  5.91k|	  *np = node_new_enclose_memory(env->option, 1);
 5073|  5.91k|	  CHECK_NULL_RETURN_MEMERR(*np);
  ------------------
  |  |  314|  5.91k|#define CHECK_NULL_RETURN_MEMERR(p)   if (IS_NULL(p)) return ONIGERR_MEMORY
  |  |  ------------------
  |  |  |  |  311|  5.91k|#define IS_NULL(p)                    (((void*)(p)) == (void*)0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (311:39): [True: 0, False: 5.91k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |               #define CHECK_NULL_RETURN_MEMERR(p)   if (IS_NULL(p)) return ONIGERR_MEMORY
  |  |  ------------------
  |  |  |  |  632|      0|#define ONIGERR_MEMORY                                         -5
  |  |  ------------------
  ------------------
 5074|  5.91k|	  NENCLOSE(*np)->regnum = num;
  ------------------
  |  |   81|  5.91k|#define NENCLOSE(node)     (&((node)->u.enclose))
  ------------------
 5075|  5.91k|	  if (list_capture != 0)
  ------------------
  |  Branch (5075:8): [True: 0, False: 5.91k]
  ------------------
 5076|      0|	    BIT_STATUS_ON_AT_SIMPLE(env->capture_history, num);
  ------------------
  |  |  380|      0|#define BIT_STATUS_ON_AT_SIMPLE(stats,n) do {\
  |  |  381|      0|  if ((n) < (int )BIT_STATUS_BITS_NUM)\
  |  |  ------------------
  |  |  |  |  367|      0|#define BIT_STATUS_BITS_NUM          (sizeof(BitStatusType) * 8)
  |  |  ------------------
  |  |  |  Branch (381:7): [True: 0, False: 0]
  |  |  ------------------
  |  |  382|      0|    (stats) |= (1 << (n));\
  |  |  383|      0|} while (0)
  |  |  ------------------
  |  |  |  Branch (383:10): [Folded - Ignored]
  |  |  ------------------
  ------------------
 5077|  5.91k|	  env->num_named++;
 5078|  5.91k|	}
 5079|      0|	else {
 5080|      0|	  return ONIGERR_UNDEFINED_GROUP_OPTION;
  ------------------
  |  |  663|      0|#define ONIGERR_UNDEFINED_GROUP_OPTION                       -119
  ------------------
 5081|      0|	}
 5082|  5.91k|      }
 5083|       |#else
 5084|       |      else {
 5085|       |	return ONIGERR_UNDEFINED_GROUP_OPTION;
 5086|       |      }
 5087|       |#endif
 5088|  5.91k|      break;
 5089|       |
 5090|  5.91k|#ifdef USE_CAPTURE_HISTORY
 5091|  5.91k|    case '@':
  ------------------
  |  Branch (5091:5): [True: 0, False: 16.0k]
  ------------------
 5092|      0|      if (IS_SYNTAX_OP2(env->syntax, ONIG_SYN_OP2_ATMARK_CAPTURE_HISTORY)) {
  ------------------
  |  |  331|      0|#define IS_SYNTAX_OP2(syn, opm)   (((syn)->op2 & (opm)) != 0)
  |  |  ------------------
  |  |  |  Branch (331:35): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 5093|      0|# ifdef USE_NAMED_GROUP
 5094|      0|	if (!PEND &&
  ------------------
  |  |  299|      0|#define PEND         (p < end ?  0 : 1)
  |  |  ------------------
  |  |  |  Branch (299:23): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  |  Branch (5094:6): [True: 0, False: 0]
  ------------------
 5095|      0|	    IS_SYNTAX_OP2(env->syntax, ONIG_SYN_OP2_QMARK_LT_NAMED_GROUP)) {
  ------------------
  |  |  331|      0|#define IS_SYNTAX_OP2(syn, opm)   (((syn)->op2 & (opm)) != 0)
  |  |  ------------------
  |  |  |  Branch (331:35): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 5096|      0|	  PFETCH(c);
  ------------------
  |  |  305|      0|#define PFETCH(c)  do { \
  |  |  306|      0|  c = ((enc->max_enc_len == 1) ? *p : ONIGENC_MBC_TO_CODE(enc, p, end)); \
  |  |  ------------------
  |  |  |  |  369|      0|#define ONIGENC_MBC_TO_CODE(enc,p,end)         (enc)->mbc_to_code((p),(end),enc)
  |  |  ------------------
  |  |  |  Branch (306:8): [True: 0, False: 0]
  |  |  ------------------
  |  |  307|      0|  pfetch_prev = p; \
  |  |  308|      0|  p += enclen(enc, p, end); \
  |  |  ------------------
  |  |  |  |   93|      0|#define enclen(enc,p,e) ((enc->max_enc_len == enc->min_enc_len) ? enc->min_enc_len : ONIGENC_MBC_ENC_LEN(enc,p,e))
  |  |  |  |  ------------------
  |  |  |  |  |  |  364|      0|#define ONIGENC_MBC_ENC_LEN(enc,p,e)          onigenc_mbclen(p,e,enc)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (93:26): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  309|      0|} while (0)
  |  |  ------------------
  |  |  |  Branch (309:10): [Folded - Ignored]
  |  |  ------------------
  ------------------
 5097|      0|	  if (c == '<' || c == '\'') {
  ------------------
  |  Branch (5097:8): [True: 0, False: 0]
  |  Branch (5097:20): [True: 0, False: 0]
  ------------------
 5098|      0|	    list_capture = 1;
 5099|      0|	    goto named_group2; /* (?@<name>...) */
 5100|      0|	  }
 5101|      0|	  PUNFETCH;
  ------------------
  |  |  300|      0|#define PUNFETCH     p = pfetch_prev
  ------------------
 5102|      0|	}
 5103|      0|# endif
 5104|      0|	*np = node_new_enclose_memory(env->option, 0);
 5105|      0|	CHECK_NULL_RETURN_MEMERR(*np);
  ------------------
  |  |  314|      0|#define CHECK_NULL_RETURN_MEMERR(p)   if (IS_NULL(p)) return ONIGERR_MEMORY
  |  |  ------------------
  |  |  |  |  311|      0|#define IS_NULL(p)                    (((void*)(p)) == (void*)0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (311:39): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |               #define CHECK_NULL_RETURN_MEMERR(p)   if (IS_NULL(p)) return ONIGERR_MEMORY
  |  |  ------------------
  |  |  |  |  632|      0|#define ONIGERR_MEMORY                                         -5
  |  |  ------------------
  ------------------
 5106|      0|	num = scan_env_add_mem_entry(env);
 5107|      0|	if (num < 0) return num;
  ------------------
  |  Branch (5107:6): [True: 0, False: 0]
  ------------------
 5108|      0|	if (num >= (int )BIT_STATUS_BITS_NUM)
  ------------------
  |  |  367|      0|#define BIT_STATUS_BITS_NUM          (sizeof(BitStatusType) * 8)
  ------------------
  |  Branch (5108:6): [True: 0, False: 0]
  ------------------
 5109|      0|	  return ONIGERR_GROUP_NUMBER_OVER_FOR_CAPTURE_HISTORY;
  ------------------
  |  |  690|      0|#define ONIGERR_GROUP_NUMBER_OVER_FOR_CAPTURE_HISTORY        -222
  ------------------
 5110|       |
 5111|      0|	NENCLOSE(*np)->regnum = num;
  ------------------
  |  |   81|      0|#define NENCLOSE(node)     (&((node)->u.enclose))
  ------------------
 5112|      0|	BIT_STATUS_ON_AT_SIMPLE(env->capture_history, num);
  ------------------
  |  |  380|      0|#define BIT_STATUS_ON_AT_SIMPLE(stats,n) do {\
  |  |  381|      0|  if ((n) < (int )BIT_STATUS_BITS_NUM)\
  |  |  ------------------
  |  |  |  |  367|      0|#define BIT_STATUS_BITS_NUM          (sizeof(BitStatusType) * 8)
  |  |  ------------------
  |  |  |  Branch (381:7): [True: 0, False: 0]
  |  |  ------------------
  |  |  382|      0|    (stats) |= (1 << (n));\
  |  |  383|      0|} while (0)
  |  |  ------------------
  |  |  |  Branch (383:10): [Folded - Ignored]
  |  |  ------------------
  ------------------
 5113|      0|      }
 5114|      0|      else {
 5115|      0|	return ONIGERR_UNDEFINED_GROUP_OPTION;
  ------------------
  |  |  663|      0|#define ONIGERR_UNDEFINED_GROUP_OPTION                       -119
  ------------------
 5116|      0|      }
 5117|      0|      break;
 5118|      0|#endif /* USE_CAPTURE_HISTORY */
 5119|       |
 5120|      0|    case '(':   /* conditional expression: (?(cond)yes), (?(cond)yes|no) */
  ------------------
  |  Branch (5120:5): [True: 0, False: 16.0k]
  ------------------
 5121|      0|      if (!PEND &&
  ------------------
  |  |  299|      0|#define PEND         (p < end ?  0 : 1)
  |  |  ------------------
  |  |  |  Branch (299:23): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  |  Branch (5121:11): [True: 0, False: 0]
  ------------------
 5122|      0|	  IS_SYNTAX_OP2(env->syntax, ONIG_SYN_OP2_QMARK_LPAREN_CONDITION)) {
  ------------------
  |  |  331|      0|#define IS_SYNTAX_OP2(syn, opm)   (((syn)->op2 & (opm)) != 0)
  |  |  ------------------
  |  |  |  Branch (331:35): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 5123|      0|	UChar *name = NULL;
  ------------------
  |  |   76|      0|# define UChar OnigUChar
  ------------------
 5124|      0|	UChar *name_end;
  ------------------
  |  |   76|      0|# define UChar OnigUChar
  ------------------
 5125|      0|	PFETCH(c);
  ------------------
  |  |  305|      0|#define PFETCH(c)  do { \
  |  |  306|      0|  c = ((enc->max_enc_len == 1) ? *p : ONIGENC_MBC_TO_CODE(enc, p, end)); \
  |  |  ------------------
  |  |  |  |  369|      0|#define ONIGENC_MBC_TO_CODE(enc,p,end)         (enc)->mbc_to_code((p),(end),enc)
  |  |  ------------------
  |  |  |  Branch (306:8): [True: 0, False: 0]
  |  |  ------------------
  |  |  307|      0|  pfetch_prev = p; \
  |  |  308|      0|  p += enclen(enc, p, end); \
  |  |  ------------------
  |  |  |  |   93|      0|#define enclen(enc,p,e) ((enc->max_enc_len == enc->min_enc_len) ? enc->min_enc_len : ONIGENC_MBC_ENC_LEN(enc,p,e))
  |  |  |  |  ------------------
  |  |  |  |  |  |  364|      0|#define ONIGENC_MBC_ENC_LEN(enc,p,e)          onigenc_mbclen(p,e,enc)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (93:26): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  309|      0|} while (0)
  |  |  ------------------
  |  |  |  Branch (309:10): [Folded - Ignored]
  |  |  ------------------
  ------------------
 5126|      0|	if (ONIGENC_IS_CODE_DIGIT(enc, c)) {     /* (n) */
  ------------------
  |  |  400|      0|        ONIGENC_IS_CODE_CTYPE(enc,code,ONIGENC_CTYPE_DIGIT)
  |  |  ------------------
  |  |  |  |  375|      0|#define ONIGENC_IS_CODE_CTYPE(enc,code,ctype)  (enc)->is_code_ctype(code,ctype,enc)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (375:48): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 5127|      0|	  PUNFETCH;
  ------------------
  |  |  300|      0|#define PUNFETCH     p = pfetch_prev
  ------------------
 5128|      0|	  r = fetch_name((OnigCodePoint )'(', &p, end, &name_end, env, &num, 1);
 5129|      0|	  if (r < 0) return r;
  ------------------
  |  Branch (5129:8): [True: 0, False: 0]
  ------------------
 5130|       |#if 0
 5131|       |	  /* Relative number is not currently supported. (same as Perl) */
 5132|       |	  if (num < 0) {
 5133|       |	    num = BACKREF_REL_TO_ABS(num, env);
 5134|       |	    if (num <= 0)
 5135|       |	      return ONIGERR_INVALID_BACKREF;
 5136|       |	  }
 5137|       |#endif
 5138|      0|	  if (IS_SYNTAX_BV(env->syntax, ONIG_SYN_STRICT_CHECK_BACKREF)) {
  ------------------
  |  |  332|      0|#define IS_SYNTAX_BV(syn, bvm)    (((syn)->behavior & (bvm)) != 0)
  |  |  ------------------
  |  |  |  Branch (332:35): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 5139|      0|	    if (num > env->num_mem ||
  ------------------
  |  Branch (5139:10): [True: 0, False: 0]
  ------------------
 5140|      0|		IS_NULL(SCANENV_MEM_NODES(env)[num]))
  ------------------
  |  |  311|      0|#define IS_NULL(p)                    (((void*)(p)) == (void*)0)
  |  |  ------------------
  |  |  |  Branch (311:39): [True: 0, False: 0]
  |  |  |  Branch (311:49): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 5141|      0|	    return ONIGERR_INVALID_BACKREF;
  ------------------
  |  |  677|      0|#define ONIGERR_INVALID_BACKREF                              -208
  ------------------
 5142|      0|	  }
 5143|      0|	}
 5144|      0|#ifdef USE_NAMED_GROUP
 5145|      0|	else if (c == '<' || c == '\'') {    /* (<name>), ('name') */
  ------------------
  |  Branch (5145:11): [True: 0, False: 0]
  |  Branch (5145:23): [True: 0, False: 0]
  ------------------
 5146|      0|	  name = p;
 5147|      0|	  r = fetch_named_backref_token(c, tok, &p, end, env);
 5148|      0|	  if (r < 0) return r;
  ------------------
  |  Branch (5148:8): [True: 0, False: 0]
  ------------------
 5149|      0|	  if (!PPEEK_IS(')')) return ONIGERR_UNDEFINED_GROUP_OPTION;
  ------------------
  |  |  320|      0|#define PPEEK_IS(c)  (PPEEK == (OnigCodePoint )c)
  |  |  ------------------
  |  |  |  |  319|      0|#define PPEEK        (p < end ? ONIGENC_MBC_TO_CODE(enc, p, end) : PEND_VALUE)
  |  |  |  |  ------------------
  |  |  |  |  |  |  369|      0|#define ONIGENC_MBC_TO_CODE(enc,p,end)         (enc)->mbc_to_code((p),(end),enc)
  |  |  |  |  ------------------
  |  |  |  |               #define PPEEK        (p < end ? ONIGENC_MBC_TO_CODE(enc, p, end) : PEND_VALUE)
  |  |  |  |  ------------------
  |  |  |  |  |  |  291|      0|#define PEND_VALUE   0
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (319:23): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
              	  if (!PPEEK_IS(')')) return ONIGERR_UNDEFINED_GROUP_OPTION;
  ------------------
  |  |  663|      0|#define ONIGERR_UNDEFINED_GROUP_OPTION                       -119
  ------------------
  |  Branch (5149:8): [True: 0, False: 0]
  ------------------
 5150|      0|	  PINC;
  ------------------
  |  |  301|      0|#define PINC       do { \
  |  |  302|      0|  pfetch_prev = p; \
  |  |  303|      0|  p += enclen(enc, p, end); \
  |  |  ------------------
  |  |  |  |   93|      0|#define enclen(enc,p,e) ((enc->max_enc_len == enc->min_enc_len) ? enc->min_enc_len : ONIGENC_MBC_ENC_LEN(enc,p,e))
  |  |  |  |  ------------------
  |  |  |  |  |  |  364|      0|#define ONIGENC_MBC_ENC_LEN(enc,p,e)          onigenc_mbclen(p,e,enc)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (93:26): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  304|      0|} while (0)
  |  |  ------------------
  |  |  |  Branch (304:10): [Folded - Ignored]
  |  |  ------------------
  ------------------
 5151|       |
 5152|      0|	  if (IS_SYNTAX_BV(env->syntax, ONIG_SYN_USE_LEFT_MOST_NAMED_GROUP)) {
  ------------------
  |  |  332|      0|#define IS_SYNTAX_BV(syn, bvm)    (((syn)->behavior & (bvm)) != 0)
  |  |  ------------------
  |  |  |  Branch (332:35): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 5153|      0|	    num = tok->u.backref.ref1;
 5154|      0|	  }
 5155|      0|	  else {
 5156|       |	    /* FIXME:
 5157|       |	     * Use left most named group for now. This is the same as Perl.
 5158|       |	     * However this should use the same strategy as normal back-
 5159|       |	     * references on Ruby syntax; search right to left. */
 5160|      0|	    int len = tok->u.backref.num;
 5161|      0|	    num = len > 1 ? tok->u.backref.refs[0] : tok->u.backref.ref1;
  ------------------
  |  Branch (5161:12): [True: 0, False: 0]
  ------------------
 5162|      0|	  }
 5163|      0|	}
 5164|      0|#endif
 5165|      0|	else
 5166|      0|	  return ONIGERR_INVALID_CONDITION_PATTERN;
  ------------------
  |  |  667|      0|#define ONIGERR_INVALID_CONDITION_PATTERN                    -124
  ------------------
 5167|      0|	*np = node_new_enclose(ENCLOSE_CONDITION);
  ------------------
  |  |   97|      0|#define ENCLOSE_CONDITION        (1<<3)
  ------------------
 5168|      0|	CHECK_NULL_RETURN_MEMERR(*np);
  ------------------
  |  |  314|      0|#define CHECK_NULL_RETURN_MEMERR(p)   if (IS_NULL(p)) return ONIGERR_MEMORY
  |  |  ------------------
  |  |  |  |  311|      0|#define IS_NULL(p)                    (((void*)(p)) == (void*)0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (311:39): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |               #define CHECK_NULL_RETURN_MEMERR(p)   if (IS_NULL(p)) return ONIGERR_MEMORY
  |  |  ------------------
  |  |  |  |  632|      0|#define ONIGERR_MEMORY                                         -5
  |  |  ------------------
  ------------------
 5169|      0|	NENCLOSE(*np)->regnum = num;
  ------------------
  |  |   81|      0|#define NENCLOSE(node)     (&((node)->u.enclose))
  ------------------
 5170|      0|	if (IS_NOT_NULL(name)) NENCLOSE(*np)->state |= NST_NAME_REF;
  ------------------
  |  |  312|      0|#define IS_NOT_NULL(p)                (((void*)(p)) != (void*)0)
  |  |  ------------------
  |  |  |  Branch (312:39): [True: 0, False: 0]
  |  |  ------------------
  ------------------
              	if (IS_NOT_NULL(name)) NENCLOSE(*np)->state |= NST_NAME_REF;
  ------------------
  |  |   81|      0|#define NENCLOSE(node)     (&((node)->u.enclose))
  ------------------
              	if (IS_NOT_NULL(name)) NENCLOSE(*np)->state |= NST_NAME_REF;
  ------------------
  |  |  139|      0|#define NST_NAME_REF              (1<<11)
  ------------------
 5171|      0|      }
 5172|      0|      else
 5173|      0|	return ONIGERR_UNDEFINED_GROUP_OPTION;
  ------------------
  |  |  663|      0|#define ONIGERR_UNDEFINED_GROUP_OPTION                       -119
  ------------------
 5174|      0|      break;
 5175|       |
 5176|       |#if 0
 5177|       |    case '|':   /* branch reset: (?|...) */
 5178|       |      if (IS_SYNTAX_OP2(env->syntax, ONIG_SYN_OP2_QMARK_VBAR_BRANCH_RESET)) {
 5179|       |	/* TODO */
 5180|       |      }
 5181|       |      else
 5182|       |	return ONIGERR_UNDEFINED_GROUP_OPTION;
 5183|       |      break;
 5184|       |#endif
 5185|       |
 5186|      0|    case '^':   /* loads default options */
  ------------------
  |  Branch (5186:5): [True: 0, False: 16.0k]
  ------------------
 5187|      0|      if (!PEND && IS_SYNTAX_OP2(env->syntax, ONIG_SYN_OP2_OPTION_PERL)) {
  ------------------
  |  |  299|      0|#define PEND         (p < end ?  0 : 1)
  |  |  ------------------
  |  |  |  Branch (299:23): [True: 0, False: 0]
  |  |  ------------------
  ------------------
                    if (!PEND && IS_SYNTAX_OP2(env->syntax, ONIG_SYN_OP2_OPTION_PERL)) {
  ------------------
  |  |  331|      0|#define IS_SYNTAX_OP2(syn, opm)   (((syn)->op2 & (opm)) != 0)
  |  |  ------------------
  |  |  |  Branch (331:35): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  |  Branch (5187:11): [True: 0, False: 0]
  ------------------
 5188|       |	/* d-imsx */
 5189|      0|	ONOFF(option, ONIG_OPTION_ASCII_RANGE, 1);
  ------------------
  |  |  160|      0|#define ONOFF(v,f,negative)    (negative) ? ((v) &= ~(f)) : ((v) |= (f))
  |  |  ------------------
  |  |  |  Branch (160:32): [Folded - Ignored]
  |  |  ------------------
  ------------------
 5190|      0|	ONOFF(option, ONIG_OPTION_IGNORECASE, 1);
  ------------------
  |  |  160|      0|#define ONOFF(v,f,negative)    (negative) ? ((v) &= ~(f)) : ((v) |= (f))
  |  |  ------------------
  |  |  |  Branch (160:32): [Folded - Ignored]
  |  |  ------------------
  ------------------
 5191|      0|	ONOFF(option, ONIG_OPTION_SINGLELINE, 0);
  ------------------
  |  |  160|      0|#define ONOFF(v,f,negative)    (negative) ? ((v) &= ~(f)) : ((v) |= (f))
  |  |  ------------------
  |  |  |  Branch (160:32): [Folded - Ignored]
  |  |  ------------------
  ------------------
 5192|      0|	ONOFF(option, ONIG_OPTION_MULTILINE,  1);
  ------------------
  |  |  160|      0|#define ONOFF(v,f,negative)    (negative) ? ((v) &= ~(f)) : ((v) |= (f))
  |  |  ------------------
  |  |  |  Branch (160:32): [Folded - Ignored]
  |  |  ------------------
  ------------------
 5193|      0|	ONOFF(option, ONIG_OPTION_EXTEND, 1);
  ------------------
  |  |  160|      0|#define ONOFF(v,f,negative)    (negative) ? ((v) &= ~(f)) : ((v) |= (f))
  |  |  ------------------
  |  |  |  Branch (160:32): [Folded - Ignored]
  |  |  ------------------
  ------------------
 5194|      0|	PFETCH(c);
  ------------------
  |  |  305|      0|#define PFETCH(c)  do { \
  |  |  306|      0|  c = ((enc->max_enc_len == 1) ? *p : ONIGENC_MBC_TO_CODE(enc, p, end)); \
  |  |  ------------------
  |  |  |  |  369|      0|#define ONIGENC_MBC_TO_CODE(enc,p,end)         (enc)->mbc_to_code((p),(end),enc)
  |  |  ------------------
  |  |  |  Branch (306:8): [True: 0, False: 0]
  |  |  ------------------
  |  |  307|      0|  pfetch_prev = p; \
  |  |  308|      0|  p += enclen(enc, p, end); \
  |  |  ------------------
  |  |  |  |   93|      0|#define enclen(enc,p,e) ((enc->max_enc_len == enc->min_enc_len) ? enc->min_enc_len : ONIGENC_MBC_ENC_LEN(enc,p,e))
  |  |  |  |  ------------------
  |  |  |  |  |  |  364|      0|#define ONIGENC_MBC_ENC_LEN(enc,p,e)          onigenc_mbclen(p,e,enc)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (93:26): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  309|      0|} while (0)
  |  |  ------------------
  |  |  |  Branch (309:10): [Folded - Ignored]
  |  |  ------------------
  ------------------
 5195|      0|      }
 5196|       |#if 0
 5197|       |      else if (!PEND && IS_SYNTAX_OP2(env->syntax, ONIG_SYN_OP2_OPTION_RUBY)) {
 5198|       |	/* d-imx */
 5199|       |	ONOFF(option, ONIG_OPTION_ASCII_RANGE, 0);
 5200|       |	ONOFF(option, ONIG_OPTION_POSIX_BRACKET_ALL_RANGE, 0);
 5201|       |	ONOFF(option, ONIG_OPTION_WORD_BOUND_ALL_RANGE, 0);
 5202|       |	ONOFF(option, ONIG_OPTION_IGNORECASE, 1);
 5203|       |	ONOFF(option, ONIG_OPTION_MULTILINE,  1);
 5204|       |	ONOFF(option, ONIG_OPTION_EXTEND, 1);
 5205|       |	PFETCH(c);
 5206|       |      }
 5207|       |#endif
 5208|      0|      else {
 5209|      0|	return ONIGERR_UNDEFINED_GROUP_OPTION;
  ------------------
  |  |  663|      0|#define ONIGERR_UNDEFINED_GROUP_OPTION                       -119
  ------------------
 5210|      0|      }
 5211|       |      /* fall through */
 5212|       |#ifdef USE_POSIXLINE_OPTION
 5213|       |    case 'p':
 5214|       |#endif
 5215|  1.45k|    case '-': case 'i': case 'm': case 's': case 'x':
  ------------------
  |  Branch (5215:5): [True: 0, False: 16.0k]
  |  Branch (5215:15): [True: 0, False: 16.0k]
  |  Branch (5215:25): [True: 0, False: 16.0k]
  |  Branch (5215:35): [True: 0, False: 16.0k]
  |  Branch (5215:45): [True: 1.45k, False: 14.6k]
  ------------------
 5216|  1.45k|    case 'a': case 'd': case 'l': case 'u':
  ------------------
  |  Branch (5216:5): [True: 0, False: 16.0k]
  |  Branch (5216:15): [True: 0, False: 16.0k]
  |  Branch (5216:25): [True: 0, False: 16.0k]
  |  Branch (5216:35): [True: 0, False: 16.0k]
  ------------------
 5217|  1.45k|      {
 5218|  1.45k|	int neg = 0;
 5219|       |
 5220|  2.91k|	while (1) {
  ------------------
  |  Branch (5220:9): [Folded - Ignored]
  ------------------
 5221|  2.91k|	  switch (c) {
 5222|  1.45k|	  case ':':
  ------------------
  |  Branch (5222:4): [True: 1.45k, False: 1.45k]
  ------------------
 5223|  1.45k|	  case ')':
  ------------------
  |  Branch (5223:4): [True: 0, False: 2.91k]
  ------------------
 5224|  1.45k|	  break;
 5225|       |
 5226|      0|	  case '-':  neg = 1; break;
  ------------------
  |  Branch (5226:4): [True: 0, False: 2.91k]
  ------------------
 5227|  1.45k|	  case 'x':  ONOFF(option, ONIG_OPTION_EXTEND,     neg); break;
  ------------------
  |  |  160|  1.45k|#define ONOFF(v,f,negative)    (negative) ? ((v) &= ~(f)) : ((v) |= (f))
  |  |  ------------------
  |  |  |  Branch (160:32): [True: 0, False: 1.45k]
  |  |  ------------------
  ------------------
  |  Branch (5227:4): [True: 1.45k, False: 1.45k]
  ------------------
 5228|      0|	  case 'i':  ONOFF(option, ONIG_OPTION_IGNORECASE, neg); break;
  ------------------
  |  |  160|      0|#define ONOFF(v,f,negative)    (negative) ? ((v) &= ~(f)) : ((v) |= (f))
  |  |  ------------------
  |  |  |  Branch (160:32): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  |  Branch (5228:4): [True: 0, False: 2.91k]
  ------------------
 5229|      0|	  case 's':
  ------------------
  |  Branch (5229:4): [True: 0, False: 2.91k]
  ------------------
 5230|      0|	    if (IS_SYNTAX_OP2(env->syntax, ONIG_SYN_OP2_OPTION_PERL)) {
  ------------------
  |  |  331|      0|#define IS_SYNTAX_OP2(syn, opm)   (((syn)->op2 & (opm)) != 0)
  |  |  ------------------
  |  |  |  Branch (331:35): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 5231|      0|	      ONOFF(option, ONIG_OPTION_MULTILINE,  neg);
  ------------------
  |  |  160|      0|#define ONOFF(v,f,negative)    (negative) ? ((v) &= ~(f)) : ((v) |= (f))
  |  |  ------------------
  |  |  |  Branch (160:32): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 5232|      0|	    }
 5233|      0|	    else
 5234|      0|	      return ONIGERR_UNDEFINED_GROUP_OPTION;
  ------------------
  |  |  663|      0|#define ONIGERR_UNDEFINED_GROUP_OPTION                       -119
  ------------------
 5235|      0|	    break;
 5236|       |
 5237|      0|	  case 'm':
  ------------------
  |  Branch (5237:4): [True: 0, False: 2.91k]
  ------------------
 5238|      0|	    if (IS_SYNTAX_OP2(env->syntax, ONIG_SYN_OP2_OPTION_PERL)) {
  ------------------
  |  |  331|      0|#define IS_SYNTAX_OP2(syn, opm)   (((syn)->op2 & (opm)) != 0)
  |  |  ------------------
  |  |  |  Branch (331:35): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 5239|      0|	      ONOFF(option, ONIG_OPTION_SINGLELINE, (neg == 0 ? 1 : 0));
  ------------------
  |  |  160|      0|#define ONOFF(v,f,negative)    (negative) ? ((v) &= ~(f)) : ((v) |= (f))
  |  |  ------------------
  |  |  |  Branch (160:32): [True: 0, False: 0]
  |  |  |  Branch (160:33): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 5240|      0|	    }
 5241|      0|	    else if (IS_SYNTAX_OP2(env->syntax, ONIG_SYN_OP2_OPTION_RUBY)) {
  ------------------
  |  |  331|      0|#define IS_SYNTAX_OP2(syn, opm)   (((syn)->op2 & (opm)) != 0)
  |  |  ------------------
  |  |  |  Branch (331:35): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 5242|      0|	      ONOFF(option, ONIG_OPTION_MULTILINE,  neg);
  ------------------
  |  |  160|      0|#define ONOFF(v,f,negative)    (negative) ? ((v) &= ~(f)) : ((v) |= (f))
  |  |  ------------------
  |  |  |  Branch (160:32): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 5243|      0|	    }
 5244|      0|	    else
 5245|      0|	      return ONIGERR_UNDEFINED_GROUP_OPTION;
  ------------------
  |  |  663|      0|#define ONIGERR_UNDEFINED_GROUP_OPTION                       -119
  ------------------
 5246|      0|	    break;
 5247|       |#ifdef USE_POSIXLINE_OPTION
 5248|       |	  case 'p':
 5249|       |	    ONOFF(option, ONIG_OPTION_MULTILINE|ONIG_OPTION_SINGLELINE, neg);
 5250|       |	    break;
 5251|       |#endif
 5252|       |
 5253|      0|	  case 'a':     /* limits \d, \s, \w and POSIX brackets to ASCII range */
  ------------------
  |  Branch (5253:4): [True: 0, False: 2.91k]
  ------------------
 5254|      0|	    if ((IS_SYNTAX_OP2(env->syntax, ONIG_SYN_OP2_OPTION_PERL) ||
  ------------------
  |  |  331|      0|#define IS_SYNTAX_OP2(syn, opm)   (((syn)->op2 & (opm)) != 0)
  |  |  ------------------
  |  |  |  Branch (331:35): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 5255|      0|		 IS_SYNTAX_OP2(env->syntax, ONIG_SYN_OP2_OPTION_RUBY)) &&
  ------------------
  |  |  331|      0|#define IS_SYNTAX_OP2(syn, opm)   (((syn)->op2 & (opm)) != 0)
  |  |  ------------------
  |  |  |  Branch (331:35): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 5256|      0|		(neg == 0)) {
  ------------------
  |  Branch (5256:3): [True: 0, False: 0]
  ------------------
 5257|      0|	      ONOFF(option, ONIG_OPTION_ASCII_RANGE, 0);
  ------------------
  |  |  160|      0|#define ONOFF(v,f,negative)    (negative) ? ((v) &= ~(f)) : ((v) |= (f))
  |  |  ------------------
  |  |  |  Branch (160:32): [Folded - Ignored]
  |  |  ------------------
  ------------------
 5258|      0|	      ONOFF(option, ONIG_OPTION_POSIX_BRACKET_ALL_RANGE, 1);
  ------------------
  |  |  160|      0|#define ONOFF(v,f,negative)    (negative) ? ((v) &= ~(f)) : ((v) |= (f))
  |  |  ------------------
  |  |  |  Branch (160:32): [Folded - Ignored]
  |  |  ------------------
  ------------------
 5259|      0|	      ONOFF(option, ONIG_OPTION_WORD_BOUND_ALL_RANGE, 1);
  ------------------
  |  |  160|      0|#define ONOFF(v,f,negative)    (negative) ? ((v) &= ~(f)) : ((v) |= (f))
  |  |  ------------------
  |  |  |  Branch (160:32): [Folded - Ignored]
  |  |  ------------------
  ------------------
 5260|      0|	    }
 5261|      0|	    else
 5262|      0|	      return ONIGERR_UNDEFINED_GROUP_OPTION;
  ------------------
  |  |  663|      0|#define ONIGERR_UNDEFINED_GROUP_OPTION                       -119
  ------------------
 5263|      0|	    break;
 5264|       |
 5265|      0|	  case 'u':
  ------------------
  |  Branch (5265:4): [True: 0, False: 2.91k]
  ------------------
 5266|      0|	    if ((IS_SYNTAX_OP2(env->syntax, ONIG_SYN_OP2_OPTION_PERL) ||
  ------------------
  |  |  331|      0|#define IS_SYNTAX_OP2(syn, opm)   (((syn)->op2 & (opm)) != 0)
  |  |  ------------------
  |  |  |  Branch (331:35): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 5267|      0|		 IS_SYNTAX_OP2(env->syntax, ONIG_SYN_OP2_OPTION_RUBY)) &&
  ------------------
  |  |  331|      0|#define IS_SYNTAX_OP2(syn, opm)   (((syn)->op2 & (opm)) != 0)
  |  |  ------------------
  |  |  |  Branch (331:35): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 5268|      0|		(neg == 0)) {
  ------------------
  |  Branch (5268:3): [True: 0, False: 0]
  ------------------
 5269|      0|	      ONOFF(option, ONIG_OPTION_ASCII_RANGE, 1);
  ------------------
  |  |  160|      0|#define ONOFF(v,f,negative)    (negative) ? ((v) &= ~(f)) : ((v) |= (f))
  |  |  ------------------
  |  |  |  Branch (160:32): [Folded - Ignored]
  |  |  ------------------
  ------------------
 5270|      0|	      ONOFF(option, ONIG_OPTION_POSIX_BRACKET_ALL_RANGE, 1);
  ------------------
  |  |  160|      0|#define ONOFF(v,f,negative)    (negative) ? ((v) &= ~(f)) : ((v) |= (f))
  |  |  ------------------
  |  |  |  Branch (160:32): [Folded - Ignored]
  |  |  ------------------
  ------------------
 5271|      0|	      ONOFF(option, ONIG_OPTION_WORD_BOUND_ALL_RANGE, 1);
  ------------------
  |  |  160|      0|#define ONOFF(v,f,negative)    (negative) ? ((v) &= ~(f)) : ((v) |= (f))
  |  |  ------------------
  |  |  |  Branch (160:32): [Folded - Ignored]
  |  |  ------------------
  ------------------
 5272|      0|	    }
 5273|      0|	    else
 5274|      0|	      return ONIGERR_UNDEFINED_GROUP_OPTION;
  ------------------
  |  |  663|      0|#define ONIGERR_UNDEFINED_GROUP_OPTION                       -119
  ------------------
 5275|      0|	    break;
 5276|       |
 5277|      0|	  case 'd':
  ------------------
  |  Branch (5277:4): [True: 0, False: 2.91k]
  ------------------
 5278|      0|	    if (IS_SYNTAX_OP2(env->syntax, ONIG_SYN_OP2_OPTION_PERL) &&
  ------------------
  |  |  331|      0|#define IS_SYNTAX_OP2(syn, opm)   (((syn)->op2 & (opm)) != 0)
  |  |  ------------------
  |  |  |  Branch (331:35): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 5279|      0|		(neg == 0)) {
  ------------------
  |  Branch (5279:3): [True: 0, False: 0]
  ------------------
 5280|      0|	      ONOFF(option, ONIG_OPTION_ASCII_RANGE, 1);
  ------------------
  |  |  160|      0|#define ONOFF(v,f,negative)    (negative) ? ((v) &= ~(f)) : ((v) |= (f))
  |  |  ------------------
  |  |  |  Branch (160:32): [Folded - Ignored]
  |  |  ------------------
  ------------------
 5281|      0|	    }
 5282|      0|	    else if (IS_SYNTAX_OP2(env->syntax, ONIG_SYN_OP2_OPTION_RUBY) &&
  ------------------
  |  |  331|      0|#define IS_SYNTAX_OP2(syn, opm)   (((syn)->op2 & (opm)) != 0)
  |  |  ------------------
  |  |  |  Branch (331:35): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 5283|      0|		(neg == 0)) {
  ------------------
  |  Branch (5283:3): [True: 0, False: 0]
  ------------------
 5284|      0|	      ONOFF(option, ONIG_OPTION_ASCII_RANGE, 0);
  ------------------
  |  |  160|      0|#define ONOFF(v,f,negative)    (negative) ? ((v) &= ~(f)) : ((v) |= (f))
  |  |  ------------------
  |  |  |  Branch (160:32): [Folded - Ignored]
  |  |  ------------------
  ------------------
 5285|      0|	      ONOFF(option, ONIG_OPTION_POSIX_BRACKET_ALL_RANGE, 0);
  ------------------
  |  |  160|      0|#define ONOFF(v,f,negative)    (negative) ? ((v) &= ~(f)) : ((v) |= (f))
  |  |  ------------------
  |  |  |  Branch (160:32): [Folded - Ignored]
  |  |  ------------------
  ------------------
 5286|      0|	      ONOFF(option, ONIG_OPTION_WORD_BOUND_ALL_RANGE, 0);
  ------------------
  |  |  160|      0|#define ONOFF(v,f,negative)    (negative) ? ((v) &= ~(f)) : ((v) |= (f))
  |  |  ------------------
  |  |  |  Branch (160:32): [Folded - Ignored]
  |  |  ------------------
  ------------------
 5287|      0|	    }
 5288|      0|	    else
 5289|      0|	      return ONIGERR_UNDEFINED_GROUP_OPTION;
  ------------------
  |  |  663|      0|#define ONIGERR_UNDEFINED_GROUP_OPTION                       -119
  ------------------
 5290|      0|	    break;
 5291|       |
 5292|      0|	  case 'l':
  ------------------
  |  Branch (5292:4): [True: 0, False: 2.91k]
  ------------------
 5293|      0|	    if (IS_SYNTAX_OP2(env->syntax, ONIG_SYN_OP2_OPTION_PERL) && (neg == 0)) {
  ------------------
  |  |  331|      0|#define IS_SYNTAX_OP2(syn, opm)   (((syn)->op2 & (opm)) != 0)
  |  |  ------------------
  |  |  |  Branch (331:35): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  |  Branch (5293:66): [True: 0, False: 0]
  ------------------
 5294|      0|	      ONOFF(option, ONIG_OPTION_ASCII_RANGE, 1);
  ------------------
  |  |  160|      0|#define ONOFF(v,f,negative)    (negative) ? ((v) &= ~(f)) : ((v) |= (f))
  |  |  ------------------
  |  |  |  Branch (160:32): [Folded - Ignored]
  |  |  ------------------
  ------------------
 5295|      0|	    }
 5296|      0|	    else
 5297|      0|	      return ONIGERR_UNDEFINED_GROUP_OPTION;
  ------------------
  |  |  663|      0|#define ONIGERR_UNDEFINED_GROUP_OPTION                       -119
  ------------------
 5298|      0|	    break;
 5299|       |
 5300|      0|	  default:
  ------------------
  |  Branch (5300:4): [True: 0, False: 2.91k]
  ------------------
 5301|      0|	    return ONIGERR_UNDEFINED_GROUP_OPTION;
  ------------------
  |  |  663|      0|#define ONIGERR_UNDEFINED_GROUP_OPTION                       -119
  ------------------
 5302|  2.91k|	  }
 5303|       |
 5304|  2.91k|	  if (c == ')') {
  ------------------
  |  Branch (5304:8): [True: 0, False: 2.91k]
  ------------------
 5305|      0|	    *np = node_new_option(option);
 5306|      0|	    CHECK_NULL_RETURN_MEMERR(*np);
  ------------------
  |  |  314|      0|#define CHECK_NULL_RETURN_MEMERR(p)   if (IS_NULL(p)) return ONIGERR_MEMORY
  |  |  ------------------
  |  |  |  |  311|      0|#define IS_NULL(p)                    (((void*)(p)) == (void*)0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (311:39): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |               #define CHECK_NULL_RETURN_MEMERR(p)   if (IS_NULL(p)) return ONIGERR_MEMORY
  |  |  ------------------
  |  |  |  |  632|      0|#define ONIGERR_MEMORY                                         -5
  |  |  ------------------
  ------------------
 5307|      0|	    *src = p;
 5308|      0|	    return 2; /* option only */
 5309|      0|	  }
 5310|  2.91k|	  else if (c == ':') {
  ------------------
  |  Branch (5310:13): [True: 1.45k, False: 1.45k]
  ------------------
 5311|  1.45k|	    OnigOptionType prev = env->option;
 5312|       |
 5313|  1.45k|	    env->option = option;
 5314|  1.45k|	    r = fetch_token(tok, &p, end, env);
 5315|  1.45k|	    if (r < 0) {
  ------------------
  |  Branch (5315:10): [True: 0, False: 1.45k]
  ------------------
 5316|      0|	      env->option = prev;
 5317|      0|	      return r;
 5318|      0|	    }
 5319|  1.45k|	    r = parse_subexp(&target, tok, term, &p, end, env);
 5320|  1.45k|	    env->option = prev;
 5321|  1.45k|	    if (r < 0) return r;
  ------------------
  |  Branch (5321:10): [True: 0, False: 1.45k]
  ------------------
 5322|  1.45k|	    *np = node_new_option(option);
 5323|  1.45k|	    CHECK_NULL_RETURN_MEMERR(*np);
  ------------------
  |  |  314|  1.45k|#define CHECK_NULL_RETURN_MEMERR(p)   if (IS_NULL(p)) return ONIGERR_MEMORY
  |  |  ------------------
  |  |  |  |  311|  1.45k|#define IS_NULL(p)                    (((void*)(p)) == (void*)0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (311:39): [True: 0, False: 1.45k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |               #define CHECK_NULL_RETURN_MEMERR(p)   if (IS_NULL(p)) return ONIGERR_MEMORY
  |  |  ------------------
  |  |  |  |  632|      0|#define ONIGERR_MEMORY                                         -5
  |  |  ------------------
  ------------------
 5324|  1.45k|	    NENCLOSE(*np)->target = target;
  ------------------
  |  |   81|  1.45k|#define NENCLOSE(node)     (&((node)->u.enclose))
  ------------------
 5325|  1.45k|	    *src = p;
 5326|  1.45k|	    return 0;
 5327|  1.45k|	  }
 5328|       |
 5329|  1.45k|	  if (PEND) return ONIGERR_END_PATTERN_IN_GROUP;
  ------------------
  |  |  299|  1.45k|#define PEND         (p < end ?  0 : 1)
  |  |  ------------------
  |  |  |  Branch (299:22): [True: 0, False: 1.45k]
  |  |  |  Branch (299:23): [True: 1.45k, False: 0]
  |  |  ------------------
  ------------------
              	  if (PEND) return ONIGERR_END_PATTERN_IN_GROUP;
  ------------------
  |  |  662|      0|#define ONIGERR_END_PATTERN_IN_GROUP                         -118
  ------------------
 5330|  1.45k|	  PFETCH(c);
  ------------------
  |  |  305|  1.45k|#define PFETCH(c)  do { \
  |  |  306|  1.45k|  c = ((enc->max_enc_len == 1) ? *p : ONIGENC_MBC_TO_CODE(enc, p, end)); \
  |  |  ------------------
  |  |  |  |  369|  1.45k|#define ONIGENC_MBC_TO_CODE(enc,p,end)         (enc)->mbc_to_code((p),(end),enc)
  |  |  ------------------
  |  |  |  Branch (306:8): [True: 0, False: 1.45k]
  |  |  ------------------
  |  |  307|  1.45k|  pfetch_prev = p; \
  |  |  308|  1.45k|  p += enclen(enc, p, end); \
  |  |  ------------------
  |  |  |  |   93|  1.45k|#define enclen(enc,p,e) ((enc->max_enc_len == enc->min_enc_len) ? enc->min_enc_len : ONIGENC_MBC_ENC_LEN(enc,p,e))
  |  |  |  |  ------------------
  |  |  |  |  |  |  364|  1.45k|#define ONIGENC_MBC_ENC_LEN(enc,p,e)          onigenc_mbclen(p,e,enc)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (93:26): [True: 0, False: 1.45k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  309|  1.45k|} while (0)
  |  |  ------------------
  |  |  |  Branch (309:10): [Folded - Ignored]
  |  |  ------------------
  ------------------
 5331|  1.45k|	}
 5332|  1.45k|      }
 5333|      0|      break;
 5334|       |
 5335|      0|    default:
  ------------------
  |  Branch (5335:5): [True: 0, False: 16.0k]
  ------------------
 5336|      0|      return ONIGERR_UNDEFINED_GROUP_OPTION;
  ------------------
  |  |  663|      0|#define ONIGERR_UNDEFINED_GROUP_OPTION                       -119
  ------------------
 5337|  16.0k|    }
 5338|  16.0k|  }
 5339|  1.46k|  else {
 5340|  1.46k|    if (ONIG_IS_OPTION_ON(env->option, ONIG_OPTION_DONT_CAPTURE_GROUP))
  ------------------
  |  |  479|  1.46k|#define ONIG_IS_OPTION_ON(options,option)   ((options) & (option))
  |  |  ------------------
  |  |  |  Branch (479:45): [True: 0, False: 1.46k]
  |  |  ------------------
  ------------------
 5341|      0|      goto group;
 5342|       |
 5343|  1.46k|    *np = node_new_enclose_memory(env->option, 0);
 5344|  1.46k|    CHECK_NULL_RETURN_MEMERR(*np);
  ------------------
  |  |  314|  1.46k|#define CHECK_NULL_RETURN_MEMERR(p)   if (IS_NULL(p)) return ONIGERR_MEMORY
  |  |  ------------------
  |  |  |  |  311|  1.46k|#define IS_NULL(p)                    (((void*)(p)) == (void*)0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (311:39): [True: 0, False: 1.46k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |               #define CHECK_NULL_RETURN_MEMERR(p)   if (IS_NULL(p)) return ONIGERR_MEMORY
  |  |  ------------------
  |  |  |  |  632|      0|#define ONIGERR_MEMORY                                         -5
  |  |  ------------------
  ------------------
 5345|  1.46k|    num = scan_env_add_mem_entry(env);
 5346|  1.46k|    if (num < 0) return num;
  ------------------
  |  Branch (5346:9): [True: 0, False: 1.46k]
  ------------------
 5347|  1.46k|    NENCLOSE(*np)->regnum = num;
  ------------------
  |  |   81|  1.46k|#define NENCLOSE(node)     (&((node)->u.enclose))
  ------------------
 5348|  1.46k|  }
 5349|       |
 5350|  7.38k|  CHECK_NULL_RETURN_MEMERR(*np);
  ------------------
  |  |  314|  7.38k|#define CHECK_NULL_RETURN_MEMERR(p)   if (IS_NULL(p)) return ONIGERR_MEMORY
  |  |  ------------------
  |  |  |  |  311|  7.38k|#define IS_NULL(p)                    (((void*)(p)) == (void*)0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (311:39): [True: 0, False: 7.38k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |               #define CHECK_NULL_RETURN_MEMERR(p)   if (IS_NULL(p)) return ONIGERR_MEMORY
  |  |  ------------------
  |  |  |  |  632|      0|#define ONIGERR_MEMORY                                         -5
  |  |  ------------------
  ------------------
 5351|  7.38k|  r = fetch_token(tok, &p, end, env);
 5352|  7.38k|  if (r < 0) return r;
  ------------------
  |  Branch (5352:7): [True: 0, False: 7.38k]
  ------------------
 5353|  7.38k|  r = parse_subexp(&target, tok, term, &p, end, env);
 5354|  7.38k|  if (r < 0) {
  ------------------
  |  Branch (5354:7): [True: 0, False: 7.38k]
  ------------------
 5355|      0|    onig_node_free(target);
 5356|      0|    return r;
 5357|      0|  }
 5358|       |
 5359|  7.38k|  if (NTYPE(*np) == NT_ANCHOR)
  ------------------
  |  |   69|  7.38k|#define NTYPE(node)             ((node)->u.base.type)
  ------------------
                if (NTYPE(*np) == NT_ANCHOR)
  ------------------
  |  |   45|  7.38k|#define NT_ANCHOR      7
  ------------------
  |  Branch (5359:7): [True: 0, False: 7.38k]
  ------------------
 5360|      0|    NANCHOR(*np)->target = target;
  ------------------
  |  |   82|      0|#define NANCHOR(node)      (&((node)->u.anchor))
  ------------------
 5361|  7.38k|  else {
 5362|  7.38k|    NENCLOSE(*np)->target = target;
  ------------------
  |  |   81|  7.38k|#define NENCLOSE(node)     (&((node)->u.enclose))
  ------------------
 5363|  7.38k|    if (NENCLOSE(*np)->type == ENCLOSE_MEMORY) {
  ------------------
  |  |   81|  7.38k|#define NENCLOSE(node)     (&((node)->u.enclose))
  ------------------
                  if (NENCLOSE(*np)->type == ENCLOSE_MEMORY) {
  ------------------
  |  |   94|  7.38k|#define ENCLOSE_MEMORY           (1<<0)
  ------------------
  |  Branch (5363:9): [True: 7.38k, False: 0]
  ------------------
 5364|       |      /* Don't move this to previous of parse_subexp() */
 5365|  7.38k|      r = scan_env_set_mem_node(env, NENCLOSE(*np)->regnum, *np);
  ------------------
  |  |   81|  7.38k|#define NENCLOSE(node)     (&((node)->u.enclose))
  ------------------
 5366|  7.38k|      if (r != 0) return r;
  ------------------
  |  Branch (5366:11): [True: 0, False: 7.38k]
  ------------------
 5367|  7.38k|    }
 5368|      0|    else if (NENCLOSE(*np)->type == ENCLOSE_CONDITION) {
  ------------------
  |  |   81|      0|#define NENCLOSE(node)     (&((node)->u.enclose))
  ------------------
                  else if (NENCLOSE(*np)->type == ENCLOSE_CONDITION) {
  ------------------
  |  |   97|      0|#define ENCLOSE_CONDITION        (1<<3)
  ------------------
  |  Branch (5368:14): [True: 0, False: 0]
  ------------------
 5369|      0|      if (NTYPE(target) != NT_ALT) {
  ------------------
  |  |   69|      0|#define NTYPE(node)             ((node)->u.base.type)
  ------------------
                    if (NTYPE(target) != NT_ALT) {
  ------------------
  |  |   47|      0|#define NT_ALT         9
  ------------------
  |  Branch (5369:11): [True: 0, False: 0]
  ------------------
 5370|       |	/* convert (?(cond)yes) to (?(cond)yes|empty) */
 5371|      0|	work1 = node_new_empty();
 5372|      0|	if (IS_NULL(work1)) goto err;
  ------------------
  |  |  311|      0|#define IS_NULL(p)                    (((void*)(p)) == (void*)0)
  |  |  ------------------
  |  |  |  Branch (311:39): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 5373|      0|	work2 = onig_node_new_alt(work1, NULL_NODE);
  ------------------
  |  |  283|      0|#define NULL_NODE  ((Node* )0)
  ------------------
 5374|      0|	if (IS_NULL(work2)) goto err;
  ------------------
  |  |  311|      0|#define IS_NULL(p)                    (((void*)(p)) == (void*)0)
  |  |  ------------------
  |  |  |  Branch (311:39): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 5375|      0|	work1 = onig_node_new_alt(target, work2);
 5376|      0|	if (IS_NULL(work1)) goto err;
  ------------------
  |  |  311|      0|#define IS_NULL(p)                    (((void*)(p)) == (void*)0)
  |  |  ------------------
  |  |  |  Branch (311:39): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 5377|      0|	NENCLOSE(*np)->target = work1;
  ------------------
  |  |   81|      0|#define NENCLOSE(node)     (&((node)->u.enclose))
  ------------------
 5378|      0|      }
 5379|      0|    }
 5380|  7.38k|  }
 5381|       |
 5382|  7.38k|  *src = p;
 5383|  7.38k|  return 0;
 5384|       |
 5385|      0| err:
 5386|      0|  onig_node_free(work1);
 5387|      0|  onig_node_free(work2);
 5388|      0|  onig_node_free(*np);
 5389|      0|  *np = NULL;
 5390|      0|  return ONIGERR_MEMORY;
  ------------------
  |  |  632|      0|#define ONIGERR_MEMORY                                         -5
  ------------------
 5391|  7.38k|}
regparse.c:scan_env_add_mem_entry:
 1016|  7.38k|{
 1017|  7.38k|  int i, need, alloc;
 1018|  7.38k|  Node** p;
 1019|       |
 1020|  7.38k|  need = env->num_mem + 1;
 1021|  7.38k|  if (need > ONIG_MAX_CAPTURE_GROUP_NUM)
  ------------------
  |  |  441|  7.38k|#define ONIG_MAX_CAPTURE_GROUP_NUM         32767
  ------------------
  |  Branch (1021:7): [True: 0, False: 7.38k]
  ------------------
 1022|      0|    return ONIGERR_TOO_MANY_CAPTURE_GROUPS;
  ------------------
  |  |  679|      0|#define ONIGERR_TOO_MANY_CAPTURE_GROUPS                      -210
  ------------------
 1023|  7.38k|  if (need >= SCANENV_MEMNODES_SIZE) {
  ------------------
  |  |  285|  7.38k|#define SCANENV_MEMNODES_SIZE               8
  ------------------
  |  Branch (1023:7): [True: 0, False: 7.38k]
  ------------------
 1024|      0|    if (env->mem_alloc <= need) {
  ------------------
  |  Branch (1024:9): [True: 0, False: 0]
  ------------------
 1025|      0|      if (IS_NULL(env->mem_nodes_dynamic)) {
  ------------------
  |  |  311|      0|#define IS_NULL(p)                    (((void*)(p)) == (void*)0)
  |  |  ------------------
  |  |  |  Branch (311:39): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 1026|      0|	alloc = INIT_SCANENV_MEMNODES_ALLOC_SIZE;
  ------------------
  |  |  980|      0|#define INIT_SCANENV_MEMNODES_ALLOC_SIZE   16
  ------------------
 1027|      0|	p = (Node** )xmalloc(sizeof(Node*) * alloc);
  ------------------
  |  |  142|      0|# define xmalloc     malloc
  ------------------
 1028|      0|	CHECK_NULL_RETURN_MEMERR(p);
  ------------------
  |  |  314|      0|#define CHECK_NULL_RETURN_MEMERR(p)   if (IS_NULL(p)) return ONIGERR_MEMORY
  |  |  ------------------
  |  |  |  |  311|      0|#define IS_NULL(p)                    (((void*)(p)) == (void*)0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (311:39): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |               #define CHECK_NULL_RETURN_MEMERR(p)   if (IS_NULL(p)) return ONIGERR_MEMORY
  |  |  ------------------
  |  |  |  |  632|      0|#define ONIGERR_MEMORY                                         -5
  |  |  ------------------
  ------------------
 1029|      0|	xmemcpy(p, env->mem_nodes_static,
  ------------------
  |  |  215|      0|#define xmemcpy     memcpy
  ------------------
 1030|      0|		sizeof(Node*) * SCANENV_MEMNODES_SIZE);
  ------------------
  |  |  285|      0|#define SCANENV_MEMNODES_SIZE               8
  ------------------
 1031|      0|      }
 1032|      0|      else {
 1033|      0|	alloc = env->mem_alloc * 2;
 1034|      0|	p = (Node** )xrealloc(env->mem_nodes_dynamic, sizeof(Node*) * alloc);
  ------------------
  |  |  143|      0|# define xrealloc    realloc
  ------------------
 1035|      0|	CHECK_NULL_RETURN_MEMERR(p);
  ------------------
  |  |  314|      0|#define CHECK_NULL_RETURN_MEMERR(p)   if (IS_NULL(p)) return ONIGERR_MEMORY
  |  |  ------------------
  |  |  |  |  311|      0|#define IS_NULL(p)                    (((void*)(p)) == (void*)0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (311:39): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |               #define CHECK_NULL_RETURN_MEMERR(p)   if (IS_NULL(p)) return ONIGERR_MEMORY
  |  |  ------------------
  |  |  |  |  632|      0|#define ONIGERR_MEMORY                                         -5
  |  |  ------------------
  ------------------
 1036|      0|      }
 1037|       |
 1038|      0|      for (i = env->num_mem + 1; i < alloc; i++)
  ------------------
  |  Branch (1038:34): [True: 0, False: 0]
  ------------------
 1039|      0|	p[i] = NULL_NODE;
  ------------------
  |  |  283|      0|#define NULL_NODE  ((Node* )0)
  ------------------
 1040|       |
 1041|      0|      env->mem_nodes_dynamic = p;
 1042|      0|      env->mem_alloc = alloc;
 1043|      0|    }
 1044|      0|  }
 1045|       |
 1046|  7.38k|  env->num_mem++;
 1047|  7.38k|  return env->num_mem;
 1048|  7.38k|}
regparse.c:name_add:
  773|  5.91k|{
  774|  5.91k|  int alloc;
  775|  5.91k|  NameEntry* e;
  776|  5.91k|  NameTable* t = (NameTable* )reg->name_table;
  777|       |
  778|  5.91k|  if (name_end - name <= 0)
  ------------------
  |  Branch (778:7): [True: 0, False: 5.91k]
  ------------------
  779|      0|    return ONIGERR_EMPTY_GROUP_NAME;
  ------------------
  |  |  682|      0|#define ONIGERR_EMPTY_GROUP_NAME                             -214
  ------------------
  780|       |
  781|  5.91k|  e = name_find(reg, name, name_end);
  782|  5.91k|  if (IS_NULL(e)) {
  ------------------
  |  |  311|  5.91k|#define IS_NULL(p)                    (((void*)(p)) == (void*)0)
  |  |  ------------------
  |  |  |  Branch (311:39): [True: 5.91k, False: 0]
  |  |  ------------------
  ------------------
  783|  5.91k|# ifdef USE_ST_LIBRARY
  784|  5.91k|    if (IS_NULL(t)) {
  ------------------
  |  |  311|  5.91k|#define IS_NULL(p)                    (((void*)(p)) == (void*)0)
  |  |  ------------------
  |  |  |  Branch (311:39): [True: 1.47k, False: 4.43k]
  |  |  ------------------
  ------------------
  785|  1.47k|      t = onig_st_init_strend_table_with_size(5);
  786|  1.47k|      reg->name_table = (void* )t;
  787|  1.47k|    }
  788|  5.91k|    e = (NameEntry* )xmalloc(sizeof(NameEntry));
  ------------------
  |  |  142|  5.91k|# define xmalloc     malloc
  ------------------
  789|  5.91k|    CHECK_NULL_RETURN_MEMERR(e);
  ------------------
  |  |  314|  5.91k|#define CHECK_NULL_RETURN_MEMERR(p)   if (IS_NULL(p)) return ONIGERR_MEMORY
  |  |  ------------------
  |  |  |  |  311|  5.91k|#define IS_NULL(p)                    (((void*)(p)) == (void*)0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (311:39): [True: 0, False: 5.91k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |               #define CHECK_NULL_RETURN_MEMERR(p)   if (IS_NULL(p)) return ONIGERR_MEMORY
  |  |  ------------------
  |  |  |  |  632|      0|#define ONIGERR_MEMORY                                         -5
  |  |  ------------------
  ------------------
  790|       |
  791|  5.91k|    e->name = strdup_with_null(reg->enc, name, name_end);
  792|  5.91k|    if (IS_NULL(e->name)) {
  ------------------
  |  |  311|  5.91k|#define IS_NULL(p)                    (((void*)(p)) == (void*)0)
  |  |  ------------------
  |  |  |  Branch (311:39): [True: 0, False: 5.91k]
  |  |  ------------------
  ------------------
  793|      0|      xfree(e);
  ------------------
  |  |  145|      0|# define xfree       free
  ------------------
  794|      0|      return ONIGERR_MEMORY;
  ------------------
  |  |  632|      0|#define ONIGERR_MEMORY                                         -5
  ------------------
  795|      0|    }
  796|  5.91k|    onig_st_insert_strend(t, e->name, (e->name + (name_end - name)),
  797|  5.91k|                          (HashDataType )e);
  798|       |
  799|  5.91k|    e->name_len   = name_end - name;
  800|  5.91k|    e->back_num   = 0;
  801|  5.91k|    e->back_alloc = 0;
  802|  5.91k|    e->back_refs  = (int* )NULL;
  803|       |
  804|       |# else
  805|       |
  806|       |    if (IS_NULL(t)) {
  807|       |      alloc = INIT_NAMES_ALLOC_NUM;
  808|       |      t = (NameTable* )xmalloc(sizeof(NameTable));
  809|       |      CHECK_NULL_RETURN_MEMERR(t);
  810|       |      t->e     = NULL;
  811|       |      t->alloc = 0;
  812|       |      t->num   = 0;
  813|       |
  814|       |      t->e = (NameEntry* )xmalloc(sizeof(NameEntry) * alloc);
  815|       |      if (IS_NULL(t->e)) {
  816|       |	xfree(t);
  817|       |	return ONIGERR_MEMORY;
  818|       |      }
  819|       |      t->alloc = alloc;
  820|       |      reg->name_table = t;
  821|       |      goto clear;
  822|       |    }
  823|       |    else if (t->num == t->alloc) {
  824|       |      int i;
  825|       |      NameEntry* p;
  826|       |
  827|       |      alloc = t->alloc * 2;
  828|       |      p = (NameEntry* )xrealloc(t->e, sizeof(NameEntry) * alloc);
  829|       |      CHECK_NULL_RETURN_MEMERR(p);
  830|       |      t->e = p;
  831|       |      t->alloc = alloc;
  832|       |
  833|       |    clear:
  834|       |      for (i = t->num; i < t->alloc; i++) {
  835|       |	t->e[i].name       = NULL;
  836|       |	t->e[i].name_len   = 0;
  837|       |	t->e[i].back_num   = 0;
  838|       |	t->e[i].back_alloc = 0;
  839|       |	t->e[i].back_refs  = (int* )NULL;
  840|       |      }
  841|       |    }
  842|       |    e = &(t->e[t->num]);
  843|       |    t->num++;
  844|       |    e->name = strdup_with_null(reg->enc, name, name_end);
  845|       |    if (IS_NULL(e->name)) return ONIGERR_MEMORY;
  846|       |    e->name_len = name_end - name;
  847|       |# endif
  848|  5.91k|  }
  849|       |
  850|  5.91k|  if (e->back_num >= 1 &&
  ------------------
  |  Branch (850:7): [True: 0, False: 5.91k]
  ------------------
  851|  5.91k|      ! IS_SYNTAX_BV(env->syntax, ONIG_SYN_ALLOW_MULTIPLEX_DEFINITION_NAME)) {
  ------------------
  |  |  332|      0|#define IS_SYNTAX_BV(syn, bvm)    (((syn)->behavior & (bvm)) != 0)
  ------------------
  |  Branch (851:7): [True: 0, False: 0]
  ------------------
  852|      0|    onig_scan_env_set_error_string(env, ONIGERR_MULTIPLEX_DEFINED_NAME,
  ------------------
  |  |  687|      0|#define ONIGERR_MULTIPLEX_DEFINED_NAME                       -219
  ------------------
  853|      0|				    name, name_end);
  854|      0|    return ONIGERR_MULTIPLEX_DEFINED_NAME;
  ------------------
  |  |  687|      0|#define ONIGERR_MULTIPLEX_DEFINED_NAME                       -219
  ------------------
  855|      0|  }
  856|       |
  857|  5.91k|  e->back_num++;
  858|  5.91k|  if (e->back_num == 1) {
  ------------------
  |  Branch (858:7): [True: 5.91k, False: 0]
  ------------------
  859|  5.91k|    e->back_ref1 = backref;
  860|  5.91k|  }
  861|      0|  else {
  862|      0|    if (e->back_num == 2) {
  ------------------
  |  Branch (862:9): [True: 0, False: 0]
  ------------------
  863|      0|      alloc = INIT_NAME_BACKREFS_ALLOC_NUM;
  ------------------
  |  |  451|      0|# define INIT_NAME_BACKREFS_ALLOC_NUM   8
  ------------------
  864|      0|      e->back_refs = (int* )xmalloc(sizeof(int) * alloc);
  ------------------
  |  |  142|      0|# define xmalloc     malloc
  ------------------
  865|      0|      CHECK_NULL_RETURN_MEMERR(e->back_refs);
  ------------------
  |  |  314|      0|#define CHECK_NULL_RETURN_MEMERR(p)   if (IS_NULL(p)) return ONIGERR_MEMORY
  |  |  ------------------
  |  |  |  |  311|      0|#define IS_NULL(p)                    (((void*)(p)) == (void*)0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (311:39): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |               #define CHECK_NULL_RETURN_MEMERR(p)   if (IS_NULL(p)) return ONIGERR_MEMORY
  |  |  ------------------
  |  |  |  |  632|      0|#define ONIGERR_MEMORY                                         -5
  |  |  ------------------
  ------------------
  866|      0|      e->back_alloc = alloc;
  867|      0|      e->back_refs[0] = e->back_ref1;
  868|      0|      e->back_refs[1] = backref;
  869|      0|    }
  870|      0|    else {
  871|      0|      if (e->back_num > e->back_alloc) {
  ------------------
  |  Branch (871:11): [True: 0, False: 0]
  ------------------
  872|      0|	int* p;
  873|      0|	alloc = e->back_alloc * 2;
  874|      0|	p = (int* )xrealloc(e->back_refs, sizeof(int) * alloc);
  ------------------
  |  |  143|      0|# define xrealloc    realloc
  ------------------
  875|      0|	CHECK_NULL_RETURN_MEMERR(p);
  ------------------
  |  |  314|      0|#define CHECK_NULL_RETURN_MEMERR(p)   if (IS_NULL(p)) return ONIGERR_MEMORY
  |  |  ------------------
  |  |  |  |  311|      0|#define IS_NULL(p)                    (((void*)(p)) == (void*)0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (311:39): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |               #define CHECK_NULL_RETURN_MEMERR(p)   if (IS_NULL(p)) return ONIGERR_MEMORY
  |  |  ------------------
  |  |  |  |  632|      0|#define ONIGERR_MEMORY                                         -5
  |  |  ------------------
  ------------------
  876|      0|	e->back_refs = p;
  877|      0|	e->back_alloc = alloc;
  878|      0|      }
  879|      0|      e->back_refs[e->back_num - 1] = backref;
  880|      0|    }
  881|      0|  }
  882|       |
  883|  5.91k|  return 0;
  884|  5.91k|}
regparse.c:strdup_with_null:
  271|  5.91k|{
  272|  5.91k|  ptrdiff_t slen;
  273|  5.91k|  int term_len, i;
  274|  5.91k|  UChar *r;
  ------------------
  |  |   76|  5.91k|# define UChar OnigUChar
  ------------------
  275|       |
  276|  5.91k|  slen = end - s;
  277|  5.91k|  term_len = ONIGENC_MBC_MINLEN(enc);
  ------------------
  |  |  367|  5.91k|#define ONIGENC_MBC_MINLEN(enc)               ((enc)->min_enc_len)
  ------------------
  278|       |
  279|  5.91k|  r = (UChar* )xmalloc(slen + term_len);
  ------------------
  |  |  142|  5.91k|# define xmalloc     malloc
  ------------------
  280|  5.91k|  CHECK_NULL_RETURN(r);
  ------------------
  |  |  313|  5.91k|#define CHECK_NULL_RETURN(p)          if (IS_NULL(p)) return NULL
  |  |  ------------------
  |  |  |  |  311|  5.91k|#define IS_NULL(p)                    (((void*)(p)) == (void*)0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (311:39): [True: 0, False: 5.91k]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  281|  5.91k|  xmemcpy(r, s, slen);
  ------------------
  |  |  215|  5.91k|#define xmemcpy     memcpy
  ------------------
  282|       |
  283|  11.8k|  for (i = 0; i < term_len; i++)
  ------------------
  |  Branch (283:15): [True: 5.91k, False: 5.91k]
  ------------------
  284|  5.91k|    r[slen + i] = (UChar )0;
  285|       |
  286|  5.91k|  return r;
  287|  5.91k|}
regparse.c:node_new_option:
 1368|  1.45k|{
 1369|  1.45k|  Node* node = node_new_enclose(ENCLOSE_OPTION);
  ------------------
  |  |   95|  1.45k|#define ENCLOSE_OPTION           (1<<1)
  ------------------
 1370|  1.45k|  CHECK_NULL_RETURN(node);
  ------------------
  |  |  313|  1.45k|#define CHECK_NULL_RETURN(p)          if (IS_NULL(p)) return NULL
  |  |  ------------------
  |  |  |  |  311|  1.45k|#define IS_NULL(p)                    (((void*)(p)) == (void*)0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (311:39): [True: 0, False: 1.45k]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1371|  1.45k|  NENCLOSE(node)->option = option;
  ------------------
  |  |   81|  1.45k|#define NENCLOSE(node)     (&((node)->u.enclose))
  ------------------
 1372|  1.45k|  return node;
 1373|  1.45k|}
regparse.c:add_code_range_to_buf0:
 1672|   465k|{
 1673|   465k|  int r, inc_n, pos;
 1674|   465k|  OnigCodePoint low, high, bound, x;
 1675|   465k|  OnigCodePoint n, *data;
 1676|   465k|  BBuf* bbuf;
 1677|       |
 1678|   465k|  if (from > to) {
  ------------------
  |  Branch (1678:7): [True: 0, False: 465k]
  ------------------
 1679|      0|    n = from; from = to; to = n;
 1680|      0|  }
 1681|       |
 1682|   465k|  if (IS_NULL(*pbuf)) {
  ------------------
  |  |  311|   465k|#define IS_NULL(p)                    (((void*)(p)) == (void*)0)
  |  |  ------------------
  |  |  |  Branch (311:39): [True: 18.6k, False: 447k]
  |  |  ------------------
  ------------------
 1683|  18.6k|    r = new_code_range(pbuf);
 1684|  18.6k|    if (r) return r;
  ------------------
  |  Branch (1684:9): [True: 0, False: 18.6k]
  ------------------
 1685|  18.6k|    bbuf = *pbuf;
 1686|  18.6k|    n = 0;
 1687|  18.6k|  }
 1688|   447k|  else {
 1689|   447k|    bbuf = *pbuf;
 1690|   447k|    GET_CODE_POINT(n, bbuf->p);
  ------------------
  |  |  710|   447k|#define GET_CODE_POINT(code,p)   code = *((OnigCodePoint* )(p))
  ------------------
 1691|   447k|  }
 1692|   465k|  data = (OnigCodePoint* )(bbuf->p);
 1693|   465k|  data++;
 1694|       |
 1695|   465k|  bound = (from == 0) ? 0 : n;
  ------------------
  |  Branch (1695:11): [True: 0, False: 465k]
  ------------------
 1696|  2.11M|  for (low = 0; low < bound; ) {
  ------------------
  |  Branch (1696:17): [True: 1.65M, False: 465k]
  ------------------
 1697|  1.65M|    x = (low + bound) >> 1;
 1698|  1.65M|    if (from - 1 > data[x*2 + 1])
  ------------------
  |  Branch (1698:9): [True: 1.65M, False: 0]
  ------------------
 1699|  1.65M|      low = x + 1;
 1700|      0|    else
 1701|      0|      bound = x;
 1702|  1.65M|  }
 1703|       |
 1704|   465k|  high = (to == ONIG_LAST_CODE_POINT) ? n : low;
  ------------------
  |  |  317|   465k|#define ONIG_LAST_CODE_POINT    (~((OnigCodePoint )0))
  ------------------
  |  Branch (1704:10): [True: 0, False: 465k]
  ------------------
 1705|   465k|  for (bound = n; high < bound; ) {
  ------------------
  |  Branch (1705:19): [True: 0, False: 465k]
  ------------------
 1706|      0|    x = (high + bound) >> 1;
 1707|      0|    if (to + 1 >= data[x*2])
  ------------------
  |  Branch (1707:9): [True: 0, False: 0]
  ------------------
 1708|      0|      high = x + 1;
 1709|      0|    else
 1710|      0|      bound = x;
 1711|      0|  }
 1712|       |  /* data[(low-1)*2+1] << from <= data[low*2]
 1713|       |   * data[(high-1)*2+1] <= to << data[high*2]
 1714|       |   */
 1715|       |
 1716|   465k|  inc_n = low + 1 - high;
 1717|   465k|  if (n + inc_n > ONIG_MAX_MULTI_BYTE_RANGES_NUM)
  ------------------
  |  |  444|   465k|#define ONIG_MAX_MULTI_BYTE_RANGES_NUM     10000
  ------------------
  |  Branch (1717:7): [True: 0, False: 465k]
  ------------------
 1718|      0|    return ONIGERR_TOO_MANY_MULTI_BYTE_RANGES;
  ------------------
  |  |  674|      0|#define ONIGERR_TOO_MANY_MULTI_BYTE_RANGES                   -205
  ------------------
 1719|       |
 1720|   465k|  if (inc_n != 1) {
  ------------------
  |  Branch (1720:7): [True: 0, False: 465k]
  ------------------
 1721|      0|    if (checkdup && from <= data[low*2+1]
  ------------------
  |  Branch (1721:9): [True: 0, False: 0]
  |  Branch (1721:21): [True: 0, False: 0]
  ------------------
 1722|      0|	&& (data[low*2] <= from || data[low*2+1] <= to))
  ------------------
  |  Branch (1722:6): [True: 0, False: 0]
  |  Branch (1722:29): [True: 0, False: 0]
  ------------------
 1723|      0|      CC_DUP_WARN(env, from, to);
 1724|      0|    if (from > data[low*2])
  ------------------
  |  Branch (1724:9): [True: 0, False: 0]
  ------------------
 1725|      0|      from = data[low*2];
 1726|      0|    if (to < data[(high - 1)*2 + 1])
  ------------------
  |  Branch (1726:9): [True: 0, False: 0]
  ------------------
 1727|      0|      to = data[(high - 1)*2 + 1];
 1728|      0|  }
 1729|       |
 1730|   465k|  if (inc_n != 0) {
  ------------------
  |  Branch (1730:7): [True: 465k, False: 0]
  ------------------
 1731|   465k|    int from_pos = SIZE_CODE_POINT * (1 + high * 2);
  ------------------
  |  |  696|   465k|#define SIZE_CODE_POINT       (int )sizeof(OnigCodePoint)
  ------------------
 1732|   465k|    int to_pos   = SIZE_CODE_POINT * (1 + (low + 1) * 2);
  ------------------
  |  |  696|   465k|#define SIZE_CODE_POINT       (int )sizeof(OnigCodePoint)
  ------------------
 1733|       |
 1734|   465k|    if (inc_n > 0) {
  ------------------
  |  Branch (1734:9): [True: 465k, False: 0]
  ------------------
 1735|   465k|      if (high < n) {
  ------------------
  |  Branch (1735:11): [True: 0, False: 465k]
  ------------------
 1736|      0|	int size = (n - high) * 2 * SIZE_CODE_POINT;
  ------------------
  |  |  696|      0|#define SIZE_CODE_POINT       (int )sizeof(OnigCodePoint)
  ------------------
 1737|      0|	BBUF_MOVE_RIGHT(bbuf, from_pos, to_pos, size);
  ------------------
  |  |  510|      0|#define BBUF_MOVE_RIGHT(buf,from,to,n) do {\
  |  |  511|      0|  if ((unsigned int )((to)+(n)) > (buf)->alloc) BBUF_EXPAND((buf),(to) + (n));\
  |  |  ------------------
  |  |  |  |  470|      0|#define BBUF_EXPAND(buf,low) do{\
  |  |  |  |  471|      0|  UChar *tmp;\
  |  |  |  |  ------------------
  |  |  |  |  |  |   76|      0|# define UChar OnigUChar
  |  |  |  |  ------------------
  |  |  |  |  472|      0|  do { (buf)->alloc *= 2; } while ((buf)->alloc < (unsigned int )low);\
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (472:36): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  473|      0|  tmp = (UChar* )xrealloc((buf)->p, (buf)->alloc);\
  |  |  |  |  ------------------
  |  |  |  |  |  |  143|      0|# define xrealloc    realloc
  |  |  |  |  ------------------
  |  |  |  |  474|      0|  if (IS_NULL(tmp)) return(ONIGERR_MEMORY);\
  |  |  |  |  ------------------
  |  |  |  |  |  |  311|      0|#define IS_NULL(p)                    (((void*)(p)) == (void*)0)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (311:39): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |                 if (IS_NULL(tmp)) return(ONIGERR_MEMORY);\
  |  |  |  |  ------------------
  |  |  |  |  |  |  632|      0|#define ONIGERR_MEMORY                                         -5
  |  |  |  |  ------------------
  |  |  |  |  475|      0|  (buf)->p = tmp;\
  |  |  |  |  476|      0|} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (476:10): [Folded - Ignored]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  |  Branch (511:7): [True: 0, False: 0]
  |  |  ------------------
  |  |  512|      0|  xmemmove((buf)->p + (to), (buf)->p + (from), (n));\
  |  |  ------------------
  |  |  |  |  216|      0|#define xmemmove    memmove
  |  |  ------------------
  |  |  513|      0|  if ((unsigned int )((to)+(n)) > (buf)->used) (buf)->used = (to) + (n);\
  |  |  ------------------
  |  |  |  Branch (513:7): [True: 0, False: 0]
  |  |  ------------------
  |  |  514|      0|} while (0)
  |  |  ------------------
  |  |  |  Branch (514:10): [Folded - Ignored]
  |  |  ------------------
  ------------------
 1738|      0|      }
 1739|   465k|    }
 1740|      0|    else {
 1741|      0|      BBUF_MOVE_LEFT_REDUCE(bbuf, from_pos, to_pos);
  ------------------
  |  |  522|      0|#define BBUF_MOVE_LEFT_REDUCE(buf,from,to) do {\
  |  |  523|      0|  xmemmove((buf)->p + (to), (buf)->p + (from), (buf)->used - (from));\
  |  |  ------------------
  |  |  |  |  216|      0|#define xmemmove    memmove
  |  |  ------------------
  |  |  524|      0|  (buf)->used -= (from - to);\
  |  |  525|      0|} while (0)
  |  |  ------------------
  |  |  |  Branch (525:10): [Folded - Ignored]
  |  |  ------------------
  ------------------
 1742|      0|    }
 1743|   465k|  }
 1744|       |
 1745|   465k|  pos = SIZE_CODE_POINT * (1 + low * 2);
  ------------------
  |  |  696|   465k|#define SIZE_CODE_POINT       (int )sizeof(OnigCodePoint)
  ------------------
 1746|   465k|  BBUF_ENSURE_SIZE(bbuf, pos + SIZE_CODE_POINT * 2);
  ------------------
  |  |  478|   465k|#define BBUF_ENSURE_SIZE(buf,size) do{\
  |  |  479|   465k|  unsigned int new_alloc = (buf)->alloc;\
  |  |  480|   520k|  while (new_alloc < (unsigned int )(size)) { new_alloc *= 2; }\
  |  |  ------------------
  |  |  |  Branch (480:10): [True: 54.5k, False: 465k]
  |  |  ------------------
  |  |  481|   465k|  if ((buf)->alloc != new_alloc) {\
  |  |  ------------------
  |  |  |  Branch (481:7): [True: 54.5k, False: 411k]
  |  |  ------------------
  |  |  482|  54.5k|    UChar *tmp;\
  |  |  ------------------
  |  |  |  |   76|  54.5k|# define UChar OnigUChar
  |  |  ------------------
  |  |  483|  54.5k|    tmp = (UChar* )xrealloc((buf)->p, new_alloc);\
  |  |  ------------------
  |  |  |  |  143|  54.5k|# define xrealloc    realloc
  |  |  ------------------
  |  |  484|  54.5k|    if (IS_NULL(tmp)) return(ONIGERR_MEMORY);\
  |  |  ------------------
  |  |  |  |  311|  54.5k|#define IS_NULL(p)                    (((void*)(p)) == (void*)0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (311:39): [True: 0, False: 54.5k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |                   if (IS_NULL(tmp)) return(ONIGERR_MEMORY);\
  |  |  ------------------
  |  |  |  |  632|      0|#define ONIGERR_MEMORY                                         -5
  |  |  ------------------
  |  |  485|  54.5k|    (buf)->p = tmp;\
  |  |  486|  54.5k|    (buf)->alloc = new_alloc;\
  |  |  487|  54.5k|  }\
  |  |  488|   465k|} while (0)
  |  |  ------------------
  |  |  |  Branch (488:10): [Folded - Ignored]
  |  |  ------------------
  ------------------
 1747|   465k|  BBUF_WRITE_CODE_POINT(bbuf, pos, from);
  ------------------
  |  | 1645|   465k|    BBUF_WRITE(bbuf, pos, &(code), SIZE_CODE_POINT)
  |  |  ------------------
  |  |  |  |  490|   465k|#define BBUF_WRITE(buf,pos,bytes,n) do{\
  |  |  |  |  491|   465k|  int used = (pos) + (int )(n);\
  |  |  |  |  492|   465k|  if ((buf)->alloc < (unsigned int )used) BBUF_EXPAND((buf),used);\
  |  |  |  |  ------------------
  |  |  |  |  |  |  470|      0|#define BBUF_EXPAND(buf,low) do{\
  |  |  |  |  |  |  471|      0|  UChar *tmp;\
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   76|      0|# define UChar OnigUChar
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  472|      0|  do { (buf)->alloc *= 2; } while ((buf)->alloc < (unsigned int )low);\
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (472:36): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  473|      0|  tmp = (UChar* )xrealloc((buf)->p, (buf)->alloc);\
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  143|      0|# define xrealloc    realloc
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  474|      0|  if (IS_NULL(tmp)) return(ONIGERR_MEMORY);\
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  311|      0|#define IS_NULL(p)                    (((void*)(p)) == (void*)0)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (311:39): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |                 if (IS_NULL(tmp)) return(ONIGERR_MEMORY);\
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  632|      0|#define ONIGERR_MEMORY                                         -5
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  475|      0|  (buf)->p = tmp;\
  |  |  |  |  |  |  476|      0|} while (0)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (476:10): [Folded - Ignored]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (492:7): [True: 0, False: 465k]
  |  |  |  |  ------------------
  |  |  |  |  493|   465k|  xmemcpy((buf)->p + (pos), (bytes), (n));\
  |  |  |  |  ------------------
  |  |  |  |  |  |  215|   465k|#define xmemcpy     memcpy
  |  |  |  |  ------------------
  |  |  |  |  494|   465k|  if ((buf)->used < (unsigned int )used) (buf)->used = used;\
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (494:7): [True: 465k, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  495|   465k|} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (495:10): [Folded - Ignored]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1748|   465k|  BBUF_WRITE_CODE_POINT(bbuf, pos + SIZE_CODE_POINT, to);
  ------------------
  |  | 1645|   465k|    BBUF_WRITE(bbuf, pos, &(code), SIZE_CODE_POINT)
  |  |  ------------------
  |  |  |  |  490|   465k|#define BBUF_WRITE(buf,pos,bytes,n) do{\
  |  |  |  |  491|   465k|  int used = (pos) + (int )(n);\
  |  |  |  |  492|   465k|  if ((buf)->alloc < (unsigned int )used) BBUF_EXPAND((buf),used);\
  |  |  |  |  ------------------
  |  |  |  |  |  |  470|      0|#define BBUF_EXPAND(buf,low) do{\
  |  |  |  |  |  |  471|      0|  UChar *tmp;\
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   76|      0|# define UChar OnigUChar
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  472|      0|  do { (buf)->alloc *= 2; } while ((buf)->alloc < (unsigned int )low);\
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (472:36): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  473|      0|  tmp = (UChar* )xrealloc((buf)->p, (buf)->alloc);\
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  143|      0|# define xrealloc    realloc
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  474|      0|  if (IS_NULL(tmp)) return(ONIGERR_MEMORY);\
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  311|      0|#define IS_NULL(p)                    (((void*)(p)) == (void*)0)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (311:39): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |                 if (IS_NULL(tmp)) return(ONIGERR_MEMORY);\
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  632|      0|#define ONIGERR_MEMORY                                         -5
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  475|      0|  (buf)->p = tmp;\
  |  |  |  |  |  |  476|      0|} while (0)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (476:10): [Folded - Ignored]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (492:7): [True: 0, False: 465k]
  |  |  |  |  ------------------
  |  |  |  |  493|   465k|  xmemcpy((buf)->p + (pos), (bytes), (n));\
  |  |  |  |  ------------------
  |  |  |  |  |  |  215|   465k|#define xmemcpy     memcpy
  |  |  |  |  ------------------
  |  |  |  |  494|   465k|  if ((buf)->used < (unsigned int )used) (buf)->used = used;\
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (494:7): [True: 465k, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  495|   465k|} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (495:10): [Folded - Ignored]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1749|   465k|  n += inc_n;
 1750|   465k|  BBUF_WRITE_CODE_POINT(bbuf, 0, n);
  ------------------
  |  | 1645|   465k|    BBUF_WRITE(bbuf, pos, &(code), SIZE_CODE_POINT)
  |  |  ------------------
  |  |  |  |  490|   465k|#define BBUF_WRITE(buf,pos,bytes,n) do{\
  |  |  |  |  491|   465k|  int used = (pos) + (int )(n);\
  |  |  |  |  492|   465k|  if ((buf)->alloc < (unsigned int )used) BBUF_EXPAND((buf),used);\
  |  |  |  |  ------------------
  |  |  |  |  |  |  470|      0|#define BBUF_EXPAND(buf,low) do{\
  |  |  |  |  |  |  471|      0|  UChar *tmp;\
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   76|      0|# define UChar OnigUChar
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  472|      0|  do { (buf)->alloc *= 2; } while ((buf)->alloc < (unsigned int )low);\
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (472:36): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  473|      0|  tmp = (UChar* )xrealloc((buf)->p, (buf)->alloc);\
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  143|      0|# define xrealloc    realloc
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  474|      0|  if (IS_NULL(tmp)) return(ONIGERR_MEMORY);\
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  311|      0|#define IS_NULL(p)                    (((void*)(p)) == (void*)0)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (311:39): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |                 if (IS_NULL(tmp)) return(ONIGERR_MEMORY);\
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  632|      0|#define ONIGERR_MEMORY                                         -5
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  475|      0|  (buf)->p = tmp;\
  |  |  |  |  |  |  476|      0|} while (0)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (476:10): [Folded - Ignored]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (492:7): [True: 0, False: 465k]
  |  |  |  |  ------------------
  |  |  |  |  493|   465k|  xmemcpy((buf)->p + (pos), (bytes), (n));\
  |  |  |  |  ------------------
  |  |  |  |  |  |  215|   465k|#define xmemcpy     memcpy
  |  |  |  |  ------------------
  |  |  |  |  494|   465k|  if ((buf)->used < (unsigned int )used) (buf)->used = used;\
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (494:7): [True: 0, False: 465k]
  |  |  |  |  ------------------
  |  |  |  |  495|   465k|} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (495:10): [Folded - Ignored]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1751|       |
 1752|   465k|  return 0;
 1753|   465k|}
regparse.c:new_code_range:
 1653|  18.6k|{
 1654|  18.6k|#define INIT_MULTI_BYTE_RANGE_SIZE  (SIZE_CODE_POINT * 5)
 1655|  18.6k|  int r;
 1656|  18.6k|  OnigCodePoint n;
 1657|  18.6k|  BBuf* bbuf;
 1658|       |
 1659|  18.6k|  bbuf = *pbuf = (BBuf* )xmalloc(sizeof(BBuf));
  ------------------
  |  |  142|  18.6k|# define xmalloc     malloc
  ------------------
 1660|  18.6k|  CHECK_NULL_RETURN_MEMERR(*pbuf);
  ------------------
  |  |  314|  18.6k|#define CHECK_NULL_RETURN_MEMERR(p)   if (IS_NULL(p)) return ONIGERR_MEMORY
  |  |  ------------------
  |  |  |  |  311|  18.6k|#define IS_NULL(p)                    (((void*)(p)) == (void*)0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (311:39): [True: 0, False: 18.6k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |               #define CHECK_NULL_RETURN_MEMERR(p)   if (IS_NULL(p)) return ONIGERR_MEMORY
  |  |  ------------------
  |  |  |  |  632|      0|#define ONIGERR_MEMORY                                         -5
  |  |  ------------------
  ------------------
 1661|  18.6k|  r = BBUF_INIT(*pbuf, INIT_MULTI_BYTE_RANGE_SIZE);
  ------------------
  |  |  460|  18.6k|#define BBUF_INIT(buf,size)    onig_bbuf_init((BBuf* )(buf), (size))
  ------------------
 1662|  18.6k|  if (r) return r;
  ------------------
  |  Branch (1662:7): [True: 0, False: 18.6k]
  ------------------
 1663|       |
 1664|  18.6k|  n = 0;
 1665|  18.6k|  BBUF_WRITE_CODE_POINT(bbuf, 0, n);
  ------------------
  |  | 1645|  18.6k|    BBUF_WRITE(bbuf, pos, &(code), SIZE_CODE_POINT)
  |  |  ------------------
  |  |  |  |  490|  18.6k|#define BBUF_WRITE(buf,pos,bytes,n) do{\
  |  |  |  |  491|  18.6k|  int used = (pos) + (int )(n);\
  |  |  |  |  492|  18.6k|  if ((buf)->alloc < (unsigned int )used) BBUF_EXPAND((buf),used);\
  |  |  |  |  ------------------
  |  |  |  |  |  |  470|      0|#define BBUF_EXPAND(buf,low) do{\
  |  |  |  |  |  |  471|      0|  UChar *tmp;\
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   76|      0|# define UChar OnigUChar
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  472|      0|  do { (buf)->alloc *= 2; } while ((buf)->alloc < (unsigned int )low);\
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (472:36): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  473|      0|  tmp = (UChar* )xrealloc((buf)->p, (buf)->alloc);\
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  143|      0|# define xrealloc    realloc
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  474|      0|  if (IS_NULL(tmp)) return(ONIGERR_MEMORY);\
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  311|      0|#define IS_NULL(p)                    (((void*)(p)) == (void*)0)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (311:39): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |                 if (IS_NULL(tmp)) return(ONIGERR_MEMORY);\
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  632|      0|#define ONIGERR_MEMORY                                         -5
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  475|      0|  (buf)->p = tmp;\
  |  |  |  |  |  |  476|      0|} while (0)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (476:10): [Folded - Ignored]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (492:7): [True: 0, False: 18.6k]
  |  |  |  |  ------------------
  |  |  |  |  493|  18.6k|  xmemcpy((buf)->p + (pos), (bytes), (n));\
  |  |  |  |  ------------------
  |  |  |  |  |  |  215|  18.6k|#define xmemcpy     memcpy
  |  |  |  |  ------------------
  |  |  |  |  494|  18.6k|  if ((buf)->used < (unsigned int )used) (buf)->used = used;\
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (494:7): [True: 18.6k, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  495|  18.6k|} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (495:10): [Folded - Ignored]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1666|  18.6k|  return 0;
 1667|  18.6k|}
regparse.c:bitset_set_range:
  193|  18.6k|{
  194|  18.6k|  int i;
  195|  2.40M|  for (i = from; i <= to && i < SINGLE_BYTE_SIZE; i++) {
  ------------------
  |  |  426|  2.38M|#define SINGLE_BYTE_SIZE   (1 << BITS_PER_BYTE)
  |  |  ------------------
  |  |  |  |  425|  2.38M|#define BITS_PER_BYTE      8
  |  |  ------------------
  ------------------
  |  Branch (195:18): [True: 2.38M, False: 18.6k]
  |  Branch (195:29): [True: 2.38M, False: 0]
  ------------------
  196|  2.38M|    BITSET_SET_BIT_CHKDUP(bs, i);
  ------------------
  |  |  176|  2.38M|#define BITSET_SET_BIT_CHKDUP(bs, pos) do { \
  |  |  177|  2.38M|  if (BITSET_AT(bs, pos)) CC_DUP_WARN(env, pos, pos); \
  |  |  ------------------
  |  |  |  |  448|  2.38M|#define BITSET_AT(bs, pos)         (BS_ROOM(bs,pos) & BS_BIT(pos))
  |  |  |  |  ------------------
  |  |  |  |  |  |  445|  2.38M|#define BS_ROOM(bs,pos)            (bs)[(int )(pos) / BITS_IN_ROOM]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  427|  2.38M|#define BITS_IN_ROOM       ((int )sizeof(Bits) * BITS_PER_BYTE)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  425|  2.38M|#define BITS_PER_BYTE      8
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |               #define BITSET_AT(bs, pos)         (BS_ROOM(bs,pos) & BS_BIT(pos))
  |  |  |  |  ------------------
  |  |  |  |  |  |  446|  2.38M|#define BS_BIT(pos)                (1U << ((int )(pos) % BITS_IN_ROOM))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  427|  2.38M|#define BITS_IN_ROOM       ((int )sizeof(Bits) * BITS_PER_BYTE)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  425|  2.38M|#define BITS_PER_BYTE      8
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (448:36): [True: 0, False: 2.38M]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  178|  2.38M|  BS_ROOM(bs, pos) |= BS_BIT(pos); \
  |  |  ------------------
  |  |  |  |  445|  2.38M|#define BS_ROOM(bs,pos)            (bs)[(int )(pos) / BITS_IN_ROOM]
  |  |  |  |  ------------------
  |  |  |  |  |  |  427|  2.38M|#define BITS_IN_ROOM       ((int )sizeof(Bits) * BITS_PER_BYTE)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  425|  2.38M|#define BITS_PER_BYTE      8
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |                 BS_ROOM(bs, pos) |= BS_BIT(pos); \
  |  |  ------------------
  |  |  |  |  446|  2.38M|#define BS_BIT(pos)                (1U << ((int )(pos) % BITS_IN_ROOM))
  |  |  |  |  ------------------
  |  |  |  |  |  |  427|  2.38M|#define BITS_IN_ROOM       ((int )sizeof(Bits) * BITS_PER_BYTE)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  425|  2.38M|#define BITS_PER_BYTE      8
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  179|  2.38M|} while (0)
  |  |  ------------------
  |  |  |  Branch (179:10): [Folded - Ignored]
  |  |  ------------------
  ------------------
  197|  2.38M|  }
  198|  18.6k|}
regparse.c:add_code_range_to_buf:
 1757|   465k|{
 1758|   465k|  return add_code_range_to_buf0(pbuf, env, from, to, 1);
 1759|   465k|}
regparse.c:node_new_cclass:
 1141|  34.6k|{
 1142|  34.6k|  Node* node = node_new();
 1143|  34.6k|  CHECK_NULL_RETURN(node);
  ------------------
  |  |  313|  34.6k|#define CHECK_NULL_RETURN(p)          if (IS_NULL(p)) return NULL
  |  |  ------------------
  |  |  |  |  311|  34.6k|#define IS_NULL(p)                    (((void*)(p)) == (void*)0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (311:39): [True: 0, False: 34.6k]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1144|       |
 1145|  34.6k|  SET_NTYPE(node, NT_CCLASS);
  ------------------
  |  |   71|  34.6k|    do { \
  |  |   72|  34.6k|	int value = ntype; \
  |  |   73|  34.6k|	memcpy(&((node)->u.base.type), &value, sizeof(int)); \
  |  |   74|  34.6k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (74:14): [Folded - Ignored]
  |  |  ------------------
  ------------------
 1146|  34.6k|  initialize_cclass(NCCLASS(node));
  ------------------
  |  |   77|  34.6k|#define NCCLASS(node)      (&((node)->u.cclass))
  ------------------
 1147|  34.6k|  return node;
 1148|  34.6k|}
regparse.c:initialize_cclass:
 1132|  71.9k|{
 1133|  71.9k|  BITSET_CLEAR(cc->bs);
  ------------------
  |  |  440|  71.9k|#define BITSET_CLEAR(bs) do {\
  |  |  441|  71.9k|  int i;\
  |  |  442|   647k|  for (i = 0; i < BITSET_SIZE; i++) { (bs)[i] = 0; }	\
  |  |  ------------------
  |  |  |  |  428|   647k|#define BITSET_SIZE        (SINGLE_BYTE_SIZE / BITS_IN_ROOM)
  |  |  |  |  ------------------
  |  |  |  |  |  |  426|   647k|#define SINGLE_BYTE_SIZE   (1 << BITS_PER_BYTE)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  425|   647k|#define BITS_PER_BYTE      8
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |               #define BITSET_SIZE        (SINGLE_BYTE_SIZE / BITS_IN_ROOM)
  |  |  |  |  ------------------
  |  |  |  |  |  |  427|   647k|#define BITS_IN_ROOM       ((int )sizeof(Bits) * BITS_PER_BYTE)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  425|   647k|#define BITS_PER_BYTE      8
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  |  Branch (442:15): [True: 575k, False: 71.9k]
  |  |  ------------------
  |  |  443|  71.9k|} while (0)
  |  |  ------------------
  |  |  |  Branch (443:10): [Folded - Ignored]
  |  |  ------------------
  ------------------
 1134|       |  /* cc->base.flags = 0; */
 1135|  71.9k|  cc->flags = 0;
 1136|  71.9k|  cc->mbuf  = NULL;
 1137|  71.9k|}
regparse.c:add_ctype_to_cc:
 4138|  18.6k|{
 4139|  18.6k|  int maxcode;
 4140|  18.6k|  int c, r;
 4141|  18.6k|  const OnigCodePoint *ranges;
 4142|  18.6k|  OnigCodePoint sb_out;
 4143|  18.6k|  OnigEncoding enc = env->enc;
 4144|       |
 4145|  18.6k|  r = ONIGENC_GET_CTYPE_CODE_RANGE(enc, ctype, &sb_out, &ranges);
  ------------------
  |  |  407|  18.6k|        (enc)->get_ctype_code_range(ctype,sbout,ranges,enc)
  ------------------
 4146|  18.6k|  if (r == 0) {
  ------------------
  |  Branch (4146:7): [True: 18.6k, False: 0]
  ------------------
 4147|  18.6k|    if (ascii_range) {
  ------------------
  |  Branch (4147:9): [True: 18.6k, False: 0]
  ------------------
 4148|  18.6k|      CClassNode ccwork;
 4149|  18.6k|      initialize_cclass(&ccwork);
 4150|  18.6k|      r = add_ctype_to_cc_by_range(&ccwork, ctype, not, env, sb_out,
 4151|  18.6k|				   ranges);
 4152|  18.6k|      if (r == 0) {
  ------------------
  |  Branch (4152:11): [True: 18.6k, False: 0]
  ------------------
 4153|  18.6k|	if (not) {
  ------------------
  |  Branch (4153:6): [True: 0, False: 18.6k]
  ------------------
 4154|      0|	  r = add_code_range_to_buf0(&(ccwork.mbuf), env, 0x80, ONIG_LAST_CODE_POINT, FALSE);
  ------------------
  |  |  317|      0|#define ONIG_LAST_CODE_POINT    (~((OnigCodePoint )0))
  ------------------
              	  r = add_code_range_to_buf0(&(ccwork.mbuf), env, 0x80, ONIG_LAST_CODE_POINT, FALSE);
  ------------------
  |  |   77|      0|# define FALSE   0
  ------------------
 4155|      0|	}
 4156|  18.6k|	else {
 4157|  18.6k|	  CClassNode ccascii;
 4158|  18.6k|	  initialize_cclass(&ccascii);
 4159|  18.6k|	  if (ONIGENC_MBC_MINLEN(env->enc) > 1) {
  ------------------
  |  |  367|  18.6k|#define ONIGENC_MBC_MINLEN(enc)               ((enc)->min_enc_len)
  ------------------
  |  Branch (4159:8): [True: 0, False: 18.6k]
  ------------------
 4160|      0|	    r = add_code_range(&(ccascii.mbuf), env, 0x00, 0x7F);
 4161|      0|	  }
 4162|  18.6k|	  else {
 4163|  18.6k|	    bitset_set_range(env, ccascii.bs, 0x00, 0x7F);
 4164|  18.6k|	    r = 0;
 4165|  18.6k|	  }
 4166|  18.6k|	  if (r == 0) {
  ------------------
  |  Branch (4166:8): [True: 18.6k, False: 0]
  ------------------
 4167|  18.6k|	    r = and_cclass(&ccwork, &ccascii, env);
 4168|  18.6k|	  }
 4169|  18.6k|	  if (IS_NOT_NULL(ccascii.mbuf)) bbuf_free(ccascii.mbuf);
  ------------------
  |  |  312|  18.6k|#define IS_NOT_NULL(p)                (((void*)(p)) != (void*)0)
  |  |  ------------------
  |  |  |  Branch (312:39): [True: 0, False: 18.6k]
  |  |  ------------------
  ------------------
 4170|  18.6k|	}
 4171|  18.6k|	if (r == 0) {
  ------------------
  |  Branch (4171:6): [True: 18.6k, False: 0]
  ------------------
 4172|  18.6k|	  r = or_cclass(cc, &ccwork, env);
 4173|  18.6k|	}
 4174|  18.6k|	if (IS_NOT_NULL(ccwork.mbuf)) bbuf_free(ccwork.mbuf);
  ------------------
  |  |  312|  18.6k|#define IS_NOT_NULL(p)                (((void*)(p)) != (void*)0)
  |  |  ------------------
  |  |  |  Branch (312:39): [True: 0, False: 18.6k]
  |  |  ------------------
  ------------------
 4175|  18.6k|      }
 4176|  18.6k|    }
 4177|      0|    else {
 4178|      0|      r = add_ctype_to_cc_by_range(cc, ctype, not, env, sb_out, ranges);
 4179|      0|    }
 4180|  18.6k|    return r;
 4181|  18.6k|  }
 4182|      0|  else if (r != ONIG_NO_SUPPORT_CONFIG) {
  ------------------
  |  |  629|      0|#define ONIG_NO_SUPPORT_CONFIG                                -2
  ------------------
  |  Branch (4182:12): [True: 0, False: 0]
  ------------------
 4183|      0|    return r;
 4184|      0|  }
 4185|       |
 4186|      0|  maxcode = ascii_range ? 0x80 : SINGLE_BYTE_SIZE;
  ------------------
  |  |  426|      0|#define SINGLE_BYTE_SIZE   (1 << BITS_PER_BYTE)
  |  |  ------------------
  |  |  |  |  425|      0|#define BITS_PER_BYTE      8
  |  |  ------------------
  ------------------
  |  Branch (4186:13): [True: 0, False: 0]
  ------------------
 4187|      0|  r = 0;
 4188|      0|  switch (ctype) {
 4189|      0|  case ONIGENC_CTYPE_ALPHA:
  ------------------
  |  |  295|      0|#define ONIGENC_CTYPE_ALPHA     1
  ------------------
  |  Branch (4189:3): [True: 0, False: 0]
  ------------------
 4190|      0|  case ONIGENC_CTYPE_BLANK:
  ------------------
  |  |  296|      0|#define ONIGENC_CTYPE_BLANK     2
  ------------------
  |  Branch (4190:3): [True: 0, False: 0]
  ------------------
 4191|      0|  case ONIGENC_CTYPE_CNTRL:
  ------------------
  |  |  297|      0|#define ONIGENC_CTYPE_CNTRL     3
  ------------------
  |  Branch (4191:3): [True: 0, False: 0]
  ------------------
 4192|      0|  case ONIGENC_CTYPE_DIGIT:
  ------------------
  |  |  298|      0|#define ONIGENC_CTYPE_DIGIT     4
  ------------------
  |  Branch (4192:3): [True: 0, False: 0]
  ------------------
 4193|      0|  case ONIGENC_CTYPE_LOWER:
  ------------------
  |  |  300|      0|#define ONIGENC_CTYPE_LOWER     6
  ------------------
  |  Branch (4193:3): [True: 0, False: 0]
  ------------------
 4194|      0|  case ONIGENC_CTYPE_PUNCT:
  ------------------
  |  |  302|      0|#define ONIGENC_CTYPE_PUNCT     8
  ------------------
  |  Branch (4194:3): [True: 0, False: 0]
  ------------------
 4195|      0|  case ONIGENC_CTYPE_SPACE:
  ------------------
  |  |  303|      0|#define ONIGENC_CTYPE_SPACE     9
  ------------------
  |  Branch (4195:3): [True: 0, False: 0]
  ------------------
 4196|      0|  case ONIGENC_CTYPE_UPPER:
  ------------------
  |  |  304|      0|#define ONIGENC_CTYPE_UPPER    10
  ------------------
  |  Branch (4196:3): [True: 0, False: 0]
  ------------------
 4197|      0|  case ONIGENC_CTYPE_XDIGIT:
  ------------------
  |  |  305|      0|#define ONIGENC_CTYPE_XDIGIT   11
  ------------------
  |  Branch (4197:3): [True: 0, False: 0]
  ------------------
 4198|      0|  case ONIGENC_CTYPE_ASCII:
  ------------------
  |  |  308|      0|#define ONIGENC_CTYPE_ASCII    14
  ------------------
  |  Branch (4198:3): [True: 0, False: 0]
  ------------------
 4199|      0|  case ONIGENC_CTYPE_ALNUM:
  ------------------
  |  |  307|      0|#define ONIGENC_CTYPE_ALNUM    13  /* alpha || digit */
  ------------------
  |  Branch (4199:3): [True: 0, False: 0]
  ------------------
 4200|      0|    if (not != 0) {
  ------------------
  |  Branch (4200:9): [True: 0, False: 0]
  ------------------
 4201|      0|      for (c = 0; c < SINGLE_BYTE_SIZE; c++) {
  ------------------
  |  |  426|      0|#define SINGLE_BYTE_SIZE   (1 << BITS_PER_BYTE)
  |  |  ------------------
  |  |  |  |  425|      0|#define BITS_PER_BYTE      8
  |  |  ------------------
  ------------------
  |  Branch (4201:19): [True: 0, False: 0]
  ------------------
 4202|      0|	if (! ONIGENC_IS_CODE_CTYPE(enc, (OnigCodePoint )c, ctype))
  ------------------
  |  |  375|      0|#define ONIGENC_IS_CODE_CTYPE(enc,code,ctype)  (enc)->is_code_ctype(code,ctype,enc)
  ------------------
  |  Branch (4202:6): [True: 0, False: 0]
  ------------------
 4203|      0|	  BITSET_SET_BIT_CHKDUP(cc->bs, c);
  ------------------
  |  |  176|      0|#define BITSET_SET_BIT_CHKDUP(bs, pos) do { \
  |  |  177|      0|  if (BITSET_AT(bs, pos)) CC_DUP_WARN(env, pos, pos); \
  |  |  ------------------
  |  |  |  |  448|      0|#define BITSET_AT(bs, pos)         (BS_ROOM(bs,pos) & BS_BIT(pos))
  |  |  |  |  ------------------
  |  |  |  |  |  |  445|      0|#define BS_ROOM(bs,pos)            (bs)[(int )(pos) / BITS_IN_ROOM]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  427|      0|#define BITS_IN_ROOM       ((int )sizeof(Bits) * BITS_PER_BYTE)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  425|      0|#define BITS_PER_BYTE      8
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |               #define BITSET_AT(bs, pos)         (BS_ROOM(bs,pos) & BS_BIT(pos))
  |  |  |  |  ------------------
  |  |  |  |  |  |  446|      0|#define BS_BIT(pos)                (1U << ((int )(pos) % BITS_IN_ROOM))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  427|      0|#define BITS_IN_ROOM       ((int )sizeof(Bits) * BITS_PER_BYTE)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  425|      0|#define BITS_PER_BYTE      8
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (448:36): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  178|      0|  BS_ROOM(bs, pos) |= BS_BIT(pos); \
  |  |  ------------------
  |  |  |  |  445|      0|#define BS_ROOM(bs,pos)            (bs)[(int )(pos) / BITS_IN_ROOM]
  |  |  |  |  ------------------
  |  |  |  |  |  |  427|      0|#define BITS_IN_ROOM       ((int )sizeof(Bits) * BITS_PER_BYTE)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  425|      0|#define BITS_PER_BYTE      8
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |                 BS_ROOM(bs, pos) |= BS_BIT(pos); \
  |  |  ------------------
  |  |  |  |  446|      0|#define BS_BIT(pos)                (1U << ((int )(pos) % BITS_IN_ROOM))
  |  |  |  |  ------------------
  |  |  |  |  |  |  427|      0|#define BITS_IN_ROOM       ((int )sizeof(Bits) * BITS_PER_BYTE)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  425|      0|#define BITS_PER_BYTE      8
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  179|      0|} while (0)
  |  |  ------------------
  |  |  |  Branch (179:10): [Folded - Ignored]
  |  |  ------------------
  ------------------
 4204|      0|      }
 4205|      0|      ADD_ALL_MULTI_BYTE_RANGE(enc, cc->mbuf);
  ------------------
  |  |  168|      0|#define ADD_ALL_MULTI_BYTE_RANGE(enc, mbuf) do {\
  |  |  169|      0|  if (! ONIGENC_IS_SINGLEBYTE(enc)) {\
  |  |  ------------------
  |  |  |  |  318|      0|#define ONIGENC_IS_SINGLEBYTE(enc)     (ONIGENC_MBC_MAXLEN(enc) == 1)
  |  |  |  |  ------------------
  |  |  |  |  |  |  365|      0|#define ONIGENC_MBC_MAXLEN(enc)               ((enc)->max_enc_len)
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  |  Branch (169:7): [True: 0, False: 0]
  |  |  ------------------
  |  |  170|      0|    r = SET_ALL_MULTI_BYTE_RANGE(enc, &(mbuf));\
  |  |  ------------------
  |  |  |  |  166|      0|  add_code_range_to_buf(pbuf, env, MBCODE_START_POS(enc), ONIG_LAST_CODE_POINT)
  |  |  |  |  ------------------
  |  |  |  |  |  |  163|      0|  (OnigCodePoint )(ONIGENC_MBC_MINLEN(enc) > 1 ? 0 : 0x80)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  367|      0|#define ONIGENC_MBC_MINLEN(enc)               ((enc)->min_enc_len)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (163:20): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |                 add_code_range_to_buf(pbuf, env, MBCODE_START_POS(enc), ONIG_LAST_CODE_POINT)
  |  |  |  |  ------------------
  |  |  |  |  |  |  317|      0|#define ONIG_LAST_CODE_POINT    (~((OnigCodePoint )0))
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  171|      0|    if (r) return r;\
  |  |  ------------------
  |  |  |  Branch (171:9): [True: 0, False: 0]
  |  |  ------------------
  |  |  172|      0|  }\
  |  |  173|      0|} while (0)
  |  |  ------------------
  |  |  |  Branch (173:10): [Folded - Ignored]
  |  |  ------------------
  ------------------
 4206|      0|    }
 4207|      0|    else {
 4208|      0|      for (c = 0; c < SINGLE_BYTE_SIZE; c++) {
  ------------------
  |  |  426|      0|#define SINGLE_BYTE_SIZE   (1 << BITS_PER_BYTE)
  |  |  ------------------
  |  |  |  |  425|      0|#define BITS_PER_BYTE      8
  |  |  ------------------
  ------------------
  |  Branch (4208:19): [True: 0, False: 0]
  ------------------
 4209|      0|	if (ONIGENC_IS_CODE_CTYPE(enc, (OnigCodePoint )c, ctype))
  ------------------
  |  |  375|      0|#define ONIGENC_IS_CODE_CTYPE(enc,code,ctype)  (enc)->is_code_ctype(code,ctype,enc)
  |  |  ------------------
  |  |  |  Branch (375:48): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 4210|      0|	  BITSET_SET_BIT_CHKDUP(cc->bs, c);
  ------------------
  |  |  176|      0|#define BITSET_SET_BIT_CHKDUP(bs, pos) do { \
  |  |  177|      0|  if (BITSET_AT(bs, pos)) CC_DUP_WARN(env, pos, pos); \
  |  |  ------------------
  |  |  |  |  448|      0|#define BITSET_AT(bs, pos)         (BS_ROOM(bs,pos) & BS_BIT(pos))
  |  |  |  |  ------------------
  |  |  |  |  |  |  445|      0|#define BS_ROOM(bs,pos)            (bs)[(int )(pos) / BITS_IN_ROOM]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  427|      0|#define BITS_IN_ROOM       ((int )sizeof(Bits) * BITS_PER_BYTE)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  425|      0|#define BITS_PER_BYTE      8
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |               #define BITSET_AT(bs, pos)         (BS_ROOM(bs,pos) & BS_BIT(pos))
  |  |  |  |  ------------------
  |  |  |  |  |  |  446|      0|#define BS_BIT(pos)                (1U << ((int )(pos) % BITS_IN_ROOM))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  427|      0|#define BITS_IN_ROOM       ((int )sizeof(Bits) * BITS_PER_BYTE)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  425|      0|#define BITS_PER_BYTE      8
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (448:36): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  178|      0|  BS_ROOM(bs, pos) |= BS_BIT(pos); \
  |  |  ------------------
  |  |  |  |  445|      0|#define BS_ROOM(bs,pos)            (bs)[(int )(pos) / BITS_IN_ROOM]
  |  |  |  |  ------------------
  |  |  |  |  |  |  427|      0|#define BITS_IN_ROOM       ((int )sizeof(Bits) * BITS_PER_BYTE)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  425|      0|#define BITS_PER_BYTE      8
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |                 BS_ROOM(bs, pos) |= BS_BIT(pos); \
  |  |  ------------------
  |  |  |  |  446|      0|#define BS_BIT(pos)                (1U << ((int )(pos) % BITS_IN_ROOM))
  |  |  |  |  ------------------
  |  |  |  |  |  |  427|      0|#define BITS_IN_ROOM       ((int )sizeof(Bits) * BITS_PER_BYTE)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  425|      0|#define BITS_PER_BYTE      8
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  179|      0|} while (0)
  |  |  ------------------
  |  |  |  Branch (179:10): [Folded - Ignored]
  |  |  ------------------
  ------------------
 4211|      0|      }
 4212|      0|    }
 4213|      0|    break;
 4214|       |
 4215|      0|  case ONIGENC_CTYPE_GRAPH:
  ------------------
  |  |  299|      0|#define ONIGENC_CTYPE_GRAPH     5
  ------------------
  |  Branch (4215:3): [True: 0, False: 0]
  ------------------
 4216|      0|  case ONIGENC_CTYPE_PRINT:
  ------------------
  |  |  301|      0|#define ONIGENC_CTYPE_PRINT     7
  ------------------
  |  Branch (4216:3): [True: 0, False: 0]
  ------------------
 4217|      0|    if (not != 0) {
  ------------------
  |  Branch (4217:9): [True: 0, False: 0]
  ------------------
 4218|      0|      for (c = 0; c < SINGLE_BYTE_SIZE; c++) {
  ------------------
  |  |  426|      0|#define SINGLE_BYTE_SIZE   (1 << BITS_PER_BYTE)
  |  |  ------------------
  |  |  |  |  425|      0|#define BITS_PER_BYTE      8
  |  |  ------------------
  ------------------
  |  Branch (4218:19): [True: 0, False: 0]
  ------------------
 4219|      0|	if (! ONIGENC_IS_CODE_CTYPE(enc, (OnigCodePoint )c, ctype)
  ------------------
  |  |  375|      0|#define ONIGENC_IS_CODE_CTYPE(enc,code,ctype)  (enc)->is_code_ctype(code,ctype,enc)
  ------------------
  |  Branch (4219:6): [True: 0, False: 0]
  ------------------
 4220|      0|	    || c >= maxcode)
  ------------------
  |  Branch (4220:9): [True: 0, False: 0]
  ------------------
 4221|      0|	  BITSET_SET_BIT_CHKDUP(cc->bs, c);
  ------------------
  |  |  176|      0|#define BITSET_SET_BIT_CHKDUP(bs, pos) do { \
  |  |  177|      0|  if (BITSET_AT(bs, pos)) CC_DUP_WARN(env, pos, pos); \
  |  |  ------------------
  |  |  |  |  448|      0|#define BITSET_AT(bs, pos)         (BS_ROOM(bs,pos) & BS_BIT(pos))
  |  |  |  |  ------------------
  |  |  |  |  |  |  445|      0|#define BS_ROOM(bs,pos)            (bs)[(int )(pos) / BITS_IN_ROOM]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  427|      0|#define BITS_IN_ROOM       ((int )sizeof(Bits) * BITS_PER_BYTE)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  425|      0|#define BITS_PER_BYTE      8
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |               #define BITSET_AT(bs, pos)         (BS_ROOM(bs,pos) & BS_BIT(pos))
  |  |  |  |  ------------------
  |  |  |  |  |  |  446|      0|#define BS_BIT(pos)                (1U << ((int )(pos) % BITS_IN_ROOM))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  427|      0|#define BITS_IN_ROOM       ((int )sizeof(Bits) * BITS_PER_BYTE)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  425|      0|#define BITS_PER_BYTE      8
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (448:36): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  178|      0|  BS_ROOM(bs, pos) |= BS_BIT(pos); \
  |  |  ------------------
  |  |  |  |  445|      0|#define BS_ROOM(bs,pos)            (bs)[(int )(pos) / BITS_IN_ROOM]
  |  |  |  |  ------------------
  |  |  |  |  |  |  427|      0|#define BITS_IN_ROOM       ((int )sizeof(Bits) * BITS_PER_BYTE)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  425|      0|#define BITS_PER_BYTE      8
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |                 BS_ROOM(bs, pos) |= BS_BIT(pos); \
  |  |  ------------------
  |  |  |  |  446|      0|#define BS_BIT(pos)                (1U << ((int )(pos) % BITS_IN_ROOM))
  |  |  |  |  ------------------
  |  |  |  |  |  |  427|      0|#define BITS_IN_ROOM       ((int )sizeof(Bits) * BITS_PER_BYTE)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  425|      0|#define BITS_PER_BYTE      8
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  179|      0|} while (0)
  |  |  ------------------
  |  |  |  Branch (179:10): [Folded - Ignored]
  |  |  ------------------
  ------------------
 4222|      0|      }
 4223|      0|      if (ascii_range)
  ------------------
  |  Branch (4223:11): [True: 0, False: 0]
  ------------------
 4224|      0|	ADD_ALL_MULTI_BYTE_RANGE(enc, cc->mbuf);
  ------------------
  |  |  168|      0|#define ADD_ALL_MULTI_BYTE_RANGE(enc, mbuf) do {\
  |  |  169|      0|  if (! ONIGENC_IS_SINGLEBYTE(enc)) {\
  |  |  ------------------
  |  |  |  |  318|      0|#define ONIGENC_IS_SINGLEBYTE(enc)     (ONIGENC_MBC_MAXLEN(enc) == 1)
  |  |  |  |  ------------------
  |  |  |  |  |  |  365|      0|#define ONIGENC_MBC_MAXLEN(enc)               ((enc)->max_enc_len)
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  |  Branch (169:7): [True: 0, False: 0]
  |  |  ------------------
  |  |  170|      0|    r = SET_ALL_MULTI_BYTE_RANGE(enc, &(mbuf));\
  |  |  ------------------
  |  |  |  |  166|      0|  add_code_range_to_buf(pbuf, env, MBCODE_START_POS(enc), ONIG_LAST_CODE_POINT)
  |  |  |  |  ------------------
  |  |  |  |  |  |  163|      0|  (OnigCodePoint )(ONIGENC_MBC_MINLEN(enc) > 1 ? 0 : 0x80)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  367|      0|#define ONIGENC_MBC_MINLEN(enc)               ((enc)->min_enc_len)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (163:20): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |                 add_code_range_to_buf(pbuf, env, MBCODE_START_POS(enc), ONIG_LAST_CODE_POINT)
  |  |  |  |  ------------------
  |  |  |  |  |  |  317|      0|#define ONIG_LAST_CODE_POINT    (~((OnigCodePoint )0))
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  171|      0|    if (r) return r;\
  |  |  ------------------
  |  |  |  Branch (171:9): [True: 0, False: 0]
  |  |  ------------------
  |  |  172|      0|  }\
  |  |  173|      0|} while (0)
  |  |  ------------------
  |  |  |  Branch (173:10): [Folded - Ignored]
  |  |  ------------------
  ------------------
 4225|      0|    }
 4226|      0|    else {
 4227|      0|      for (c = 0; c < maxcode; c++) {
  ------------------
  |  Branch (4227:19): [True: 0, False: 0]
  ------------------
 4228|      0|	if (ONIGENC_IS_CODE_CTYPE(enc, (OnigCodePoint )c, ctype))
  ------------------
  |  |  375|      0|#define ONIGENC_IS_CODE_CTYPE(enc,code,ctype)  (enc)->is_code_ctype(code,ctype,enc)
  |  |  ------------------
  |  |  |  Branch (375:48): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 4229|      0|	  BITSET_SET_BIT_CHKDUP(cc->bs, c);
  ------------------
  |  |  176|      0|#define BITSET_SET_BIT_CHKDUP(bs, pos) do { \
  |  |  177|      0|  if (BITSET_AT(bs, pos)) CC_DUP_WARN(env, pos, pos); \
  |  |  ------------------
  |  |  |  |  448|      0|#define BITSET_AT(bs, pos)         (BS_ROOM(bs,pos) & BS_BIT(pos))
  |  |  |  |  ------------------
  |  |  |  |  |  |  445|      0|#define BS_ROOM(bs,pos)            (bs)[(int )(pos) / BITS_IN_ROOM]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  427|      0|#define BITS_IN_ROOM       ((int )sizeof(Bits) * BITS_PER_BYTE)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  425|      0|#define BITS_PER_BYTE      8
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |               #define BITSET_AT(bs, pos)         (BS_ROOM(bs,pos) & BS_BIT(pos))
  |  |  |  |  ------------------
  |  |  |  |  |  |  446|      0|#define BS_BIT(pos)                (1U << ((int )(pos) % BITS_IN_ROOM))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  427|      0|#define BITS_IN_ROOM       ((int )sizeof(Bits) * BITS_PER_BYTE)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  425|      0|#define BITS_PER_BYTE      8
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (448:36): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  178|      0|  BS_ROOM(bs, pos) |= BS_BIT(pos); \
  |  |  ------------------
  |  |  |  |  445|      0|#define BS_ROOM(bs,pos)            (bs)[(int )(pos) / BITS_IN_ROOM]
  |  |  |  |  ------------------
  |  |  |  |  |  |  427|      0|#define BITS_IN_ROOM       ((int )sizeof(Bits) * BITS_PER_BYTE)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  425|      0|#define BITS_PER_BYTE      8
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |                 BS_ROOM(bs, pos) |= BS_BIT(pos); \
  |  |  ------------------
  |  |  |  |  446|      0|#define BS_BIT(pos)                (1U << ((int )(pos) % BITS_IN_ROOM))
  |  |  |  |  ------------------
  |  |  |  |  |  |  427|      0|#define BITS_IN_ROOM       ((int )sizeof(Bits) * BITS_PER_BYTE)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  425|      0|#define BITS_PER_BYTE      8
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  179|      0|} while (0)
  |  |  ------------------
  |  |  |  Branch (179:10): [Folded - Ignored]
  |  |  ------------------
  ------------------
 4230|      0|      }
 4231|      0|      if (! ascii_range)
  ------------------
  |  Branch (4231:11): [True: 0, False: 0]
  ------------------
 4232|      0|	ADD_ALL_MULTI_BYTE_RANGE(enc, cc->mbuf);
  ------------------
  |  |  168|      0|#define ADD_ALL_MULTI_BYTE_RANGE(enc, mbuf) do {\
  |  |  169|      0|  if (! ONIGENC_IS_SINGLEBYTE(enc)) {\
  |  |  ------------------
  |  |  |  |  318|      0|#define ONIGENC_IS_SINGLEBYTE(enc)     (ONIGENC_MBC_MAXLEN(enc) == 1)
  |  |  |  |  ------------------
  |  |  |  |  |  |  365|      0|#define ONIGENC_MBC_MAXLEN(enc)               ((enc)->max_enc_len)
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  |  Branch (169:7): [True: 0, False: 0]
  |  |  ------------------
  |  |  170|      0|    r = SET_ALL_MULTI_BYTE_RANGE(enc, &(mbuf));\
  |  |  ------------------
  |  |  |  |  166|      0|  add_code_range_to_buf(pbuf, env, MBCODE_START_POS(enc), ONIG_LAST_CODE_POINT)
  |  |  |  |  ------------------
  |  |  |  |  |  |  163|      0|  (OnigCodePoint )(ONIGENC_MBC_MINLEN(enc) > 1 ? 0 : 0x80)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  367|      0|#define ONIGENC_MBC_MINLEN(enc)               ((enc)->min_enc_len)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (163:20): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |                 add_code_range_to_buf(pbuf, env, MBCODE_START_POS(enc), ONIG_LAST_CODE_POINT)
  |  |  |  |  ------------------
  |  |  |  |  |  |  317|      0|#define ONIG_LAST_CODE_POINT    (~((OnigCodePoint )0))
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  171|      0|    if (r) return r;\
  |  |  ------------------
  |  |  |  Branch (171:9): [True: 0, False: 0]
  |  |  ------------------
  |  |  172|      0|  }\
  |  |  173|      0|} while (0)
  |  |  ------------------
  |  |  |  Branch (173:10): [Folded - Ignored]
  |  |  ------------------
  ------------------
 4233|      0|    }
 4234|      0|    break;
 4235|       |
 4236|      0|  case ONIGENC_CTYPE_WORD:
  ------------------
  |  |  306|      0|#define ONIGENC_CTYPE_WORD     12
  ------------------
  |  Branch (4236:3): [True: 0, False: 0]
  ------------------
 4237|      0|    if (not == 0) {
  ------------------
  |  Branch (4237:9): [True: 0, False: 0]
  ------------------
 4238|      0|      for (c = 0; c < maxcode; c++) {
  ------------------
  |  Branch (4238:19): [True: 0, False: 0]
  ------------------
 4239|      0|	if (ONIGENC_IS_CODE_WORD(enc, c)) BITSET_SET_BIT_CHKDUP(cc->bs, c);
  ------------------
  |  |  404|      0|        ONIGENC_IS_CODE_CTYPE(enc,code,ONIGENC_CTYPE_WORD)
  |  |  ------------------
  |  |  |  |  375|      0|#define ONIGENC_IS_CODE_CTYPE(enc,code,ctype)  (enc)->is_code_ctype(code,ctype,enc)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (375:48): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
              	if (ONIGENC_IS_CODE_WORD(enc, c)) BITSET_SET_BIT_CHKDUP(cc->bs, c);
  ------------------
  |  |  176|      0|#define BITSET_SET_BIT_CHKDUP(bs, pos) do { \
  |  |  177|      0|  if (BITSET_AT(bs, pos)) CC_DUP_WARN(env, pos, pos); \
  |  |  ------------------
  |  |  |  |  448|      0|#define BITSET_AT(bs, pos)         (BS_ROOM(bs,pos) & BS_BIT(pos))
  |  |  |  |  ------------------
  |  |  |  |  |  |  445|      0|#define BS_ROOM(bs,pos)            (bs)[(int )(pos) / BITS_IN_ROOM]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  427|      0|#define BITS_IN_ROOM       ((int )sizeof(Bits) * BITS_PER_BYTE)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  425|      0|#define BITS_PER_BYTE      8
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |               #define BITSET_AT(bs, pos)         (BS_ROOM(bs,pos) & BS_BIT(pos))
  |  |  |  |  ------------------
  |  |  |  |  |  |  446|      0|#define BS_BIT(pos)                (1U << ((int )(pos) % BITS_IN_ROOM))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  427|      0|#define BITS_IN_ROOM       ((int )sizeof(Bits) * BITS_PER_BYTE)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  425|      0|#define BITS_PER_BYTE      8
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (448:36): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  178|      0|  BS_ROOM(bs, pos) |= BS_BIT(pos); \
  |  |  ------------------
  |  |  |  |  445|      0|#define BS_ROOM(bs,pos)            (bs)[(int )(pos) / BITS_IN_ROOM]
  |  |  |  |  ------------------
  |  |  |  |  |  |  427|      0|#define BITS_IN_ROOM       ((int )sizeof(Bits) * BITS_PER_BYTE)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  425|      0|#define BITS_PER_BYTE      8
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |                 BS_ROOM(bs, pos) |= BS_BIT(pos); \
  |  |  ------------------
  |  |  |  |  446|      0|#define BS_BIT(pos)                (1U << ((int )(pos) % BITS_IN_ROOM))
  |  |  |  |  ------------------
  |  |  |  |  |  |  427|      0|#define BITS_IN_ROOM       ((int )sizeof(Bits) * BITS_PER_BYTE)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  425|      0|#define BITS_PER_BYTE      8
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  179|      0|} while (0)
  |  |  ------------------
  |  |  |  Branch (179:10): [Folded - Ignored]
  |  |  ------------------
  ------------------
 4240|      0|      }
 4241|      0|      if (! ascii_range)
  ------------------
  |  Branch (4241:11): [True: 0, False: 0]
  ------------------
 4242|      0|	ADD_ALL_MULTI_BYTE_RANGE(enc, cc->mbuf);
  ------------------
  |  |  168|      0|#define ADD_ALL_MULTI_BYTE_RANGE(enc, mbuf) do {\
  |  |  169|      0|  if (! ONIGENC_IS_SINGLEBYTE(enc)) {\
  |  |  ------------------
  |  |  |  |  318|      0|#define ONIGENC_IS_SINGLEBYTE(enc)     (ONIGENC_MBC_MAXLEN(enc) == 1)
  |  |  |  |  ------------------
  |  |  |  |  |  |  365|      0|#define ONIGENC_MBC_MAXLEN(enc)               ((enc)->max_enc_len)
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  |  Branch (169:7): [True: 0, False: 0]
  |  |  ------------------
  |  |  170|      0|    r = SET_ALL_MULTI_BYTE_RANGE(enc, &(mbuf));\
  |  |  ------------------
  |  |  |  |  166|      0|  add_code_range_to_buf(pbuf, env, MBCODE_START_POS(enc), ONIG_LAST_CODE_POINT)
  |  |  |  |  ------------------
  |  |  |  |  |  |  163|      0|  (OnigCodePoint )(ONIGENC_MBC_MINLEN(enc) > 1 ? 0 : 0x80)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  367|      0|#define ONIGENC_MBC_MINLEN(enc)               ((enc)->min_enc_len)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (163:20): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |                 add_code_range_to_buf(pbuf, env, MBCODE_START_POS(enc), ONIG_LAST_CODE_POINT)
  |  |  |  |  ------------------
  |  |  |  |  |  |  317|      0|#define ONIG_LAST_CODE_POINT    (~((OnigCodePoint )0))
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  171|      0|    if (r) return r;\
  |  |  ------------------
  |  |  |  Branch (171:9): [True: 0, False: 0]
  |  |  ------------------
  |  |  172|      0|  }\
  |  |  173|      0|} while (0)
  |  |  ------------------
  |  |  |  Branch (173:10): [Folded - Ignored]
  |  |  ------------------
  ------------------
 4243|      0|    }
 4244|      0|    else {
 4245|      0|      for (c = 0; c < SINGLE_BYTE_SIZE; c++) {
  ------------------
  |  |  426|      0|#define SINGLE_BYTE_SIZE   (1 << BITS_PER_BYTE)
  |  |  ------------------
  |  |  |  |  425|      0|#define BITS_PER_BYTE      8
  |  |  ------------------
  ------------------
  |  Branch (4245:19): [True: 0, False: 0]
  ------------------
 4246|      0|	if ((ONIGENC_CODE_TO_MBCLEN(enc, c) > 0) /* check invalid code point */
  ------------------
  |  |  370|      0|#define ONIGENC_CODE_TO_MBCLEN(enc,code)       (enc)->code_to_mbclen(code,enc)
  ------------------
  |  Branch (4246:6): [True: 0, False: 0]
  ------------------
 4247|      0|	    && (! ONIGENC_IS_CODE_WORD(enc, c) || c >= maxcode))
  ------------------
  |  |  404|      0|        ONIGENC_IS_CODE_CTYPE(enc,code,ONIGENC_CTYPE_WORD)
  |  |  ------------------
  |  |  |  |  375|      0|#define ONIGENC_IS_CODE_CTYPE(enc,code,ctype)  (enc)->is_code_ctype(code,ctype,enc)
  |  |  ------------------
  ------------------
  |  Branch (4247:10): [True: 0, False: 0]
  |  Branch (4247:44): [True: 0, False: 0]
  ------------------
 4248|      0|	  BITSET_SET_BIT_CHKDUP(cc->bs, c);
  ------------------
  |  |  176|      0|#define BITSET_SET_BIT_CHKDUP(bs, pos) do { \
  |  |  177|      0|  if (BITSET_AT(bs, pos)) CC_DUP_WARN(env, pos, pos); \
  |  |  ------------------
  |  |  |  |  448|      0|#define BITSET_AT(bs, pos)         (BS_ROOM(bs,pos) & BS_BIT(pos))
  |  |  |  |  ------------------
  |  |  |  |  |  |  445|      0|#define BS_ROOM(bs,pos)            (bs)[(int )(pos) / BITS_IN_ROOM]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  427|      0|#define BITS_IN_ROOM       ((int )sizeof(Bits) * BITS_PER_BYTE)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  425|      0|#define BITS_PER_BYTE      8
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |               #define BITSET_AT(bs, pos)         (BS_ROOM(bs,pos) & BS_BIT(pos))
  |  |  |  |  ------------------
  |  |  |  |  |  |  446|      0|#define BS_BIT(pos)                (1U << ((int )(pos) % BITS_IN_ROOM))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  427|      0|#define BITS_IN_ROOM       ((int )sizeof(Bits) * BITS_PER_BYTE)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  425|      0|#define BITS_PER_BYTE      8
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (448:36): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  178|      0|  BS_ROOM(bs, pos) |= BS_BIT(pos); \
  |  |  ------------------
  |  |  |  |  445|      0|#define BS_ROOM(bs,pos)            (bs)[(int )(pos) / BITS_IN_ROOM]
  |  |  |  |  ------------------
  |  |  |  |  |  |  427|      0|#define BITS_IN_ROOM       ((int )sizeof(Bits) * BITS_PER_BYTE)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  425|      0|#define BITS_PER_BYTE      8
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |                 BS_ROOM(bs, pos) |= BS_BIT(pos); \
  |  |  ------------------
  |  |  |  |  446|      0|#define BS_BIT(pos)                (1U << ((int )(pos) % BITS_IN_ROOM))
  |  |  |  |  ------------------
  |  |  |  |  |  |  427|      0|#define BITS_IN_ROOM       ((int )sizeof(Bits) * BITS_PER_BYTE)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  425|      0|#define BITS_PER_BYTE      8
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  179|      0|} while (0)
  |  |  ------------------
  |  |  |  Branch (179:10): [Folded - Ignored]
  |  |  ------------------
  ------------------
 4249|      0|      }
 4250|      0|      if (ascii_range)
  ------------------
  |  Branch (4250:11): [True: 0, False: 0]
  ------------------
 4251|      0|	ADD_ALL_MULTI_BYTE_RANGE(enc, cc->mbuf);
  ------------------
  |  |  168|      0|#define ADD_ALL_MULTI_BYTE_RANGE(enc, mbuf) do {\
  |  |  169|      0|  if (! ONIGENC_IS_SINGLEBYTE(enc)) {\
  |  |  ------------------
  |  |  |  |  318|      0|#define ONIGENC_IS_SINGLEBYTE(enc)     (ONIGENC_MBC_MAXLEN(enc) == 1)
  |  |  |  |  ------------------
  |  |  |  |  |  |  365|      0|#define ONIGENC_MBC_MAXLEN(enc)               ((enc)->max_enc_len)
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  |  Branch (169:7): [True: 0, False: 0]
  |  |  ------------------
  |  |  170|      0|    r = SET_ALL_MULTI_BYTE_RANGE(enc, &(mbuf));\
  |  |  ------------------
  |  |  |  |  166|      0|  add_code_range_to_buf(pbuf, env, MBCODE_START_POS(enc), ONIG_LAST_CODE_POINT)
  |  |  |  |  ------------------
  |  |  |  |  |  |  163|      0|  (OnigCodePoint )(ONIGENC_MBC_MINLEN(enc) > 1 ? 0 : 0x80)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  367|      0|#define ONIGENC_MBC_MINLEN(enc)               ((enc)->min_enc_len)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (163:20): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |                 add_code_range_to_buf(pbuf, env, MBCODE_START_POS(enc), ONIG_LAST_CODE_POINT)
  |  |  |  |  ------------------
  |  |  |  |  |  |  317|      0|#define ONIG_LAST_CODE_POINT    (~((OnigCodePoint )0))
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  171|      0|    if (r) return r;\
  |  |  ------------------
  |  |  |  Branch (171:9): [True: 0, False: 0]
  |  |  ------------------
  |  |  172|      0|  }\
  |  |  173|      0|} while (0)
  |  |  ------------------
  |  |  |  Branch (173:10): [Folded - Ignored]
  |  |  ------------------
  ------------------
 4252|      0|    }
 4253|      0|    break;
 4254|       |
 4255|      0|  default:
  ------------------
  |  Branch (4255:3): [True: 0, False: 0]
  ------------------
 4256|      0|    return ONIGERR_PARSER_BUG;
  ------------------
  |  |  634|      0|#define ONIGERR_PARSER_BUG                                    -11
  ------------------
 4257|      0|    break;
 4258|      0|  }
 4259|       |
 4260|      0|  return r;
 4261|      0|}
regparse.c:add_ctype_to_cc_by_range:
 4067|  18.6k|{
 4068|  18.6k|  int i, r;
 4069|  18.6k|  OnigCodePoint j;
 4070|       |
 4071|  18.6k|  int n = ONIGENC_CODE_RANGE_NUM(mbr);
  ------------------
  |  |  139|  18.6k|#define ONIGENC_CODE_RANGE_NUM(range)     ((int )range[0])
  ------------------
 4072|       |
 4073|  18.6k|  if (not == 0) {
  ------------------
  |  Branch (4073:7): [True: 18.6k, False: 0]
  ------------------
 4074|  50.1k|    for (i = 0; i < n; i++) {
  ------------------
  |  Branch (4074:17): [True: 50.1k, False: 0]
  ------------------
 4075|  50.1k|      for (j = ONIGENC_CODE_RANGE_FROM(mbr, i);
  ------------------
  |  |  140|  50.1k|#define ONIGENC_CODE_RANGE_FROM(range,i)  range[((i)*2) + 1]
  ------------------
 4076|   185k|	  j <= ONIGENC_CODE_RANGE_TO(mbr, i); j++) {
  ------------------
  |  |  141|   185k|#define ONIGENC_CODE_RANGE_TO(range,i)    range[((i)*2) + 2]
  ------------------
  |  Branch (4076:4): [True: 153k, False: 31.5k]
  ------------------
 4077|   153k|	if (j >= sb_out) {
  ------------------
  |  Branch (4077:6): [True: 18.6k, False: 134k]
  ------------------
 4078|  18.6k|	  if (j > ONIGENC_CODE_RANGE_FROM(mbr, i)) {
  ------------------
  |  |  140|  18.6k|#define ONIGENC_CODE_RANGE_FROM(range,i)  range[((i)*2) + 1]
  ------------------
  |  Branch (4078:8): [True: 0, False: 18.6k]
  ------------------
 4079|      0|	    r = add_code_range_to_buf(&(cc->mbuf), env, j,
 4080|      0|				      ONIGENC_CODE_RANGE_TO(mbr, i));
  ------------------
  |  |  141|      0|#define ONIGENC_CODE_RANGE_TO(range,i)    range[((i)*2) + 2]
  ------------------
 4081|      0|	    if (r != 0) return r;
  ------------------
  |  Branch (4081:10): [True: 0, False: 0]
  ------------------
 4082|      0|	    i++;
 4083|      0|	  }
 4084|       |
 4085|  18.6k|	  goto sb_end;
 4086|  18.6k|	}
 4087|   134k|	BITSET_SET_BIT_CHKDUP(cc->bs, j);
  ------------------
  |  |  176|   134k|#define BITSET_SET_BIT_CHKDUP(bs, pos) do { \
  |  |  177|   134k|  if (BITSET_AT(bs, pos)) CC_DUP_WARN(env, pos, pos); \
  |  |  ------------------
  |  |  |  |  448|   134k|#define BITSET_AT(bs, pos)         (BS_ROOM(bs,pos) & BS_BIT(pos))
  |  |  |  |  ------------------
  |  |  |  |  |  |  445|   134k|#define BS_ROOM(bs,pos)            (bs)[(int )(pos) / BITS_IN_ROOM]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  427|   134k|#define BITS_IN_ROOM       ((int )sizeof(Bits) * BITS_PER_BYTE)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  425|   134k|#define BITS_PER_BYTE      8
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |               #define BITSET_AT(bs, pos)         (BS_ROOM(bs,pos) & BS_BIT(pos))
  |  |  |  |  ------------------
  |  |  |  |  |  |  446|   134k|#define BS_BIT(pos)                (1U << ((int )(pos) % BITS_IN_ROOM))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  427|   134k|#define BITS_IN_ROOM       ((int )sizeof(Bits) * BITS_PER_BYTE)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  425|   134k|#define BITS_PER_BYTE      8
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (448:36): [True: 0, False: 134k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  178|   134k|  BS_ROOM(bs, pos) |= BS_BIT(pos); \
  |  |  ------------------
  |  |  |  |  445|   134k|#define BS_ROOM(bs,pos)            (bs)[(int )(pos) / BITS_IN_ROOM]
  |  |  |  |  ------------------
  |  |  |  |  |  |  427|   134k|#define BITS_IN_ROOM       ((int )sizeof(Bits) * BITS_PER_BYTE)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  425|   134k|#define BITS_PER_BYTE      8
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |                 BS_ROOM(bs, pos) |= BS_BIT(pos); \
  |  |  ------------------
  |  |  |  |  446|   134k|#define BS_BIT(pos)                (1U << ((int )(pos) % BITS_IN_ROOM))
  |  |  |  |  ------------------
  |  |  |  |  |  |  427|   134k|#define BITS_IN_ROOM       ((int )sizeof(Bits) * BITS_PER_BYTE)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  425|   134k|#define BITS_PER_BYTE      8
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  179|   134k|} while (0)
  |  |  ------------------
  |  |  |  Branch (179:10): [Folded - Ignored]
  |  |  ------------------
  ------------------
 4088|   134k|      }
 4089|  50.1k|    }
 4090|       |
 4091|  18.6k|  sb_end:
 4092|   484k|    for ( ; i < n; i++) {
  ------------------
  |  Branch (4092:13): [True: 465k, False: 18.6k]
  ------------------
 4093|   465k|      r = add_code_range_to_buf(&(cc->mbuf), env,
 4094|   465k|                                ONIGENC_CODE_RANGE_FROM(mbr, i),
  ------------------
  |  |  140|   465k|#define ONIGENC_CODE_RANGE_FROM(range,i)  range[((i)*2) + 1]
  ------------------
 4095|   465k|                                ONIGENC_CODE_RANGE_TO(mbr, i));
  ------------------
  |  |  141|   465k|#define ONIGENC_CODE_RANGE_TO(range,i)    range[((i)*2) + 2]
  ------------------
 4096|   465k|      if (r != 0) return r;
  ------------------
  |  Branch (4096:11): [True: 0, False: 465k]
  ------------------
 4097|   465k|    }
 4098|  18.6k|  }
 4099|      0|  else {
 4100|      0|    OnigCodePoint prev = 0;
 4101|       |
 4102|      0|    for (i = 0; i < n; i++) {
  ------------------
  |  Branch (4102:17): [True: 0, False: 0]
  ------------------
 4103|      0|      for (j = prev;
 4104|      0|	   j < ONIGENC_CODE_RANGE_FROM(mbr, i); j++) {
  ------------------
  |  |  140|      0|#define ONIGENC_CODE_RANGE_FROM(range,i)  range[((i)*2) + 1]
  ------------------
  |  Branch (4104:5): [True: 0, False: 0]
  ------------------
 4105|      0|	if (j >= sb_out) {
  ------------------
  |  Branch (4105:6): [True: 0, False: 0]
  ------------------
 4106|      0|	  goto sb_end2;
 4107|      0|	}
 4108|      0|	BITSET_SET_BIT_CHKDUP(cc->bs, j);
  ------------------
  |  |  176|      0|#define BITSET_SET_BIT_CHKDUP(bs, pos) do { \
  |  |  177|      0|  if (BITSET_AT(bs, pos)) CC_DUP_WARN(env, pos, pos); \
  |  |  ------------------
  |  |  |  |  448|      0|#define BITSET_AT(bs, pos)         (BS_ROOM(bs,pos) & BS_BIT(pos))
  |  |  |  |  ------------------
  |  |  |  |  |  |  445|      0|#define BS_ROOM(bs,pos)            (bs)[(int )(pos) / BITS_IN_ROOM]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  427|      0|#define BITS_IN_ROOM       ((int )sizeof(Bits) * BITS_PER_BYTE)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  425|      0|#define BITS_PER_BYTE      8
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |               #define BITSET_AT(bs, pos)         (BS_ROOM(bs,pos) & BS_BIT(pos))
  |  |  |  |  ------------------
  |  |  |  |  |  |  446|      0|#define BS_BIT(pos)                (1U << ((int )(pos) % BITS_IN_ROOM))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  427|      0|#define BITS_IN_ROOM       ((int )sizeof(Bits) * BITS_PER_BYTE)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  425|      0|#define BITS_PER_BYTE      8
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (448:36): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  178|      0|  BS_ROOM(bs, pos) |= BS_BIT(pos); \
  |  |  ------------------
  |  |  |  |  445|      0|#define BS_ROOM(bs,pos)            (bs)[(int )(pos) / BITS_IN_ROOM]
  |  |  |  |  ------------------
  |  |  |  |  |  |  427|      0|#define BITS_IN_ROOM       ((int )sizeof(Bits) * BITS_PER_BYTE)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  425|      0|#define BITS_PER_BYTE      8
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |                 BS_ROOM(bs, pos) |= BS_BIT(pos); \
  |  |  ------------------
  |  |  |  |  446|      0|#define BS_BIT(pos)                (1U << ((int )(pos) % BITS_IN_ROOM))
  |  |  |  |  ------------------
  |  |  |  |  |  |  427|      0|#define BITS_IN_ROOM       ((int )sizeof(Bits) * BITS_PER_BYTE)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  425|      0|#define BITS_PER_BYTE      8
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  179|      0|} while (0)
  |  |  ------------------
  |  |  |  Branch (179:10): [Folded - Ignored]
  |  |  ------------------
  ------------------
 4109|      0|      }
 4110|      0|      prev = ONIGENC_CODE_RANGE_TO(mbr, i) + 1;
  ------------------
  |  |  141|      0|#define ONIGENC_CODE_RANGE_TO(range,i)    range[((i)*2) + 2]
  ------------------
 4111|      0|    }
 4112|      0|    for (j = prev; j < sb_out; j++) {
  ------------------
  |  Branch (4112:20): [True: 0, False: 0]
  ------------------
 4113|      0|      BITSET_SET_BIT_CHKDUP(cc->bs, j);
  ------------------
  |  |  176|      0|#define BITSET_SET_BIT_CHKDUP(bs, pos) do { \
  |  |  177|      0|  if (BITSET_AT(bs, pos)) CC_DUP_WARN(env, pos, pos); \
  |  |  ------------------
  |  |  |  |  448|      0|#define BITSET_AT(bs, pos)         (BS_ROOM(bs,pos) & BS_BIT(pos))
  |  |  |  |  ------------------
  |  |  |  |  |  |  445|      0|#define BS_ROOM(bs,pos)            (bs)[(int )(pos) / BITS_IN_ROOM]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  427|      0|#define BITS_IN_ROOM       ((int )sizeof(Bits) * BITS_PER_BYTE)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  425|      0|#define BITS_PER_BYTE      8
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |               #define BITSET_AT(bs, pos)         (BS_ROOM(bs,pos) & BS_BIT(pos))
  |  |  |  |  ------------------
  |  |  |  |  |  |  446|      0|#define BS_BIT(pos)                (1U << ((int )(pos) % BITS_IN_ROOM))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  427|      0|#define BITS_IN_ROOM       ((int )sizeof(Bits) * BITS_PER_BYTE)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  425|      0|#define BITS_PER_BYTE      8
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (448:36): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  178|      0|  BS_ROOM(bs, pos) |= BS_BIT(pos); \
  |  |  ------------------
  |  |  |  |  445|      0|#define BS_ROOM(bs,pos)            (bs)[(int )(pos) / BITS_IN_ROOM]
  |  |  |  |  ------------------
  |  |  |  |  |  |  427|      0|#define BITS_IN_ROOM       ((int )sizeof(Bits) * BITS_PER_BYTE)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  425|      0|#define BITS_PER_BYTE      8
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |                 BS_ROOM(bs, pos) |= BS_BIT(pos); \
  |  |  ------------------
  |  |  |  |  446|      0|#define BS_BIT(pos)                (1U << ((int )(pos) % BITS_IN_ROOM))
  |  |  |  |  ------------------
  |  |  |  |  |  |  427|      0|#define BITS_IN_ROOM       ((int )sizeof(Bits) * BITS_PER_BYTE)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  425|      0|#define BITS_PER_BYTE      8
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  179|      0|} while (0)
  |  |  ------------------
  |  |  |  Branch (179:10): [Folded - Ignored]
  |  |  ------------------
  ------------------
 4114|      0|    }
 4115|       |
 4116|      0|  sb_end2:
 4117|      0|    prev = sb_out;
 4118|       |
 4119|      0|    for (i = 0; i < n; i++) {
  ------------------
  |  Branch (4119:17): [True: 0, False: 0]
  ------------------
 4120|      0|      if (prev < ONIGENC_CODE_RANGE_FROM(mbr, i)) {
  ------------------
  |  |  140|      0|#define ONIGENC_CODE_RANGE_FROM(range,i)  range[((i)*2) + 1]
  ------------------
  |  Branch (4120:11): [True: 0, False: 0]
  ------------------
 4121|      0|	r = add_code_range_to_buf(&(cc->mbuf), env, prev,
 4122|      0|                                  ONIGENC_CODE_RANGE_FROM(mbr, i) - 1);
  ------------------
  |  |  140|      0|#define ONIGENC_CODE_RANGE_FROM(range,i)  range[((i)*2) + 1]
  ------------------
 4123|      0|	if (r != 0) return r;
  ------------------
  |  Branch (4123:6): [True: 0, False: 0]
  ------------------
 4124|      0|      }
 4125|      0|      prev = ONIGENC_CODE_RANGE_TO(mbr, i) + 1;
  ------------------
  |  |  141|      0|#define ONIGENC_CODE_RANGE_TO(range,i)    range[((i)*2) + 2]
  ------------------
 4126|      0|    }
 4127|      0|    if (prev < 0x7fffffff) {
  ------------------
  |  Branch (4127:9): [True: 0, False: 0]
  ------------------
 4128|      0|      r = add_code_range_to_buf(&(cc->mbuf), env, prev, 0x7fffffff);
 4129|      0|      if (r != 0) return r;
  ------------------
  |  Branch (4129:11): [True: 0, False: 0]
  ------------------
 4130|      0|    }
 4131|      0|  }
 4132|       |
 4133|  18.6k|  return 0;
 4134|  18.6k|}
regparse.c:and_cclass:
 1978|  18.6k|{
 1979|  18.6k|  OnigEncoding enc = env->enc;
 1980|  18.6k|  int r, not1, not2;
 1981|  18.6k|  BBuf *buf1, *buf2, *pbuf = 0;
 1982|  18.6k|  BitSetRef bsr1, bsr2;
 1983|  18.6k|  BitSet bs1, bs2;
 1984|       |
 1985|  18.6k|  not1 = IS_NCCLASS_NOT(dest);
  ------------------
  |  |  809|  18.6k|#define IS_NCCLASS_NOT(nd)      IS_NCCLASS_FLAG_ON(nd, FLAG_NCCLASS_NOT)
  |  |  ------------------
  |  |  |  |  802|  18.6k|#define IS_NCCLASS_FLAG_ON(cc,flag) ((NCCLASS_FLAGS(cc) & (flag)) != 0)
  |  |  |  |  ------------------
  |  |  |  |  |  |  799|  18.6k|#define NCCLASS_FLAGS(cc)           ((cc)->flags)
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1986|  18.6k|  bsr1 = dest->bs;
 1987|  18.6k|  buf1 = dest->mbuf;
 1988|  18.6k|  not2 = IS_NCCLASS_NOT(cc);
  ------------------
  |  |  809|  18.6k|#define IS_NCCLASS_NOT(nd)      IS_NCCLASS_FLAG_ON(nd, FLAG_NCCLASS_NOT)
  |  |  ------------------
  |  |  |  |  802|  18.6k|#define IS_NCCLASS_FLAG_ON(cc,flag) ((NCCLASS_FLAGS(cc) & (flag)) != 0)
  |  |  |  |  ------------------
  |  |  |  |  |  |  799|  18.6k|#define NCCLASS_FLAGS(cc)           ((cc)->flags)
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1989|  18.6k|  bsr2 = cc->bs;
 1990|  18.6k|  buf2 = cc->mbuf;
 1991|       |
 1992|  18.6k|  if (not1 != 0) {
  ------------------
  |  Branch (1992:7): [True: 0, False: 18.6k]
  ------------------
 1993|      0|    bitset_invert_to(bsr1, bs1);
 1994|      0|    bsr1 = bs1;
 1995|      0|  }
 1996|  18.6k|  if (not2 != 0) {
  ------------------
  |  Branch (1996:7): [True: 0, False: 18.6k]
  ------------------
 1997|      0|    bitset_invert_to(bsr2, bs2);
 1998|      0|    bsr2 = bs2;
 1999|      0|  }
 2000|  18.6k|  bitset_and(bsr1, bsr2);
 2001|  18.6k|  if (bsr1 != dest->bs) {
  ------------------
  |  Branch (2001:7): [True: 0, False: 18.6k]
  ------------------
 2002|      0|    bitset_copy(dest->bs, bsr1);
 2003|      0|    bsr1 = dest->bs;
 2004|      0|  }
 2005|  18.6k|  if (not1 != 0) {
  ------------------
  |  Branch (2005:7): [True: 0, False: 18.6k]
  ------------------
 2006|      0|    bitset_invert(dest->bs);
 2007|      0|  }
 2008|       |
 2009|  18.6k|  if (! ONIGENC_IS_SINGLEBYTE(enc)) {
  ------------------
  |  |  318|  18.6k|#define ONIGENC_IS_SINGLEBYTE(enc)     (ONIGENC_MBC_MAXLEN(enc) == 1)
  |  |  ------------------
  |  |  |  |  365|  18.6k|#define ONIGENC_MBC_MAXLEN(enc)               ((enc)->max_enc_len)
  |  |  ------------------
  ------------------
  |  Branch (2009:7): [True: 18.6k, False: 0]
  ------------------
 2010|  18.6k|    if (not1 != 0 && not2 != 0) {
  ------------------
  |  Branch (2010:9): [True: 0, False: 18.6k]
  |  Branch (2010:22): [True: 0, False: 0]
  ------------------
 2011|      0|      r = or_code_range_buf(enc, buf1, 0, buf2, 0, &pbuf, env);
 2012|      0|    }
 2013|  18.6k|    else {
 2014|  18.6k|      r = and_code_range_buf(buf1, not1, buf2, not2, &pbuf, env);
 2015|  18.6k|      if (r == 0 && not1 != 0) {
  ------------------
  |  Branch (2015:11): [True: 18.6k, False: 0]
  |  Branch (2015:21): [True: 0, False: 18.6k]
  ------------------
 2016|      0|	BBuf *tbuf = 0;
 2017|      0|	r = not_code_range_buf(enc, pbuf, &tbuf, env);
 2018|      0|	bbuf_free(pbuf);
 2019|      0|	pbuf = tbuf;
 2020|      0|      }
 2021|  18.6k|    }
 2022|  18.6k|    if (r != 0) {
  ------------------
  |  Branch (2022:9): [True: 0, False: 18.6k]
  ------------------
 2023|      0|      bbuf_free(pbuf);
 2024|      0|      return r;
 2025|      0|    }
 2026|       |
 2027|  18.6k|    dest->mbuf = pbuf;
 2028|  18.6k|    bbuf_free(buf1);
 2029|  18.6k|    return r;
 2030|  18.6k|  }
 2031|      0|  return 0;
 2032|  18.6k|}
regparse.c:bitset_and:
  225|  18.6k|{
  226|  18.6k|  int i;
  227|   167k|  for (i = 0; i < BITSET_SIZE; i++) { dest[i] &= bs[i]; }
  ------------------
  |  |  428|   167k|#define BITSET_SIZE        (SINGLE_BYTE_SIZE / BITS_IN_ROOM)
  |  |  ------------------
  |  |  |  |  426|   167k|#define SINGLE_BYTE_SIZE   (1 << BITS_PER_BYTE)
  |  |  |  |  ------------------
  |  |  |  |  |  |  425|   167k|#define BITS_PER_BYTE      8
  |  |  |  |  ------------------
  |  |  ------------------
  |  |               #define BITSET_SIZE        (SINGLE_BYTE_SIZE / BITS_IN_ROOM)
  |  |  ------------------
  |  |  |  |  427|   167k|#define BITS_IN_ROOM       ((int )sizeof(Bits) * BITS_PER_BYTE)
  |  |  |  |  ------------------
  |  |  |  |  |  |  425|   167k|#define BITS_PER_BYTE      8
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  |  Branch (227:15): [True: 149k, False: 18.6k]
  ------------------
  228|  18.6k|}
regparse.c:or_code_range_buf:
 1825|  18.6k|{
 1826|  18.6k|  int r;
 1827|  18.6k|  OnigCodePoint i, n1, *data1;
 1828|  18.6k|  OnigCodePoint from, to;
 1829|       |
 1830|  18.6k|  *pbuf = (BBuf* )NULL;
 1831|  18.6k|  if (IS_NULL(bbuf1) && IS_NULL(bbuf2)) {
  ------------------
  |  |  311|  37.2k|#define IS_NULL(p)                    (((void*)(p)) == (void*)0)
  |  |  ------------------
  |  |  |  Branch (311:39): [True: 18.6k, False: 0]
  |  |  ------------------
  ------------------
                if (IS_NULL(bbuf1) && IS_NULL(bbuf2)) {
  ------------------
  |  |  311|  18.6k|#define IS_NULL(p)                    (((void*)(p)) == (void*)0)
  |  |  ------------------
  |  |  |  Branch (311:39): [True: 18.6k, False: 0]
  |  |  ------------------
  ------------------
 1832|  18.6k|    if (not1 != 0 || not2 != 0)
  ------------------
  |  Branch (1832:9): [True: 0, False: 18.6k]
  |  Branch (1832:22): [True: 0, False: 18.6k]
  ------------------
 1833|      0|      return SET_ALL_MULTI_BYTE_RANGE(enc, pbuf);
  ------------------
  |  |  166|      0|  add_code_range_to_buf(pbuf, env, MBCODE_START_POS(enc), ONIG_LAST_CODE_POINT)
  |  |  ------------------
  |  |  |  |  163|      0|  (OnigCodePoint )(ONIGENC_MBC_MINLEN(enc) > 1 ? 0 : 0x80)
  |  |  |  |  ------------------
  |  |  |  |  |  |  367|      0|#define ONIGENC_MBC_MINLEN(enc)               ((enc)->min_enc_len)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (163:20): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |                 add_code_range_to_buf(pbuf, env, MBCODE_START_POS(enc), ONIG_LAST_CODE_POINT)
  |  |  ------------------
  |  |  |  |  317|      0|#define ONIG_LAST_CODE_POINT    (~((OnigCodePoint )0))
  |  |  ------------------
  ------------------
 1834|  18.6k|    return 0;
 1835|  18.6k|  }
 1836|       |
 1837|      0|  r = 0;
 1838|      0|  if (IS_NULL(bbuf2))
  ------------------
  |  |  311|      0|#define IS_NULL(p)                    (((void*)(p)) == (void*)0)
  |  |  ------------------
  |  |  |  Branch (311:39): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 1839|      0|    SWAP_BBUF_NOT(bbuf1, not1, bbuf2, not2);
  ------------------
  |  | 1815|      0|#define SWAP_BBUF_NOT(bbuf1, not1, bbuf2, not2) do {\
  |  | 1816|      0|  BBuf *tbuf; \
  |  | 1817|      0|  int  tnot; \
  |  | 1818|      0|  tnot = not1;  not1  = not2;  not2  = tnot; \
  |  | 1819|      0|  tbuf = bbuf1; bbuf1 = bbuf2; bbuf2 = tbuf; \
  |  | 1820|      0|} while (0)
  |  |  ------------------
  |  |  |  Branch (1820:10): [Folded - Ignored]
  |  |  ------------------
  ------------------
 1840|       |
 1841|      0|  if (IS_NULL(bbuf1)) {
  ------------------
  |  |  311|      0|#define IS_NULL(p)                    (((void*)(p)) == (void*)0)
  |  |  ------------------
  |  |  |  Branch (311:39): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 1842|      0|    if (not1 != 0) {
  ------------------
  |  Branch (1842:9): [True: 0, False: 0]
  ------------------
 1843|      0|      return SET_ALL_MULTI_BYTE_RANGE(enc, pbuf);
  ------------------
  |  |  166|      0|  add_code_range_to_buf(pbuf, env, MBCODE_START_POS(enc), ONIG_LAST_CODE_POINT)
  |  |  ------------------
  |  |  |  |  163|      0|  (OnigCodePoint )(ONIGENC_MBC_MINLEN(enc) > 1 ? 0 : 0x80)
  |  |  |  |  ------------------
  |  |  |  |  |  |  367|      0|#define ONIGENC_MBC_MINLEN(enc)               ((enc)->min_enc_len)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (163:20): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |                 add_code_range_to_buf(pbuf, env, MBCODE_START_POS(enc), ONIG_LAST_CODE_POINT)
  |  |  ------------------
  |  |  |  |  317|      0|#define ONIG_LAST_CODE_POINT    (~((OnigCodePoint )0))
  |  |  ------------------
  ------------------
 1844|      0|    }
 1845|      0|    else {
 1846|      0|      if (not2 == 0) {
  ------------------
  |  Branch (1846:11): [True: 0, False: 0]
  ------------------
 1847|      0|	return bbuf_clone(pbuf, bbuf2);
 1848|      0|      }
 1849|      0|      else {
 1850|      0|	return not_code_range_buf(enc, bbuf2, pbuf, env);
 1851|      0|      }
 1852|      0|    }
 1853|      0|  }
 1854|       |
 1855|      0|  if (not1 != 0)
  ------------------
  |  Branch (1855:7): [True: 0, False: 0]
  ------------------
 1856|      0|    SWAP_BBUF_NOT(bbuf1, not1, bbuf2, not2);
  ------------------
  |  | 1815|      0|#define SWAP_BBUF_NOT(bbuf1, not1, bbuf2, not2) do {\
  |  | 1816|      0|  BBuf *tbuf; \
  |  | 1817|      0|  int  tnot; \
  |  | 1818|      0|  tnot = not1;  not1  = not2;  not2  = tnot; \
  |  | 1819|      0|  tbuf = bbuf1; bbuf1 = bbuf2; bbuf2 = tbuf; \
  |  | 1820|      0|} while (0)
  |  |  ------------------
  |  |  |  Branch (1820:10): [Folded - Ignored]
  |  |  ------------------
  ------------------
 1857|       |
 1858|      0|  data1 = (OnigCodePoint* )(bbuf1->p);
 1859|      0|  GET_CODE_POINT(n1, data1);
  ------------------
  |  |  710|      0|#define GET_CODE_POINT(code,p)   code = *((OnigCodePoint* )(p))
  ------------------
 1860|      0|  data1++;
 1861|       |
 1862|      0|  if (not2 == 0 && not1 == 0) { /* 1 OR 2 */
  ------------------
  |  Branch (1862:7): [True: 0, False: 0]
  |  Branch (1862:20): [True: 0, False: 0]
  ------------------
 1863|      0|    r = bbuf_clone(pbuf, bbuf2);
 1864|      0|  }
 1865|      0|  else if (not1 == 0) { /* 1 OR (not 2) */
  ------------------
  |  Branch (1865:12): [True: 0, False: 0]
  ------------------
 1866|      0|    r = not_code_range_buf(enc, bbuf2, pbuf, env);
 1867|      0|  }
 1868|      0|  if (r != 0) return r;
  ------------------
  |  Branch (1868:7): [True: 0, False: 0]
  ------------------
 1869|       |
 1870|      0|  for (i = 0; i < n1; i++) {
  ------------------
  |  Branch (1870:15): [True: 0, False: 0]
  ------------------
 1871|      0|    from = data1[i*2];
 1872|      0|    to   = data1[i*2+1];
 1873|      0|    r = add_code_range_to_buf(pbuf, env, from, to);
 1874|      0|    if (r != 0) return r;
  ------------------
  |  Branch (1874:9): [True: 0, False: 0]
  ------------------
 1875|      0|  }
 1876|      0|  return 0;
 1877|      0|}
regparse.c:and_code_range_buf:
 1921|  18.6k|{
 1922|  18.6k|  int r;
 1923|  18.6k|  OnigCodePoint i, j, n1, n2, *data1, *data2;
 1924|  18.6k|  OnigCodePoint from, to, from1, to1, from2, to2;
 1925|       |
 1926|  18.6k|  *pbuf = (BBuf* )NULL;
 1927|  18.6k|  if (IS_NULL(bbuf1)) {
  ------------------
  |  |  311|  18.6k|#define IS_NULL(p)                    (((void*)(p)) == (void*)0)
  |  |  ------------------
  |  |  |  Branch (311:39): [True: 0, False: 18.6k]
  |  |  ------------------
  ------------------
 1928|      0|    if (not1 != 0 && IS_NOT_NULL(bbuf2)) /* not1 != 0 -> not2 == 0 */
  ------------------
  |  |  312|      0|#define IS_NOT_NULL(p)                (((void*)(p)) != (void*)0)
  |  |  ------------------
  |  |  |  Branch (312:39): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  |  Branch (1928:9): [True: 0, False: 0]
  ------------------
 1929|      0|      return bbuf_clone(pbuf, bbuf2);
 1930|      0|    return 0;
 1931|      0|  }
 1932|  18.6k|  else if (IS_NULL(bbuf2)) {
  ------------------
  |  |  311|  18.6k|#define IS_NULL(p)                    (((void*)(p)) == (void*)0)
  |  |  ------------------
  |  |  |  Branch (311:39): [True: 18.6k, False: 0]
  |  |  ------------------
  ------------------
 1933|  18.6k|    if (not2 != 0)
  ------------------
  |  Branch (1933:9): [True: 0, False: 18.6k]
  ------------------
 1934|      0|      return bbuf_clone(pbuf, bbuf1);
 1935|  18.6k|    return 0;
 1936|  18.6k|  }
 1937|       |
 1938|      0|  if (not1 != 0)
  ------------------
  |  Branch (1938:7): [True: 0, False: 0]
  ------------------
 1939|      0|    SWAP_BBUF_NOT(bbuf1, not1, bbuf2, not2);
  ------------------
  |  | 1815|      0|#define SWAP_BBUF_NOT(bbuf1, not1, bbuf2, not2) do {\
  |  | 1816|      0|  BBuf *tbuf; \
  |  | 1817|      0|  int  tnot; \
  |  | 1818|      0|  tnot = not1;  not1  = not2;  not2  = tnot; \
  |  | 1819|      0|  tbuf = bbuf1; bbuf1 = bbuf2; bbuf2 = tbuf; \
  |  | 1820|      0|} while (0)
  |  |  ------------------
  |  |  |  Branch (1820:10): [Folded - Ignored]
  |  |  ------------------
  ------------------
 1940|       |
 1941|      0|  data1 = (OnigCodePoint* )(bbuf1->p);
 1942|      0|  data2 = (OnigCodePoint* )(bbuf2->p);
 1943|      0|  GET_CODE_POINT(n1, data1);
  ------------------
  |  |  710|      0|#define GET_CODE_POINT(code,p)   code = *((OnigCodePoint* )(p))
  ------------------
 1944|      0|  GET_CODE_POINT(n2, data2);
  ------------------
  |  |  710|      0|#define GET_CODE_POINT(code,p)   code = *((OnigCodePoint* )(p))
  ------------------
 1945|      0|  data1++;
 1946|      0|  data2++;
 1947|       |
 1948|      0|  if (not2 == 0 && not1 == 0) { /* 1 AND 2 */
  ------------------
  |  Branch (1948:7): [True: 0, False: 0]
  |  Branch (1948:20): [True: 0, False: 0]
  ------------------
 1949|      0|    for (i = 0; i < n1; i++) {
  ------------------
  |  Branch (1949:17): [True: 0, False: 0]
  ------------------
 1950|      0|      from1 = data1[i*2];
 1951|      0|      to1   = data1[i*2+1];
 1952|      0|      for (j = 0; j < n2; j++) {
  ------------------
  |  Branch (1952:19): [True: 0, False: 0]
  ------------------
 1953|      0|	from2 = data2[j*2];
 1954|      0|	to2   = data2[j*2+1];
 1955|      0|	if (from2 > to1) break;
  ------------------
  |  Branch (1955:6): [True: 0, False: 0]
  ------------------
 1956|      0|	if (to2 < from1) continue;
  ------------------
  |  Branch (1956:6): [True: 0, False: 0]
  ------------------
 1957|      0|	from = MAX(from1, from2);
  ------------------
  |  |  309|      0|#define MAX(a,b) (((a)<(b))?(b):(a))
  |  |  ------------------
  |  |  |  Branch (309:19): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 1958|      0|	to   = MIN(to1, to2);
  ------------------
  |  |  308|      0|#define MIN(a,b) (((a)>(b))?(b):(a))
  |  |  ------------------
  |  |  |  Branch (308:19): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 1959|      0|	r = add_code_range_to_buf(pbuf, env, from, to);
 1960|      0|	if (r != 0) return r;
  ------------------
  |  Branch (1960:6): [True: 0, False: 0]
  ------------------
 1961|      0|      }
 1962|      0|    }
 1963|      0|  }
 1964|      0|  else if (not1 == 0) { /* 1 AND (not 2) */
  ------------------
  |  Branch (1964:12): [True: 0, False: 0]
  ------------------
 1965|      0|    for (i = 0; i < n1; i++) {
  ------------------
  |  Branch (1965:17): [True: 0, False: 0]
  ------------------
 1966|      0|      from1 = data1[i*2];
 1967|      0|      to1   = data1[i*2+1];
 1968|      0|      r = and_code_range1(pbuf, env, from1, to1, data2, n2);
 1969|      0|      if (r != 0) return r;
  ------------------
  |  Branch (1969:11): [True: 0, False: 0]
  ------------------
 1970|      0|    }
 1971|      0|  }
 1972|       |
 1973|      0|  return 0;
 1974|      0|}
regparse.c:or_cclass:
 2036|  18.6k|{
 2037|  18.6k|  OnigEncoding enc = env->enc;
 2038|  18.6k|  int r, not1, not2;
 2039|  18.6k|  BBuf *buf1, *buf2, *pbuf = 0;
 2040|  18.6k|  BitSetRef bsr1, bsr2;
 2041|  18.6k|  BitSet bs1, bs2;
 2042|       |
 2043|  18.6k|  not1 = IS_NCCLASS_NOT(dest);
  ------------------
  |  |  809|  18.6k|#define IS_NCCLASS_NOT(nd)      IS_NCCLASS_FLAG_ON(nd, FLAG_NCCLASS_NOT)
  |  |  ------------------
  |  |  |  |  802|  18.6k|#define IS_NCCLASS_FLAG_ON(cc,flag) ((NCCLASS_FLAGS(cc) & (flag)) != 0)
  |  |  |  |  ------------------
  |  |  |  |  |  |  799|  18.6k|#define NCCLASS_FLAGS(cc)           ((cc)->flags)
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2044|  18.6k|  bsr1 = dest->bs;
 2045|  18.6k|  buf1 = dest->mbuf;
 2046|  18.6k|  not2 = IS_NCCLASS_NOT(cc);
  ------------------
  |  |  809|  18.6k|#define IS_NCCLASS_NOT(nd)      IS_NCCLASS_FLAG_ON(nd, FLAG_NCCLASS_NOT)
  |  |  ------------------
  |  |  |  |  802|  18.6k|#define IS_NCCLASS_FLAG_ON(cc,flag) ((NCCLASS_FLAGS(cc) & (flag)) != 0)
  |  |  |  |  ------------------
  |  |  |  |  |  |  799|  18.6k|#define NCCLASS_FLAGS(cc)           ((cc)->flags)
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2047|  18.6k|  bsr2 = cc->bs;
 2048|  18.6k|  buf2 = cc->mbuf;
 2049|       |
 2050|  18.6k|  if (not1 != 0) {
  ------------------
  |  Branch (2050:7): [True: 0, False: 18.6k]
  ------------------
 2051|      0|    bitset_invert_to(bsr1, bs1);
 2052|      0|    bsr1 = bs1;
 2053|      0|  }
 2054|  18.6k|  if (not2 != 0) {
  ------------------
  |  Branch (2054:7): [True: 0, False: 18.6k]
  ------------------
 2055|      0|    bitset_invert_to(bsr2, bs2);
 2056|      0|    bsr2 = bs2;
 2057|      0|  }
 2058|  18.6k|  bitset_or(bsr1, bsr2);
 2059|  18.6k|  if (bsr1 != dest->bs) {
  ------------------
  |  Branch (2059:7): [True: 0, False: 18.6k]
  ------------------
 2060|      0|    bitset_copy(dest->bs, bsr1);
 2061|      0|    bsr1 = dest->bs;
 2062|      0|  }
 2063|  18.6k|  if (not1 != 0) {
  ------------------
  |  Branch (2063:7): [True: 0, False: 18.6k]
  ------------------
 2064|      0|    bitset_invert(dest->bs);
 2065|      0|  }
 2066|       |
 2067|  18.6k|  if (! ONIGENC_IS_SINGLEBYTE(enc)) {
  ------------------
  |  |  318|  18.6k|#define ONIGENC_IS_SINGLEBYTE(enc)     (ONIGENC_MBC_MAXLEN(enc) == 1)
  |  |  ------------------
  |  |  |  |  365|  18.6k|#define ONIGENC_MBC_MAXLEN(enc)               ((enc)->max_enc_len)
  |  |  ------------------
  ------------------
  |  Branch (2067:7): [True: 18.6k, False: 0]
  ------------------
 2068|  18.6k|    if (not1 != 0 && not2 != 0) {
  ------------------
  |  Branch (2068:9): [True: 0, False: 18.6k]
  |  Branch (2068:22): [True: 0, False: 0]
  ------------------
 2069|      0|      r = and_code_range_buf(buf1, 0, buf2, 0, &pbuf, env);
 2070|      0|    }
 2071|  18.6k|    else {
 2072|  18.6k|      r = or_code_range_buf(enc, buf1, not1, buf2, not2, &pbuf, env);
 2073|  18.6k|      if (r == 0 && not1 != 0) {
  ------------------
  |  Branch (2073:11): [True: 18.6k, False: 0]
  |  Branch (2073:21): [True: 0, False: 18.6k]
  ------------------
 2074|      0|	BBuf *tbuf = 0;
 2075|      0|	r = not_code_range_buf(enc, pbuf, &tbuf, env);
 2076|      0|	bbuf_free(pbuf);
 2077|      0|	pbuf = tbuf;
 2078|      0|      }
 2079|  18.6k|    }
 2080|  18.6k|    if (r != 0) {
  ------------------
  |  Branch (2080:9): [True: 0, False: 18.6k]
  ------------------
 2081|      0|      bbuf_free(pbuf);
 2082|      0|      return r;
 2083|      0|    }
 2084|       |
 2085|  18.6k|    dest->mbuf = pbuf;
 2086|  18.6k|    bbuf_free(buf1);
 2087|  18.6k|    return r;
 2088|  18.6k|  }
 2089|      0|  else
 2090|      0|    return 0;
 2091|  18.6k|}
regparse.c:bitset_or:
  232|  18.6k|{
  233|  18.6k|  int i;
  234|   167k|  for (i = 0; i < BITSET_SIZE; i++) { dest[i] |= bs[i]; }
  ------------------
  |  |  428|   167k|#define BITSET_SIZE        (SINGLE_BYTE_SIZE / BITS_IN_ROOM)
  |  |  ------------------
  |  |  |  |  426|   167k|#define SINGLE_BYTE_SIZE   (1 << BITS_PER_BYTE)
  |  |  |  |  ------------------
  |  |  |  |  |  |  425|   167k|#define BITS_PER_BYTE      8
  |  |  |  |  ------------------
  |  |  ------------------
  |  |               #define BITSET_SIZE        (SINGLE_BYTE_SIZE / BITS_IN_ROOM)
  |  |  ------------------
  |  |  |  |  427|   167k|#define BITS_IN_ROOM       ((int )sizeof(Bits) * BITS_PER_BYTE)
  |  |  |  |  ------------------
  |  |  |  |  |  |  425|   167k|#define BITS_PER_BYTE      8
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  |  Branch (234:15): [True: 149k, False: 18.6k]
  ------------------
  235|  18.6k|}
regparse.c:parse_char_class:
 4562|  21.7k|{
 4563|  21.7k|  int r, neg, len, fetched, and_start;
 4564|  21.7k|  OnigCodePoint v, vs;
 4565|  21.7k|  UChar *p;
  ------------------
  |  |   76|  21.7k|# define UChar OnigUChar
  ------------------
 4566|  21.7k|  Node* node;
 4567|  21.7k|  Node* asc_node;
 4568|  21.7k|  CClassNode *cc, *prev_cc;
 4569|  21.7k|  CClassNode *asc_cc, *asc_prev_cc;
 4570|  21.7k|  CClassNode work_cc, asc_work_cc;
 4571|       |
 4572|  21.7k|  enum CCSTATE state;
 4573|  21.7k|  enum CCVALTYPE val_type, in_type;
 4574|  21.7k|  int val_israw, in_israw;
 4575|       |
 4576|  21.7k|  *np = *asc_np = NULL_NODE;
  ------------------
  |  |  283|  21.7k|#define NULL_NODE  ((Node* )0)
  ------------------
 4577|  21.7k|  env->parse_depth++;
 4578|  21.7k|  if (env->parse_depth > ParseDepthLimit)
  ------------------
  |  Branch (4578:7): [True: 0, False: 21.7k]
  ------------------
 4579|      0|    return ONIGERR_PARSE_DEPTH_LIMIT_OVER;
  ------------------
  |  |  639|      0|#define ONIGERR_PARSE_DEPTH_LIMIT_OVER                        -16
  ------------------
 4580|  21.7k|  prev_cc = asc_prev_cc = (CClassNode* )NULL;
 4581|  21.7k|  r = fetch_token_in_cc(tok, src, end, env);
 4582|  21.7k|  if (r == TK_CHAR && tok->u.c == '^' && tok->escaped == 0) {
  ------------------
  |  Branch (4582:7): [True: 10.0k, False: 11.6k]
  |  Branch (4582:23): [True: 8.58k, False: 1.46k]
  |  Branch (4582:42): [True: 8.58k, False: 0]
  ------------------
 4583|  8.58k|    neg = 1;
 4584|  8.58k|    r = fetch_token_in_cc(tok, src, end, env);
 4585|  8.58k|  }
 4586|  13.1k|  else {
 4587|  13.1k|    neg = 0;
 4588|  13.1k|  }
 4589|       |
 4590|  21.7k|  if (r < 0) return r;
  ------------------
  |  Branch (4590:7): [True: 0, False: 21.7k]
  ------------------
 4591|  21.7k|  if (r == TK_CC_CLOSE) {
  ------------------
  |  Branch (4591:7): [True: 0, False: 21.7k]
  ------------------
 4592|      0|    if (! code_exist_check((OnigCodePoint )']',
  ------------------
  |  Branch (4592:9): [True: 0, False: 0]
  ------------------
 4593|      0|                           *src, env->pattern_end, 1, env))
 4594|      0|      return ONIGERR_EMPTY_CHAR_CLASS;
  ------------------
  |  |  647|      0|#define ONIGERR_EMPTY_CHAR_CLASS                             -102
  ------------------
 4595|       |
 4596|      0|    CC_ESC_WARN(env, (UChar* )"]");
 4597|      0|    r = tok->type = TK_CHAR;  /* allow []...] */
 4598|      0|  }
 4599|       |
 4600|  21.7k|  *np = node = node_new_cclass();
 4601|  21.7k|  CHECK_NULL_RETURN_MEMERR(node);
  ------------------
  |  |  314|  21.7k|#define CHECK_NULL_RETURN_MEMERR(p)   if (IS_NULL(p)) return ONIGERR_MEMORY
  |  |  ------------------
  |  |  |  |  311|  21.7k|#define IS_NULL(p)                    (((void*)(p)) == (void*)0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (311:39): [True: 0, False: 21.7k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |               #define CHECK_NULL_RETURN_MEMERR(p)   if (IS_NULL(p)) return ONIGERR_MEMORY
  |  |  ------------------
  |  |  |  |  632|      0|#define ONIGERR_MEMORY                                         -5
  |  |  ------------------
  ------------------
 4602|  21.7k|  cc = NCCLASS(node);
  ------------------
  |  |   77|  21.7k|#define NCCLASS(node)      (&((node)->u.cclass))
  ------------------
 4603|       |
 4604|  21.7k|  if (IS_IGNORECASE(env->option)) {
  ------------------
  |  |  396|  21.7k|#define IS_IGNORECASE(option)     ((option) & ONIG_OPTION_IGNORECASE)
  |  |  ------------------
  |  |  |  |  454|  21.7k|#define ONIG_OPTION_IGNORECASE           1U
  |  |  ------------------
  |  |  |  Branch (396:35): [True: 0, False: 21.7k]
  |  |  ------------------
  ------------------
 4605|      0|    *asc_np = asc_node = node_new_cclass();
 4606|      0|    CHECK_NULL_RETURN_MEMERR(asc_node);
  ------------------
  |  |  314|      0|#define CHECK_NULL_RETURN_MEMERR(p)   if (IS_NULL(p)) return ONIGERR_MEMORY
  |  |  ------------------
  |  |  |  |  311|      0|#define IS_NULL(p)                    (((void*)(p)) == (void*)0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (311:39): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |               #define CHECK_NULL_RETURN_MEMERR(p)   if (IS_NULL(p)) return ONIGERR_MEMORY
  |  |  ------------------
  |  |  |  |  632|      0|#define ONIGERR_MEMORY                                         -5
  |  |  ------------------
  ------------------
 4607|      0|    asc_cc = NCCLASS(asc_node);
  ------------------
  |  |   77|      0|#define NCCLASS(node)      (&((node)->u.cclass))
  ------------------
 4608|      0|  }
 4609|  21.7k|  else {
 4610|  21.7k|    asc_node = NULL_NODE;
  ------------------
  |  |  283|  21.7k|#define NULL_NODE  ((Node* )0)
  ------------------
 4611|  21.7k|    asc_cc = NULL;
 4612|  21.7k|  }
 4613|       |
 4614|  21.7k|  and_start = 0;
 4615|  21.7k|  state = CCS_START;
 4616|  21.7k|  p = *src;
 4617|  79.4k|  while (r != TK_CC_CLOSE) {
  ------------------
  |  Branch (4617:10): [True: 57.7k, False: 21.7k]
  ------------------
 4618|  57.7k|    fetched = 0;
 4619|  57.7k|    switch (r) {
 4620|  34.5k|    case TK_CHAR:
  ------------------
  |  Branch (4620:5): [True: 34.5k, False: 23.2k]
  ------------------
 4621|  34.5k|      if ((tok->u.code >= SINGLE_BYTE_SIZE) ||
  ------------------
  |  |  426|  34.5k|#define SINGLE_BYTE_SIZE   (1 << BITS_PER_BYTE)
  |  |  ------------------
  |  |  |  |  425|  34.5k|#define BITS_PER_BYTE      8
  |  |  ------------------
  ------------------
  |  Branch (4621:11): [True: 0, False: 34.5k]
  ------------------
 4622|  34.5k|	  (len = ONIGENC_CODE_TO_MBCLEN(env->enc, tok->u.c)) > 1) {
  ------------------
  |  |  370|  34.5k|#define ONIGENC_CODE_TO_MBCLEN(enc,code)       (enc)->code_to_mbclen(code,enc)
  ------------------
  |  Branch (4622:4): [True: 0, False: 34.5k]
  ------------------
 4623|      0|	in_type = CCV_CODE_POINT;
 4624|      0|      }
 4625|  34.5k|      else if (len < 0) {
  ------------------
  |  Branch (4625:16): [True: 0, False: 34.5k]
  ------------------
 4626|      0|	r = len;
 4627|      0|	goto err;
 4628|      0|      }
 4629|  34.5k|      else {
 4630|  34.5k|      sb_char:
 4631|  34.5k|	in_type = CCV_SB;
 4632|  34.5k|      }
 4633|  34.5k|      v = (OnigCodePoint )tok->u.c;
 4634|  34.5k|      in_israw = 0;
 4635|  34.5k|      goto val_entry2;
 4636|      0|      break;
 4637|       |
 4638|      0|    case TK_RAW_BYTE:
  ------------------
  |  Branch (4638:5): [True: 0, False: 57.7k]
  ------------------
 4639|       |      /* tok->base != 0 : octal or hexadec. */
 4640|      0|      if (! ONIGENC_IS_SINGLEBYTE(env->enc) && tok->base != 0) {
  ------------------
  |  |  318|      0|#define ONIGENC_IS_SINGLEBYTE(enc)     (ONIGENC_MBC_MAXLEN(enc) == 1)
  |  |  ------------------
  |  |  |  |  365|      0|#define ONIGENC_MBC_MAXLEN(enc)               ((enc)->max_enc_len)
  |  |  ------------------
  ------------------
  |  Branch (4640:11): [True: 0, False: 0]
  |  Branch (4640:48): [True: 0, False: 0]
  ------------------
 4641|      0|	UChar buf[ONIGENC_CODE_TO_MBC_MAXLEN];
  ------------------
  |  |   76|      0|# define UChar OnigUChar
  ------------------
 4642|      0|	UChar* bufe = buf + ONIGENC_CODE_TO_MBC_MAXLEN;
  ------------------
  |  |   76|      0|# define UChar OnigUChar
  ------------------
              	UChar* bufe = buf + ONIGENC_CODE_TO_MBC_MAXLEN;
  ------------------
  |  |  289|      0|#define ONIGENC_CODE_TO_MBC_MAXLEN       7
  ------------------
 4643|      0|	UChar* psave = p;
  ------------------
  |  |   76|      0|# define UChar OnigUChar
  ------------------
 4644|      0|	int i, base = tok->base;
 4645|       |
 4646|      0|	buf[0] = (UChar )tok->u.c;
 4647|      0|	for (i = 1; i < ONIGENC_MBC_MAXLEN(env->enc); i++) {
  ------------------
  |  |  365|      0|#define ONIGENC_MBC_MAXLEN(enc)               ((enc)->max_enc_len)
  ------------------
  |  Branch (4647:14): [True: 0, False: 0]
  ------------------
 4648|      0|	  r = fetch_token_in_cc(tok, &p, end, env);
 4649|      0|	  if (r < 0) goto err;
  ------------------
  |  Branch (4649:8): [True: 0, False: 0]
  ------------------
 4650|      0|	  if (r != TK_RAW_BYTE || tok->base != base) {
  ------------------
  |  Branch (4650:8): [True: 0, False: 0]
  |  Branch (4650:28): [True: 0, False: 0]
  ------------------
 4651|      0|	    fetched = 1;
 4652|      0|	    break;
 4653|      0|	  }
 4654|      0|	  buf[i] = (UChar )tok->u.c;
 4655|      0|	}
 4656|       |
 4657|      0|	if (i < ONIGENC_MBC_MINLEN(env->enc)) {
  ------------------
  |  |  367|      0|#define ONIGENC_MBC_MINLEN(enc)               ((enc)->min_enc_len)
  ------------------
  |  Branch (4657:6): [True: 0, False: 0]
  ------------------
 4658|      0|	  r = ONIGERR_TOO_SHORT_MULTI_BYTE_STRING;
  ------------------
  |  |  675|      0|#define ONIGERR_TOO_SHORT_MULTI_BYTE_STRING                  -206
  ------------------
 4659|      0|	  goto err;
 4660|      0|	}
 4661|       |
 4662|      0|	if (env->enc == ONIG_ENCODING_EUC_JP ||
  ------------------
  |  |  247|      0|# define ONIG_ENCODING_EUC_JP       (&OnigEncodingEUC_JP)
  ------------------
  |  Branch (4662:6): [True: 0, False: 0]
  ------------------
 4663|      0|		env->enc == ONIG_ENCODING_SJIS) {
  ------------------
  |  |  266|      0|# define ONIG_ENCODING_SJIS         ONIG_ENCODING_SHIFT_JIS
  |  |  ------------------
  |  |  |  |  251|      0|# define ONIG_ENCODING_SHIFT_JIS    (&OnigEncodingShift_JIS)
  |  |  ------------------
  ------------------
  |  Branch (4663:3): [True: 0, False: 0]
  ------------------
 4664|       |	  /* Strict version of enclen does not handle invalid single code
 4665|       |	   * point for SJIS and EUC-JP...*/
 4666|      0|	  len = enclen_approximate(env->enc, buf, buf + i);
  ------------------
  |  |   94|      0|#define enclen_approximate(enc,p,e) ((enc->max_enc_len == enc->min_enc_len) ? enc->min_enc_len : ONIGENC_MBC_ENC_LEN_APPROX(enc,p,e))
  |  |  ------------------
  |  |  |  |  363|      0|#define ONIGENC_MBC_ENC_LEN_APPROX(enc,p,e)   onigenc_mbclen_approximate(p,e,enc)
  |  |  ------------------
  |  |  |  Branch (94:38): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 4667|      0|	}
 4668|      0|	else {
 4669|      0|	  len = enclen(env->enc, buf, buf + i);
  ------------------
  |  |   93|      0|#define enclen(enc,p,e) ((enc->max_enc_len == enc->min_enc_len) ? enc->min_enc_len : ONIGENC_MBC_ENC_LEN(enc,p,e))
  |  |  ------------------
  |  |  |  |  364|      0|#define ONIGENC_MBC_ENC_LEN(enc,p,e)          onigenc_mbclen(p,e,enc)
  |  |  ------------------
  |  |  |  Branch (93:26): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 4670|      0|	}
 4671|      0|	if (i < len) {
  ------------------
  |  Branch (4671:6): [True: 0, False: 0]
  ------------------
 4672|      0|	  r = ONIGERR_TOO_SHORT_MULTI_BYTE_STRING;
  ------------------
  |  |  675|      0|#define ONIGERR_TOO_SHORT_MULTI_BYTE_STRING                  -206
  ------------------
 4673|      0|	  goto err;
 4674|      0|	}
 4675|      0|	else if (i > len) { /* fetch back */
  ------------------
  |  Branch (4675:11): [True: 0, False: 0]
  ------------------
 4676|      0|	  p = psave;
 4677|      0|	  for (i = 1; i < len; i++) {
  ------------------
  |  Branch (4677:16): [True: 0, False: 0]
  ------------------
 4678|      0|	    (void)fetch_token_in_cc(tok, &p, end, env);
 4679|       |	    /* no need to check the retun value (already checked above) */
 4680|      0|	  }
 4681|      0|	  fetched = 0;
 4682|      0|	}
 4683|       |
 4684|      0|	if (i == 1) {
  ------------------
  |  Branch (4684:6): [True: 0, False: 0]
  ------------------
 4685|      0|	  v = (OnigCodePoint )buf[0];
 4686|      0|	  goto raw_single;
 4687|      0|	}
 4688|      0|	else {
 4689|      0|	  v = ONIGENC_MBC_TO_CODE(env->enc, buf, bufe);
  ------------------
  |  |  369|      0|#define ONIGENC_MBC_TO_CODE(enc,p,end)         (enc)->mbc_to_code((p),(end),enc)
  ------------------
 4690|      0|	  in_type = CCV_CODE_POINT;
 4691|      0|	}
 4692|      0|      }
 4693|      0|      else {
 4694|      0|	v = (OnigCodePoint )tok->u.c;
 4695|      0|      raw_single:
 4696|      0|	in_type = CCV_SB;
 4697|      0|      }
 4698|      0|      in_israw = 1;
 4699|      0|      goto val_entry2;
 4700|      0|      break;
 4701|       |
 4702|  17.4k|    case TK_CODE_POINT:
  ------------------
  |  Branch (4702:5): [True: 17.4k, False: 40.2k]
  ------------------
 4703|  17.4k|      v = tok->u.code;
 4704|  17.4k|      in_israw = 1;
 4705|  17.4k|    val_entry:
 4706|  17.4k|      len = ONIGENC_CODE_TO_MBCLEN(env->enc, v);
  ------------------
  |  |  370|  17.4k|#define ONIGENC_CODE_TO_MBCLEN(enc,code)       (enc)->code_to_mbclen(code,enc)
  ------------------
 4707|  17.4k|      if (len < 0) {
  ------------------
  |  Branch (4707:11): [True: 0, False: 17.4k]
  ------------------
 4708|      0|	r = len;
 4709|      0|	goto err;
 4710|      0|      }
 4711|  17.4k|      in_type = (len == 1 ? CCV_SB : CCV_CODE_POINT);
  ------------------
  |  Branch (4711:18): [True: 17.4k, False: 0]
  ------------------
 4712|  52.0k|    val_entry2:
 4713|  52.0k|      r = next_state_val(cc, asc_cc, &vs, v, &val_israw, in_israw, in_type, &val_type,
 4714|  52.0k|			 &state, env);
 4715|  52.0k|      if (r != 0) goto err;
  ------------------
  |  Branch (4715:11): [True: 0, False: 52.0k]
  ------------------
 4716|  52.0k|      break;
 4717|       |
 4718|  52.0k|    case TK_POSIX_BRACKET_OPEN:
  ------------------
  |  Branch (4718:5): [True: 0, False: 57.7k]
  ------------------
 4719|      0|      r = parse_posix_bracket(cc, asc_cc, &p, end, env);
 4720|      0|      if (r < 0) goto err;
  ------------------
  |  Branch (4720:11): [True: 0, False: 0]
  ------------------
 4721|      0|      if (r == 1) {  /* is not POSIX bracket */
  ------------------
  |  Branch (4721:11): [True: 0, False: 0]
  ------------------
 4722|      0|	CC_ESC_WARN(env, (UChar* )"[");
 4723|      0|	p = tok->backp;
 4724|      0|	v = (OnigCodePoint )tok->u.c;
 4725|      0|	in_israw = 0;
 4726|      0|	goto val_entry;
 4727|      0|      }
 4728|      0|      goto next_class;
 4729|      0|      break;
 4730|       |
 4731|  5.72k|    case TK_CHAR_TYPE:
  ------------------
  |  Branch (4731:5): [True: 5.72k, False: 52.0k]
  ------------------
 4732|  5.72k|      r = add_ctype_to_cc(cc, tok->u.prop.ctype, tok->u.prop.not,
 4733|  5.72k|			  IS_ASCII_RANGE(env->option), env);
  ------------------
  |  |  406|  5.72k|#define IS_ASCII_RANGE(option)    ((option) & ONIG_OPTION_ASCII_RANGE)
  |  |  ------------------
  |  |  |  |  470|  5.72k|#define ONIG_OPTION_ASCII_RANGE          (ONIG_OPTION_NOTEOS << 1)
  |  |  |  |  ------------------
  |  |  |  |  |  |  468|  5.72k|#define ONIG_OPTION_NOTEOS               (ONIG_OPTION_NOTBOS << 1)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  467|  5.72k|#define ONIG_OPTION_NOTBOS               (ONIG_OPTION_NOTEOL << 1)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  466|  5.72k|#define ONIG_OPTION_NOTEOL               (ONIG_OPTION_NOTBOL << 1)
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  465|  5.72k|#define ONIG_OPTION_NOTBOL               (ONIG_OPTION_CAPTURE_GROUP << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  463|  5.72k|#define ONIG_OPTION_CAPTURE_GROUP        (ONIG_OPTION_DONT_CAPTURE_GROUP << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  462|  5.72k|#define ONIG_OPTION_DONT_CAPTURE_GROUP   (ONIG_OPTION_NEGATE_SINGLELINE  << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  461|  5.72k|#define ONIG_OPTION_NEGATE_SINGLELINE    (ONIG_OPTION_FIND_NOT_EMPTY     << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  460|  5.72k|#define ONIG_OPTION_FIND_NOT_EMPTY       (ONIG_OPTION_FIND_LONGEST       << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  459|  5.72k|#define ONIG_OPTION_FIND_LONGEST         (ONIG_OPTION_SINGLELINE         << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  458|  5.72k|#define ONIG_OPTION_SINGLELINE           (ONIG_OPTION_MULTILINE          << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  456|  5.72k|#define ONIG_OPTION_MULTILINE            (ONIG_OPTION_EXTEND             << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  455|  5.72k|#define ONIG_OPTION_EXTEND               (ONIG_OPTION_IGNORECASE         << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  454|  5.72k|#define ONIG_OPTION_IGNORECASE           1U
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 4734|  5.72k|      if (r != 0) return r;
  ------------------
  |  Branch (4734:11): [True: 0, False: 5.72k]
  ------------------
 4735|  5.72k|      if (IS_NOT_NULL(asc_cc)) {
  ------------------
  |  |  312|  5.72k|#define IS_NOT_NULL(p)                (((void*)(p)) != (void*)0)
  |  |  ------------------
  |  |  |  Branch (312:39): [True: 0, False: 5.72k]
  |  |  ------------------
  ------------------
 4736|      0|	if (tok->u.prop.ctype != ONIGENC_CTYPE_WORD)
  ------------------
  |  |  306|      0|#define ONIGENC_CTYPE_WORD     12
  ------------------
  |  Branch (4736:6): [True: 0, False: 0]
  ------------------
 4737|      0|	  r = add_ctype_to_cc(asc_cc, tok->u.prop.ctype, tok->u.prop.not,
 4738|      0|			      IS_ASCII_RANGE(env->option), env);
  ------------------
  |  |  406|      0|#define IS_ASCII_RANGE(option)    ((option) & ONIG_OPTION_ASCII_RANGE)
  |  |  ------------------
  |  |  |  |  470|      0|#define ONIG_OPTION_ASCII_RANGE          (ONIG_OPTION_NOTEOS << 1)
  |  |  |  |  ------------------
  |  |  |  |  |  |  468|      0|#define ONIG_OPTION_NOTEOS               (ONIG_OPTION_NOTBOS << 1)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  467|      0|#define ONIG_OPTION_NOTBOS               (ONIG_OPTION_NOTEOL << 1)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  466|      0|#define ONIG_OPTION_NOTEOL               (ONIG_OPTION_NOTBOL << 1)
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  465|      0|#define ONIG_OPTION_NOTBOL               (ONIG_OPTION_CAPTURE_GROUP << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  463|      0|#define ONIG_OPTION_CAPTURE_GROUP        (ONIG_OPTION_DONT_CAPTURE_GROUP << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  462|      0|#define ONIG_OPTION_DONT_CAPTURE_GROUP   (ONIG_OPTION_NEGATE_SINGLELINE  << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  461|      0|#define ONIG_OPTION_NEGATE_SINGLELINE    (ONIG_OPTION_FIND_NOT_EMPTY     << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  460|      0|#define ONIG_OPTION_FIND_NOT_EMPTY       (ONIG_OPTION_FIND_LONGEST       << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  459|      0|#define ONIG_OPTION_FIND_LONGEST         (ONIG_OPTION_SINGLELINE         << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  458|      0|#define ONIG_OPTION_SINGLELINE           (ONIG_OPTION_MULTILINE          << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  456|      0|#define ONIG_OPTION_MULTILINE            (ONIG_OPTION_EXTEND             << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  455|      0|#define ONIG_OPTION_EXTEND               (ONIG_OPTION_IGNORECASE         << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  454|      0|#define ONIG_OPTION_IGNORECASE           1U
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 4739|      0|	if (r != 0) return r;
  ------------------
  |  Branch (4739:6): [True: 0, False: 0]
  ------------------
 4740|      0|      }
 4741|       |
 4742|  5.72k|    next_class:
 4743|  5.72k|      r = next_state_class(cc, asc_cc, &vs, &val_type, &state, env);
 4744|  5.72k|      if (r != 0) goto err;
  ------------------
  |  Branch (4744:11): [True: 0, False: 5.72k]
  ------------------
 4745|  5.72k|      break;
 4746|       |
 4747|  5.72k|    case TK_CHAR_PROPERTY:
  ------------------
  |  Branch (4747:5): [True: 0, False: 57.7k]
  ------------------
 4748|      0|      {
 4749|      0|	int ctype;
 4750|       |
 4751|      0|	ctype = fetch_char_property_to_ctype(&p, end, env);
 4752|      0|	if (ctype < 0) return ctype;
  ------------------
  |  Branch (4752:6): [True: 0, False: 0]
  ------------------
 4753|      0|	r = add_ctype_to_cc(cc, ctype, tok->u.prop.not, 0, env);
 4754|      0|	if (r != 0) return r;
  ------------------
  |  Branch (4754:6): [True: 0, False: 0]
  ------------------
 4755|      0|	if (IS_NOT_NULL(asc_cc)) {
  ------------------
  |  |  312|      0|#define IS_NOT_NULL(p)                (((void*)(p)) != (void*)0)
  |  |  ------------------
  |  |  |  Branch (312:39): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 4756|      0|	  if (ctype != ONIGENC_CTYPE_ASCII)
  ------------------
  |  |  308|      0|#define ONIGENC_CTYPE_ASCII    14
  ------------------
  |  Branch (4756:8): [True: 0, False: 0]
  ------------------
 4757|      0|	    r = add_ctype_to_cc(asc_cc, ctype, tok->u.prop.not, 0, env);
 4758|      0|	  if (r != 0) return r;
  ------------------
  |  Branch (4758:8): [True: 0, False: 0]
  ------------------
 4759|      0|	}
 4760|      0|	goto next_class;
 4761|      0|      }
 4762|      0|      break;
 4763|       |
 4764|      0|    case TK_CC_RANGE:
  ------------------
  |  Branch (4764:5): [True: 0, False: 57.7k]
  ------------------
 4765|      0|      if (state == CCS_VALUE) {
  ------------------
  |  Branch (4765:11): [True: 0, False: 0]
  ------------------
 4766|      0|	r = fetch_token_in_cc(tok, &p, end, env);
 4767|      0|	if (r < 0) goto err;
  ------------------
  |  Branch (4767:6): [True: 0, False: 0]
  ------------------
 4768|      0|	fetched = 1;
 4769|      0|	if (r == TK_CC_CLOSE) { /* allow [x-] */
  ------------------
  |  Branch (4769:6): [True: 0, False: 0]
  ------------------
 4770|      0|	range_end_val:
 4771|      0|	  v = (OnigCodePoint )'-';
 4772|      0|	  in_israw = 0;
 4773|      0|	  goto val_entry;
 4774|      0|	}
 4775|      0|	else if (r == TK_CC_AND) {
  ------------------
  |  Branch (4775:11): [True: 0, False: 0]
  ------------------
 4776|      0|	  CC_ESC_WARN(env, (UChar* )"-");
 4777|      0|	  goto range_end_val;
 4778|      0|	}
 4779|       |
 4780|      0|	if (val_type == CCV_CLASS) {
  ------------------
  |  Branch (4780:6): [True: 0, False: 0]
  ------------------
 4781|      0|	  r = ONIGERR_UNMATCHED_RANGE_SPECIFIER_IN_CHAR_CLASS;
  ------------------
  |  |  656|      0|#define ONIGERR_UNMATCHED_RANGE_SPECIFIER_IN_CHAR_CLASS      -112
  ------------------
 4782|      0|	  goto err;
 4783|      0|	}
 4784|       |
 4785|      0|	state = CCS_RANGE;
 4786|      0|      }
 4787|      0|      else if (state == CCS_START) {
  ------------------
  |  Branch (4787:16): [True: 0, False: 0]
  ------------------
 4788|       |	/* [-xa] is allowed */
 4789|      0|	v = (OnigCodePoint )tok->u.c;
 4790|      0|	in_israw = 0;
 4791|       |
 4792|      0|	r = fetch_token_in_cc(tok, &p, end, env);
 4793|      0|	if (r < 0) goto err;
  ------------------
  |  Branch (4793:6): [True: 0, False: 0]
  ------------------
 4794|      0|	fetched = 1;
 4795|       |	/* [--x] or [a&&-x] is warned. */
 4796|      0|	if (r == TK_CC_RANGE || and_start != 0)
  ------------------
  |  Branch (4796:6): [True: 0, False: 0]
  |  Branch (4796:26): [True: 0, False: 0]
  ------------------
 4797|      0|	  CC_ESC_WARN(env, (UChar* )"-");
 4798|       |
 4799|      0|	goto val_entry;
 4800|      0|      }
 4801|      0|      else if (state == CCS_RANGE) {
  ------------------
  |  Branch (4801:16): [True: 0, False: 0]
  ------------------
 4802|      0|	CC_ESC_WARN(env, (UChar* )"-");
 4803|      0|	goto sb_char;  /* [!--x] is allowed */
 4804|      0|      }
 4805|      0|      else { /* CCS_COMPLETE */
 4806|      0|	r = fetch_token_in_cc(tok, &p, end, env);
 4807|      0|	if (r < 0) goto err;
  ------------------
  |  Branch (4807:6): [True: 0, False: 0]
  ------------------
 4808|      0|	fetched = 1;
 4809|      0|	if (r == TK_CC_CLOSE) goto range_end_val; /* allow [a-b-] */
  ------------------
  |  Branch (4809:6): [True: 0, False: 0]
  ------------------
 4810|      0|	else if (r == TK_CC_AND) {
  ------------------
  |  Branch (4810:11): [True: 0, False: 0]
  ------------------
 4811|      0|	  CC_ESC_WARN(env, (UChar* )"-");
 4812|      0|	  goto range_end_val;
 4813|      0|	}
 4814|       |
 4815|      0|	if (IS_SYNTAX_BV(env->syntax, ONIG_SYN_ALLOW_DOUBLE_RANGE_OP_IN_CC)) {
  ------------------
  |  |  332|      0|#define IS_SYNTAX_BV(syn, bvm)    (((syn)->behavior & (bvm)) != 0)
  |  |  ------------------
  |  |  |  Branch (332:35): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 4816|      0|	  CC_ESC_WARN(env, (UChar* )"-");
 4817|      0|	  goto range_end_val;   /* [0-9-a] is allowed as [0-9\-a] */
 4818|      0|	}
 4819|      0|	r = ONIGERR_UNMATCHED_RANGE_SPECIFIER_IN_CHAR_CLASS;
  ------------------
  |  |  656|      0|#define ONIGERR_UNMATCHED_RANGE_SPECIFIER_IN_CHAR_CLASS      -112
  ------------------
 4820|      0|	goto err;
 4821|      0|      }
 4822|      0|      break;
 4823|       |
 4824|      0|    case TK_CC_CC_OPEN: /* [ */
  ------------------
  |  Branch (4824:5): [True: 0, False: 57.7k]
  ------------------
 4825|      0|      {
 4826|      0|	Node *anode, *aasc_node;
 4827|      0|	CClassNode* acc;
 4828|       |
 4829|      0|	r = parse_char_class(&anode, &aasc_node, tok, &p, end, env);
 4830|      0|	if (r == 0) {
  ------------------
  |  Branch (4830:6): [True: 0, False: 0]
  ------------------
 4831|      0|	  acc = NCCLASS(anode);
  ------------------
  |  |   77|      0|#define NCCLASS(node)      (&((node)->u.cclass))
  ------------------
 4832|      0|	  r = or_cclass(cc, acc, env);
 4833|      0|	}
 4834|      0|	if (r == 0 && IS_NOT_NULL(aasc_node)) {
  ------------------
  |  |  312|      0|#define IS_NOT_NULL(p)                (((void*)(p)) != (void*)0)
  |  |  ------------------
  |  |  |  Branch (312:39): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  |  Branch (4834:6): [True: 0, False: 0]
  ------------------
 4835|      0|	  acc = NCCLASS(aasc_node);
  ------------------
  |  |   77|      0|#define NCCLASS(node)      (&((node)->u.cclass))
  ------------------
 4836|      0|	  r = or_cclass(asc_cc, acc, env);
 4837|      0|	}
 4838|      0|	onig_node_free(anode);
 4839|      0|	onig_node_free(aasc_node);
 4840|      0|	if (r != 0) goto err;
  ------------------
  |  Branch (4840:6): [True: 0, False: 0]
  ------------------
 4841|      0|      }
 4842|      0|      break;
 4843|       |
 4844|      0|    case TK_CC_AND: /* && */
  ------------------
  |  Branch (4844:5): [True: 0, False: 57.7k]
  ------------------
 4845|      0|      {
 4846|      0|	if (state == CCS_VALUE) {
  ------------------
  |  Branch (4846:6): [True: 0, False: 0]
  ------------------
 4847|      0|	  r = next_state_val(cc, asc_cc, &vs, 0, &val_israw, 0, val_type,
 4848|      0|			     &val_type, &state, env);
 4849|      0|	  if (r != 0) goto err;
  ------------------
  |  Branch (4849:8): [True: 0, False: 0]
  ------------------
 4850|      0|	}
 4851|       |	/* initialize local variables */
 4852|      0|	and_start = 1;
 4853|      0|	state = CCS_START;
 4854|       |
 4855|      0|	if (IS_NOT_NULL(prev_cc)) {
  ------------------
  |  |  312|      0|#define IS_NOT_NULL(p)                (((void*)(p)) != (void*)0)
  |  |  ------------------
  |  |  |  Branch (312:39): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 4856|      0|	  r = and_cclass(prev_cc, cc, env);
 4857|      0|	  if (r != 0) goto err;
  ------------------
  |  Branch (4857:8): [True: 0, False: 0]
  ------------------
 4858|      0|	  bbuf_free(cc->mbuf);
 4859|      0|	  if (IS_NOT_NULL(asc_cc)) {
  ------------------
  |  |  312|      0|#define IS_NOT_NULL(p)                (((void*)(p)) != (void*)0)
  |  |  ------------------
  |  |  |  Branch (312:39): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 4860|      0|	    r = and_cclass(asc_prev_cc, asc_cc, env);
 4861|      0|	    if (r != 0) goto err;
  ------------------
  |  Branch (4861:10): [True: 0, False: 0]
  ------------------
 4862|      0|	    bbuf_free(asc_cc->mbuf);
 4863|      0|	  }
 4864|      0|	}
 4865|      0|	else {
 4866|      0|	  prev_cc = cc;
 4867|      0|	  cc = &work_cc;
 4868|      0|	  if (IS_NOT_NULL(asc_cc)) {
  ------------------
  |  |  312|      0|#define IS_NOT_NULL(p)                (((void*)(p)) != (void*)0)
  |  |  ------------------
  |  |  |  Branch (312:39): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 4869|      0|	    asc_prev_cc = asc_cc;
 4870|      0|	    asc_cc = &asc_work_cc;
 4871|      0|	  }
 4872|      0|	}
 4873|      0|	initialize_cclass(cc);
 4874|      0|	if (IS_NOT_NULL(asc_cc))
  ------------------
  |  |  312|      0|#define IS_NOT_NULL(p)                (((void*)(p)) != (void*)0)
  |  |  ------------------
  |  |  |  Branch (312:39): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 4875|      0|	  initialize_cclass(asc_cc);
 4876|      0|      }
 4877|      0|      break;
 4878|       |
 4879|      0|    case TK_EOT:
  ------------------
  |  Branch (4879:5): [True: 0, False: 57.7k]
  ------------------
 4880|      0|      r = ONIGERR_PREMATURE_END_OF_CHAR_CLASS;
  ------------------
  |  |  648|      0|#define ONIGERR_PREMATURE_END_OF_CHAR_CLASS                  -103
  ------------------
 4881|      0|      goto err;
 4882|      0|      break;
 4883|      0|    default:
  ------------------
  |  Branch (4883:5): [True: 0, False: 57.7k]
  ------------------
 4884|      0|      r = ONIGERR_PARSER_BUG;
  ------------------
  |  |  634|      0|#define ONIGERR_PARSER_BUG                                    -11
  ------------------
 4885|      0|      goto err;
 4886|      0|      break;
 4887|  57.7k|    }
 4888|       |
 4889|  57.7k|    if (fetched)
  ------------------
  |  Branch (4889:9): [True: 0, False: 57.7k]
  ------------------
 4890|      0|      r = tok->type;
 4891|  57.7k|    else {
 4892|  57.7k|      r = fetch_token_in_cc(tok, &p, end, env);
 4893|  57.7k|      if (r < 0) goto err;
  ------------------
  |  Branch (4893:11): [True: 0, False: 57.7k]
  ------------------
 4894|  57.7k|    }
 4895|  57.7k|  }
 4896|       |
 4897|  21.7k|  if (state == CCS_VALUE) {
  ------------------
  |  Branch (4897:7): [True: 21.7k, False: 0]
  ------------------
 4898|  21.7k|    r = next_state_val(cc, asc_cc, &vs, 0, &val_israw, 0, val_type,
 4899|  21.7k|		       &val_type, &state, env);
 4900|  21.7k|    if (r != 0) goto err;
  ------------------
  |  Branch (4900:9): [True: 0, False: 21.7k]
  ------------------
 4901|  21.7k|  }
 4902|       |
 4903|  21.7k|  if (IS_NOT_NULL(prev_cc)) {
  ------------------
  |  |  312|  21.7k|#define IS_NOT_NULL(p)                (((void*)(p)) != (void*)0)
  |  |  ------------------
  |  |  |  Branch (312:39): [True: 0, False: 21.7k]
  |  |  ------------------
  ------------------
 4904|      0|    r = and_cclass(prev_cc, cc, env);
 4905|      0|    if (r != 0) goto err;
  ------------------
  |  Branch (4905:9): [True: 0, False: 0]
  ------------------
 4906|      0|    bbuf_free(cc->mbuf);
 4907|      0|    cc = prev_cc;
 4908|      0|    if (IS_NOT_NULL(asc_cc)) {
  ------------------
  |  |  312|      0|#define IS_NOT_NULL(p)                (((void*)(p)) != (void*)0)
  |  |  ------------------
  |  |  |  Branch (312:39): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 4909|      0|      r = and_cclass(asc_prev_cc, asc_cc, env);
 4910|      0|      if (r != 0) goto err;
  ------------------
  |  Branch (4910:11): [True: 0, False: 0]
  ------------------
 4911|      0|      bbuf_free(asc_cc->mbuf);
 4912|      0|      asc_cc = asc_prev_cc;
 4913|      0|    }
 4914|      0|  }
 4915|       |
 4916|  21.7k|  if (neg != 0) {
  ------------------
  |  Branch (4916:7): [True: 8.58k, False: 13.1k]
  ------------------
 4917|  8.58k|    NCCLASS_SET_NOT(cc);
  ------------------
  |  |  807|  8.58k|#define NCCLASS_SET_NOT(nd)     NCCLASS_FLAG_SET(nd, FLAG_NCCLASS_NOT)
  |  |  ------------------
  |  |  |  |  800|  8.58k|#define NCCLASS_FLAG_SET(cc,flag)    (NCCLASS_FLAGS(cc) |= (flag))
  |  |  |  |  ------------------
  |  |  |  |  |  |  799|  8.58k|#define NCCLASS_FLAGS(cc)           ((cc)->flags)
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 4918|  8.58k|    if (IS_NOT_NULL(asc_cc))
  ------------------
  |  |  312|  8.58k|#define IS_NOT_NULL(p)                (((void*)(p)) != (void*)0)
  |  |  ------------------
  |  |  |  Branch (312:39): [True: 0, False: 8.58k]
  |  |  ------------------
  ------------------
 4919|  8.58k|      NCCLASS_SET_NOT(asc_cc);
  ------------------
  |  |  807|      0|#define NCCLASS_SET_NOT(nd)     NCCLASS_FLAG_SET(nd, FLAG_NCCLASS_NOT)
  |  |  ------------------
  |  |  |  |  800|      0|#define NCCLASS_FLAG_SET(cc,flag)    (NCCLASS_FLAGS(cc) |= (flag))
  |  |  |  |  ------------------
  |  |  |  |  |  |  799|      0|#define NCCLASS_FLAGS(cc)           ((cc)->flags)
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 4920|  8.58k|  }
 4921|  13.1k|  else {
 4922|  13.1k|    NCCLASS_CLEAR_NOT(cc);
  ------------------
  |  |  808|  13.1k|#define NCCLASS_CLEAR_NOT(nd)   NCCLASS_FLAG_CLEAR(nd, FLAG_NCCLASS_NOT)
  |  |  ------------------
  |  |  |  |  801|  13.1k|#define NCCLASS_FLAG_CLEAR(cc,flag)  (NCCLASS_FLAGS(cc) &= ~(flag))
  |  |  |  |  ------------------
  |  |  |  |  |  |  799|  13.1k|#define NCCLASS_FLAGS(cc)           ((cc)->flags)
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 4923|  13.1k|    if (IS_NOT_NULL(asc_cc))
  ------------------
  |  |  312|  13.1k|#define IS_NOT_NULL(p)                (((void*)(p)) != (void*)0)
  |  |  ------------------
  |  |  |  Branch (312:39): [True: 0, False: 13.1k]
  |  |  ------------------
  ------------------
 4924|  13.1k|      NCCLASS_CLEAR_NOT(asc_cc);
  ------------------
  |  |  808|      0|#define NCCLASS_CLEAR_NOT(nd)   NCCLASS_FLAG_CLEAR(nd, FLAG_NCCLASS_NOT)
  |  |  ------------------
  |  |  |  |  801|      0|#define NCCLASS_FLAG_CLEAR(cc,flag)  (NCCLASS_FLAGS(cc) &= ~(flag))
  |  |  |  |  ------------------
  |  |  |  |  |  |  799|      0|#define NCCLASS_FLAGS(cc)           ((cc)->flags)
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 4925|  13.1k|  }
 4926|  21.7k|  if (IS_NCCLASS_NOT(cc) &&
  ------------------
  |  |  809|  21.7k|#define IS_NCCLASS_NOT(nd)      IS_NCCLASS_FLAG_ON(nd, FLAG_NCCLASS_NOT)
  |  |  ------------------
  |  |  |  |  802|  43.4k|#define IS_NCCLASS_FLAG_ON(cc,flag) ((NCCLASS_FLAGS(cc) & (flag)) != 0)
  |  |  |  |  ------------------
  |  |  |  |  |  |  799|  21.7k|#define NCCLASS_FLAGS(cc)           ((cc)->flags)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (802:37): [True: 8.58k, False: 13.1k]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 4927|  21.7k|      IS_SYNTAX_BV(env->syntax, ONIG_SYN_NOT_NEWLINE_IN_NEGATIVE_CC)) {
  ------------------
  |  |  332|  8.58k|#define IS_SYNTAX_BV(syn, bvm)    (((syn)->behavior & (bvm)) != 0)
  |  |  ------------------
  |  |  |  Branch (332:35): [True: 0, False: 8.58k]
  |  |  ------------------
  ------------------
 4928|      0|    int is_empty;
 4929|       |
 4930|      0|    is_empty = (IS_NULL(cc->mbuf) ? 1 : 0);
  ------------------
  |  |  311|      0|#define IS_NULL(p)                    (((void*)(p)) == (void*)0)
  |  |  ------------------
  |  |  |  Branch (311:39): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 4931|      0|    if (is_empty != 0)
  ------------------
  |  Branch (4931:9): [True: 0, False: 0]
  ------------------
 4932|      0|      BITSET_IS_EMPTY(cc->bs, is_empty);
  ------------------
  |  |  181|      0|#define BITSET_IS_EMPTY(bs,empty) do {\
  |  |  182|      0|  int i;\
  |  |  183|      0|  empty = 1;\
  |  |  184|      0|  for (i = 0; i < BITSET_SIZE; i++) {\
  |  |  ------------------
  |  |  |  |  428|      0|#define BITSET_SIZE        (SINGLE_BYTE_SIZE / BITS_IN_ROOM)
  |  |  |  |  ------------------
  |  |  |  |  |  |  426|      0|#define SINGLE_BYTE_SIZE   (1 << BITS_PER_BYTE)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  425|      0|#define BITS_PER_BYTE      8
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |               #define BITSET_SIZE        (SINGLE_BYTE_SIZE / BITS_IN_ROOM)
  |  |  |  |  ------------------
  |  |  |  |  |  |  427|      0|#define BITS_IN_ROOM       ((int )sizeof(Bits) * BITS_PER_BYTE)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  425|      0|#define BITS_PER_BYTE      8
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  |  Branch (184:15): [True: 0, False: 0]
  |  |  ------------------
  |  |  185|      0|    if ((bs)[i] != 0) {\
  |  |  ------------------
  |  |  |  Branch (185:9): [True: 0, False: 0]
  |  |  ------------------
  |  |  186|      0|      empty = 0; break;\
  |  |  187|      0|    }\
  |  |  188|      0|  }\
  |  |  189|      0|} while (0)
  |  |  ------------------
  |  |  |  Branch (189:10): [Folded - Ignored]
  |  |  ------------------
  ------------------
 4933|       |
 4934|      0|    if (is_empty == 0) {
  ------------------
  |  Branch (4934:9): [True: 0, False: 0]
  ------------------
 4935|      0|#define NEWLINE_CODE    0x0a
 4936|       |
 4937|      0|      if (ONIGENC_IS_CODE_NEWLINE(env->enc, NEWLINE_CODE)) {
  ------------------
  |  |  378|      0|        ONIGENC_IS_CODE_CTYPE(enc,code,ONIGENC_CTYPE_NEWLINE)
  |  |  ------------------
  |  |  |  |  375|      0|#define ONIGENC_IS_CODE_CTYPE(enc,code,ctype)  (enc)->is_code_ctype(code,ctype,enc)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (375:48): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 4938|      0|	if (ONIGENC_CODE_TO_MBCLEN(env->enc, NEWLINE_CODE) == 1)
  ------------------
  |  |  370|      0|#define ONIGENC_CODE_TO_MBCLEN(enc,code)       (enc)->code_to_mbclen(code,enc)
  ------------------
  |  Branch (4938:6): [True: 0, False: 0]
  ------------------
 4939|      0|	  BITSET_SET_BIT_CHKDUP(cc->bs, NEWLINE_CODE);
  ------------------
  |  |  176|      0|#define BITSET_SET_BIT_CHKDUP(bs, pos) do { \
  |  |  177|      0|  if (BITSET_AT(bs, pos)) CC_DUP_WARN(env, pos, pos); \
  |  |  ------------------
  |  |  |  |  448|      0|#define BITSET_AT(bs, pos)         (BS_ROOM(bs,pos) & BS_BIT(pos))
  |  |  |  |  ------------------
  |  |  |  |  |  |  445|      0|#define BS_ROOM(bs,pos)            (bs)[(int )(pos) / BITS_IN_ROOM]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  427|      0|#define BITS_IN_ROOM       ((int )sizeof(Bits) * BITS_PER_BYTE)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  425|      0|#define BITS_PER_BYTE      8
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |               #define BITSET_AT(bs, pos)         (BS_ROOM(bs,pos) & BS_BIT(pos))
  |  |  |  |  ------------------
  |  |  |  |  |  |  446|      0|#define BS_BIT(pos)                (1U << ((int )(pos) % BITS_IN_ROOM))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  427|      0|#define BITS_IN_ROOM       ((int )sizeof(Bits) * BITS_PER_BYTE)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  425|      0|#define BITS_PER_BYTE      8
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (448:36): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  178|      0|  BS_ROOM(bs, pos) |= BS_BIT(pos); \
  |  |  ------------------
  |  |  |  |  445|      0|#define BS_ROOM(bs,pos)            (bs)[(int )(pos) / BITS_IN_ROOM]
  |  |  |  |  ------------------
  |  |  |  |  |  |  427|      0|#define BITS_IN_ROOM       ((int )sizeof(Bits) * BITS_PER_BYTE)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  425|      0|#define BITS_PER_BYTE      8
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |                 BS_ROOM(bs, pos) |= BS_BIT(pos); \
  |  |  ------------------
  |  |  |  |  446|      0|#define BS_BIT(pos)                (1U << ((int )(pos) % BITS_IN_ROOM))
  |  |  |  |  ------------------
  |  |  |  |  |  |  427|      0|#define BITS_IN_ROOM       ((int )sizeof(Bits) * BITS_PER_BYTE)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  425|      0|#define BITS_PER_BYTE      8
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  179|      0|} while (0)
  |  |  ------------------
  |  |  |  Branch (179:10): [Folded - Ignored]
  |  |  ------------------
  ------------------
 4940|      0|	else {
 4941|      0|	  r = add_code_range(&(cc->mbuf), env, NEWLINE_CODE, NEWLINE_CODE);
  ------------------
  |  | 4935|      0|#define NEWLINE_CODE    0x0a
  ------------------
              	  r = add_code_range(&(cc->mbuf), env, NEWLINE_CODE, NEWLINE_CODE);
  ------------------
  |  | 4935|      0|#define NEWLINE_CODE    0x0a
  ------------------
 4942|      0|	  if (r < 0) goto err;
  ------------------
  |  Branch (4942:8): [True: 0, False: 0]
  ------------------
 4943|      0|	}
 4944|      0|      }
 4945|      0|    }
 4946|      0|  }
 4947|  21.7k|  *src = p;
 4948|  21.7k|  env->parse_depth--;
 4949|  21.7k|  return 0;
 4950|       |
 4951|      0| err:
 4952|      0|  if (cc != NCCLASS(*np))
  ------------------
  |  |   77|      0|#define NCCLASS(node)      (&((node)->u.cclass))
  ------------------
  |  Branch (4952:7): [True: 0, False: 0]
  ------------------
 4953|      0|    bbuf_free(cc->mbuf);
 4954|      0|  if (IS_NOT_NULL(asc_cc) && (asc_cc != NCCLASS(*asc_np)))
  ------------------
  |  |  312|      0|#define IS_NOT_NULL(p)                (((void*)(p)) != (void*)0)
  |  |  ------------------
  |  |  |  Branch (312:39): [True: 0, False: 0]
  |  |  ------------------
  ------------------
                if (IS_NOT_NULL(asc_cc) && (asc_cc != NCCLASS(*asc_np)))
  ------------------
  |  |   77|      0|#define NCCLASS(node)      (&((node)->u.cclass))
  ------------------
  |  Branch (4954:30): [True: 0, False: 0]
  ------------------
 4955|      0|    bbuf_free(asc_cc->mbuf);
 4956|      0|  return r;
 4957|  21.7k|}
regparse.c:fetch_token_in_cc:
 2980|  88.0k|{
 2981|  88.0k|  int num;
 2982|  88.0k|  OnigCodePoint c, c2;
 2983|  88.0k|  const OnigSyntaxType* syn = env->syntax;
 2984|  88.0k|  OnigEncoding enc = env->enc;
 2985|  88.0k|  UChar* prev;
  ------------------
  |  |   76|  88.0k|# define UChar OnigUChar
  ------------------
 2986|  88.0k|  UChar* p = *src;
  ------------------
  |  |   76|  88.0k|# define UChar OnigUChar
  ------------------
 2987|  88.0k|  PFETCH_READY;
  ------------------
  |  |  295|  88.0k|# define PFETCH_READY  UChar* pfetch_prev = NULL; (void)pfetch_prev
  |  |  ------------------
  |  |  |  |   76|  88.0k|# define UChar OnigUChar
  |  |  ------------------
  ------------------
 2988|       |
 2989|  88.0k|  if (PEND) {
  ------------------
  |  |  299|  88.0k|#define PEND         (p < end ?  0 : 1)
  |  |  ------------------
  |  |  |  Branch (299:22): [True: 0, False: 88.0k]
  |  |  |  Branch (299:23): [True: 88.0k, False: 0]
  |  |  ------------------
  ------------------
 2990|      0|    tok->type = TK_EOT;
 2991|      0|    return tok->type;
 2992|      0|  }
 2993|       |
 2994|  88.0k|  PFETCH(c);
  ------------------
  |  |  305|  88.0k|#define PFETCH(c)  do { \
  |  |  306|  88.0k|  c = ((enc->max_enc_len == 1) ? *p : ONIGENC_MBC_TO_CODE(enc, p, end)); \
  |  |  ------------------
  |  |  |  |  369|  88.0k|#define ONIGENC_MBC_TO_CODE(enc,p,end)         (enc)->mbc_to_code((p),(end),enc)
  |  |  ------------------
  |  |  |  Branch (306:8): [True: 0, False: 88.0k]
  |  |  ------------------
  |  |  307|  88.0k|  pfetch_prev = p; \
  |  |  308|  88.0k|  p += enclen(enc, p, end); \
  |  |  ------------------
  |  |  |  |   93|  88.0k|#define enclen(enc,p,e) ((enc->max_enc_len == enc->min_enc_len) ? enc->min_enc_len : ONIGENC_MBC_ENC_LEN(enc,p,e))
  |  |  |  |  ------------------
  |  |  |  |  |  |  364|  88.0k|#define ONIGENC_MBC_ENC_LEN(enc,p,e)          onigenc_mbclen(p,e,enc)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (93:26): [True: 0, False: 88.0k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  309|  88.0k|} while (0)
  |  |  ------------------
  |  |  |  Branch (309:10): [Folded - Ignored]
  |  |  ------------------
  ------------------
 2995|  88.0k|  tok->type = TK_CHAR;
 2996|  88.0k|  tok->base = 0;
 2997|  88.0k|  tok->u.c  = c;
 2998|  88.0k|  tok->escaped = 0;
 2999|       |
 3000|  88.0k|  if (c == ']') {
  ------------------
  |  Branch (3000:7): [True: 21.7k, False: 66.3k]
  ------------------
 3001|  21.7k|    tok->type = TK_CC_CLOSE;
 3002|  21.7k|  }
 3003|  66.3k|  else if (c == '-') {
  ------------------
  |  Branch (3003:12): [True: 0, False: 66.3k]
  ------------------
 3004|      0|    tok->type = TK_CC_RANGE;
 3005|      0|  }
 3006|  66.3k|  else if (c == MC_ESC(syn)) {
  ------------------
  |  |  761|  66.3k|#define MC_ESC(syn)               (syn)->meta_char_table.esc
  ------------------
  |  Branch (3006:12): [True: 24.6k, False: 41.6k]
  ------------------
 3007|  24.6k|    if (! IS_SYNTAX_BV(syn, ONIG_SYN_BACKSLASH_ESCAPE_IN_CC))
  ------------------
  |  |  332|  24.6k|#define IS_SYNTAX_BV(syn, bvm)    (((syn)->behavior & (bvm)) != 0)
  ------------------
  |  Branch (3007:9): [True: 0, False: 24.6k]
  ------------------
 3008|      0|      goto end;
 3009|       |
 3010|  24.6k|    if (PEND) return ONIGERR_END_PATTERN_AT_ESCAPE;
  ------------------
  |  |  299|  24.6k|#define PEND         (p < end ?  0 : 1)
  |  |  ------------------
  |  |  |  Branch (299:22): [True: 0, False: 24.6k]
  |  |  |  Branch (299:23): [True: 24.6k, False: 0]
  |  |  ------------------
  ------------------
                  if (PEND) return ONIGERR_END_PATTERN_AT_ESCAPE;
  ------------------
  |  |  649|      0|#define ONIGERR_END_PATTERN_AT_ESCAPE                        -104
  ------------------
 3011|       |
 3012|  24.6k|    PFETCH(c);
  ------------------
  |  |  305|  24.6k|#define PFETCH(c)  do { \
  |  |  306|  24.6k|  c = ((enc->max_enc_len == 1) ? *p : ONIGENC_MBC_TO_CODE(enc, p, end)); \
  |  |  ------------------
  |  |  |  |  369|  24.6k|#define ONIGENC_MBC_TO_CODE(enc,p,end)         (enc)->mbc_to_code((p),(end),enc)
  |  |  ------------------
  |  |  |  Branch (306:8): [True: 0, False: 24.6k]
  |  |  ------------------
  |  |  307|  24.6k|  pfetch_prev = p; \
  |  |  308|  24.6k|  p += enclen(enc, p, end); \
  |  |  ------------------
  |  |  |  |   93|  24.6k|#define enclen(enc,p,e) ((enc->max_enc_len == enc->min_enc_len) ? enc->min_enc_len : ONIGENC_MBC_ENC_LEN(enc,p,e))
  |  |  |  |  ------------------
  |  |  |  |  |  |  364|  24.6k|#define ONIGENC_MBC_ENC_LEN(enc,p,e)          onigenc_mbclen(p,e,enc)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (93:26): [True: 0, False: 24.6k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  309|  24.6k|} while (0)
  |  |  ------------------
  |  |  |  Branch (309:10): [Folded - Ignored]
  |  |  ------------------
  ------------------
 3013|  24.6k|    tok->escaped = 1;
 3014|  24.6k|    tok->u.c = c;
 3015|  24.6k|    switch (c) {
 3016|      0|    case 'w':
  ------------------
  |  Branch (3016:5): [True: 0, False: 24.6k]
  ------------------
 3017|      0|      tok->type = TK_CHAR_TYPE;
 3018|      0|      tok->u.prop.ctype = ONIGENC_CTYPE_WORD;
  ------------------
  |  |  306|      0|#define ONIGENC_CTYPE_WORD     12
  ------------------
 3019|      0|      tok->u.prop.not   = 0;
 3020|      0|      break;
 3021|      0|    case 'W':
  ------------------
  |  Branch (3021:5): [True: 0, False: 24.6k]
  ------------------
 3022|      0|      tok->type = TK_CHAR_TYPE;
 3023|      0|      tok->u.prop.ctype = ONIGENC_CTYPE_WORD;
  ------------------
  |  |  306|      0|#define ONIGENC_CTYPE_WORD     12
  ------------------
 3024|      0|      tok->u.prop.not   = 1;
 3025|      0|      break;
 3026|      0|    case 'd':
  ------------------
  |  Branch (3026:5): [True: 0, False: 24.6k]
  ------------------
 3027|      0|      tok->type = TK_CHAR_TYPE;
 3028|      0|      tok->u.prop.ctype = ONIGENC_CTYPE_DIGIT;
  ------------------
  |  |  298|      0|#define ONIGENC_CTYPE_DIGIT     4
  ------------------
 3029|      0|      tok->u.prop.not   = 0;
 3030|      0|      break;
 3031|      0|    case 'D':
  ------------------
  |  Branch (3031:5): [True: 0, False: 24.6k]
  ------------------
 3032|      0|      tok->type = TK_CHAR_TYPE;
 3033|      0|      tok->u.prop.ctype = ONIGENC_CTYPE_DIGIT;
  ------------------
  |  |  298|      0|#define ONIGENC_CTYPE_DIGIT     4
  ------------------
 3034|      0|      tok->u.prop.not   = 1;
 3035|      0|      break;
 3036|  5.72k|    case 's':
  ------------------
  |  Branch (3036:5): [True: 5.72k, False: 18.9k]
  ------------------
 3037|  5.72k|      tok->type = TK_CHAR_TYPE;
 3038|  5.72k|      tok->u.prop.ctype = ONIGENC_CTYPE_SPACE;
  ------------------
  |  |  303|  5.72k|#define ONIGENC_CTYPE_SPACE     9
  ------------------
 3039|  5.72k|      tok->u.prop.not   = 0;
 3040|  5.72k|      break;
 3041|      0|    case 'S':
  ------------------
  |  Branch (3041:5): [True: 0, False: 24.6k]
  ------------------
 3042|      0|      tok->type = TK_CHAR_TYPE;
 3043|      0|      tok->u.prop.ctype = ONIGENC_CTYPE_SPACE;
  ------------------
  |  |  303|      0|#define ONIGENC_CTYPE_SPACE     9
  ------------------
 3044|      0|      tok->u.prop.not   = 1;
 3045|      0|      break;
 3046|      0|    case 'h':
  ------------------
  |  Branch (3046:5): [True: 0, False: 24.6k]
  ------------------
 3047|      0|      if (! IS_SYNTAX_OP2(syn, ONIG_SYN_OP2_ESC_H_XDIGIT)) break;
  ------------------
  |  |  331|      0|#define IS_SYNTAX_OP2(syn, opm)   (((syn)->op2 & (opm)) != 0)
  ------------------
  |  Branch (3047:11): [True: 0, False: 0]
  ------------------
 3048|      0|      tok->type = TK_CHAR_TYPE;
 3049|      0|      tok->u.prop.ctype = ONIGENC_CTYPE_XDIGIT;
  ------------------
  |  |  305|      0|#define ONIGENC_CTYPE_XDIGIT   11
  ------------------
 3050|      0|      tok->u.prop.not   = 0;
 3051|      0|      break;
 3052|      0|    case 'H':
  ------------------
  |  Branch (3052:5): [True: 0, False: 24.6k]
  ------------------
 3053|      0|      if (! IS_SYNTAX_OP2(syn, ONIG_SYN_OP2_ESC_H_XDIGIT)) break;
  ------------------
  |  |  331|      0|#define IS_SYNTAX_OP2(syn, opm)   (((syn)->op2 & (opm)) != 0)
  ------------------
  |  Branch (3053:11): [True: 0, False: 0]
  ------------------
 3054|      0|      tok->type = TK_CHAR_TYPE;
 3055|      0|      tok->u.prop.ctype = ONIGENC_CTYPE_XDIGIT;
  ------------------
  |  |  305|      0|#define ONIGENC_CTYPE_XDIGIT   11
  ------------------
 3056|      0|      tok->u.prop.not   = 1;
 3057|      0|      break;
 3058|       |
 3059|      0|    case 'p':
  ------------------
  |  Branch (3059:5): [True: 0, False: 24.6k]
  ------------------
 3060|      0|    case 'P':
  ------------------
  |  Branch (3060:5): [True: 0, False: 24.6k]
  ------------------
 3061|      0|      if (PEND) break;
  ------------------
  |  |  299|      0|#define PEND         (p < end ?  0 : 1)
  |  |  ------------------
  |  |  |  Branch (299:22): [True: 0, False: 0]
  |  |  |  Branch (299:23): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 3062|       |
 3063|      0|      c2 = PPEEK;
  ------------------
  |  |  319|      0|#define PPEEK        (p < end ? ONIGENC_MBC_TO_CODE(enc, p, end) : PEND_VALUE)
  |  |  ------------------
  |  |  |  |  369|      0|#define ONIGENC_MBC_TO_CODE(enc,p,end)         (enc)->mbc_to_code((p),(end),enc)
  |  |  ------------------
  |  |               #define PPEEK        (p < end ? ONIGENC_MBC_TO_CODE(enc, p, end) : PEND_VALUE)
  |  |  ------------------
  |  |  |  |  291|      0|#define PEND_VALUE   0
  |  |  ------------------
  |  |  |  Branch (319:23): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 3064|      0|      if (c2 == '{' &&
  ------------------
  |  Branch (3064:11): [True: 0, False: 0]
  ------------------
 3065|      0|	  IS_SYNTAX_OP2(syn, ONIG_SYN_OP2_ESC_P_BRACE_CHAR_PROPERTY)) {
  ------------------
  |  |  331|      0|#define IS_SYNTAX_OP2(syn, opm)   (((syn)->op2 & (opm)) != 0)
  |  |  ------------------
  |  |  |  Branch (331:35): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 3066|      0|	PINC;
  ------------------
  |  |  301|      0|#define PINC       do { \
  |  |  302|      0|  pfetch_prev = p; \
  |  |  303|      0|  p += enclen(enc, p, end); \
  |  |  ------------------
  |  |  |  |   93|      0|#define enclen(enc,p,e) ((enc->max_enc_len == enc->min_enc_len) ? enc->min_enc_len : ONIGENC_MBC_ENC_LEN(enc,p,e))
  |  |  |  |  ------------------
  |  |  |  |  |  |  364|      0|#define ONIGENC_MBC_ENC_LEN(enc,p,e)          onigenc_mbclen(p,e,enc)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (93:26): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  304|      0|} while (0)
  |  |  ------------------
  |  |  |  Branch (304:10): [Folded - Ignored]
  |  |  ------------------
  ------------------
 3067|      0|	tok->type = TK_CHAR_PROPERTY;
 3068|      0|	tok->u.prop.not = (c == 'P' ? 1 : 0);
  ------------------
  |  Branch (3068:21): [True: 0, False: 0]
  ------------------
 3069|       |
 3070|      0|	if (!PEND && IS_SYNTAX_OP2(syn, ONIG_SYN_OP2_ESC_P_BRACE_CIRCUMFLEX_NOT)) {
  ------------------
  |  |  299|      0|#define PEND         (p < end ?  0 : 1)
  |  |  ------------------
  |  |  |  Branch (299:23): [True: 0, False: 0]
  |  |  ------------------
  ------------------
              	if (!PEND && IS_SYNTAX_OP2(syn, ONIG_SYN_OP2_ESC_P_BRACE_CIRCUMFLEX_NOT)) {
  ------------------
  |  |  331|      0|#define IS_SYNTAX_OP2(syn, opm)   (((syn)->op2 & (opm)) != 0)
  |  |  ------------------
  |  |  |  Branch (331:35): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  |  Branch (3070:6): [True: 0, False: 0]
  ------------------
 3071|      0|	  PFETCH(c2);
  ------------------
  |  |  305|      0|#define PFETCH(c)  do { \
  |  |  306|      0|  c = ((enc->max_enc_len == 1) ? *p : ONIGENC_MBC_TO_CODE(enc, p, end)); \
  |  |  ------------------
  |  |  |  |  369|      0|#define ONIGENC_MBC_TO_CODE(enc,p,end)         (enc)->mbc_to_code((p),(end),enc)
  |  |  ------------------
  |  |  |  Branch (306:8): [True: 0, False: 0]
  |  |  ------------------
  |  |  307|      0|  pfetch_prev = p; \
  |  |  308|      0|  p += enclen(enc, p, end); \
  |  |  ------------------
  |  |  |  |   93|      0|#define enclen(enc,p,e) ((enc->max_enc_len == enc->min_enc_len) ? enc->min_enc_len : ONIGENC_MBC_ENC_LEN(enc,p,e))
  |  |  |  |  ------------------
  |  |  |  |  |  |  364|      0|#define ONIGENC_MBC_ENC_LEN(enc,p,e)          onigenc_mbclen(p,e,enc)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (93:26): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  309|      0|} while (0)
  |  |  ------------------
  |  |  |  Branch (309:10): [Folded - Ignored]
  |  |  ------------------
  ------------------
 3072|      0|	  if (c2 == '^') {
  ------------------
  |  Branch (3072:8): [True: 0, False: 0]
  ------------------
 3073|      0|	    tok->u.prop.not = (tok->u.prop.not == 0 ? 1 : 0);
  ------------------
  |  Branch (3073:25): [True: 0, False: 0]
  ------------------
 3074|      0|	  }
 3075|      0|	  else
 3076|      0|	    PUNFETCH;
  ------------------
  |  |  300|      0|#define PUNFETCH     p = pfetch_prev
  ------------------
 3077|      0|	}
 3078|      0|      }
 3079|      0|      else {
 3080|      0|	onig_syntax_warn(env, "invalid Unicode Property \\%c", c);
 3081|      0|      }
 3082|      0|      break;
 3083|       |
 3084|      0|    case 'x':
  ------------------
  |  Branch (3084:5): [True: 0, False: 24.6k]
  ------------------
 3085|      0|      if (PEND) break;
  ------------------
  |  |  299|      0|#define PEND         (p < end ?  0 : 1)
  |  |  ------------------
  |  |  |  Branch (299:22): [True: 0, False: 0]
  |  |  |  Branch (299:23): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 3086|       |
 3087|      0|      prev = p;
 3088|      0|      if (PPEEK_IS('{') && IS_SYNTAX_OP(syn, ONIG_SYN_OP_ESC_X_BRACE_HEX8)) {
  ------------------
  |  |  320|      0|#define PPEEK_IS(c)  (PPEEK == (OnigCodePoint )c)
  |  |  ------------------
  |  |  |  |  319|      0|#define PPEEK        (p < end ? ONIGENC_MBC_TO_CODE(enc, p, end) : PEND_VALUE)
  |  |  |  |  ------------------
  |  |  |  |  |  |  369|      0|#define ONIGENC_MBC_TO_CODE(enc,p,end)         (enc)->mbc_to_code((p),(end),enc)
  |  |  |  |  ------------------
  |  |  |  |               #define PPEEK        (p < end ? ONIGENC_MBC_TO_CODE(enc, p, end) : PEND_VALUE)
  |  |  |  |  ------------------
  |  |  |  |  |  |  291|      0|#define PEND_VALUE   0
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (319:23): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  |  Branch (320:22): [True: 0, False: 0]
  |  |  ------------------
  ------------------
                    if (PPEEK_IS('{') && IS_SYNTAX_OP(syn, ONIG_SYN_OP_ESC_X_BRACE_HEX8)) {
  ------------------
  |  |  330|      0|#define IS_SYNTAX_OP(syn, opm)    (((syn)->op  & (opm)) != 0)
  |  |  ------------------
  |  |  |  Branch (330:35): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 3089|      0|	PINC;
  ------------------
  |  |  301|      0|#define PINC       do { \
  |  |  302|      0|  pfetch_prev = p; \
  |  |  303|      0|  p += enclen(enc, p, end); \
  |  |  ------------------
  |  |  |  |   93|      0|#define enclen(enc,p,e) ((enc->max_enc_len == enc->min_enc_len) ? enc->min_enc_len : ONIGENC_MBC_ENC_LEN(enc,p,e))
  |  |  |  |  ------------------
  |  |  |  |  |  |  364|      0|#define ONIGENC_MBC_ENC_LEN(enc,p,e)          onigenc_mbclen(p,e,enc)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (93:26): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  304|      0|} while (0)
  |  |  ------------------
  |  |  |  Branch (304:10): [Folded - Ignored]
  |  |  ------------------
  ------------------
 3090|      0|	num = scan_unsigned_hexadecimal_number(&p, end, 0, 8, enc);
 3091|      0|	if (num < 0) return ONIGERR_TOO_BIG_WIDE_CHAR_VALUE;
  ------------------
  |  |  694|      0|#define ONIGERR_TOO_BIG_WIDE_CHAR_VALUE                      -401
  ------------------
  |  Branch (3091:6): [True: 0, False: 0]
  ------------------
 3092|      0|	if (!PEND) {
  ------------------
  |  |  299|      0|#define PEND         (p < end ?  0 : 1)
  |  |  ------------------
  |  |  |  Branch (299:23): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  |  Branch (3092:6): [True: 0, False: 0]
  ------------------
 3093|      0|	  c2 = PPEEK;
  ------------------
  |  |  319|      0|#define PPEEK        (p < end ? ONIGENC_MBC_TO_CODE(enc, p, end) : PEND_VALUE)
  |  |  ------------------
  |  |  |  |  369|      0|#define ONIGENC_MBC_TO_CODE(enc,p,end)         (enc)->mbc_to_code((p),(end),enc)
  |  |  ------------------
  |  |               #define PPEEK        (p < end ? ONIGENC_MBC_TO_CODE(enc, p, end) : PEND_VALUE)
  |  |  ------------------
  |  |  |  |  291|      0|#define PEND_VALUE   0
  |  |  ------------------
  |  |  |  Branch (319:23): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 3094|      0|	  if (ONIGENC_IS_CODE_XDIGIT(enc, c2))
  ------------------
  |  |  402|      0|        ONIGENC_IS_CODE_CTYPE(enc,code,ONIGENC_CTYPE_XDIGIT)
  |  |  ------------------
  |  |  |  |  375|      0|#define ONIGENC_IS_CODE_CTYPE(enc,code,ctype)  (enc)->is_code_ctype(code,ctype,enc)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (375:48): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 3095|      0|	    return ONIGERR_TOO_LONG_WIDE_CHAR_VALUE;
  ------------------
  |  |  681|      0|#define ONIGERR_TOO_LONG_WIDE_CHAR_VALUE                     -212
  ------------------
 3096|      0|	}
 3097|       |
 3098|      0|	if (p > prev + enclen(enc, prev, end) && !PEND && (PPEEK_IS('}'))) {
  ------------------
  |  |   93|      0|#define enclen(enc,p,e) ((enc->max_enc_len == enc->min_enc_len) ? enc->min_enc_len : ONIGENC_MBC_ENC_LEN(enc,p,e))
  |  |  ------------------
  |  |  |  |  364|      0|#define ONIGENC_MBC_ENC_LEN(enc,p,e)          onigenc_mbclen(p,e,enc)
  |  |  ------------------
  |  |  |  Branch (93:26): [True: 0, False: 0]
  |  |  ------------------
  ------------------
              	if (p > prev + enclen(enc, prev, end) && !PEND && (PPEEK_IS('}'))) {
  ------------------
  |  |  299|      0|#define PEND         (p < end ?  0 : 1)
  |  |  ------------------
  |  |  |  Branch (299:23): [True: 0, False: 0]
  |  |  ------------------
  ------------------
              	if (p > prev + enclen(enc, prev, end) && !PEND && (PPEEK_IS('}'))) {
  ------------------
  |  |  320|      0|#define PPEEK_IS(c)  (PPEEK == (OnigCodePoint )c)
  |  |  ------------------
  |  |  |  |  319|      0|#define PPEEK        (p < end ? ONIGENC_MBC_TO_CODE(enc, p, end) : PEND_VALUE)
  |  |  |  |  ------------------
  |  |  |  |  |  |  369|      0|#define ONIGENC_MBC_TO_CODE(enc,p,end)         (enc)->mbc_to_code((p),(end),enc)
  |  |  |  |  ------------------
  |  |  |  |               #define PPEEK        (p < end ? ONIGENC_MBC_TO_CODE(enc, p, end) : PEND_VALUE)
  |  |  |  |  ------------------
  |  |  |  |  |  |  291|      0|#define PEND_VALUE   0
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (319:23): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  |  Branch (3098:6): [True: 0, False: 0]
  |  Branch (3098:43): [True: 0, False: 0]
  |  Branch (3098:52): [True: 0, False: 0]
  ------------------
 3099|      0|	  PINC;
  ------------------
  |  |  301|      0|#define PINC       do { \
  |  |  302|      0|  pfetch_prev = p; \
  |  |  303|      0|  p += enclen(enc, p, end); \
  |  |  ------------------
  |  |  |  |   93|      0|#define enclen(enc,p,e) ((enc->max_enc_len == enc->min_enc_len) ? enc->min_enc_len : ONIGENC_MBC_ENC_LEN(enc,p,e))
  |  |  |  |  ------------------
  |  |  |  |  |  |  364|      0|#define ONIGENC_MBC_ENC_LEN(enc,p,e)          onigenc_mbclen(p,e,enc)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (93:26): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  304|      0|} while (0)
  |  |  ------------------
  |  |  |  Branch (304:10): [Folded - Ignored]
  |  |  ------------------
  ------------------
 3100|      0|	  tok->type   = TK_CODE_POINT;
 3101|      0|	  tok->base   = 16;
 3102|      0|	  tok->u.code = (OnigCodePoint )num;
 3103|      0|	}
 3104|      0|	else {
 3105|       |	  /* can't read nothing or invalid format */
 3106|      0|	  p = prev;
 3107|      0|	}
 3108|      0|      }
 3109|      0|      else if (IS_SYNTAX_OP(syn, ONIG_SYN_OP_ESC_X_HEX2)) {
  ------------------
  |  |  330|      0|#define IS_SYNTAX_OP(syn, opm)    (((syn)->op  & (opm)) != 0)
  |  |  ------------------
  |  |  |  Branch (330:35): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 3110|      0|	num = scan_unsigned_hexadecimal_number(&p, end, 0, 2, enc);
 3111|      0|	if (num < 0) return ONIGERR_TOO_BIG_NUMBER;
  ------------------
  |  |  669|      0|#define ONIGERR_TOO_BIG_NUMBER                               -200
  ------------------
  |  Branch (3111:6): [True: 0, False: 0]
  ------------------
 3112|      0|	if (p == prev) {  /* can't read nothing. */
  ------------------
  |  Branch (3112:6): [True: 0, False: 0]
  ------------------
 3113|      0|	  num = 0; /* but, it's not error */
 3114|      0|	}
 3115|      0|	tok->type = TK_RAW_BYTE;
 3116|      0|	tok->base = 16;
 3117|      0|	tok->u.c  = num;
 3118|      0|      }
 3119|      0|      break;
 3120|       |
 3121|      0|    case 'u':
  ------------------
  |  Branch (3121:5): [True: 0, False: 24.6k]
  ------------------
 3122|      0|      if (PEND) break;
  ------------------
  |  |  299|      0|#define PEND         (p < end ?  0 : 1)
  |  |  ------------------
  |  |  |  Branch (299:22): [True: 0, False: 0]
  |  |  |  Branch (299:23): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 3123|       |
 3124|      0|      prev = p;
 3125|      0|      if (IS_SYNTAX_OP2(syn, ONIG_SYN_OP2_ESC_U_HEX4)) {
  ------------------
  |  |  331|      0|#define IS_SYNTAX_OP2(syn, opm)   (((syn)->op2 & (opm)) != 0)
  |  |  ------------------
  |  |  |  Branch (331:35): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 3126|      0|	num = scan_unsigned_hexadecimal_number(&p, end, 4, 4, enc);
 3127|      0|	if (num < -1) return ONIGERR_TOO_SHORT_DIGITS;
  ------------------
  |  |  680|      0|#define ONIGERR_TOO_SHORT_DIGITS                             -211
  ------------------
  |  Branch (3127:6): [True: 0, False: 0]
  ------------------
 3128|      0|	else if (num < 0) return ONIGERR_TOO_BIG_NUMBER;
  ------------------
  |  |  669|      0|#define ONIGERR_TOO_BIG_NUMBER                               -200
  ------------------
  |  Branch (3128:11): [True: 0, False: 0]
  ------------------
 3129|      0|	if (p == prev) {  /* can't read nothing. */
  ------------------
  |  Branch (3129:6): [True: 0, False: 0]
  ------------------
 3130|      0|	  num = 0; /* but, it's not error */
 3131|      0|	}
 3132|      0|	tok->type   = TK_CODE_POINT;
 3133|      0|	tok->base   = 16;
 3134|      0|	tok->u.code = (OnigCodePoint )num;
 3135|      0|      }
 3136|      0|      break;
 3137|       |
 3138|      0|    case 'o':
  ------------------
  |  Branch (3138:5): [True: 0, False: 24.6k]
  ------------------
 3139|      0|      if (PEND) break;
  ------------------
  |  |  299|      0|#define PEND         (p < end ?  0 : 1)
  |  |  ------------------
  |  |  |  Branch (299:22): [True: 0, False: 0]
  |  |  |  Branch (299:23): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 3140|       |
 3141|      0|      prev = p;
 3142|      0|      if (PPEEK_IS('{') && IS_SYNTAX_OP(syn, ONIG_SYN_OP_ESC_O_BRACE_OCTAL)) {
  ------------------
  |  |  320|      0|#define PPEEK_IS(c)  (PPEEK == (OnigCodePoint )c)
  |  |  ------------------
  |  |  |  |  319|      0|#define PPEEK        (p < end ? ONIGENC_MBC_TO_CODE(enc, p, end) : PEND_VALUE)
  |  |  |  |  ------------------
  |  |  |  |  |  |  369|      0|#define ONIGENC_MBC_TO_CODE(enc,p,end)         (enc)->mbc_to_code((p),(end),enc)
  |  |  |  |  ------------------
  |  |  |  |               #define PPEEK        (p < end ? ONIGENC_MBC_TO_CODE(enc, p, end) : PEND_VALUE)
  |  |  |  |  ------------------
  |  |  |  |  |  |  291|      0|#define PEND_VALUE   0
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (319:23): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  |  Branch (320:22): [True: 0, False: 0]
  |  |  ------------------
  ------------------
                    if (PPEEK_IS('{') && IS_SYNTAX_OP(syn, ONIG_SYN_OP_ESC_O_BRACE_OCTAL)) {
  ------------------
  |  |  330|      0|#define IS_SYNTAX_OP(syn, opm)    (((syn)->op  & (opm)) != 0)
  |  |  ------------------
  |  |  |  Branch (330:35): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 3143|      0|	PINC;
  ------------------
  |  |  301|      0|#define PINC       do { \
  |  |  302|      0|  pfetch_prev = p; \
  |  |  303|      0|  p += enclen(enc, p, end); \
  |  |  ------------------
  |  |  |  |   93|      0|#define enclen(enc,p,e) ((enc->max_enc_len == enc->min_enc_len) ? enc->min_enc_len : ONIGENC_MBC_ENC_LEN(enc,p,e))
  |  |  |  |  ------------------
  |  |  |  |  |  |  364|      0|#define ONIGENC_MBC_ENC_LEN(enc,p,e)          onigenc_mbclen(p,e,enc)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (93:26): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  304|      0|} while (0)
  |  |  ------------------
  |  |  |  Branch (304:10): [Folded - Ignored]
  |  |  ------------------
  ------------------
 3144|      0|	num = scan_unsigned_octal_number(&p, end, 11, enc);
 3145|      0|	if (num < 0) return ONIGERR_TOO_BIG_WIDE_CHAR_VALUE;
  ------------------
  |  |  694|      0|#define ONIGERR_TOO_BIG_WIDE_CHAR_VALUE                      -401
  ------------------
  |  Branch (3145:6): [True: 0, False: 0]
  ------------------
 3146|      0|	if (!PEND) {
  ------------------
  |  |  299|      0|#define PEND         (p < end ?  0 : 1)
  |  |  ------------------
  |  |  |  Branch (299:23): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  |  Branch (3146:6): [True: 0, False: 0]
  ------------------
 3147|      0|	  c2 = PPEEK;
  ------------------
  |  |  319|      0|#define PPEEK        (p < end ? ONIGENC_MBC_TO_CODE(enc, p, end) : PEND_VALUE)
  |  |  ------------------
  |  |  |  |  369|      0|#define ONIGENC_MBC_TO_CODE(enc,p,end)         (enc)->mbc_to_code((p),(end),enc)
  |  |  ------------------
  |  |               #define PPEEK        (p < end ? ONIGENC_MBC_TO_CODE(enc, p, end) : PEND_VALUE)
  |  |  ------------------
  |  |  |  |  291|      0|#define PEND_VALUE   0
  |  |  ------------------
  |  |  |  Branch (319:23): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 3148|      0|	  if (ONIGENC_IS_CODE_DIGIT(enc, c2) && c2 < '8')
  ------------------
  |  |  400|      0|        ONIGENC_IS_CODE_CTYPE(enc,code,ONIGENC_CTYPE_DIGIT)
  |  |  ------------------
  |  |  |  |  375|      0|#define ONIGENC_IS_CODE_CTYPE(enc,code,ctype)  (enc)->is_code_ctype(code,ctype,enc)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (375:48): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  |  Branch (3148:42): [True: 0, False: 0]
  ------------------
 3149|      0|	    return ONIGERR_TOO_LONG_WIDE_CHAR_VALUE;
  ------------------
  |  |  681|      0|#define ONIGERR_TOO_LONG_WIDE_CHAR_VALUE                     -212
  ------------------
 3150|      0|	}
 3151|       |
 3152|      0|	if (p > prev + enclen(enc, prev, end) && !PEND && (PPEEK_IS('}'))) {
  ------------------
  |  |   93|      0|#define enclen(enc,p,e) ((enc->max_enc_len == enc->min_enc_len) ? enc->min_enc_len : ONIGENC_MBC_ENC_LEN(enc,p,e))
  |  |  ------------------
  |  |  |  |  364|      0|#define ONIGENC_MBC_ENC_LEN(enc,p,e)          onigenc_mbclen(p,e,enc)
  |  |  ------------------
  |  |  |  Branch (93:26): [True: 0, False: 0]
  |  |  ------------------
  ------------------
              	if (p > prev + enclen(enc, prev, end) && !PEND && (PPEEK_IS('}'))) {
  ------------------
  |  |  299|      0|#define PEND         (p < end ?  0 : 1)
  |  |  ------------------
  |  |  |  Branch (299:23): [True: 0, False: 0]
  |  |  ------------------
  ------------------
              	if (p > prev + enclen(enc, prev, end) && !PEND && (PPEEK_IS('}'))) {
  ------------------
  |  |  320|      0|#define PPEEK_IS(c)  (PPEEK == (OnigCodePoint )c)
  |  |  ------------------
  |  |  |  |  319|      0|#define PPEEK        (p < end ? ONIGENC_MBC_TO_CODE(enc, p, end) : PEND_VALUE)
  |  |  |  |  ------------------
  |  |  |  |  |  |  369|      0|#define ONIGENC_MBC_TO_CODE(enc,p,end)         (enc)->mbc_to_code((p),(end),enc)
  |  |  |  |  ------------------
  |  |  |  |               #define PPEEK        (p < end ? ONIGENC_MBC_TO_CODE(enc, p, end) : PEND_VALUE)
  |  |  |  |  ------------------
  |  |  |  |  |  |  291|      0|#define PEND_VALUE   0
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (319:23): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  |  Branch (3152:6): [True: 0, False: 0]
  |  Branch (3152:43): [True: 0, False: 0]
  |  Branch (3152:52): [True: 0, False: 0]
  ------------------
 3153|      0|	  PINC;
  ------------------
  |  |  301|      0|#define PINC       do { \
  |  |  302|      0|  pfetch_prev = p; \
  |  |  303|      0|  p += enclen(enc, p, end); \
  |  |  ------------------
  |  |  |  |   93|      0|#define enclen(enc,p,e) ((enc->max_enc_len == enc->min_enc_len) ? enc->min_enc_len : ONIGENC_MBC_ENC_LEN(enc,p,e))
  |  |  |  |  ------------------
  |  |  |  |  |  |  364|      0|#define ONIGENC_MBC_ENC_LEN(enc,p,e)          onigenc_mbclen(p,e,enc)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (93:26): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  304|      0|} while (0)
  |  |  ------------------
  |  |  |  Branch (304:10): [Folded - Ignored]
  |  |  ------------------
  ------------------
 3154|      0|	  tok->type   = TK_CODE_POINT;
 3155|      0|	  tok->base   = 8;
 3156|      0|	  tok->u.code = (OnigCodePoint )num;
 3157|      0|	}
 3158|      0|	else {
 3159|       |	  /* can't read nothing or invalid format */
 3160|      0|	  p = prev;
 3161|      0|	}
 3162|      0|      }
 3163|      0|      break;
 3164|       |
 3165|      0|    case '0':
  ------------------
  |  Branch (3165:5): [True: 0, False: 24.6k]
  ------------------
 3166|      0|    case '1': case '2': case '3': case '4': case '5': case '6': case '7':
  ------------------
  |  Branch (3166:5): [True: 0, False: 24.6k]
  |  Branch (3166:15): [True: 0, False: 24.6k]
  |  Branch (3166:25): [True: 0, False: 24.6k]
  |  Branch (3166:35): [True: 0, False: 24.6k]
  |  Branch (3166:45): [True: 0, False: 24.6k]
  |  Branch (3166:55): [True: 0, False: 24.6k]
  |  Branch (3166:65): [True: 0, False: 24.6k]
  ------------------
 3167|      0|      if (IS_SYNTAX_OP(syn, ONIG_SYN_OP_ESC_OCTAL3)) {
  ------------------
  |  |  330|      0|#define IS_SYNTAX_OP(syn, opm)    (((syn)->op  & (opm)) != 0)
  |  |  ------------------
  |  |  |  Branch (330:35): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 3168|      0|	PUNFETCH;
  ------------------
  |  |  300|      0|#define PUNFETCH     p = pfetch_prev
  ------------------
 3169|      0|	prev = p;
 3170|      0|	num = scan_unsigned_octal_number(&p, end, 3, enc);
 3171|      0|	if (num < 0 || 0xff < num) return ONIGERR_TOO_BIG_NUMBER;
  ------------------
  |  |  669|      0|#define ONIGERR_TOO_BIG_NUMBER                               -200
  ------------------
  |  Branch (3171:6): [True: 0, False: 0]
  |  Branch (3171:17): [True: 0, False: 0]
  ------------------
 3172|      0|	if (p == prev) {  /* can't read nothing. */
  ------------------
  |  Branch (3172:6): [True: 0, False: 0]
  ------------------
 3173|      0|	  num = 0; /* but, it's not error */
 3174|      0|	}
 3175|      0|	tok->type = TK_RAW_BYTE;
 3176|      0|	tok->base = 8;
 3177|      0|	tok->u.c  = num;
 3178|      0|      }
 3179|      0|      break;
 3180|       |
 3181|  18.9k|    default:
  ------------------
  |  Branch (3181:5): [True: 18.9k, False: 5.72k]
  ------------------
 3182|  18.9k|      PUNFETCH;
  ------------------
  |  |  300|  18.9k|#define PUNFETCH     p = pfetch_prev
  ------------------
 3183|  18.9k|      num = fetch_escaped_value(&p, end, env, &c2);
 3184|  18.9k|      if (num < 0) return num;
  ------------------
  |  Branch (3184:11): [True: 0, False: 18.9k]
  ------------------
 3185|  18.9k|      if ((OnigCodePoint )tok->u.c != c2) {
  ------------------
  |  Branch (3185:11): [True: 17.4k, False: 1.43k]
  ------------------
 3186|  17.4k|	tok->u.code = (OnigCodePoint )c2;
 3187|  17.4k|	tok->type   = TK_CODE_POINT;
 3188|  17.4k|      }
 3189|  18.9k|      break;
 3190|  24.6k|    }
 3191|  24.6k|  }
 3192|  41.6k|  else if (c == '[') {
  ------------------
  |  Branch (3192:12): [True: 0, False: 41.6k]
  ------------------
 3193|      0|    if (IS_SYNTAX_OP(syn, ONIG_SYN_OP_POSIX_BRACKET) && (PPEEK_IS(':'))) {
  ------------------
  |  |  330|      0|#define IS_SYNTAX_OP(syn, opm)    (((syn)->op  & (opm)) != 0)
  |  |  ------------------
  |  |  |  Branch (330:35): [True: 0, False: 0]
  |  |  ------------------
  ------------------
                  if (IS_SYNTAX_OP(syn, ONIG_SYN_OP_POSIX_BRACKET) && (PPEEK_IS(':'))) {
  ------------------
  |  |  320|      0|#define PPEEK_IS(c)  (PPEEK == (OnigCodePoint )c)
  |  |  ------------------
  |  |  |  |  319|      0|#define PPEEK        (p < end ? ONIGENC_MBC_TO_CODE(enc, p, end) : PEND_VALUE)
  |  |  |  |  ------------------
  |  |  |  |  |  |  369|      0|#define ONIGENC_MBC_TO_CODE(enc,p,end)         (enc)->mbc_to_code((p),(end),enc)
  |  |  |  |  ------------------
  |  |  |  |               #define PPEEK        (p < end ? ONIGENC_MBC_TO_CODE(enc, p, end) : PEND_VALUE)
  |  |  |  |  ------------------
  |  |  |  |  |  |  291|      0|#define PEND_VALUE   0
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (319:23): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  |  Branch (3193:57): [True: 0, False: 0]
  ------------------
 3194|      0|      OnigCodePoint send[] = { (OnigCodePoint )':', (OnigCodePoint )']' };
 3195|      0|      tok->backp = p; /* point at '[' is read */
 3196|      0|      PINC;
  ------------------
  |  |  301|      0|#define PINC       do { \
  |  |  302|      0|  pfetch_prev = p; \
  |  |  303|      0|  p += enclen(enc, p, end); \
  |  |  ------------------
  |  |  |  |   93|      0|#define enclen(enc,p,e) ((enc->max_enc_len == enc->min_enc_len) ? enc->min_enc_len : ONIGENC_MBC_ENC_LEN(enc,p,e))
  |  |  |  |  ------------------
  |  |  |  |  |  |  364|      0|#define ONIGENC_MBC_ENC_LEN(enc,p,e)          onigenc_mbclen(p,e,enc)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (93:26): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  304|      0|} while (0)
  |  |  ------------------
  |  |  |  Branch (304:10): [Folded - Ignored]
  |  |  ------------------
  ------------------
 3197|      0|      if (str_exist_check_with_esc(send, 2, p, end,
  ------------------
  |  Branch (3197:11): [True: 0, False: 0]
  ------------------
 3198|      0|                                   (OnigCodePoint )']', enc, syn)) {
 3199|      0|	tok->type = TK_POSIX_BRACKET_OPEN;
 3200|      0|      }
 3201|      0|      else {
 3202|      0|	PUNFETCH;
  ------------------
  |  |  300|      0|#define PUNFETCH     p = pfetch_prev
  ------------------
 3203|      0|	goto cc_in_cc;
 3204|      0|      }
 3205|      0|    }
 3206|      0|    else {
 3207|      0|    cc_in_cc:
 3208|      0|      if (IS_SYNTAX_OP2(syn, ONIG_SYN_OP2_CCLASS_SET_OP)) {
  ------------------
  |  |  331|      0|#define IS_SYNTAX_OP2(syn, opm)   (((syn)->op2 & (opm)) != 0)
  |  |  ------------------
  |  |  |  Branch (331:35): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 3209|      0|	tok->type = TK_CC_CC_OPEN;
 3210|      0|      }
 3211|      0|      else {
 3212|      0|	CC_ESC_WARN(env, (UChar* )"[");
 3213|      0|      }
 3214|      0|    }
 3215|      0|  }
 3216|  41.6k|  else if (c == '&') {
  ------------------
  |  Branch (3216:12): [True: 0, False: 41.6k]
  ------------------
 3217|      0|    if (IS_SYNTAX_OP2(syn, ONIG_SYN_OP2_CCLASS_SET_OP) &&
  ------------------
  |  |  331|      0|#define IS_SYNTAX_OP2(syn, opm)   (((syn)->op2 & (opm)) != 0)
  |  |  ------------------
  |  |  |  Branch (331:35): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 3218|      0|	!PEND && (PPEEK_IS('&'))) {
  ------------------
  |  |  299|      0|#define PEND         (p < end ?  0 : 1)
  |  |  ------------------
  |  |  |  Branch (299:23): [True: 0, False: 0]
  |  |  ------------------
  ------------------
              	!PEND && (PPEEK_IS('&'))) {
  ------------------
  |  |  320|      0|#define PPEEK_IS(c)  (PPEEK == (OnigCodePoint )c)
  |  |  ------------------
  |  |  |  |  319|      0|#define PPEEK        (p < end ? ONIGENC_MBC_TO_CODE(enc, p, end) : PEND_VALUE)
  |  |  |  |  ------------------
  |  |  |  |  |  |  369|      0|#define ONIGENC_MBC_TO_CODE(enc,p,end)         (enc)->mbc_to_code((p),(end),enc)
  |  |  |  |  ------------------
  |  |  |  |               #define PPEEK        (p < end ? ONIGENC_MBC_TO_CODE(enc, p, end) : PEND_VALUE)
  |  |  |  |  ------------------
  |  |  |  |  |  |  291|      0|#define PEND_VALUE   0
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (319:23): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  |  Branch (3218:2): [True: 0, False: 0]
  |  Branch (3218:11): [True: 0, False: 0]
  ------------------
 3219|      0|      PINC;
  ------------------
  |  |  301|      0|#define PINC       do { \
  |  |  302|      0|  pfetch_prev = p; \
  |  |  303|      0|  p += enclen(enc, p, end); \
  |  |  ------------------
  |  |  |  |   93|      0|#define enclen(enc,p,e) ((enc->max_enc_len == enc->min_enc_len) ? enc->min_enc_len : ONIGENC_MBC_ENC_LEN(enc,p,e))
  |  |  |  |  ------------------
  |  |  |  |  |  |  364|      0|#define ONIGENC_MBC_ENC_LEN(enc,p,e)          onigenc_mbclen(p,e,enc)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (93:26): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  304|      0|} while (0)
  |  |  ------------------
  |  |  |  Branch (304:10): [Folded - Ignored]
  |  |  ------------------
  ------------------
 3220|      0|      tok->type = TK_CC_AND;
 3221|      0|    }
 3222|      0|  }
 3223|       |
 3224|  88.0k| end:
 3225|  88.0k|  *src = p;
 3226|  88.0k|  return tok->type;
 3227|  88.0k|}
regparse.c:next_state_val:
 4456|  73.7k|{
 4457|  73.7k|  int r;
 4458|       |
 4459|  73.7k|  switch (*state) {
 4460|  57.7k|  case CCS_VALUE:
  ------------------
  |  Branch (4460:3): [True: 57.7k, False: 15.9k]
  ------------------
 4461|  57.7k|    if (*type == CCV_SB) {
  ------------------
  |  Branch (4461:9): [True: 52.0k, False: 5.72k]
  ------------------
 4462|  52.0k|      BITSET_SET_BIT_CHKDUP(cc->bs, (int )(*from));
  ------------------
  |  |  176|  52.0k|#define BITSET_SET_BIT_CHKDUP(bs, pos) do { \
  |  |  177|  52.0k|  if (BITSET_AT(bs, pos)) CC_DUP_WARN(env, pos, pos); \
  |  |  ------------------
  |  |  |  |  448|  52.0k|#define BITSET_AT(bs, pos)         (BS_ROOM(bs,pos) & BS_BIT(pos))
  |  |  |  |  ------------------
  |  |  |  |  |  |  445|  52.0k|#define BS_ROOM(bs,pos)            (bs)[(int )(pos) / BITS_IN_ROOM]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  427|  52.0k|#define BITS_IN_ROOM       ((int )sizeof(Bits) * BITS_PER_BYTE)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  425|  52.0k|#define BITS_PER_BYTE      8
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |               #define BITSET_AT(bs, pos)         (BS_ROOM(bs,pos) & BS_BIT(pos))
  |  |  |  |  ------------------
  |  |  |  |  |  |  446|  52.0k|#define BS_BIT(pos)                (1U << ((int )(pos) % BITS_IN_ROOM))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  427|  52.0k|#define BITS_IN_ROOM       ((int )sizeof(Bits) * BITS_PER_BYTE)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  425|  52.0k|#define BITS_PER_BYTE      8
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (448:36): [True: 0, False: 52.0k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  178|  52.0k|  BS_ROOM(bs, pos) |= BS_BIT(pos); \
  |  |  ------------------
  |  |  |  |  445|  52.0k|#define BS_ROOM(bs,pos)            (bs)[(int )(pos) / BITS_IN_ROOM]
  |  |  |  |  ------------------
  |  |  |  |  |  |  427|  52.0k|#define BITS_IN_ROOM       ((int )sizeof(Bits) * BITS_PER_BYTE)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  425|  52.0k|#define BITS_PER_BYTE      8
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |                 BS_ROOM(bs, pos) |= BS_BIT(pos); \
  |  |  ------------------
  |  |  |  |  446|  52.0k|#define BS_BIT(pos)                (1U << ((int )(pos) % BITS_IN_ROOM))
  |  |  |  |  ------------------
  |  |  |  |  |  |  427|  52.0k|#define BITS_IN_ROOM       ((int )sizeof(Bits) * BITS_PER_BYTE)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  425|  52.0k|#define BITS_PER_BYTE      8
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  179|  52.0k|} while (0)
  |  |  ------------------
  |  |  |  Branch (179:10): [Folded - Ignored]
  |  |  ------------------
  ------------------
 4463|  52.0k|      if (IS_NOT_NULL(asc_cc))
  ------------------
  |  |  312|  52.0k|#define IS_NOT_NULL(p)                (((void*)(p)) != (void*)0)
  |  |  ------------------
  |  |  |  Branch (312:39): [True: 0, False: 52.0k]
  |  |  ------------------
  ------------------
 4464|  52.0k|	BITSET_SET_BIT(asc_cc->bs, (int )(*from));
  ------------------
  |  |  449|      0|#define BITSET_SET_BIT(bs, pos)     BS_ROOM(bs,pos) |= BS_BIT(pos)
  |  |  ------------------
  |  |  |  |  445|      0|#define BS_ROOM(bs,pos)            (bs)[(int )(pos) / BITS_IN_ROOM]
  |  |  |  |  ------------------
  |  |  |  |  |  |  427|      0|#define BITS_IN_ROOM       ((int )sizeof(Bits) * BITS_PER_BYTE)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  425|      0|#define BITS_PER_BYTE      8
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |               #define BITSET_SET_BIT(bs, pos)     BS_ROOM(bs,pos) |= BS_BIT(pos)
  |  |  ------------------
  |  |  |  |  446|      0|#define BS_BIT(pos)                (1U << ((int )(pos) % BITS_IN_ROOM))
  |  |  |  |  ------------------
  |  |  |  |  |  |  427|      0|#define BITS_IN_ROOM       ((int )sizeof(Bits) * BITS_PER_BYTE)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  425|      0|#define BITS_PER_BYTE      8
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 4465|  52.0k|    }
 4466|  5.72k|    else if (*type == CCV_CODE_POINT) {
  ------------------
  |  Branch (4466:14): [True: 0, False: 5.72k]
  ------------------
 4467|      0|      r = add_code_range(&(cc->mbuf), env, *from, *from);
 4468|      0|      if (r < 0) return r;
  ------------------
  |  Branch (4468:11): [True: 0, False: 0]
  ------------------
 4469|      0|      if (IS_NOT_NULL(asc_cc)) {
  ------------------
  |  |  312|      0|#define IS_NOT_NULL(p)                (((void*)(p)) != (void*)0)
  |  |  ------------------
  |  |  |  Branch (312:39): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 4470|      0|	r = add_code_range0(&(asc_cc->mbuf), env, *from, *from, 0);
 4471|      0|	if (r < 0) return r;
  ------------------
  |  Branch (4471:6): [True: 0, False: 0]
  ------------------
 4472|      0|      }
 4473|      0|    }
 4474|  57.7k|    break;
 4475|       |
 4476|  57.7k|  case CCS_RANGE:
  ------------------
  |  Branch (4476:3): [True: 0, False: 73.7k]
  ------------------
 4477|      0|    if (intype == *type) {
  ------------------
  |  Branch (4477:9): [True: 0, False: 0]
  ------------------
 4478|      0|      if (intype == CCV_SB) {
  ------------------
  |  Branch (4478:11): [True: 0, False: 0]
  ------------------
 4479|      0|	if (*from > 0xff || to > 0xff)
  ------------------
  |  Branch (4479:6): [True: 0, False: 0]
  |  Branch (4479:22): [True: 0, False: 0]
  ------------------
 4480|      0|	  return ONIGERR_INVALID_CODE_POINT_VALUE;
  ------------------
  |  |  692|      0|#define ONIGERR_INVALID_CODE_POINT_VALUE                     -400
  ------------------
 4481|       |
 4482|      0|	if (*from > to) {
  ------------------
  |  Branch (4482:6): [True: 0, False: 0]
  ------------------
 4483|      0|	  if (IS_SYNTAX_BV(env->syntax, ONIG_SYN_ALLOW_EMPTY_RANGE_IN_CC))
  ------------------
  |  |  332|      0|#define IS_SYNTAX_BV(syn, bvm)    (((syn)->behavior & (bvm)) != 0)
  |  |  ------------------
  |  |  |  Branch (332:35): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 4484|      0|	    goto ccs_range_end;
 4485|      0|	  else
 4486|      0|	    return ONIGERR_EMPTY_RANGE_IN_CHAR_CLASS;
  ------------------
  |  |  672|      0|#define ONIGERR_EMPTY_RANGE_IN_CHAR_CLASS                    -203
  ------------------
 4487|      0|	}
 4488|      0|	bitset_set_range(env, cc->bs, (int )*from, (int )to);
 4489|      0|	if (IS_NOT_NULL(asc_cc))
  ------------------
  |  |  312|      0|#define IS_NOT_NULL(p)                (((void*)(p)) != (void*)0)
  |  |  ------------------
  |  |  |  Branch (312:39): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 4490|      0|	  bitset_set_range(env, asc_cc->bs, (int )*from, (int )to);
 4491|      0|      }
 4492|      0|      else {
 4493|      0|	r = add_code_range(&(cc->mbuf), env, *from, to);
 4494|      0|	if (r < 0) return r;
  ------------------
  |  Branch (4494:6): [True: 0, False: 0]
  ------------------
 4495|      0|	if (IS_NOT_NULL(asc_cc)) {
  ------------------
  |  |  312|      0|#define IS_NOT_NULL(p)                (((void*)(p)) != (void*)0)
  |  |  ------------------
  |  |  |  Branch (312:39): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 4496|      0|	  r = add_code_range0(&(asc_cc->mbuf), env, *from, to, 0);
 4497|      0|	  if (r < 0) return r;
  ------------------
  |  Branch (4497:8): [True: 0, False: 0]
  ------------------
 4498|      0|	}
 4499|      0|      }
 4500|      0|    }
 4501|      0|    else {
 4502|      0|      if (*from > to) {
  ------------------
  |  Branch (4502:11): [True: 0, False: 0]
  ------------------
 4503|      0|	if (IS_SYNTAX_BV(env->syntax, ONIG_SYN_ALLOW_EMPTY_RANGE_IN_CC))
  ------------------
  |  |  332|      0|#define IS_SYNTAX_BV(syn, bvm)    (((syn)->behavior & (bvm)) != 0)
  |  |  ------------------
  |  |  |  Branch (332:35): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 4504|      0|	  goto ccs_range_end;
 4505|      0|	else
 4506|      0|	  return ONIGERR_EMPTY_RANGE_IN_CHAR_CLASS;
  ------------------
  |  |  672|      0|#define ONIGERR_EMPTY_RANGE_IN_CHAR_CLASS                    -203
  ------------------
 4507|      0|      }
 4508|      0|      bitset_set_range(env, cc->bs, (int )*from, (int )(to < 0xff ? to : 0xff));
  ------------------
  |  Branch (4508:57): [True: 0, False: 0]
  ------------------
 4509|      0|      r = add_code_range(&(cc->mbuf), env, (OnigCodePoint )*from, to);
 4510|      0|      if (r < 0) return r;
  ------------------
  |  Branch (4510:11): [True: 0, False: 0]
  ------------------
 4511|      0|      if (IS_NOT_NULL(asc_cc)) {
  ------------------
  |  |  312|      0|#define IS_NOT_NULL(p)                (((void*)(p)) != (void*)0)
  |  |  ------------------
  |  |  |  Branch (312:39): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 4512|      0|	bitset_set_range(env, asc_cc->bs, (int )*from, (int )(to < 0xff ? to : 0xff));
  ------------------
  |  Branch (4512:56): [True: 0, False: 0]
  ------------------
 4513|      0|	r = add_code_range0(&(asc_cc->mbuf), env, (OnigCodePoint )*from, to, 0);
 4514|      0|	if (r < 0) return r;
  ------------------
  |  Branch (4514:6): [True: 0, False: 0]
  ------------------
 4515|      0|      }
 4516|      0|    }
 4517|      0|  ccs_range_end:
 4518|      0|    *state = CCS_COMPLETE;
 4519|      0|    break;
 4520|       |
 4521|      0|  case CCS_COMPLETE:
  ------------------
  |  Branch (4521:3): [True: 0, False: 73.7k]
  ------------------
 4522|  15.9k|  case CCS_START:
  ------------------
  |  Branch (4522:3): [True: 15.9k, False: 57.7k]
  ------------------
 4523|  15.9k|    *state = CCS_VALUE;
 4524|  15.9k|    break;
 4525|       |
 4526|      0|  default:
  ------------------
  |  Branch (4526:3): [True: 0, False: 73.7k]
  ------------------
 4527|      0|    break;
 4528|  73.7k|  }
 4529|       |
 4530|  73.7k|  *from_israw = to_israw;
 4531|  73.7k|  *from       = to;
 4532|  73.7k|  *type       = intype;
 4533|  73.7k|  return 0;
 4534|  73.7k|}
regparse.c:next_state_class:
 4423|  5.72k|{
 4424|  5.72k|  int r;
 4425|       |
 4426|  5.72k|  if (*state == CCS_RANGE)
  ------------------
  |  Branch (4426:7): [True: 0, False: 5.72k]
  ------------------
 4427|      0|    return ONIGERR_CHAR_CLASS_VALUE_AT_END_OF_RANGE;
  ------------------
  |  |  654|      0|#define ONIGERR_CHAR_CLASS_VALUE_AT_END_OF_RANGE             -110
  ------------------
 4428|       |
 4429|  5.72k|  if (*state == CCS_VALUE && *type != CCV_CLASS) {
  ------------------
  |  Branch (4429:7): [True: 0, False: 5.72k]
  |  Branch (4429:30): [True: 0, False: 0]
  ------------------
 4430|      0|    if (*type == CCV_SB) {
  ------------------
  |  Branch (4430:9): [True: 0, False: 0]
  ------------------
 4431|      0|      BITSET_SET_BIT_CHKDUP(cc->bs, (int )(*vs));
  ------------------
  |  |  176|      0|#define BITSET_SET_BIT_CHKDUP(bs, pos) do { \
  |  |  177|      0|  if (BITSET_AT(bs, pos)) CC_DUP_WARN(env, pos, pos); \
  |  |  ------------------
  |  |  |  |  448|      0|#define BITSET_AT(bs, pos)         (BS_ROOM(bs,pos) & BS_BIT(pos))
  |  |  |  |  ------------------
  |  |  |  |  |  |  445|      0|#define BS_ROOM(bs,pos)            (bs)[(int )(pos) / BITS_IN_ROOM]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  427|      0|#define BITS_IN_ROOM       ((int )sizeof(Bits) * BITS_PER_BYTE)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  425|      0|#define BITS_PER_BYTE      8
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |               #define BITSET_AT(bs, pos)         (BS_ROOM(bs,pos) & BS_BIT(pos))
  |  |  |  |  ------------------
  |  |  |  |  |  |  446|      0|#define BS_BIT(pos)                (1U << ((int )(pos) % BITS_IN_ROOM))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  427|      0|#define BITS_IN_ROOM       ((int )sizeof(Bits) * BITS_PER_BYTE)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  425|      0|#define BITS_PER_BYTE      8
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (448:36): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  178|      0|  BS_ROOM(bs, pos) |= BS_BIT(pos); \
  |  |  ------------------
  |  |  |  |  445|      0|#define BS_ROOM(bs,pos)            (bs)[(int )(pos) / BITS_IN_ROOM]
  |  |  |  |  ------------------
  |  |  |  |  |  |  427|      0|#define BITS_IN_ROOM       ((int )sizeof(Bits) * BITS_PER_BYTE)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  425|      0|#define BITS_PER_BYTE      8
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |                 BS_ROOM(bs, pos) |= BS_BIT(pos); \
  |  |  ------------------
  |  |  |  |  446|      0|#define BS_BIT(pos)                (1U << ((int )(pos) % BITS_IN_ROOM))
  |  |  |  |  ------------------
  |  |  |  |  |  |  427|      0|#define BITS_IN_ROOM       ((int )sizeof(Bits) * BITS_PER_BYTE)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  425|      0|#define BITS_PER_BYTE      8
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  179|      0|} while (0)
  |  |  ------------------
  |  |  |  Branch (179:10): [Folded - Ignored]
  |  |  ------------------
  ------------------
 4432|      0|      if (IS_NOT_NULL(asc_cc))
  ------------------
  |  |  312|      0|#define IS_NOT_NULL(p)                (((void*)(p)) != (void*)0)
  |  |  ------------------
  |  |  |  Branch (312:39): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 4433|      0|	BITSET_SET_BIT(asc_cc->bs, (int )(*vs));
  ------------------
  |  |  449|      0|#define BITSET_SET_BIT(bs, pos)     BS_ROOM(bs,pos) |= BS_BIT(pos)
  |  |  ------------------
  |  |  |  |  445|      0|#define BS_ROOM(bs,pos)            (bs)[(int )(pos) / BITS_IN_ROOM]
  |  |  |  |  ------------------
  |  |  |  |  |  |  427|      0|#define BITS_IN_ROOM       ((int )sizeof(Bits) * BITS_PER_BYTE)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  425|      0|#define BITS_PER_BYTE      8
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |               #define BITSET_SET_BIT(bs, pos)     BS_ROOM(bs,pos) |= BS_BIT(pos)
  |  |  ------------------
  |  |  |  |  446|      0|#define BS_BIT(pos)                (1U << ((int )(pos) % BITS_IN_ROOM))
  |  |  |  |  ------------------
  |  |  |  |  |  |  427|      0|#define BITS_IN_ROOM       ((int )sizeof(Bits) * BITS_PER_BYTE)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  425|      0|#define BITS_PER_BYTE      8
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 4434|      0|    }
 4435|      0|    else if (*type == CCV_CODE_POINT) {
  ------------------
  |  Branch (4435:14): [True: 0, False: 0]
  ------------------
 4436|      0|      r = add_code_range(&(cc->mbuf), env, *vs, *vs);
 4437|      0|      if (r < 0) return r;
  ------------------
  |  Branch (4437:11): [True: 0, False: 0]
  ------------------
 4438|      0|      if (IS_NOT_NULL(asc_cc)) {
  ------------------
  |  |  312|      0|#define IS_NOT_NULL(p)                (((void*)(p)) != (void*)0)
  |  |  ------------------
  |  |  |  Branch (312:39): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 4439|      0|	r = add_code_range0(&(asc_cc->mbuf), env, *vs, *vs, 0);
 4440|      0|	if (r < 0) return r;
  ------------------
  |  Branch (4440:6): [True: 0, False: 0]
  ------------------
 4441|      0|      }
 4442|      0|    }
 4443|      0|  }
 4444|       |
 4445|  5.72k|  *state = CCS_VALUE;
 4446|  5.72k|  *type  = CCV_CLASS;
 4447|  5.72k|  return 0;
 4448|  5.72k|}
regparse.c:is_onechar_cclass:
 6078|  21.7k|{
 6079|  21.7k|  const OnigCodePoint not_found = ONIG_LAST_CODE_POINT;
  ------------------
  |  |  317|  21.7k|#define ONIG_LAST_CODE_POINT    (~((OnigCodePoint )0))
  ------------------
 6080|  21.7k|  OnigCodePoint c = not_found;
 6081|  21.7k|  int i;
 6082|  21.7k|  BBuf *bbuf = cc->mbuf;
 6083|       |
 6084|  21.7k|  if (IS_NCCLASS_NOT(cc)) return 0;
  ------------------
  |  |  809|  21.7k|#define IS_NCCLASS_NOT(nd)      IS_NCCLASS_FLAG_ON(nd, FLAG_NCCLASS_NOT)
  |  |  ------------------
  |  |  |  |  802|  21.7k|#define IS_NCCLASS_FLAG_ON(cc,flag) ((NCCLASS_FLAGS(cc) & (flag)) != 0)
  |  |  |  |  ------------------
  |  |  |  |  |  |  799|  21.7k|#define NCCLASS_FLAGS(cc)           ((cc)->flags)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (802:37): [True: 8.58k, False: 13.1k]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 6085|       |
 6086|       |  /* check bbuf */
 6087|  13.1k|  if (IS_NOT_NULL(bbuf)) {
  ------------------
  |  |  312|  13.1k|#define IS_NOT_NULL(p)                (((void*)(p)) != (void*)0)
  |  |  ------------------
  |  |  |  Branch (312:39): [True: 0, False: 13.1k]
  |  |  ------------------
  ------------------
 6088|      0|    OnigCodePoint n, *data;
 6089|      0|    GET_CODE_POINT(n, bbuf->p);
  ------------------
  |  |  710|      0|#define GET_CODE_POINT(code,p)   code = *((OnigCodePoint* )(p))
  ------------------
 6090|      0|    data = (OnigCodePoint* )(bbuf->p) + 1;
 6091|      0|    if ((n == 1) && (data[0] == data[1])) {
  ------------------
  |  Branch (6091:9): [True: 0, False: 0]
  |  Branch (6091:21): [True: 0, False: 0]
  ------------------
 6092|       |      /* only one char found in the bbuf, save the code point. */
 6093|      0|      c = data[0];
 6094|      0|      if (((c < SINGLE_BYTE_SIZE) && BITSET_AT(cc->bs, c))) {
  ------------------
  |  |  426|      0|#define SINGLE_BYTE_SIZE   (1 << BITS_PER_BYTE)
  |  |  ------------------
  |  |  |  |  425|      0|#define BITS_PER_BYTE      8
  |  |  ------------------
  ------------------
                    if (((c < SINGLE_BYTE_SIZE) && BITSET_AT(cc->bs, c))) {
  ------------------
  |  |  448|      0|#define BITSET_AT(bs, pos)         (BS_ROOM(bs,pos) & BS_BIT(pos))
  |  |  ------------------
  |  |  |  |  445|      0|#define BS_ROOM(bs,pos)            (bs)[(int )(pos) / BITS_IN_ROOM]
  |  |  |  |  ------------------
  |  |  |  |  |  |  427|      0|#define BITS_IN_ROOM       ((int )sizeof(Bits) * BITS_PER_BYTE)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  425|      0|#define BITS_PER_BYTE      8
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |               #define BITSET_AT(bs, pos)         (BS_ROOM(bs,pos) & BS_BIT(pos))
  |  |  ------------------
  |  |  |  |  446|      0|#define BS_BIT(pos)                (1U << ((int )(pos) % BITS_IN_ROOM))
  |  |  |  |  ------------------
  |  |  |  |  |  |  427|      0|#define BITS_IN_ROOM       ((int )sizeof(Bits) * BITS_PER_BYTE)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  425|      0|#define BITS_PER_BYTE      8
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  |  Branch (448:36): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  |  Branch (6094:12): [True: 0, False: 0]
  ------------------
 6095|       |	/* skip if c is included in the bitset */
 6096|      0|	c = not_found;
 6097|      0|      }
 6098|      0|    }
 6099|      0|    else {
 6100|      0|      return 0;  /* the bbuf contains multiple chars */
 6101|      0|    }
 6102|      0|  }
 6103|       |
 6104|       |  /* check bitset */
 6105|  23.3k|  for (i = 0; i < BITSET_SIZE; i++) {
  ------------------
  |  |  428|  23.3k|#define BITSET_SIZE        (SINGLE_BYTE_SIZE / BITS_IN_ROOM)
  |  |  ------------------
  |  |  |  |  426|  23.3k|#define SINGLE_BYTE_SIZE   (1 << BITS_PER_BYTE)
  |  |  |  |  ------------------
  |  |  |  |  |  |  425|  23.3k|#define BITS_PER_BYTE      8
  |  |  |  |  ------------------
  |  |  ------------------
  |  |               #define BITSET_SIZE        (SINGLE_BYTE_SIZE / BITS_IN_ROOM)
  |  |  ------------------
  |  |  |  |  427|  23.3k|#define BITS_IN_ROOM       ((int )sizeof(Bits) * BITS_PER_BYTE)
  |  |  |  |  ------------------
  |  |  |  |  |  |  425|  23.3k|#define BITS_PER_BYTE      8
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  |  Branch (6105:15): [True: 23.3k, False: 0]
  ------------------
 6106|  23.3k|    Bits b1 = cc->bs[i];
 6107|  23.3k|    if (b1 != 0) {
  ------------------
  |  Branch (6107:9): [True: 23.3k, False: 0]
  ------------------
 6108|  23.3k|      if (((b1 & (b1 - 1)) == 0) && (c == not_found)) {
  ------------------
  |  Branch (6108:11): [True: 20.3k, False: 2.93k]
  |  Branch (6108:37): [True: 10.1k, False: 10.1k]
  ------------------
 6109|  10.1k|	c = BITS_IN_ROOM * i + countbits(b1 - 1);
  ------------------
  |  |  427|  10.1k|#define BITS_IN_ROOM       ((int )sizeof(Bits) * BITS_PER_BYTE)
  |  |  ------------------
  |  |  |  |  425|  10.1k|#define BITS_PER_BYTE      8
  |  |  ------------------
  ------------------
 6110|  13.1k|      } else {
 6111|  13.1k|	return 0;  /* the character class contains multiple chars */
 6112|  13.1k|      }
 6113|  23.3k|    }
 6114|  23.3k|  }
 6115|       |
 6116|      0|  if (c != not_found) {
  ------------------
  |  Branch (6116:7): [True: 0, False: 0]
  ------------------
 6117|      0|    *code = c;
 6118|      0|    return 1;
 6119|      0|  }
 6120|       |
 6121|       |  /* the character class contains no char. */
 6122|      0|  return 0;
 6123|      0|}
regparse.c:countbits:
 6068|  10.1k|{
 6069|  10.1k|  bits = (bits & 0x55555555) + ((bits >> 1) & 0x55555555);
 6070|  10.1k|  bits = (bits & 0x33333333) + ((bits >> 2) & 0x33333333);
 6071|  10.1k|  bits = (bits & 0x0f0f0f0f) + ((bits >> 4) & 0x0f0f0f0f);
 6072|  10.1k|  bits = (bits & 0x00ff00ff) + ((bits >> 8) & 0x00ff00ff);
 6073|  10.1k|  return (bits & 0x0000ffff) + ((bits >>16) & 0x0000ffff);
 6074|  10.1k|}
regparse.c:node_new_anychar:
 1165|  14.5k|{
 1166|  14.5k|  Node* node = node_new();
 1167|  14.5k|  CHECK_NULL_RETURN(node);
  ------------------
  |  |  313|  14.5k|#define CHECK_NULL_RETURN(p)          if (IS_NULL(p)) return NULL
  |  |  ------------------
  |  |  |  |  311|  14.5k|#define IS_NULL(p)                    (((void*)(p)) == (void*)0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (311:39): [True: 0, False: 14.5k]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1168|       |
 1169|  14.5k|  SET_NTYPE(node, NT_CANY);
  ------------------
  |  |   71|  14.5k|    do { \
  |  |   72|  14.5k|	int value = ntype; \
  |  |   73|  14.5k|	memcpy(&((node)->u.base.type), &value, sizeof(int)); \
  |  |   74|  14.5k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (74:14): [Folded - Ignored]
  |  |  ------------------
  ------------------
 1170|  14.5k|  return node;
 1171|  14.5k|}
regparse.c:node_new_quantifier:
 1305|  43.3k|{
 1306|  43.3k|  Node* node = node_new();
 1307|  43.3k|  CHECK_NULL_RETURN(node);
  ------------------
  |  |  313|  43.3k|#define CHECK_NULL_RETURN(p)          if (IS_NULL(p)) return NULL
  |  |  ------------------
  |  |  |  |  311|  43.3k|#define IS_NULL(p)                    (((void*)(p)) == (void*)0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (311:39): [True: 0, False: 43.3k]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1308|       |
 1309|  43.3k|  SET_NTYPE(node, NT_QTFR);
  ------------------
  |  |   71|  43.3k|    do { \
  |  |   72|  43.3k|	int value = ntype; \
  |  |   73|  43.3k|	memcpy(&((node)->u.base.type), &value, sizeof(int)); \
  |  |   74|  43.3k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (74:14): [Folded - Ignored]
  |  |  ------------------
  ------------------
 1310|  43.3k|  NQTFR(node)->state  = 0;
  ------------------
  |  |   80|  43.3k|#define NQTFR(node)        (&((node)->u.qtfr))
  ------------------
 1311|  43.3k|  NQTFR(node)->target = NULL;
  ------------------
  |  |   80|  43.3k|#define NQTFR(node)        (&((node)->u.qtfr))
  ------------------
 1312|  43.3k|  NQTFR(node)->lower  = lower;
  ------------------
  |  |   80|  43.3k|#define NQTFR(node)        (&((node)->u.qtfr))
  ------------------
 1313|  43.3k|  NQTFR(node)->upper  = upper;
  ------------------
  |  |   80|  43.3k|#define NQTFR(node)        (&((node)->u.qtfr))
  ------------------
 1314|  43.3k|  NQTFR(node)->greedy = 1;
  ------------------
  |  |   80|  43.3k|#define NQTFR(node)        (&((node)->u.qtfr))
  ------------------
 1315|  43.3k|  NQTFR(node)->target_empty_info = NQ_TARGET_ISNOT_EMPTY;
  ------------------
  |  |   80|  43.3k|#define NQTFR(node)        (&((node)->u.qtfr))
  ------------------
                NQTFR(node)->target_empty_info = NQ_TARGET_ISNOT_EMPTY;
  ------------------
  |  |  122|  43.3k|#define NQ_TARGET_ISNOT_EMPTY     0
  ------------------
 1316|  43.3k|  NQTFR(node)->head_exact        = NULL_NODE;
  ------------------
  |  |   80|  43.3k|#define NQTFR(node)        (&((node)->u.qtfr))
  ------------------
                NQTFR(node)->head_exact        = NULL_NODE;
  ------------------
  |  |  283|  43.3k|#define NULL_NODE  ((Node* )0)
  ------------------
 1317|  43.3k|  NQTFR(node)->next_head_exact   = NULL_NODE;
  ------------------
  |  |   80|  43.3k|#define NQTFR(node)        (&((node)->u.qtfr))
  ------------------
                NQTFR(node)->next_head_exact   = NULL_NODE;
  ------------------
  |  |  283|  43.3k|#define NULL_NODE  ((Node* )0)
  ------------------
 1318|  43.3k|  NQTFR(node)->is_referred       = 0;
  ------------------
  |  |   80|  43.3k|#define NQTFR(node)        (&((node)->u.qtfr))
  ------------------
 1319|  43.3k|  if (by_number != 0)
  ------------------
  |  Branch (1319:7): [True: 0, False: 43.3k]
  ------------------
 1320|      0|    NQTFR(node)->state |= NST_BY_NUMBER;
  ------------------
  |  |   80|      0|#define NQTFR(node)        (&((node)->u.qtfr))
  ------------------
                  NQTFR(node)->state |= NST_BY_NUMBER;
  ------------------
  |  |  142|      0|#define NST_BY_NUMBER             (1<<14) /* {n,m} */
  ------------------
 1321|       |
 1322|       |#ifdef USE_COMBINATION_EXPLOSION_CHECK
 1323|       |  NQTFR(node)->comb_exp_check_num = 0;
 1324|       |#endif
 1325|       |
 1326|  43.3k|  return node;
 1327|  43.3k|}
regparse.c:set_quantifier:
 5403|  43.3k|{
 5404|  43.3k|  QtfrNode* qn;
 5405|       |
 5406|  43.3k|  qn = NQTFR(qnode);
  ------------------
  |  |   80|  43.3k|#define NQTFR(node)        (&((node)->u.qtfr))
  ------------------
 5407|  43.3k|  if (qn->lower == 1 && qn->upper == 1) {
  ------------------
  |  Branch (5407:7): [True: 25.9k, False: 17.4k]
  |  Branch (5407:25): [True: 0, False: 25.9k]
  ------------------
 5408|      0|    return 1;
 5409|      0|  }
 5410|       |
 5411|  43.3k|  switch (NTYPE(target)) {
  ------------------
  |  |   69|  43.3k|#define NTYPE(node)             ((node)->u.base.type)
  ------------------
 5412|  1.46k|  case NT_STR:
  ------------------
  |  |   38|  1.46k|#define NT_STR         0
  ------------------
  |  Branch (5412:3): [True: 1.46k, False: 41.8k]
  ------------------
 5413|  1.46k|    if (! group) {
  ------------------
  |  Branch (5413:9): [True: 0, False: 1.46k]
  ------------------
 5414|      0|      StrNode* sn = NSTR(target);
  ------------------
  |  |   76|      0|#define NSTR(node)         (&((node)->u.str))
  ------------------
 5415|      0|      if (str_node_can_be_split(sn, env->enc)) {
  ------------------
  |  Branch (5415:11): [True: 0, False: 0]
  ------------------
 5416|      0|	Node* n = str_node_split_last_char(sn, env->enc);
 5417|      0|	if (IS_NOT_NULL(n)) {
  ------------------
  |  |  312|      0|#define IS_NOT_NULL(p)                (((void*)(p)) != (void*)0)
  |  |  ------------------
  |  |  |  Branch (312:39): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 5418|      0|	  qn->target = n;
 5419|      0|	  return 2;
 5420|      0|	}
 5421|      0|      }
 5422|      0|    }
 5423|  1.46k|    break;
 5424|       |
 5425|  1.46k|  case NT_QTFR:
  ------------------
  |  |   43|      0|#define NT_QTFR        5
  ------------------
  |  Branch (5425:3): [True: 0, False: 43.3k]
  ------------------
 5426|      0|    { /* check redundant double repeat. */
 5427|       |      /* verbose warn (?:.?)? etc... but not warn (.?)? etc... */
 5428|      0|      QtfrNode* qnt   = NQTFR(target);
  ------------------
  |  |   80|      0|#define NQTFR(node)        (&((node)->u.qtfr))
  ------------------
 5429|      0|      int nestq_num   = popular_quantifier_num(qn);
 5430|      0|      int targetq_num = popular_quantifier_num(qnt);
 5431|       |
 5432|      0|#ifdef USE_WARNING_REDUNDANT_NESTED_REPEAT_OPERATOR
 5433|      0|      if (nestq_num >= 0 && targetq_num >= 0 &&
  ------------------
  |  Branch (5433:11): [True: 0, False: 0]
  |  Branch (5433:29): [True: 0, False: 0]
  ------------------
 5434|      0|	  IS_SYNTAX_BV(env->syntax, ONIG_SYN_WARN_REDUNDANT_NESTED_REPEAT)) {
  ------------------
  |  |  332|      0|#define IS_SYNTAX_BV(syn, bvm)    (((syn)->behavior & (bvm)) != 0)
  |  |  ------------------
  |  |  |  Branch (332:35): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 5435|      0|	switch (ReduceTypeTable[targetq_num][nestq_num]) {
 5436|      0|	case RQ_ASIS:
  ------------------
  |  Branch (5436:2): [True: 0, False: 0]
  ------------------
 5437|      0|	  break;
 5438|       |
 5439|      0|	case RQ_DEL:
  ------------------
  |  Branch (5439:2): [True: 0, False: 0]
  ------------------
 5440|      0|	  if (onig_warn != onig_null_warn) {
  ------------------
  |  Branch (5440:8): [True: 0, False: 0]
  ------------------
 5441|      0|	    onig_syntax_warn(env, "regular expression has redundant nested repeat operator '%s'",
 5442|      0|		PopularQStr[targetq_num]);
 5443|      0|	  }
 5444|      0|	  goto warn_exit;
 5445|      0|	  break;
 5446|       |
 5447|      0|	default:
  ------------------
  |  Branch (5447:2): [True: 0, False: 0]
  ------------------
 5448|      0|	  if (onig_warn != onig_null_warn) {
  ------------------
  |  Branch (5448:8): [True: 0, False: 0]
  ------------------
 5449|      0|	    onig_syntax_warn(env, "nested repeat operator '%s' and '%s' was replaced with '%s' in regular expression",
 5450|      0|		PopularQStr[targetq_num], PopularQStr[nestq_num],
 5451|      0|		ReduceQStr[ReduceTypeTable[targetq_num][nestq_num]]);
 5452|      0|	  }
 5453|      0|	  goto warn_exit;
 5454|      0|	  break;
 5455|      0|	}
 5456|      0|      }
 5457|       |
 5458|      0|    warn_exit:
 5459|      0|#endif
 5460|      0|      if (targetq_num >= 0) {
  ------------------
  |  Branch (5460:11): [True: 0, False: 0]
  ------------------
 5461|      0|	if (nestq_num >= 0) {
  ------------------
  |  Branch (5461:6): [True: 0, False: 0]
  ------------------
 5462|      0|	  onig_reduce_nested_quantifier(qnode, target);
 5463|      0|	  goto q_exit;
 5464|      0|	}
 5465|      0|	else if (targetq_num == 1 || targetq_num == 2) { /* * or + */
  ------------------
  |  Branch (5465:11): [True: 0, False: 0]
  |  Branch (5465:31): [True: 0, False: 0]
  ------------------
 5466|       |	  /* (?:a*){n,m}, (?:a+){n,m} => (?:a*){n,n}, (?:a+){n,n} */
 5467|      0|	  if (! IS_REPEAT_INFINITE(qn->upper) && qn->upper > 1 && qn->greedy) {
  ------------------
  |  |  422|      0|#define IS_REPEAT_INFINITE(n)   ((n) == REPEAT_INFINITE)
  |  |  ------------------
  |  |  |  |  421|      0|#define REPEAT_INFINITE         -1
  |  |  ------------------
  ------------------
  |  Branch (5467:8): [True: 0, False: 0]
  |  Branch (5467:43): [True: 0, False: 0]
  |  Branch (5467:60): [True: 0, False: 0]
  ------------------
 5468|      0|	    qn->upper = (qn->lower == 0 ? 1 : qn->lower);
  ------------------
  |  Branch (5468:19): [True: 0, False: 0]
  ------------------
 5469|      0|	  }
 5470|      0|	}
 5471|      0|      }
 5472|      0|    }
 5473|      0|    break;
 5474|       |
 5475|  41.8k|  default:
  ------------------
  |  Branch (5475:3): [True: 41.8k, False: 1.46k]
  ------------------
 5476|  41.8k|    break;
 5477|  43.3k|  }
 5478|       |
 5479|  43.3k|  qn->target = target;
 5480|  43.3k| q_exit:
 5481|  43.3k|  return 0;
 5482|  43.3k|}
regparse.c:node_new_enclose_memory:
 1354|  7.38k|{
 1355|  7.38k|  Node* node = node_new_enclose(ENCLOSE_MEMORY);
  ------------------
  |  |   94|  7.38k|#define ENCLOSE_MEMORY           (1<<0)
  ------------------
 1356|  7.38k|  CHECK_NULL_RETURN(node);
  ------------------
  |  |  313|  7.38k|#define CHECK_NULL_RETURN(p)          if (IS_NULL(p)) return NULL
  |  |  ------------------
  |  |  |  |  311|  7.38k|#define IS_NULL(p)                    (((void*)(p)) == (void*)0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (311:39): [True: 0, False: 7.38k]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1357|  7.38k|  if (is_named != 0)
  ------------------
  |  Branch (1357:7): [True: 5.91k, False: 1.46k]
  ------------------
 1358|  5.91k|    SET_ENCLOSE_STATUS(node, NST_NAMED_GROUP);
  ------------------
  |  |  144|  5.91k|#define SET_ENCLOSE_STATUS(node,f)      (node)->u.enclose.state |=  (f)
  ------------------
 1359|       |
 1360|  7.38k|#ifdef USE_SUBEXP_CALL
 1361|  7.38k|  NENCLOSE(node)->option = option;
  ------------------
  |  |   81|  7.38k|#define NENCLOSE(node)     (&((node)->u.enclose))
  ------------------
 1362|  7.38k|#endif
 1363|  7.38k|  return node;
 1364|  7.38k|}
regparse.c:scan_env_set_mem_node:
 1052|  7.38k|{
 1053|  7.38k|  if (env->num_mem >= num)
  ------------------
  |  Branch (1053:7): [True: 7.38k, False: 0]
  ------------------
 1054|  7.38k|    SCANENV_MEM_NODES(env)[num] = node;
  ------------------
  |  |  287|  7.38k| (IS_NOT_NULL((senv)->mem_nodes_dynamic) ? \
  |  |  ------------------
  |  |  |  |  312|  7.38k|#define IS_NOT_NULL(p)                (((void*)(p)) != (void*)0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (312:39): [True: 0, False: 7.38k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  288|  7.38k|    (senv)->mem_nodes_dynamic : (senv)->mem_nodes_static)
  ------------------
 1055|      0|  else
 1056|      0|    return ONIGERR_PARSER_BUG;
  ------------------
  |  |  634|      0|#define ONIGERR_PARSER_BUG                                    -11
  ------------------
 1057|  7.38k|  return 0;
 1058|  7.38k|}

onig_st_init_table_with_size:
  582|  1.47k|{
  583|  1.47k|    st_table *tab;
  584|  1.47k|    int n;
  585|       |
  586|       |#ifdef HASH_LOG
  587|       |#if HASH_LOG+0 < 0
  588|       |    {
  589|       |        const char *e = getenv("ST_HASH_LOG");
  590|       |        if (!e || !*e) init_st = 1;
  591|       |    }
  592|       |#endif
  593|       |    if (init_st == 0) {
  594|       |        init_st = 1;
  595|       |        atexit(stat_col);
  596|       |    }
  597|       |#endif
  598|       |
  599|  1.47k|    n = get_power2(size);
  600|  1.47k|#ifndef RUBY
  601|  1.47k|    if (n < 0)
  ------------------
  |  Branch (601:9): [True: 0, False: 1.47k]
  ------------------
  602|      0|        return NULL;
  603|  1.47k|#endif
  604|  1.47k|    tab = (st_table *) malloc(sizeof (st_table));
  605|  1.47k|#ifndef RUBY
  606|  1.47k|    if (tab == NULL)
  ------------------
  |  Branch (606:9): [True: 0, False: 1.47k]
  ------------------
  607|      0|        return NULL;
  608|  1.47k|#endif
  609|  1.47k|    tab->type = type;
  610|  1.47k|    tab->entry_power = n;
  611|  1.47k|    tab->bin_power = features[n].bin_power;
  612|  1.47k|    tab->size_ind = features[n].size_ind;
  613|  1.47k|    if (n <= MAX_POWER2_FOR_TABLES_WITHOUT_BINS)
  ------------------
  |  |  343|  1.47k|#define MAX_POWER2_FOR_TABLES_WITHOUT_BINS 4
  ------------------
  |  Branch (613:9): [True: 1.47k, False: 0]
  ------------------
  614|  1.47k|        tab->bins = NULL;
  615|      0|    else {
  616|      0|        tab->bins = (st_index_t *) malloc(bins_size(tab));
  617|      0|#ifndef RUBY
  618|      0|        if (tab->bins == NULL) {
  ------------------
  |  Branch (618:13): [True: 0, False: 0]
  ------------------
  619|      0|            free(tab);
  620|      0|            return NULL;
  621|      0|        }
  622|      0|#endif
  623|      0|    }
  624|  1.47k|    tab->entries = (st_table_entry *) malloc(get_allocated_entries(tab)
  625|  1.47k|					     * sizeof(st_table_entry));
  626|  1.47k|#ifndef RUBY
  627|  1.47k|    if (tab->entries == NULL) {
  ------------------
  |  Branch (627:9): [True: 0, False: 1.47k]
  ------------------
  628|      0|        st_free_table(tab);
  ------------------
  |  |  193|      0|# define st_free_table                  onig_st_free_table
  ------------------
  629|      0|        return NULL;
  630|      0|    }
  631|  1.47k|#endif
  632|       |#ifdef ST_DEBUG
  633|       |    memset(tab->entries, ST_INIT_VAL_BYTE,
  634|       |	   get_allocated_entries(tab) * sizeof(st_table_entry));
  635|       |    if (tab->bins != NULL)
  636|       |        memset(tab->bins, ST_INIT_VAL_BYTE, bins_size(tab));
  637|       |#endif
  638|  1.47k|    make_tab_empty(tab);
  639|  1.47k|    tab->rebuilds_num = 0;
  640|       |#ifdef ST_DEBUG
  641|       |    st_check(tab);
  642|       |#endif
  643|  1.47k|    return tab;
  644|  1.47k|}
onig_st_free_table:
  716|  1.47k|{
  717|  1.47k|    if (tab->bins != NULL)
  ------------------
  |  Branch (717:9): [True: 0, False: 1.47k]
  ------------------
  718|      0|        free(tab->bins);
  719|  1.47k|    free(tab->entries);
  720|  1.47k|    free(tab);
  721|  1.47k|}
onig_st_lookup:
 1110|  4.43k|{
 1111|  4.43k|    st_index_t bin;
 1112|  4.43k|    st_hash_t hash = do_hash(key, tab);
 1113|       |
 1114|  4.43k| retry:
 1115|  4.43k|    if (tab->bins == NULL) {
  ------------------
  |  Branch (1115:9): [True: 4.43k, False: 0]
  ------------------
 1116|  4.43k|        bin = find_entry(tab, hash, key);
 1117|  4.43k|	if (EXPECT(bin == REBUILT_TABLE_ENTRY_IND, 0))
  ------------------
  |  |  117|  4.43k|#define EXPECT(expr, val) __builtin_expect(expr, val)
  |  |  ------------------
  |  |  |  Branch (117:27): [True: 0, False: 4.43k]
  |  |  ------------------
  ------------------
 1118|      0|	    goto retry;
 1119|  4.43k|	if (bin == UNDEFINED_ENTRY_IND)
  ------------------
  |  |  399|  4.43k|#define UNDEFINED_ENTRY_IND (~(st_index_t) 0)
  ------------------
  |  Branch (1119:6): [True: 4.43k, False: 0]
  ------------------
 1120|  4.43k|	    return 0;
 1121|  4.43k|    }
 1122|      0|    else {
 1123|      0|        bin = find_table_entry_ind(tab, hash, key);
 1124|      0|	if (EXPECT(bin == REBUILT_TABLE_ENTRY_IND, 0))
  ------------------
  |  |  117|      0|#define EXPECT(expr, val) __builtin_expect(expr, val)
  |  |  ------------------
  |  |  |  Branch (117:27): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 1125|      0|	    goto retry;
 1126|      0|	if (bin == UNDEFINED_ENTRY_IND)
  ------------------
  |  |  399|      0|#define UNDEFINED_ENTRY_IND (~(st_index_t) 0)
  ------------------
  |  Branch (1126:6): [True: 0, False: 0]
  ------------------
 1127|      0|	    return 0;
 1128|      0|	bin -= ENTRY_BASE;
  ------------------
  |  |  391|      0|#define ENTRY_BASE 2
  ------------------
 1129|      0|    }
 1130|      0|    if (value != 0)
  ------------------
  |  Branch (1130:9): [True: 0, False: 0]
  ------------------
 1131|      0|        *value = tab->entries[bin].record;
 1132|      0|    return 1;
 1133|  4.43k|}
onig_st_insert:
 1182|  5.91k|{
 1183|  5.91k|    st_table_entry *entry;
 1184|  5.91k|    st_index_t bin;
 1185|  5.91k|    st_index_t ind;
 1186|  5.91k|    st_hash_t hash_value;
 1187|  5.91k|    st_index_t bin_ind;
 1188|  5.91k|    int new_p;
 1189|       |
 1190|  5.91k|    hash_value = do_hash(key, tab);
 1191|  5.91k| retry:
 1192|  5.91k|    rebuild_table_if_necessary(tab);
 1193|  5.91k|    if (tab->bins == NULL) {
  ------------------
  |  Branch (1193:9): [True: 5.91k, False: 0]
  ------------------
 1194|  5.91k|        bin = find_entry(tab, hash_value, key);
 1195|  5.91k|	if (EXPECT(bin == REBUILT_TABLE_ENTRY_IND, 0))
  ------------------
  |  |  117|  5.91k|#define EXPECT(expr, val) __builtin_expect(expr, val)
  |  |  ------------------
  |  |  |  Branch (117:27): [True: 0, False: 5.91k]
  |  |  ------------------
  ------------------
 1196|      0|	    goto retry;
 1197|  5.91k|	new_p = bin == UNDEFINED_ENTRY_IND;
  ------------------
  |  |  399|  5.91k|#define UNDEFINED_ENTRY_IND (~(st_index_t) 0)
  ------------------
 1198|  5.91k|	if (new_p)
  ------------------
  |  Branch (1198:6): [True: 5.91k, False: 0]
  ------------------
 1199|  5.91k|	    tab->num_entries++;
 1200|  5.91k|	bin_ind = UNDEFINED_BIN_IND;
  ------------------
  |  |  400|  5.91k|#define UNDEFINED_BIN_IND (~(st_index_t) 0)
  ------------------
 1201|  5.91k|    }
 1202|      0|    else {
 1203|      0|        bin = find_table_bin_ptr_and_reserve(tab, &hash_value,
 1204|      0|					     key, &bin_ind);
 1205|      0|	if (EXPECT(bin == REBUILT_TABLE_ENTRY_IND, 0))
  ------------------
  |  |  117|      0|#define EXPECT(expr, val) __builtin_expect(expr, val)
  |  |  ------------------
  |  |  |  Branch (117:27): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 1206|      0|	    goto retry;
 1207|      0|	new_p = bin == UNDEFINED_ENTRY_IND;
  ------------------
  |  |  399|      0|#define UNDEFINED_ENTRY_IND (~(st_index_t) 0)
  ------------------
 1208|      0|	bin -= ENTRY_BASE;
  ------------------
  |  |  391|      0|#define ENTRY_BASE 2
  ------------------
 1209|      0|    }
 1210|  5.91k|    if (new_p) {
  ------------------
  |  Branch (1210:9): [True: 5.91k, False: 0]
  ------------------
 1211|  5.91k|        st_assert(tab->entries_bound < get_allocated_entries(tab));
  ------------------
  |  |  128|  5.91k|#define st_assert(cond) ((void)(0 && (cond)))
  |  |  ------------------
  |  |  |  Branch (128:33): [Folded - Ignored]
  |  |  |  Branch (128:38): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 1212|  5.91k|	ind = tab->entries_bound++;
 1213|  5.91k|        entry = &tab->entries[ind];
 1214|  5.91k|        entry->hash = hash_value;
 1215|  5.91k|        entry->key = key;
 1216|  5.91k|        entry->record = value;
 1217|  5.91k|	if (bin_ind != UNDEFINED_BIN_IND)
  ------------------
  |  |  400|  5.91k|#define UNDEFINED_BIN_IND (~(st_index_t) 0)
  ------------------
  |  Branch (1217:6): [True: 0, False: 5.91k]
  ------------------
 1218|      0|	    set_bin(tab->bins, get_size_ind(tab), bin_ind, ind + ENTRY_BASE);
  ------------------
  |  |  391|      0|#define ENTRY_BASE 2
  ------------------
 1219|       |#ifdef ST_DEBUG
 1220|       |	st_check(tab);
 1221|       |#endif
 1222|  5.91k|        return 0;
 1223|  5.91k|    }
 1224|      0|    tab->entries[bin].record = value;
 1225|       |#ifdef ST_DEBUG
 1226|       |    st_check(tab);
 1227|       |#endif
 1228|      0|    return 1;
 1229|  5.91k|}
onig_st_foreach:
 1723|  1.47k|{
 1724|  1.47k|    return st_general_foreach(tab, func, NULL, arg, FALSE);
  ------------------
  |  |   77|  1.47k|# define FALSE   0
  ------------------
 1725|  1.47k|}
st.c:get_power2:
  348|  1.47k|{
  349|  1.47k|    unsigned int n;
  350|       |
  351|  5.91k|    for (n = 0; size != 0; n++)
  ------------------
  |  Branch (351:17): [True: 4.43k, False: 1.47k]
  ------------------
  352|  4.43k|        size >>= 1;
  353|  1.47k|    if (n <= MAX_POWER2)
  ------------------
  |  |  210|  1.47k|#define MAX_POWER2 62
  ------------------
  |  Branch (353:9): [True: 1.47k, False: 0]
  ------------------
  354|  1.47k|        return n < MINIMAL_POWER2 ? MINIMAL_POWER2 : n;
  ------------------
  |  |  335|  1.47k|#define MINIMAL_POWER2 2
  ------------------
                      return n < MINIMAL_POWER2 ? MINIMAL_POWER2 : n;
  ------------------
  |  |  335|      0|#define MINIMAL_POWER2 2
  ------------------
  |  Branch (354:16): [True: 0, False: 1.47k]
  ------------------
  355|       |#ifdef RUBY
  356|       |    /* Ran out of the table entries */
  357|       |    rb_raise(rb_eRuntimeError, "st_table too big");
  358|       |#endif
  359|       |    /* should raise exception */
  360|      0|    return -1;
  361|  1.47k|}
st.c:get_allocated_entries:
  466|  7.39k|{
  467|  7.39k|    return ((st_index_t) 1)<<tab->entry_power;
  468|  7.39k|}
st.c:make_tab_empty:
  487|  1.47k|{
  488|  1.47k|    tab->num_entries = 0;
  489|  1.47k|    tab->entries_start = tab->entries_bound = 0;
  490|  1.47k|    if (tab->bins != NULL)
  ------------------
  |  Branch (490:9): [True: 0, False: 1.47k]
  ------------------
  491|      0|        initialize_bins(tab);
  492|  1.47k|}
st.c:do_hash:
  326|  10.3k|{
  327|  10.3k|    st_hash_t hash = (st_hash_t)(tab->type->hash)(key);
  328|       |
  329|       |    /* RESERVED_HASH_VAL is used for a deleted entry.  Map it into
  330|       |       another value.  Such mapping should be extremely rare.  */
  331|  10.3k|    return hash == RESERVED_HASH_VAL ? RESERVED_HASH_SUBSTITUTION_VAL : hash;
  ------------------
  |  |  317|  10.3k|#define RESERVED_HASH_VAL (~(st_hash_t) 0)
  ------------------
                  return hash == RESERVED_HASH_VAL ? RESERVED_HASH_SUBSTITUTION_VAL : hash;
  ------------------
  |  |  318|      0|#define RESERVED_HASH_SUBSTITUTION_VAL ((st_hash_t) 0)
  ------------------
  |  Branch (331:12): [True: 0, False: 10.3k]
  ------------------
  332|  10.3k|}
st.c:find_entry:
  881|  16.2k|{
  882|  16.2k|    int eq_p, rebuilt_p;
  883|  16.2k|    st_index_t i, bound;
  884|  16.2k|    st_table_entry *entries;
  885|       |
  886|  16.2k|    bound = tab->entries_bound;
  887|  16.2k|    entries = tab->entries;
  888|  33.9k|    for (i = tab->entries_start; i < bound; i++) {
  ------------------
  |  Branch (888:34): [True: 23.6k, False: 10.3k]
  ------------------
  889|  23.6k|	DO_PTR_EQUAL_CHECK(tab, &entries[i], hash_value, key, eq_p, rebuilt_p);
  ------------------
  |  |  187|  23.6k|    do {							    \
  |  |  188|  23.6k|	unsigned int _old_rebuilds_num = (tab)->rebuilds_num;       \
  |  |  189|  23.6k|	res = PTR_EQUAL(tab, ptr, hash_val, key);		    \
  |  |  ------------------
  |  |  |  |  182|  23.6k|    ((ptr)->hash == (hash_val) && EQUAL((tab), (key_), (ptr)->key))
  |  |  |  |  ------------------
  |  |  |  |  |  |  180|  5.91k|#define EQUAL(tab,x,y) ((x) == (y) || (*(tab)->type->compare)((x),(y)) == 0)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (180:25): [True: 5.91k, False: 0]
  |  |  |  |  |  |  |  Branch (180:39): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (182:6): [True: 5.91k, False: 17.7k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  190|  23.6k|	rebuilt_p = _old_rebuilds_num != (tab)->rebuilds_num;	    \
  |  |  191|  23.6k|    } while (FALSE)
  |  |  ------------------
  |  |  |  |   77|  23.6k|# define FALSE   0
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (77:18): [Folded - Ignored]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  890|  23.6k|	if (EXPECT(rebuilt_p, 0))
  ------------------
  |  |  117|  23.6k|#define EXPECT(expr, val) __builtin_expect(expr, val)
  |  |  ------------------
  |  |  |  Branch (117:27): [True: 0, False: 23.6k]
  |  |  ------------------
  ------------------
  891|      0|	    return REBUILT_TABLE_ENTRY_IND;
  ------------------
  |  |  404|      0|#define REBUILT_TABLE_ENTRY_IND (~(st_index_t) 1)
  ------------------
  892|  23.6k|	if (eq_p)
  ------------------
  |  Branch (892:6): [True: 5.91k, False: 17.7k]
  ------------------
  893|  5.91k|	    return i;
  894|  23.6k|    }
  895|  10.3k|    return UNDEFINED_ENTRY_IND;
  ------------------
  |  |  399|  10.3k|#define UNDEFINED_ENTRY_IND (~(st_index_t) 0)
  ------------------
  896|  16.2k|}
st.c:rebuild_table_if_necessary:
 1169|  5.91k|{
 1170|  5.91k|    st_index_t bound = tab->entries_bound;
 1171|       |
 1172|  5.91k|    if (bound == get_allocated_entries(tab))
  ------------------
  |  Branch (1172:9): [True: 0, False: 5.91k]
  ------------------
 1173|      0|        rebuild_table(tab);
 1174|  5.91k|    st_assert(tab->entries_bound < get_allocated_entries(tab));
  ------------------
  |  |  128|  5.91k|#define st_assert(cond) ((void)(0 && (cond)))
  |  |  ------------------
  |  |  |  Branch (128:33): [Folded - Ignored]
  |  |  |  Branch (128:38): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 1175|  5.91k|}
st.c:st_general_foreach:
 1605|  1.47k|{
 1606|  1.47k|    st_index_t bin;
 1607|  1.47k|    st_index_t bin_ind;
 1608|  1.47k|    st_table_entry *entries, *curr_entry_ptr;
 1609|  1.47k|    enum st_retval retval;
 1610|  1.47k|    st_index_t i, rebuilds_num;
 1611|  1.47k|    st_hash_t hash;
 1612|  1.47k|    st_data_t key;
 1613|  1.47k|    int error_p, packed_p = tab->bins == NULL;
 1614|       |
 1615|  1.47k|    st_assert(tab->entries_start <= tab->entries_bound);
  ------------------
  |  |  128|  1.47k|#define st_assert(cond) ((void)(0 && (cond)))
  |  |  ------------------
  |  |  |  Branch (128:33): [Folded - Ignored]
  |  |  |  Branch (128:38): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 1616|  1.47k|    entries = tab->entries;
 1617|       |    /* The bound can change inside the loop even without rebuilding
 1618|       |       the table, e.g. by an entry inesrtion.  */
 1619|  7.39k|    for (i = tab->entries_start; i < tab->entries_bound; i++) {
  ------------------
  |  Branch (1619:34): [True: 5.91k, False: 1.47k]
  ------------------
 1620|  5.91k|        curr_entry_ptr = &entries[i];
 1621|  5.91k|	if (EXPECT(DELETED_ENTRY_P(curr_entry_ptr), 0))
  ------------------
  |  |  117|  5.91k|#define EXPECT(expr, val) __builtin_expect(expr, val)
  |  |  ------------------
  |  |  |  Branch (117:27): [True: 0, False: 5.91k]
  |  |  ------------------
  ------------------
 1622|      0|	    continue;
 1623|  5.91k|	key = curr_entry_ptr->key;
 1624|  5.91k|	rebuilds_num = tab->rebuilds_num;
 1625|  5.91k|	hash = curr_entry_ptr->hash;
 1626|  5.91k|	retval = (*func)(key, curr_entry_ptr->record, arg, 0);
 1627|       |
 1628|  5.91k|        if (retval == ST_REPLACE && replace) {
  ------------------
  |  Branch (1628:13): [True: 0, False: 5.91k]
  |  Branch (1628:37): [True: 0, False: 0]
  ------------------
 1629|      0|            st_data_t value;
 1630|      0|            value = curr_entry_ptr->record;
 1631|      0|            retval = (*replace)(&key, &value, arg, TRUE);
  ------------------
  |  |   73|      0|# define TRUE    1
  ------------------
 1632|      0|            curr_entry_ptr->key = key;
 1633|      0|            curr_entry_ptr->record = value;
 1634|      0|        }
 1635|       |
 1636|  5.91k|	if (rebuilds_num != tab->rebuilds_num) {
  ------------------
  |  Branch (1636:6): [True: 0, False: 5.91k]
  ------------------
 1637|      0|	retry:
 1638|      0|	    entries = tab->entries;
 1639|      0|	    packed_p = tab->bins == NULL;
 1640|      0|	    if (packed_p) {
  ------------------
  |  Branch (1640:10): [True: 0, False: 0]
  ------------------
 1641|      0|	        i = find_entry(tab, hash, key);
 1642|      0|		if (EXPECT(i == REBUILT_TABLE_ENTRY_IND, 0))
  ------------------
  |  |  117|      0|#define EXPECT(expr, val) __builtin_expect(expr, val)
  |  |  ------------------
  |  |  |  Branch (117:27): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 1643|      0|		    goto retry;
 1644|      0|		error_p = i == UNDEFINED_ENTRY_IND;
  ------------------
  |  |  399|      0|#define UNDEFINED_ENTRY_IND (~(st_index_t) 0)
  ------------------
 1645|      0|	    }
 1646|      0|	    else {
 1647|      0|	        i = find_table_entry_ind(tab, hash, key);
 1648|      0|		if (EXPECT(i == REBUILT_TABLE_ENTRY_IND, 0))
  ------------------
  |  |  117|      0|#define EXPECT(expr, val) __builtin_expect(expr, val)
  |  |  ------------------
  |  |  |  Branch (117:27): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 1649|      0|		    goto retry;
 1650|      0|		error_p = i == UNDEFINED_ENTRY_IND;
  ------------------
  |  |  399|      0|#define UNDEFINED_ENTRY_IND (~(st_index_t) 0)
  ------------------
 1651|      0|		i -= ENTRY_BASE;
  ------------------
  |  |  391|      0|#define ENTRY_BASE 2
  ------------------
 1652|      0|	    }
 1653|      0|	    if (error_p && check_p) {
  ------------------
  |  Branch (1653:10): [True: 0, False: 0]
  |  Branch (1653:21): [True: 0, False: 0]
  ------------------
 1654|       |	        /* call func with error notice */
 1655|      0|	        retval = (*func)(0, 0, arg, 1);
 1656|       |#ifdef ST_DEBUG
 1657|       |		st_check(tab);
 1658|       |#endif
 1659|      0|		return 1;
 1660|      0|	    }
 1661|      0|	    curr_entry_ptr = &entries[i];
 1662|      0|	}
 1663|  5.91k|	switch (retval) {
  ------------------
  |  Branch (1663:10): [True: 0, False: 5.91k]
  ------------------
 1664|      0|          case ST_REPLACE:
  ------------------
  |  Branch (1664:11): [True: 0, False: 5.91k]
  ------------------
 1665|      0|            break;
 1666|      0|	  case ST_CONTINUE:
  ------------------
  |  Branch (1666:4): [True: 0, False: 5.91k]
  ------------------
 1667|      0|	    break;
 1668|      0|	  case ST_CHECK:
  ------------------
  |  Branch (1668:4): [True: 0, False: 5.91k]
  ------------------
 1669|      0|	    if (check_p)
  ------------------
  |  Branch (1669:10): [True: 0, False: 0]
  ------------------
 1670|      0|		break;
 1671|      0|	  case ST_STOP:
  ------------------
  |  Branch (1671:4): [True: 0, False: 5.91k]
  ------------------
 1672|       |#ifdef ST_DEBUG
 1673|       |	    st_check(tab);
 1674|       |#endif
 1675|      0|	    return 0;
 1676|  5.91k|	  case ST_DELETE: {
  ------------------
  |  Branch (1676:4): [True: 5.91k, False: 0]
  ------------------
 1677|  5.91k|	    st_data_t key = curr_entry_ptr->key;
 1678|       |
 1679|  5.91k|	    again:
 1680|  5.91k|	    if (packed_p) {
  ------------------
  |  Branch (1680:10): [True: 5.91k, False: 0]
  ------------------
 1681|  5.91k|		bin = find_entry(tab, hash, key);
 1682|  5.91k|		if (EXPECT(bin == REBUILT_TABLE_ENTRY_IND, 0))
  ------------------
  |  |  117|  5.91k|#define EXPECT(expr, val) __builtin_expect(expr, val)
  |  |  ------------------
  |  |  |  Branch (117:27): [True: 0, False: 5.91k]
  |  |  ------------------
  ------------------
 1683|      0|		    goto again;
 1684|  5.91k|		if (bin == UNDEFINED_ENTRY_IND)
  ------------------
  |  |  399|  5.91k|#define UNDEFINED_ENTRY_IND (~(st_index_t) 0)
  ------------------
  |  Branch (1684:7): [True: 0, False: 5.91k]
  ------------------
 1685|      0|		    break;
 1686|  5.91k|	    }
 1687|      0|	    else {
 1688|      0|		bin_ind = find_table_bin_ind(tab, hash, key);
 1689|      0|		if (EXPECT(bin_ind == REBUILT_TABLE_BIN_IND, 0))
  ------------------
  |  |  117|      0|#define EXPECT(expr, val) __builtin_expect(expr, val)
  |  |  ------------------
  |  |  |  Branch (117:27): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 1690|      0|		    goto again;
 1691|      0|		if (bin_ind == UNDEFINED_BIN_IND)
  ------------------
  |  |  400|      0|#define UNDEFINED_BIN_IND (~(st_index_t) 0)
  ------------------
  |  Branch (1691:7): [True: 0, False: 0]
  ------------------
 1692|      0|		    break;
 1693|      0|		bin = get_bin(tab->bins, get_size_ind(tab), bin_ind) - ENTRY_BASE;
  ------------------
  |  |  391|      0|#define ENTRY_BASE 2
  ------------------
 1694|      0|		MARK_BIN_DELETED(tab, bin_ind);
  ------------------
  |  |  411|      0|    do {                                                        \
  |  |  412|      0|        st_assert(i != UNDEFINED_BIN_IND);			\
  |  |  ------------------
  |  |  |  |  128|      0|#define st_assert(cond) ((void)(0 && (cond)))
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (128:33): [Folded - Ignored]
  |  |  |  |  |  Branch (128:38): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  413|      0|	st_assert(! IND_EMPTY_OR_DELETED_BIN_P(tab, i)); 	\
  |  |  ------------------
  |  |  |  |  128|      0|#define st_assert(cond) ((void)(0 && (cond)))
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (128:33): [Folded - Ignored]
  |  |  |  |  |  Branch (128:38): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  414|      0|        set_bin((tab)->bins, get_size_ind(tab), i, DELETED_BIN); \
  |  |  ------------------
  |  |  |  |  389|      0|#define DELETED_BIN  1
  |  |  ------------------
  |  |  415|      0|    } while (0)
  |  |  ------------------
  |  |  |  Branch (415:14): [Folded - Ignored]
  |  |  ------------------
  ------------------
 1695|      0|	    }
 1696|  5.91k|	    curr_entry_ptr = &entries[bin];
 1697|  5.91k|	    MARK_ENTRY_DELETED(curr_entry_ptr);
  ------------------
  |  |  431|  5.91k|#define MARK_ENTRY_DELETED(e_ptr) ((e_ptr)->hash = RESERVED_HASH_VAL)
  |  |  ------------------
  |  |  |  |  317|  5.91k|#define RESERVED_HASH_VAL (~(st_hash_t) 0)
  |  |  ------------------
  ------------------
 1698|  5.91k|	    tab->num_entries--;
 1699|  5.91k|	    update_range_for_deleted(tab, bin);
 1700|       |#ifdef ST_DEBUG
 1701|       |	    st_check(tab);
 1702|       |#endif
 1703|  5.91k|	    break;
 1704|  5.91k|	  }
 1705|  5.91k|	}
 1706|  5.91k|    }
 1707|       |#ifdef ST_DEBUG
 1708|       |    st_check(tab);
 1709|       |#endif
 1710|  1.47k|    return 0;
 1711|  1.47k|}
st.c:update_range_for_deleted:
 1375|  5.91k|{
 1376|       |    /* Do not update entries_bound here.  Otherwise, we can fill all
 1377|       |       bins by deleted entry value before rebuilding the table.  */
 1378|  5.91k|    if (tab->entries_start == n)
  ------------------
  |  Branch (1378:9): [True: 5.91k, False: 0]
  ------------------
 1379|  5.91k|        tab->entries_start = n + 1;
 1380|  5.91k|}

flb_cf_create:
  102|  1.49k|{
  103|  1.49k|    struct flb_cf *ctx;
  104|       |
  105|  1.49k|    ctx = flb_calloc(1, sizeof(struct flb_cf));
  106|  1.49k|    if (!ctx) {
  ------------------
  |  Branch (106:9): [True: 1, False: 1.49k]
  ------------------
  107|      1|        flb_errno();
  ------------------
  |  |  232|      1|#define flb_errno() flb_errno_print(errno, __FLB_FILENAME__, __LINE__)
  ------------------
  108|      1|        return NULL;
  109|      1|    }
  110|  1.49k|    ctx->format = FLB_CF_CLASSIC;
  ------------------
  |  |   53|  1.49k|#define FLB_CF_CLASSIC FLB_CF_FLUENTBIT
  ------------------
  111|       |
  112|       |    /* env vars */
  113|  1.49k|    mk_list_init(&ctx->env);
  114|       |
  115|       |    /* meta commands */
  116|  1.49k|    mk_list_init(&ctx->metas);
  117|       |
  118|       |    /* parsers */
  119|  1.49k|    mk_list_init(&ctx->parsers);
  120|  1.49k|    mk_list_init(&ctx->multiline_parsers);
  121|       |
  122|       |    /* stream processors */
  123|  1.49k|    mk_list_init(&ctx->stream_processors);
  124|       |
  125|       |    /* external plugins (*.so) */
  126|  1.49k|    mk_list_init(&ctx->plugins);
  127|       |
  128|       |    /* upstream servers */
  129|  1.49k|    mk_list_init(&ctx->upstream_servers);
  130|       |
  131|       |    /* 'custom' type plugins */
  132|  1.49k|    mk_list_init(&ctx->customs);
  133|       |
  134|       |    /* pipeline */
  135|  1.49k|    mk_list_init(&ctx->inputs);
  136|  1.49k|    mk_list_init(&ctx->filters);
  137|  1.49k|    mk_list_init(&ctx->outputs);
  138|       |
  139|       |    /* other sections */
  140|  1.49k|    mk_list_init(&ctx->others);
  141|       |
  142|       |    /* general list for sections */
  143|  1.49k|    mk_list_init(&ctx->sections);
  144|       |
  145|  1.49k|    return ctx;
  146|  1.49k|}
flb_cf_destroy:
  149|  1.49k|{
  150|  1.49k|    flb_kv_release(&cf->env);
  151|  1.49k|    flb_kv_release(&cf->metas);
  152|  1.49k|    flb_cf_section_destroy_all(cf);
  153|  1.49k|    flb_free(cf);
  154|  1.49k|}
flb_cf_section_create:
  600|  1.49k|{
  601|  1.49k|    int type;
  602|  1.49k|    struct flb_cf_section *s;
  603|       |
  604|  1.49k|    if (!name) {
  ------------------
  |  Branch (604:9): [True: 0, False: 1.49k]
  ------------------
  605|      0|        return NULL;
  606|      0|    }
  607|       |
  608|       |    /* determinate type by name */
  609|  1.49k|    if (len <= 0) {
  ------------------
  |  Branch (609:9): [True: 1.49k, False: 0]
  ------------------
  610|  1.49k|        len = strlen(name);
  611|  1.49k|    }
  612|       |
  613|       |    /* get the section type */
  614|  1.49k|    type = get_section_type(name, len);
  615|       |
  616|       |    /* check if 'service' already exists */
  617|  1.49k|    if (type == FLB_CF_SERVICE && cf->service) {
  ------------------
  |  Branch (617:9): [True: 1.49k, False: 0]
  |  Branch (617:35): [True: 0, False: 1.49k]
  ------------------
  618|      0|        return cf->service;
  619|      0|    }
  620|       |
  621|       |    /* section context */
  622|  1.49k|    s = flb_malloc(sizeof(struct flb_cf_section));
  623|  1.49k|    if (!s) {
  ------------------
  |  Branch (623:9): [True: 2, False: 1.49k]
  ------------------
  624|      2|        flb_errno();
  ------------------
  |  |  232|      2|#define flb_errno() flb_errno_print(errno, __FLB_FILENAME__, __LINE__)
  ------------------
  625|      2|        return NULL;
  626|      2|    }
  627|       |
  628|       |    /* initialize lists */
  629|  1.49k|    s->properties = cfl_kvlist_create();
  630|  1.49k|    mk_list_init(&s->groups);
  631|       |
  632|       |    /* create a NULL terminated name */
  633|  1.49k|    s->name = flb_sds_create_len(name, len);
  634|  1.49k|    if (!s->name) {
  ------------------
  |  Branch (634:9): [True: 2, False: 1.49k]
  ------------------
  635|      2|        flb_free(s->properties);
  636|      2|        flb_free(s);
  637|      2|        return NULL;
  638|      2|    }
  639|  1.49k|    s->type = type;
  640|       |
  641|  1.49k|    if (type == FLB_CF_SERVICE && !cf->service) {
  ------------------
  |  Branch (641:9): [True: 1.49k, False: 0]
  |  Branch (641:35): [True: 1.49k, False: 0]
  ------------------
  642|  1.49k|        cf->service = s;
  643|  1.49k|    }
  644|       |
  645|       |    /* link to global section */
  646|  1.49k|    mk_list_add(&s->_head, &cf->sections);
  647|       |
  648|       |    /* link to list per type */
  649|  1.49k|    if (type == FLB_CF_PARSER) {
  ------------------
  |  Branch (649:9): [True: 0, False: 1.49k]
  ------------------
  650|      0|        mk_list_add(&s->_head_section, &cf->parsers);
  651|      0|    }
  652|  1.49k|    else if (type == FLB_CF_MULTILINE_PARSER) {
  ------------------
  |  Branch (652:14): [True: 0, False: 1.49k]
  ------------------
  653|      0|        mk_list_add(&s->_head_section, &cf->multiline_parsers);
  654|      0|    }
  655|  1.49k|    else if (type == FLB_CF_STREAM_PROCESSOR) {
  ------------------
  |  Branch (655:14): [True: 0, False: 1.49k]
  ------------------
  656|      0|        mk_list_add(&s->_head_section, &cf->stream_processors);
  657|      0|    }
  658|  1.49k|    else if (type == FLB_CF_PLUGINS) {
  ------------------
  |  Branch (658:14): [True: 0, False: 1.49k]
  ------------------
  659|      0|        mk_list_add(&s->_head_section, &cf->plugins);
  660|      0|    }
  661|  1.49k|    else if (type == FLB_CF_UPSTREAM_SERVERS) {
  ------------------
  |  Branch (661:14): [True: 0, False: 1.49k]
  ------------------
  662|      0|        mk_list_add(&s->_head_section, &cf->upstream_servers);
  663|      0|    }
  664|  1.49k|    else if (type == FLB_CF_CUSTOM) {
  ------------------
  |  Branch (664:14): [True: 0, False: 1.49k]
  ------------------
  665|      0|        mk_list_add(&s->_head_section, &cf->customs);
  666|      0|    }
  667|  1.49k|    else if (type == FLB_CF_INPUT) {
  ------------------
  |  Branch (667:14): [True: 0, False: 1.49k]
  ------------------
  668|      0|        mk_list_add(&s->_head_section, &cf->inputs);
  669|      0|    }
  670|  1.49k|    else if (type == FLB_CF_FILTER) {
  ------------------
  |  Branch (670:14): [True: 0, False: 1.49k]
  ------------------
  671|      0|        mk_list_add(&s->_head_section, &cf->filters);
  672|      0|    }
  673|  1.49k|    else if (type == FLB_CF_OUTPUT) {
  ------------------
  |  Branch (673:14): [True: 0, False: 1.49k]
  ------------------
  674|      0|        mk_list_add(&s->_head_section, &cf->outputs);
  675|      0|    }
  676|  1.49k|    else if (type == FLB_CF_OTHER) {
  ------------------
  |  Branch (676:14): [True: 0, False: 1.49k]
  ------------------
  677|      0|        mk_list_add(&s->_head_section, &cf->others);
  678|      0|    }
  679|       |
  680|  1.49k|    return s;
  681|  1.49k|}
flb_cf_section_destroy:
  700|  1.49k|{
  701|  1.49k|    struct mk_list *tmp;
  702|  1.49k|    struct mk_list *head;
  703|  1.49k|    struct flb_cf_group *g;
  704|       |
  705|  1.49k|    if (s->name) {
  ------------------
  |  Branch (705:9): [True: 1.49k, False: 0]
  ------------------
  706|  1.49k|        flb_sds_destroy(s->name);
  707|  1.49k|        s->name = NULL;
  708|  1.49k|    }
  709|  1.49k|    cfl_kvlist_destroy(s->properties);
  710|       |
  711|       |    /* groups */
  712|  1.49k|    mk_list_foreach_safe(head, tmp, &s->groups) {
  ------------------
  |  |  207|  1.49k|    for (curr = (head)->next, n = curr->next; curr != (head); curr = n, n = curr->next)
  |  |  ------------------
  |  |  |  Branch (207:47): [True: 0, False: 1.49k]
  |  |  ------------------
  ------------------
  713|      0|        g = mk_list_entry(head, struct flb_cf_group, _head);
  ------------------
  |  |  214|      0|#define mk_list_entry( ptr, type, member ) container_of( ptr, type, member )
  |  |  ------------------
  |  |  |  |   38|      0|#define container_of(ptr, type, member) ({                      \
  |  |  |  |   39|      0|      const typeof( ((type *)0)->member ) *__mptr = (ptr);      \
  |  |  |  |   40|      0|      (type *)( (char *)__mptr - offsetof(type,member) );})
  |  |  ------------------
  ------------------
  714|      0|        flb_cf_group_destroy(g);
  715|      0|    }
  716|       |
  717|       |    /* unlink */
  718|  1.49k|    mk_list_del(&s->_head);
  719|       |
  720|  1.49k|    if (s->type != FLB_CF_SERVICE) {
  ------------------
  |  Branch (720:9): [True: 0, False: 1.49k]
  ------------------
  721|      0|        mk_list_del(&s->_head_section);
  722|      0|    }
  723|       |
  724|  1.49k|    flb_free(s);
  725|  1.49k|}
flb_cf_section_destroy_all:
  740|  1.49k|{
  741|  1.49k|    section_destroy_list(cf, &cf->sections);
  742|  1.49k|}
flb_config_format.c:get_section_type:
  171|  1.49k|{
  172|  1.49k|    if (strncasecmp(name, "service", len) == 0) {
  ------------------
  |  Branch (172:9): [True: 1.49k, False: 0]
  ------------------
  173|  1.49k|        return FLB_CF_SERVICE;
  174|  1.49k|    }
  175|      0|    else if (strncasecmp(name, "parser", len) == 0) {
  ------------------
  |  Branch (175:14): [True: 0, False: 0]
  ------------------
  176|      0|        return FLB_CF_PARSER;
  177|      0|    }
  178|      0|    else if (strncasecmp(name, "multiline_parser", len) == 0) {
  ------------------
  |  Branch (178:14): [True: 0, False: 0]
  ------------------
  179|      0|        return FLB_CF_MULTILINE_PARSER;
  180|      0|    }
  181|      0|    else if (strncasecmp(name, "stream_processor", len) == 0) {
  ------------------
  |  Branch (181:14): [True: 0, False: 0]
  ------------------
  182|      0|        return FLB_CF_STREAM_PROCESSOR;
  183|      0|    }
  184|      0|    else if (strncasecmp(name, "plugins", len) == 0) {
  ------------------
  |  Branch (184:14): [True: 0, False: 0]
  ------------------
  185|      0|        return FLB_CF_PLUGINS;
  186|      0|    }
  187|      0|    else if (strncasecmp(name, "upstream_servers", len) == 0) {
  ------------------
  |  Branch (187:14): [True: 0, False: 0]
  ------------------
  188|      0|        return FLB_CF_UPSTREAM_SERVERS;
  189|      0|    }
  190|      0|    else if (strncasecmp(name, "custom", len) == 0 ||
  ------------------
  |  Branch (190:14): [True: 0, False: 0]
  ------------------
  191|      0|             strncasecmp(name, "customs", len) == 0) {
  ------------------
  |  Branch (191:14): [True: 0, False: 0]
  ------------------
  192|      0|        return FLB_CF_CUSTOM;
  193|      0|    }
  194|      0|    else if (strncasecmp(name, "input", len) == 0 ||
  ------------------
  |  Branch (194:14): [True: 0, False: 0]
  ------------------
  195|      0|             strncasecmp(name, "inputs", len) == 0) {
  ------------------
  |  Branch (195:14): [True: 0, False: 0]
  ------------------
  196|      0|        return FLB_CF_INPUT;
  197|      0|    }
  198|      0|    else if (strncasecmp(name, "filter", len) == 0 ||
  ------------------
  |  Branch (198:14): [True: 0, False: 0]
  ------------------
  199|      0|             strncasecmp(name, "filters", len) == 0) {
  ------------------
  |  Branch (199:14): [True: 0, False: 0]
  ------------------
  200|      0|        return FLB_CF_FILTER;
  201|      0|    }
  202|      0|    else if (strncasecmp(name, "output", len) == 0 ||
  ------------------
  |  Branch (202:14): [True: 0, False: 0]
  ------------------
  203|      0|             strncasecmp(name, "outputs", len) == 0) {
  ------------------
  |  Branch (203:14): [True: 0, False: 0]
  ------------------
  204|      0|        return FLB_CF_OUTPUT;
  205|      0|    }
  206|       |
  207|      0|    return FLB_CF_OTHER;
  208|  1.49k|}
flb_config_format.c:section_destroy_list:
  728|  1.49k|{
  729|  1.49k|    struct mk_list *tmp;
  730|  1.49k|    struct mk_list *head;
  731|  1.49k|    struct flb_cf_section *s;
  732|       |
  733|  1.49k|    mk_list_foreach_safe(head, tmp, list) {
  ------------------
  |  |  207|  2.98k|    for (curr = (head)->next, n = curr->next; curr != (head); curr = n, n = curr->next)
  |  |  ------------------
  |  |  |  Branch (207:47): [True: 1.49k, False: 1.49k]
  |  |  ------------------
  ------------------
  734|  1.49k|        s = mk_list_entry(head, struct flb_cf_section, _head);
  ------------------
  |  |  214|  1.49k|#define mk_list_entry( ptr, type, member ) container_of( ptr, type, member )
  |  |  ------------------
  |  |  |  |   38|  1.49k|#define container_of(ptr, type, member) ({                      \
  |  |  |  |   39|  1.49k|      const typeof( ((type *)0)->member ) *__mptr = (ptr);      \
  |  |  |  |   40|  1.49k|      (type *)( (char *)__mptr - offsetof(type,member) );})
  |  |  ------------------
  ------------------
  735|  1.49k|        flb_cf_section_destroy(cf, s);
  736|  1.49k|    }
  737|  1.49k|}

flb_config_init:
  199|  1.49k|{
  200|  1.49k|    int ret;
  201|  1.49k|    struct flb_config *config;
  202|  1.49k|    struct flb_cf *cf;
  203|  1.49k|    struct flb_cf_section *section;
  204|       |
  205|  1.49k|    config = flb_calloc(1, sizeof(struct flb_config));
  206|  1.49k|    if (!config) {
  ------------------
  |  Branch (206:9): [True: 3, False: 1.49k]
  ------------------
  207|      3|        flb_errno();
  ------------------
  |  |  232|      3|#define flb_errno() flb_errno_print(errno, __FLB_FILENAME__, __LINE__)
  ------------------
  208|      3|        return NULL;
  209|      3|    }
  210|       |
  211|  1.49k|    MK_EVENT_ZERO(&config->ch_event);
  212|  1.49k|    MK_EVENT_ZERO(&config->event_flush);
  213|  1.49k|    MK_EVENT_ZERO(&config->event_shutdown);
  214|       |
  215|       |    /* is data ingestion active ? */
  216|  1.49k|    config->is_ingestion_active = FLB_TRUE;
  ------------------
  |  |   26|  1.49k|#define FLB_TRUE   !FLB_FALSE
  |  |  ------------------
  |  |  |  |   25|  1.49k|#define FLB_FALSE  0
  |  |  ------------------
  ------------------
  217|       |
  218|       |    /* Is the engine (event loop) actively running ? */
  219|  1.49k|    config->is_running = FLB_TRUE;
  ------------------
  |  |   26|  1.49k|#define FLB_TRUE   !FLB_FALSE
  |  |  ------------------
  |  |  |  |   25|  1.49k|#define FLB_FALSE  0
  |  |  ------------------
  ------------------
  220|       |
  221|       |    /* Initialize config_format context */
  222|  1.49k|    cf = flb_cf_create();
  223|  1.49k|    if (!cf) {
  ------------------
  |  Branch (223:9): [True: 1, False: 1.49k]
  ------------------
  224|      1|        flb_free(config);
  225|      1|        return NULL;
  226|      1|    }
  227|  1.49k|    config->cf_main = cf;
  228|       |
  229|  1.49k|    section = flb_cf_section_create(cf, "service", 0);
  230|  1.49k|    if (!section) {
  ------------------
  |  Branch (230:9): [True: 4, False: 1.49k]
  ------------------
  231|      4|        flb_cf_destroy(cf);
  232|      4|        flb_free(config);
  233|      4|        return NULL;
  234|      4|    }
  235|       |
  236|       |    /* Flush */
  237|  1.49k|    config->flush        = FLB_CONFIG_FLUSH_SECS;
  ------------------
  |  |   33|  1.49k|#define FLB_CONFIG_FLUSH_SECS   1
  ------------------
  238|  1.49k|    config->daemon       = FLB_FALSE;
  ------------------
  |  |   25|  1.49k|#define FLB_FALSE  0
  ------------------
  239|  1.49k|    config->init_time    = time(NULL);
  240|  1.49k|    config->kernel       = flb_kernel_info();
  241|  1.49k|    config->verbose      = 3;
  242|  1.49k|    config->grace        = 5;
  243|  1.49k|    config->grace_count  = 0;
  244|  1.49k|    config->exit_status_code = 0;
  245|       |
  246|       |    /* json */
  247|  1.49k|    config->convert_nan_to_null = FLB_FALSE;
  ------------------
  |  |   25|  1.49k|#define FLB_FALSE  0
  ------------------
  248|       |
  249|  1.49k|#ifdef FLB_HAVE_HTTP_SERVER
  250|  1.49k|    config->http_ctx                     = NULL;
  251|  1.49k|    config->http_server                  = FLB_FALSE;
  ------------------
  |  |   25|  1.49k|#define FLB_FALSE  0
  ------------------
  252|  1.49k|    config->http_listen                  = flb_strdup(FLB_CONFIG_HTTP_LISTEN);
  ------------------
  |  |   34|  1.49k|#define FLB_CONFIG_HTTP_LISTEN  "0.0.0.0"
  ------------------
  253|  1.49k|    config->http_port                    = flb_strdup(FLB_CONFIG_HTTP_PORT);
  ------------------
  |  |   35|  1.49k|#define FLB_CONFIG_HTTP_PORT    "2020"
  ------------------
  254|  1.49k|    config->health_check                 = FLB_FALSE;
  ------------------
  |  |   25|  1.49k|#define FLB_FALSE  0
  ------------------
  255|  1.49k|    config->hc_errors_count              = HC_ERRORS_COUNT_DEFAULT;
  ------------------
  |  |   36|  1.49k|#define HC_ERRORS_COUNT_DEFAULT 5
  ------------------
  256|  1.49k|    config->hc_retry_failure_count       = HC_RETRY_FAILURE_COUNTS_DEFAULT;
  ------------------
  |  |   37|  1.49k|#define HC_RETRY_FAILURE_COUNTS_DEFAULT 5
  ------------------
  257|  1.49k|    config->health_check_period          = HEALTH_CHECK_PERIOD;
  ------------------
  |  |   38|  1.49k|#define HEALTH_CHECK_PERIOD 60
  ------------------
  258|  1.49k|#endif
  259|       |
  260|  1.49k|    config->http_proxy = getenv("HTTP_PROXY");
  261|  1.49k|    if (flb_str_emptyval(config->http_proxy) == FLB_TRUE) {
  ------------------
  |  |   26|  1.49k|#define FLB_TRUE   !FLB_FALSE
  |  |  ------------------
  |  |  |  |   25|  1.49k|#define FLB_FALSE  0
  |  |  ------------------
  ------------------
  |  Branch (261:9): [True: 0, False: 1.49k]
  ------------------
  262|      0|        config->http_proxy = getenv("http_proxy");
  263|      0|        if (flb_str_emptyval(config->http_proxy) == FLB_TRUE) {
  ------------------
  |  |   26|      0|#define FLB_TRUE   !FLB_FALSE
  |  |  ------------------
  |  |  |  |   25|      0|#define FLB_FALSE  0
  |  |  ------------------
  ------------------
  |  Branch (263:13): [True: 0, False: 0]
  ------------------
  264|       |            /* Proxy should not be set when `HTTP_PROXY` or `http_proxy` are set to "" */
  265|      0|            config->http_proxy = NULL;
  266|      0|        }
  267|      0|    }
  268|  1.49k|    config->no_proxy = getenv("NO_PROXY");
  269|  1.49k|    if (flb_str_emptyval(config->no_proxy) == FLB_TRUE || config->http_proxy == NULL) {
  ------------------
  |  |   26|  2.98k|#define FLB_TRUE   !FLB_FALSE
  |  |  ------------------
  |  |  |  |   25|  2.98k|#define FLB_FALSE  0
  |  |  ------------------
  ------------------
  |  Branch (269:9): [True: 0, False: 1.49k]
  |  Branch (269:59): [True: 1.49k, False: 0]
  ------------------
  270|  1.49k|        config->no_proxy = getenv("no_proxy");
  271|  1.49k|        if (flb_str_emptyval(config->no_proxy) == FLB_TRUE || config->http_proxy == NULL) {
  ------------------
  |  |   26|  2.98k|#define FLB_TRUE   !FLB_FALSE
  |  |  ------------------
  |  |  |  |   25|  2.98k|#define FLB_FALSE  0
  |  |  ------------------
  ------------------
  |  Branch (271:13): [True: 0, False: 1.49k]
  |  Branch (271:63): [True: 1.49k, False: 0]
  ------------------
  272|       |            /* NoProxy  should not be set when `NO_PROXY` or `no_proxy` are set to "" or there is no Proxy. */
  273|  1.49k|            config->no_proxy = NULL;
  274|  1.49k|        }
  275|  1.49k|    }
  276|       |
  277|  1.49k|    config->cio          = NULL;
  278|  1.49k|    config->storage_path = NULL;
  279|  1.49k|    config->storage_input_plugin = NULL;
  280|  1.49k|    config->storage_metrics = FLB_TRUE;
  ------------------
  |  |   26|  1.49k|#define FLB_TRUE   !FLB_FALSE
  |  |  ------------------
  |  |  |  |   25|  1.49k|#define FLB_FALSE  0
  |  |  ------------------
  ------------------
  281|       |
  282|  1.49k|    config->sched_cap  = FLB_SCHED_CAP;
  ------------------
  |  |   29|  1.49k|#define FLB_SCHED_CAP            2000
  ------------------
  283|  1.49k|    config->sched_base = FLB_SCHED_BASE;
  ------------------
  |  |   30|  1.49k|#define FLB_SCHED_BASE           5
  ------------------
  284|       |
  285|       |    /* reload */
  286|  1.49k|    config->ensure_thread_safety_on_hot_reloading = FLB_TRUE;
  ------------------
  |  |   26|  1.49k|#define FLB_TRUE   !FLB_FALSE
  |  |  ------------------
  |  |  |  |   25|  1.49k|#define FLB_FALSE  0
  |  |  ------------------
  ------------------
  287|  1.49k|    config->hot_reloaded_count = 0;
  288|  1.49k|    config->shutdown_by_hot_reloading = FLB_FALSE;
  ------------------
  |  |   25|  1.49k|#define FLB_FALSE  0
  ------------------
  289|  1.49k|    config->hot_reloading = FLB_FALSE;
  ------------------
  |  |   25|  1.49k|#define FLB_FALSE  0
  ------------------
  290|       |
  291|  1.49k|#ifdef FLB_HAVE_SQLDB
  292|  1.49k|    mk_list_init(&config->sqldb_list);
  293|  1.49k|#endif
  294|       |
  295|       |#ifdef FLB_HAVE_LUAJIT
  296|       |    mk_list_init(&config->luajit_list);
  297|       |#endif
  298|       |
  299|       |#ifdef FLB_HAVE_STREAM_PROCESSOR
  300|       |    flb_slist_create(&config->stream_processor_tasks);
  301|       |    config->stream_processor_str_conv = FLB_TRUE;
  302|       |#endif
  303|       |
  304|  1.49k|    flb_slist_create(&config->external_plugins);
  305|       |
  306|       |    /* Set default coroutines stack size */
  307|  1.49k|    config->coro_stack_size = FLB_CORO_STACK_SIZE_BYTE;
  ------------------
  |  |   77|  1.49k|#define FLB_CORO_STACK_SIZE_BYTE      ((3 * STACK_FACTOR * PTHREAD_STACK_MIN) / 2)
  |  |  ------------------
  |  |  |  |   71|  1.49k|#define STACK_FACTOR 1
  |  |  ------------------
  ------------------
  308|  1.49k|    if (config->coro_stack_size < getpagesize()) {
  ------------------
  |  Branch (308:9): [True: 0, False: 1.49k]
  ------------------
  309|      0|        flb_info("[config] changing coro_stack_size from %u to %u bytes",
  ------------------
  |  |  188|      0|    if (flb_log_check(FLB_LOG_INFO))                                 \
  |  |  ------------------
  |  |  |  |   42|      0|#define FLB_LOG_INFO    3  /* default */
  |  |  ------------------
  |  |  |  Branch (188:9): [True: 0, False: 0]
  |  |  ------------------
  |  |  189|      0|        flb_log_print(FLB_LOG_INFO, NULL, 0, fmt, ##__VA_ARGS__)
  |  |  ------------------
  |  |  |  |   42|      0|#define FLB_LOG_INFO    3  /* default */
  |  |  ------------------
  ------------------
  310|      0|                 config->coro_stack_size, getpagesize());
  311|      0|        config->coro_stack_size = (unsigned int)getpagesize();
  312|      0|    }
  313|       |
  314|       |    /* collectors */
  315|  1.49k|    pthread_mutex_init(&config->collectors_mutex, NULL);
  316|       |
  317|       |    /* Initialize linked lists */
  318|  1.49k|    mk_list_init(&config->processor_plugins);
  319|  1.49k|    mk_list_init(&config->custom_plugins);
  320|  1.49k|    mk_list_init(&config->in_plugins);
  321|  1.49k|    mk_list_init(&config->parser_plugins);
  322|  1.49k|    mk_list_init(&config->filter_plugins);
  323|  1.49k|    mk_list_init(&config->out_plugins);
  324|  1.49k|    mk_list_init(&config->customs);
  325|  1.49k|    mk_list_init(&config->inputs);
  326|  1.49k|    mk_list_init(&config->parsers);
  327|  1.49k|    mk_list_init(&config->filters);
  328|  1.49k|    mk_list_init(&config->outputs);
  329|  1.49k|    mk_list_init(&config->proxies);
  330|  1.49k|    mk_list_init(&config->workers);
  331|  1.49k|    mk_list_init(&config->upstreams);
  332|  1.49k|    mk_list_init(&config->downstreams);
  333|  1.49k|    mk_list_init(&config->cmetrics);
  334|  1.49k|    mk_list_init(&config->cf_parsers_list);
  335|       |
  336|  1.49k|    memset(&config->tasks_map, '\0', sizeof(config->tasks_map));
  337|       |
  338|       |    /* Initialize multiline-parser list. We need this here, because from now
  339|       |     * on we use flb_config_exit to cleanup the config, which requires
  340|       |     * the config->multiline_parsers list to be initialized. */
  341|  1.49k|    mk_list_init(&config->multiline_parsers);
  342|       |
  343|       |    /* Environment */
  344|  1.49k|    config->env = flb_env_create();
  345|  1.49k|    if (config->env == NULL) {
  ------------------
  |  Branch (345:9): [True: 4, False: 1.48k]
  ------------------
  346|      4|        flb_error("[config] environment creation failed");
  ------------------
  |  |  170|      4|    if (flb_log_check(FLB_LOG_ERROR))                                \
  |  |  ------------------
  |  |  |  |   40|      4|#define FLB_LOG_ERROR   1
  |  |  ------------------
  |  |  |  Branch (170:9): [True: 4, False: 0]
  |  |  ------------------
  |  |  171|      4|        flb_log_print(FLB_LOG_ERROR, NULL, 0, fmt, ##__VA_ARGS__)
  |  |  ------------------
  |  |  |  |   40|      4|#define FLB_LOG_ERROR   1
  |  |  ------------------
  ------------------
  347|      4|        flb_config_exit(config);
  348|      4|        return NULL;
  349|      4|    }
  350|       |
  351|       |    /* Multiline core */
  352|  1.48k|    ret = flb_ml_init(config);
  353|  1.48k|    if (ret == -1) {
  ------------------
  |  Branch (353:9): [True: 64, False: 1.42k]
  ------------------
  354|     64|        flb_error("[config] multiline core initialization failed");
  ------------------
  |  |  170|     64|    if (flb_log_check(FLB_LOG_ERROR))                                \
  |  |  ------------------
  |  |  |  |   40|     64|#define FLB_LOG_ERROR   1
  |  |  ------------------
  |  |  |  Branch (170:9): [True: 64, False: 0]
  |  |  ------------------
  |  |  171|     64|        flb_log_print(FLB_LOG_ERROR, NULL, 0, fmt, ##__VA_ARGS__)
  |  |  ------------------
  |  |  |  |   40|     64|#define FLB_LOG_ERROR   1
  |  |  ------------------
  ------------------
  355|     64|        flb_config_exit(config);
  356|     64|        return NULL;
  357|     64|    }
  358|       |
  359|       |    /* Register static plugins */
  360|  1.42k|    ret = flb_plugins_register(config);
  361|  1.42k|    if (ret == -1) {
  ------------------
  |  Branch (361:9): [True: 78, False: 1.34k]
  ------------------
  362|     78|        flb_error("[config] plugins registration failed");
  ------------------
  |  |  170|     78|    if (flb_log_check(FLB_LOG_ERROR))                                \
  |  |  ------------------
  |  |  |  |   40|     78|#define FLB_LOG_ERROR   1
  |  |  ------------------
  |  |  |  Branch (170:9): [True: 78, False: 0]
  |  |  ------------------
  |  |  171|     78|        flb_log_print(FLB_LOG_ERROR, NULL, 0, fmt, ##__VA_ARGS__)
  |  |  ------------------
  |  |  |  |   40|     78|#define FLB_LOG_ERROR   1
  |  |  ------------------
  ------------------
  363|     78|        flb_config_exit(config);
  364|     78|        return NULL;
  365|     78|    }
  366|       |
  367|       |    /* Create environment for dynamic plugins */
  368|  1.34k|    config->dso_plugins = flb_plugin_create();
  369|       |
  370|       |    /* Ignoring SIGPIPE on Windows (scary) */
  371|  1.34k|#ifndef _WIN32
  372|       |    /* Ignore SIGPIPE */
  373|  1.34k|    signal(SIGPIPE, SIG_IGN);
  374|  1.34k|#endif
  375|       |
  376|       |    /* Prepare worker interface */
  377|  1.34k|    flb_worker_init(config);
  378|       |
  379|  1.34k|#ifdef FLB_HAVE_REGEX
  380|       |    /* Regex support */
  381|  1.34k|    flb_regex_init();
  382|  1.34k|#endif
  383|       |
  384|  1.34k|    return config;
  385|  1.42k|}
flb_config_exit:
  388|  1.49k|{
  389|  1.49k|    struct mk_list *tmp;
  390|  1.49k|    struct mk_list *head;
  391|  1.49k|    struct flb_cf *cf;
  392|       |
  393|  1.49k|    if (config->log) {
  ------------------
  |  Branch (393:9): [True: 0, False: 1.49k]
  ------------------
  394|      0|        flb_log_destroy(config->log, config);
  395|      0|    }
  396|       |
  397|  1.49k|    if (config->log_file) {
  ------------------
  |  Branch (397:9): [True: 0, False: 1.49k]
  ------------------
  398|      0|        flb_free(config->log_file);
  399|      0|    }
  400|       |
  401|  1.49k|    if (config->parsers_file) {
  ------------------
  |  Branch (401:9): [True: 0, False: 1.49k]
  ------------------
  402|      0|        flb_free(config->parsers_file);
  403|      0|    }
  404|       |
  405|  1.49k|    if (config->plugins_file) {
  ------------------
  |  Branch (405:9): [True: 0, False: 1.49k]
  ------------------
  406|      0|        flb_free(config->plugins_file);
  407|      0|    }
  408|       |
  409|  1.49k|    if (config->kernel) {
  ------------------
  |  Branch (409:9): [True: 1.48k, False: 2]
  ------------------
  410|  1.48k|        flb_kernel_destroy(config->kernel);
  411|  1.48k|    }
  412|       |
  413|       |    /* release resources */
  414|  1.49k|    if (config->ch_event.fd) {
  ------------------
  |  Branch (414:9): [True: 1.49k, False: 0]
  ------------------
  415|  1.49k|        mk_event_closesocket(config->ch_event.fd);
  ------------------
  |  |   99|  1.49k|    #define mk_event_closesocket(s) close(s)
  ------------------
  416|  1.49k|    }
  417|       |
  418|       |    /* Pipe */
  419|  1.49k|    if (config->ch_data[0]) {
  ------------------
  |  Branch (419:9): [True: 0, False: 1.49k]
  ------------------
  420|      0|        flb_pipe_destroy(config->ch_data);
  421|      0|    }
  422|       |
  423|       |    /* Channel manager */
  424|  1.49k|    if (config->ch_manager[0] > 0) {
  ------------------
  |  Branch (424:9): [True: 0, False: 1.49k]
  ------------------
  425|      0|        mk_event_closesocket(config->ch_manager[0]);
  ------------------
  |  |   99|      0|    #define mk_event_closesocket(s) close(s)
  ------------------
  426|      0|        if (config->ch_manager[0] != config->ch_manager[1]) {
  ------------------
  |  Branch (426:13): [True: 0, False: 0]
  ------------------
  427|      0|            mk_event_closesocket(config->ch_manager[1]);
  ------------------
  |  |   99|      0|    #define mk_event_closesocket(s) close(s)
  ------------------
  428|      0|        }
  429|      0|    }
  430|       |
  431|       |    /* Channel notifications */
  432|  1.49k|    if (config->ch_notif[0] > 0) {
  ------------------
  |  Branch (432:9): [True: 0, False: 1.49k]
  ------------------
  433|      0|        mk_event_closesocket(config->ch_notif[0]);
  ------------------
  |  |   99|      0|    #define mk_event_closesocket(s) close(s)
  ------------------
  434|      0|        if (config->ch_notif[0] != config->ch_notif[1]) {
  ------------------
  |  Branch (434:13): [True: 0, False: 0]
  ------------------
  435|      0|            mk_event_closesocket(config->ch_notif[1]);
  ------------------
  |  |   99|      0|    #define mk_event_closesocket(s) close(s)
  ------------------
  436|      0|        }
  437|      0|    }
  438|       |
  439|  1.49k|    if (config->env) {
  ------------------
  |  Branch (439:9): [True: 1.48k, False: 4]
  ------------------
  440|  1.48k|        flb_env_destroy(config->env);
  441|  1.48k|    }
  442|       |
  443|       |    /* Program name */
  444|  1.49k|    if (config->program_name) {
  ------------------
  |  Branch (444:9): [True: 0, False: 1.49k]
  ------------------
  445|      0|        flb_sds_destroy(config->program_name);
  446|      0|    }
  447|       |
  448|       |    /* Conf path */
  449|  1.49k|    if (config->conf_path) {
  ------------------
  |  Branch (449:9): [True: 0, False: 1.49k]
  ------------------
  450|      0|        flb_free(config->conf_path);
  451|      0|    }
  452|       |
  453|       |    /* conf path file (file system config path) */
  454|  1.49k|    if (config->conf_path_file) {
  ------------------
  |  Branch (454:9): [True: 0, False: 1.49k]
  ------------------
  455|      0|        flb_sds_destroy(config->conf_path_file);
  456|      0|    }
  457|       |
  458|       |    /* Working directory */
  459|  1.49k|    if (config->workdir) {
  ------------------
  |  Branch (459:9): [True: 0, False: 1.49k]
  ------------------
  460|      0|        flb_free(config->workdir);
  461|      0|    }
  462|       |
  463|       |    /* Destroy any DSO context */
  464|  1.49k|    if (config->dso_plugins) {
  ------------------
  |  Branch (464:9): [True: 1.34k, False: 148]
  ------------------
  465|  1.34k|        flb_plugin_destroy(config->dso_plugins);
  466|  1.34k|    }
  467|       |
  468|       |    /* Workers */
  469|  1.49k|    flb_worker_exit(config);
  470|       |
  471|       |    /* Event flush */
  472|  1.49k|    if (config->evl) {
  ------------------
  |  Branch (472:9): [True: 0, False: 1.49k]
  ------------------
  473|      0|        if (config->event_flush.status != MK_EVENT_NONE) {
  ------------------
  |  |   52|      0|#define MK_EVENT_NONE            1    /* nothing */
  ------------------
  |  Branch (473:13): [True: 0, False: 0]
  ------------------
  474|      0|            mk_event_timeout_destroy(config->evl, &config->event_flush);
  475|      0|        }
  476|      0|    }
  477|       |
  478|       |    /* Release scheduler */
  479|  1.49k|    if (config->sched) {
  ------------------
  |  Branch (479:9): [True: 0, False: 1.49k]
  ------------------
  480|      0|        flb_sched_destroy(config->sched);
  481|      0|    }
  482|       |
  483|  1.49k|#ifdef FLB_HAVE_HTTP_SERVER
  484|  1.49k|    if (config->http_listen) {
  ------------------
  |  Branch (484:9): [True: 1.48k, False: 1]
  ------------------
  485|  1.48k|        flb_free(config->http_listen);
  486|  1.48k|    }
  487|       |
  488|  1.49k|    if (config->http_port) {
  ------------------
  |  Branch (488:9): [True: 1.48k, False: 1]
  ------------------
  489|  1.48k|        flb_free(config->http_port);
  490|  1.48k|    }
  491|  1.49k|#endif
  492|       |
  493|  1.49k|#ifdef FLB_HAVE_PARSER
  494|       |    /* parsers */
  495|  1.49k|    flb_parser_exit(config);
  496|  1.49k|#endif
  497|       |
  498|  1.49k|    if (config->dns_mode) {
  ------------------
  |  Branch (498:9): [True: 0, False: 1.49k]
  ------------------
  499|      0|        flb_free(config->dns_mode);
  500|      0|    }
  501|  1.49k|    if (config->dns_resolver) {
  ------------------
  |  Branch (501:9): [True: 0, False: 1.49k]
  ------------------
  502|      0|        flb_free(config->dns_resolver);
  503|      0|    }
  504|       |
  505|  1.49k|    if (config->storage_path) {
  ------------------
  |  Branch (505:9): [True: 0, False: 1.49k]
  ------------------
  506|      0|        flb_free(config->storage_path);
  507|      0|    }
  508|  1.49k|    if (config->storage_sync) {
  ------------------
  |  Branch (508:9): [True: 0, False: 1.49k]
  ------------------
  509|      0|        flb_free(config->storage_sync);
  510|      0|    }
  511|  1.49k|    if (config->storage_bl_mem_limit) {
  ------------------
  |  Branch (511:9): [True: 0, False: 1.49k]
  ------------------
  512|      0|        flb_free(config->storage_bl_mem_limit);
  513|      0|    }
  514|       |
  515|       |#ifdef FLB_HAVE_STREAM_PROCESSOR
  516|       |    if (config->stream_processor_file) {
  517|       |        flb_free(config->stream_processor_file);
  518|       |    }
  519|       |
  520|       |    flb_slist_destroy(&config->stream_processor_tasks);
  521|       |#endif
  522|       |
  523|  1.49k|    flb_slist_destroy(&config->external_plugins);
  524|       |
  525|  1.49k|    if (config->evl) {
  ------------------
  |  Branch (525:9): [True: 0, False: 1.49k]
  ------------------
  526|      0|        mk_event_loop_destroy(config->evl);
  527|      0|    }
  528|  1.49k|    if (config->evl_bktq) {
  ------------------
  |  Branch (528:9): [True: 0, False: 1.49k]
  ------------------
  529|      0|        flb_bucket_queue_destroy(config->evl_bktq);
  530|      0|    }
  531|       |
  532|  1.49k|    flb_plugins_unregister(config);
  533|       |
  534|  1.49k|    if (config->cf_main) {
  ------------------
  |  Branch (534:9): [True: 1.49k, False: 0]
  ------------------
  535|  1.49k|        flb_cf_destroy(config->cf_main);
  536|  1.49k|    }
  537|       |
  538|       |    /* cf_opts' lifetime should differ from config's lifetime.
  539|       |     * This member should be storing just for the cf_opts reference.
  540|       |     * Don't destroy it here.
  541|       |     */
  542|       |
  543|       |    /* remove parsers */
  544|  1.49k|    mk_list_foreach_safe(head, tmp, &config->cf_parsers_list) {
  ------------------
  |  |  207|  1.49k|    for (curr = (head)->next, n = curr->next; curr != (head); curr = n, n = curr->next)
  |  |  ------------------
  |  |  |  Branch (207:47): [True: 0, False: 1.49k]
  |  |  ------------------
  ------------------
  545|      0|        cf = mk_list_entry(head, struct flb_cf, _head);
  ------------------
  |  |  214|      0|#define mk_list_entry( ptr, type, member ) container_of( ptr, type, member )
  |  |  ------------------
  |  |  |  |   38|      0|#define container_of(ptr, type, member) ({                      \
  |  |  |  |   39|      0|      const typeof( ((type *)0)->member ) *__mptr = (ptr);      \
  |  |  |  |   40|      0|      (type *)( (char *)__mptr - offsetof(type,member) );})
  |  |  ------------------
  ------------------
  546|      0|        mk_list_del(&cf->_head);
  547|      0|        flb_cf_destroy(cf);
  548|      0|    }
  549|       |
  550|  1.49k|    flb_free(config);
  551|  1.49k|}

flb_env_create:
   70|  1.49k|{
   71|  1.49k|    struct flb_env *env;
   72|  1.49k|    struct flb_hash_table *ht;
   73|       |
   74|  1.49k|    env = flb_malloc(sizeof(struct flb_env));
   75|  1.49k|    if (!env) {
  ------------------
  |  Branch (75:9): [True: 1, False: 1.48k]
  ------------------
   76|      1|        flb_errno();
  ------------------
  |  |  232|      1|#define flb_errno() flb_errno_print(errno, __FLB_FILENAME__, __LINE__)
  ------------------
   77|      1|        return NULL;
   78|      1|    }
   79|       |
   80|       |    /* Create the hash-table */
   81|  1.48k|    ht = flb_hash_table_create(FLB_HASH_TABLE_EVICT_NONE, FLB_ENV_SIZE, -1);
  ------------------
  |  |   32|  1.48k|#define FLB_HASH_TABLE_EVICT_NONE       0
  ------------------
                  ht = flb_hash_table_create(FLB_HASH_TABLE_EVICT_NONE, FLB_ENV_SIZE, -1);
  ------------------
  |  |   26|  1.48k|#define FLB_ENV_SIZE 64
  ------------------
   82|  1.48k|    if (!ht) {
  ------------------
  |  Branch (82:9): [True: 3, False: 1.48k]
  ------------------
   83|      3|        flb_free(env);
   84|      3|        return NULL;
   85|      3|    }
   86|       |
   87|  1.48k|    env->warn_unused = FLB_TRUE;
  ------------------
  |  |   26|  1.48k|#define FLB_TRUE   !FLB_FALSE
  |  |  ------------------
  |  |  |  |   25|  1.48k|#define FLB_FALSE  0
  |  |  ------------------
  ------------------
   88|  1.48k|    env->ht = ht;
   89|  1.48k|    env_preset(env);
   90|       |
   91|  1.48k|    return env;
   92|  1.48k|}
flb_env_destroy:
   95|  1.48k|{
   96|  1.48k|    flb_hash_table_destroy(env->ht);
   97|  1.48k|    flb_free(env);
   98|  1.48k|}
flb_env.c:env_preset:
   43|  1.48k|{
   44|  1.48k|    int ret;
   45|  1.48k|    char *buf;
   46|  1.48k|    char tmp[512];
   47|       |
   48|       |    /*
   49|       |     * ${HOSTNAME} this variable is very useful to identify records,
   50|       |     * despite this variable is recognized by the Shell, that does not
   51|       |     * means that is exposed as a real environment variable, e.g:
   52|       |     *
   53|       |     *  1. $ echo $HOSTNAME
   54|       |     *     monotop
   55|       |     *  2. $ env | grep HOSTNAME
   56|       |     *     (nothing)
   57|       |     */
   58|  1.48k|    buf = getenv("HOSTNAME");
   59|  1.48k|    if (!buf) {
  ------------------
  |  Branch (59:9): [True: 0, False: 1.48k]
  ------------------
   60|      0|        ret = gethostname(tmp, sizeof(tmp) - 1);
   61|      0|        if (ret == 0) {
  ------------------
  |  Branch (61:13): [True: 0, False: 0]
  ------------------
   62|      0|            flb_env_set(env, "HOSTNAME", tmp);
   63|      0|        }
   64|      0|    }
   65|       |
   66|  1.48k|    return 0;
   67|  1.48k|}

flb_hash_table_create:
  103|  1.48k|{
  104|  1.48k|    int i;
  105|  1.48k|    struct flb_hash_table_chain *tmp;
  106|  1.48k|    struct flb_hash_table *ht;
  107|       |
  108|  1.48k|    if (size <= 0) {
  ------------------
  |  Branch (108:9): [True: 0, False: 1.48k]
  ------------------
  109|      0|        return NULL;
  110|      0|    }
  111|       |
  112|  1.48k|    ht = flb_calloc(1, sizeof(struct flb_hash_table));
  113|  1.48k|    if (!ht) {
  ------------------
  |  Branch (113:9): [True: 1, False: 1.48k]
  ------------------
  114|      1|        flb_errno();
  ------------------
  |  |  232|      1|#define flb_errno() flb_errno_print(errno, __FLB_FILENAME__, __LINE__)
  ------------------
  115|      1|        return NULL;
  116|      1|    }
  117|       |
  118|  1.48k|    mk_list_init(&ht->entries);
  119|  1.48k|    ht->evict_mode = evict_mode;
  120|  1.48k|    ht->max_entries = max_entries;
  121|  1.48k|    ht->size = size;
  122|  1.48k|    ht->total_count = 0;
  123|  1.48k|    ht->cache_ttl = 0;
  124|  1.48k|    ht->case_sensitivity = FLB_TRUE;
  ------------------
  |  |   26|  1.48k|#define FLB_TRUE   !FLB_FALSE
  |  |  ------------------
  |  |  |  |   25|  1.48k|#define FLB_FALSE  0
  |  |  ------------------
  ------------------
  125|  1.48k|    ht->table = flb_calloc(1, sizeof(struct flb_hash_table_chain) * size);
  126|  1.48k|    if (!ht->table) {
  ------------------
  |  Branch (126:9): [True: 2, False: 1.48k]
  ------------------
  127|      2|        flb_errno();
  ------------------
  |  |  232|      2|#define flb_errno() flb_errno_print(errno, __FLB_FILENAME__, __LINE__)
  ------------------
  128|      2|        flb_free(ht);
  129|      2|        return NULL;
  130|      2|    }
  131|       |
  132|       |    /* Initialize chains list head */
  133|  96.5k|    for (i = 0; i < size; i++) {
  ------------------
  |  Branch (133:17): [True: 95.1k, False: 1.48k]
  ------------------
  134|  95.1k|        tmp = &ht->table[i];
  135|  95.1k|        tmp->count = 0;
  136|  95.1k|        mk_list_init(&tmp->chains);
  137|  95.1k|    }
  138|       |
  139|  1.48k|    return ht;
  140|  1.48k|}
flb_hash_table_destroy:
  201|  1.48k|{
  202|  1.48k|    int i;
  203|  1.48k|    struct mk_list *tmp;
  204|  1.48k|    struct mk_list *head;
  205|  1.48k|    struct flb_hash_table_entry *entry;
  206|  1.48k|    struct flb_hash_table_chain *table;
  207|       |
  208|  96.5k|    for (i = 0; i < ht->size; i++) {
  ------------------
  |  Branch (208:17): [True: 95.1k, False: 1.48k]
  ------------------
  209|  95.1k|        table = &ht->table[i];
  210|  95.1k|        mk_list_foreach_safe(head, tmp, &table->chains) {
  ------------------
  |  |  207|  95.1k|    for (curr = (head)->next, n = curr->next; curr != (head); curr = n, n = curr->next)
  |  |  ------------------
  |  |  |  Branch (207:47): [True: 0, False: 95.1k]
  |  |  ------------------
  ------------------
  211|      0|            entry = mk_list_entry(head, struct flb_hash_table_entry, _head);
  ------------------
  |  |  214|      0|#define mk_list_entry( ptr, type, member ) container_of( ptr, type, member )
  |  |  ------------------
  |  |  |  |   38|      0|#define container_of(ptr, type, member) ({                      \
  |  |  |  |   39|      0|      const typeof( ((type *)0)->member ) *__mptr = (ptr);      \
  |  |  |  |   40|      0|      (type *)( (char *)__mptr - offsetof(type,member) );})
  |  |  ------------------
  ------------------
  212|      0|            flb_hash_table_entry_free(ht, entry);
  213|      0|        }
  214|  95.1k|    }
  215|       |
  216|  1.48k|    flb_free(ht->table);
  217|  1.48k|    flb_free(ht);
  218|  1.48k|}

flb_kernel_info:
   70|  1.49k|{
   71|       |
   72|  1.49k|    int a, b, c;
   73|  1.49k|    int len;
   74|  1.49k|    int pos;
   75|  1.49k|    char *p, *t;
   76|  1.49k|    char *tmp;
   77|  1.49k|    struct utsname uts;
   78|  1.49k|    struct flb_kernel *kernel;
   79|       |
   80|  1.49k|    if (uname(&uts) == -1) {
  ------------------
  |  Branch (80:9): [True: 0, False: 1.49k]
  ------------------
   81|      0|        flb_errno();
  ------------------
  |  |  232|      0|#define flb_errno() flb_errno_print(errno, __FLB_FILENAME__, __LINE__)
  ------------------
   82|      0|        return NULL;
   83|      0|    }
   84|  1.49k|    len = strlen(uts.release);
   85|       |
   86|       |    /* Fixme: this don't support Linux Kernel 10.x.x :P */
   87|  1.49k|    a = (*uts.release - '0');
   88|       |
   89|       |    /* Second number */
   90|  1.49k|    p = (uts.release) + 2;
   91|  1.49k|    pos = mk_string_char_search(p, '.', len - 2);
   92|  1.49k|    if (pos <= 0) {
  ------------------
  |  Branch (92:9): [True: 0, False: 1.49k]
  ------------------
   93|       |        /* Some Debian systems uses a different notation, e.g: 3.14-2-amd64 */
   94|      0|        pos = mk_string_char_search(p, '-', len - 2);
   95|      0|        if (pos <= 0) {
  ------------------
  |  Branch (95:13): [True: 0, False: 0]
  ------------------
   96|      0|            return NULL;
   97|      0|        }
   98|      0|    }
   99|       |
  100|  1.49k|    tmp = mk_string_copy_substr(p, 0, pos);
  101|  1.49k|    if (!tmp) {
  ------------------
  |  Branch (101:9): [True: 0, False: 1.49k]
  ------------------
  102|      0|        return NULL;
  103|      0|    }
  104|  1.49k|    b = atoi(tmp);
  105|  1.49k|    mk_mem_free(tmp);
  106|       |
  107|       |    /* Last number (it needs filtering) */
  108|  1.49k|    t = p = p + pos + 1;
  109|  1.49k|    do {
  110|  1.49k|        t++;
  111|  1.49k|    } while (isdigit(*t));
  112|       |
  113|  1.49k|    tmp = mk_string_copy_substr(p, 0, t - p);
  114|  1.49k|    if (!tmp) {
  ------------------
  |  Branch (114:9): [True: 0, False: 1.49k]
  ------------------
  115|      0|        return NULL;
  116|      0|    }
  117|  1.49k|    c = atoi(tmp);
  118|  1.49k|    mk_mem_free(tmp);
  119|       |
  120|  1.49k|    kernel = flb_malloc(sizeof(struct flb_kernel));
  121|  1.49k|    if (!kernel) {
  ------------------
  |  Branch (121:9): [True: 1, False: 1.48k]
  ------------------
  122|      1|        flb_errno();
  ------------------
  |  |  232|      1|#define flb_errno() flb_errno_print(errno, __FLB_FILENAME__, __LINE__)
  ------------------
  123|      1|        return NULL;
  124|      1|    }
  125|  1.48k|    kernel->major = a;
  126|  1.48k|    kernel->minor = b;
  127|  1.48k|    kernel->patch = c;
  128|  1.48k|    kernel->s_version.data = flb_malloc(16);
  129|       |
  130|  1.48k|    if (!kernel->s_version.data) {
  ------------------
  |  Branch (130:9): [True: 1, False: 1.48k]
  ------------------
  131|      1|        flb_errno();
  ------------------
  |  |  232|      1|#define flb_errno() flb_errno_print(errno, __FLB_FILENAME__, __LINE__)
  ------------------
  132|      1|        flb_free(kernel);
  133|      1|        return NULL;
  134|      1|    }
  135|       |
  136|  1.48k|    len = snprintf(kernel->s_version.data, 16, "%i.%i.%i", a, b, c);
  137|  1.48k|    if (len == -1) {
  ------------------
  |  Branch (137:9): [True: 0, False: 1.48k]
  ------------------
  138|      0|        flb_errno();
  ------------------
  |  |  232|      0|#define flb_errno() flb_errno_print(errno, __FLB_FILENAME__, __LINE__)
  ------------------
  139|      0|        flb_free(kernel->s_version.data);
  140|      0|        flb_free(kernel);
  141|      0|        return NULL;
  142|      0|    }
  143|  1.48k|    kernel->s_version.len = len;
  144|  1.48k|    kernel->n_version = FLB_KERNEL_VERSION(a, b, c);
  ------------------
  |  |   27|  1.48k|#define FLB_KERNEL_VERSION(a, b, c) (((a) << 16) + ((b) << 8) + (c))
  ------------------
  145|       |
  146|  1.48k|    return kernel;
  147|  1.48k|}
flb_kernel_destroy:
  152|  1.48k|{
  153|  1.48k|    if (kernel == NULL) {
  ------------------
  |  Branch (153:9): [True: 0, False: 1.48k]
  ------------------
  154|      0|        return;
  155|      0|    }
  156|       |
  157|  1.48k|    if (kernel->s_version.data) {
  ------------------
  |  Branch (157:9): [True: 1.48k, False: 0]
  ------------------
  158|  1.48k|        flb_free(kernel->s_version.data);
  159|  1.48k|    }
  160|  1.48k|    flb_free(kernel);
  161|  1.48k|}

flb_kv_release:
   94|  2.98k|{
   95|  2.98k|    struct mk_list *tmp;
   96|  2.98k|    struct mk_list *head;
   97|  2.98k|    struct flb_kv *kv;
   98|       |
   99|  2.98k|    mk_list_foreach_safe(head, tmp, list) {
  ------------------
  |  |  207|  2.98k|    for (curr = (head)->next, n = curr->next; curr != (head); curr = n, n = curr->next)
  |  |  ------------------
  |  |  |  Branch (207:47): [True: 0, False: 2.98k]
  |  |  ------------------
  ------------------
  100|      0|        kv = mk_list_entry(head, struct flb_kv, _head);
  ------------------
  |  |  214|      0|#define mk_list_entry( ptr, type, member ) container_of( ptr, type, member )
  |  |  ------------------
  |  |  |  |   38|      0|#define container_of(ptr, type, member) ({                      \
  |  |  |  |   39|      0|      const typeof( ((type *)0)->member ) *__mptr = (ptr);      \
  |  |  |  |   40|      0|      (type *)( (char *)__mptr - offsetof(type,member) );})
  |  |  ------------------
  ------------------
  101|      0|        flb_kv_item_destroy(kv);
  102|      0|    }
  103|  2.98k|}

flb_log_construct:
  501|    989|{
  502|    989|    int body_size;
  503|    989|    int ret;
  504|    989|    int len;
  505|    989|    int total;
  506|    989|    time_t now;
  507|    989|    const char *header_color = NULL;
  508|    989|    const char *header_title = NULL;
  509|    989|    const char *bold_color = ANSI_BOLD;
  ------------------
  |  |   47|    989|#define ANSI_BOLD     "\033[1m"
  ------------------
  510|    989|    const char *reset_color = ANSI_RESET;
  ------------------
  |  |   46|    989|#define ANSI_RESET    "\033[0m"
  ------------------
  511|    989|    struct tm result;
  512|    989|    struct tm *current;
  513|       |
  514|    989|    switch (type) {
  ------------------
  |  Branch (514:13): [True: 0, False: 989]
  ------------------
  515|      0|    case FLB_LOG_HELP:
  ------------------
  |  |   45|      0|#define FLB_LOG_HELP    6  /* unused by log level */
  ------------------
  |  Branch (515:5): [True: 0, False: 989]
  ------------------
  516|      0|        header_title = "help";
  517|      0|        header_color = ANSI_CYAN;
  ------------------
  |  |   48|      0|#define ANSI_CYAN     "\033[96m"
  ------------------
  518|      0|        break;
  519|      0|    case FLB_LOG_INFO:
  ------------------
  |  |   42|      0|#define FLB_LOG_INFO    3  /* default */
  ------------------
  |  Branch (519:5): [True: 0, False: 989]
  ------------------
  520|      0|        header_title = "info";
  521|      0|        header_color = ANSI_GREEN;
  ------------------
  |  |   53|      0|#define ANSI_GREEN    "\033[92m"
  ------------------
  522|      0|        break;
  523|      0|    case FLB_LOG_WARN:
  ------------------
  |  |   41|      0|#define FLB_LOG_WARN    2
  ------------------
  |  Branch (523:5): [True: 0, False: 989]
  ------------------
  524|      0|        header_title = "warn";
  525|      0|        header_color = ANSI_YELLOW;
  ------------------
  |  |   51|      0|#define ANSI_YELLOW   "\033[93m"
  ------------------
  526|      0|        break;
  527|    989|    case FLB_LOG_ERROR:
  ------------------
  |  |   40|    989|#define FLB_LOG_ERROR   1
  ------------------
  |  Branch (527:5): [True: 989, False: 0]
  ------------------
  528|    989|        header_title = "error";
  529|    989|        header_color = ANSI_RED;
  ------------------
  |  |   50|    989|#define ANSI_RED      "\033[91m"
  ------------------
  530|    989|        break;
  531|      0|    case FLB_LOG_DEBUG:
  ------------------
  |  |   43|      0|#define FLB_LOG_DEBUG   4
  ------------------
  |  Branch (531:5): [True: 0, False: 989]
  ------------------
  532|      0|        header_title = "debug";
  533|      0|        header_color = ANSI_YELLOW;
  ------------------
  |  |   51|      0|#define ANSI_YELLOW   "\033[93m"
  ------------------
  534|      0|        break;
  535|      0|    case FLB_LOG_IDEBUG:
  ------------------
  |  |   47|      0|#define FLB_LOG_IDEBUG  10
  ------------------
  |  Branch (535:5): [True: 0, False: 989]
  ------------------
  536|      0|        header_title = "debug";
  537|      0|        header_color = ANSI_CYAN;
  ------------------
  |  |   48|      0|#define ANSI_CYAN     "\033[96m"
  ------------------
  538|      0|        break;
  539|      0|    case FLB_LOG_TRACE:
  ------------------
  |  |   44|      0|#define FLB_LOG_TRACE   5
  ------------------
  |  Branch (539:5): [True: 0, False: 989]
  ------------------
  540|      0|        header_title = "trace";
  541|      0|        header_color = ANSI_BLUE;
  ------------------
  |  |   52|      0|#define ANSI_BLUE     "\033[94m"
  ------------------
  542|      0|        break;
  543|    989|    }
  544|       |
  545|       |    #ifdef FLB_LOG_NO_CONTROL_CHARS
  546|       |    header_color = "";
  547|       |    bold_color = "";
  548|       |    reset_color = "";
  549|       |    #else
  550|       |    /* Only print colors to a terminal */
  551|    989|    if (!isatty(STDOUT_FILENO)) {
  ------------------
  |  Branch (551:9): [True: 989, False: 0]
  ------------------
  552|    989|        header_color = "";
  553|    989|        bold_color = "";
  554|    989|        reset_color = "";
  555|    989|    }
  556|    989|    #endif // FLB_LOG_NO_CONTROL_CHARS
  557|       |
  558|    989|    now = time(NULL);
  559|    989|    current = localtime_r(&now, &result);
  560|       |
  561|    989|    if (current == NULL) {
  ------------------
  |  Branch (561:9): [True: 0, False: 989]
  ------------------
  562|      0|        return -1;
  563|      0|    }
  564|       |
  565|    989|    len = snprintf(msg->msg, sizeof(msg->msg) - 1,
  566|    989|                   "%s[%s%i/%02i/%02i %02i:%02i:%02i%s]%s [%s%5s%s] ",
  567|       |                   /*      time     */                    /* type */
  568|       |
  569|       |                   /* time variables */
  570|    989|                   bold_color, reset_color,
  571|    989|                   current->tm_year + 1900,
  572|    989|                   current->tm_mon + 1,
  573|    989|                   current->tm_mday,
  574|    989|                   current->tm_hour,
  575|    989|                   current->tm_min,
  576|    989|                   current->tm_sec,
  577|    989|                   bold_color, reset_color,
  578|       |
  579|       |                   /* type format */
  580|    989|                   header_color, header_title, reset_color);
  581|       |
  582|    989|    body_size = (sizeof(msg->msg) - 2) - len;
  583|    989|    total = vsnprintf(msg->msg + len,
  584|    989|                      body_size,
  585|    989|                      fmt, *args);
  586|    989|    if (total < 0) {
  ------------------
  |  Branch (586:9): [True: 0, False: 989]
  ------------------
  587|      0|        return -1;
  588|      0|    }
  589|    989|    ret = total; /* ret means a buffer size need to save log body */
  590|       |
  591|    989|    total = strlen(msg->msg + len) + len;
  592|    989|    msg->msg[total++] = '\n';
  593|    989|    msg->msg[total]   = '\0';
  594|    989|    msg->size = total;
  595|       |
  596|    989|    *ret_len = len;
  597|       |
  598|    989|    if (ret >= body_size) {
  ------------------
  |  Branch (598:9): [True: 0, False: 989]
  ------------------
  599|       |        /* log is truncated */
  600|      0|        return ret - body_size;
  601|      0|    }
  602|       |
  603|    989|    return 0;
  604|    989|}
flb_log_print:
  633|    989|{
  634|    989|    int n;
  635|    989|    int len;
  636|    989|    int ret;
  637|    989|    struct log_message msg = {0};
  638|    989|    va_list args;
  639|       |
  640|    989|    struct flb_worker *w;
  641|       |
  642|    989|    va_start(args, fmt);
  643|    989|    ret = flb_log_construct(&msg, &len, type, file, line, fmt, &args);
  644|    989|    va_end(args);
  645|       |
  646|    989|    if (ret < 0) {
  ------------------
  |  Branch (646:9): [True: 0, False: 989]
  ------------------
  647|      0|        return;
  648|      0|    }
  649|       |
  650|    989|    w = flb_worker_get();
  651|    989|    if (w) {
  ------------------
  |  Branch (651:9): [True: 0, False: 989]
  ------------------
  652|      0|        n = flb_pipe_write_all(w->log[1], &msg, sizeof(msg));
  653|      0|        if (n == -1) {
  ------------------
  |  Branch (653:13): [True: 0, False: 0]
  ------------------
  654|      0|            fprintf(stderr, "%s", (char *) msg.msg);
  655|      0|            perror("write");
  656|      0|        }
  657|      0|    }
  658|    989|    else {
  659|    989|        fprintf(stderr, "%s", (char *) msg.msg);
  660|    989|    }
  661|       |
  662|       |    #ifdef FLB_HAVE_AWS_ERROR_REPORTER
  663|       |    if (is_error_reporting_enabled()) {
  664|       |        if (type == FLB_LOG_ERROR) {
  665|       |            flb_aws_error_reporter_write(error_reporter, msg.msg + len);
  666|       |        }
  667|       |
  668|       |        flb_aws_error_reporter_clean(error_reporter);
  669|       |    }
  670|       |    #endif
  671|    989|}
flb_errno_print:
  674|    192|{
  675|    192|    char buf[256];
  676|       |
  677|    192|    strerror_r(errnum, buf, sizeof(buf) - 1);
  678|    192|    flb_error("[%s:%i errno=%i] %s", file, line, errnum, buf);
  ------------------
  |  |  170|    192|    if (flb_log_check(FLB_LOG_ERROR))                                \
  |  |  ------------------
  |  |  |  |   40|    192|#define FLB_LOG_ERROR   1
  |  |  ------------------
  |  |  |  Branch (170:9): [True: 192, False: 0]
  |  |  ------------------
  |  |  171|    192|        flb_log_print(FLB_LOG_ERROR, NULL, 0, fmt, ##__VA_ARGS__)
  |  |  ------------------
  |  |  |  |   40|    192|#define FLB_LOG_ERROR   1
  |  |  ------------------
  ------------------
  679|    192|    return 0;
  680|    192|}

flb_parser_create:
  161|  4.30k|{
  162|  4.30k|    int ret;
  163|  4.30k|    int len;
  164|  4.30k|    int diff = 0;
  165|  4.30k|    int size;
  166|  4.30k|    int is_epoch = FLB_FALSE;
  ------------------
  |  |   25|  4.30k|#define FLB_FALSE  0
  ------------------
  167|  4.30k|    char *tmp;
  168|  4.30k|    char *timeptr;
  169|  4.30k|    struct mk_list *head;
  170|  4.30k|    struct flb_parser *p;
  171|  4.30k|    struct flb_regex *regex;
  172|       |
  173|       |    /* Iterate current parsers and make sure the new one don't exists */
  174|  4.30k|    mk_list_foreach(head, &config->parsers) {
  ------------------
  |  |  205|  8.47k|#define mk_list_foreach(curr, head) for( curr = (head)->next; curr != (head); curr = curr->next )
  |  |  ------------------
  |  |  |  Branch (205:63): [True: 4.16k, False: 4.30k]
  |  |  ------------------
  ------------------
  175|  4.16k|        p = mk_list_entry(head, struct flb_parser, _head);
  ------------------
  |  |  214|  4.16k|#define mk_list_entry( ptr, type, member ) container_of( ptr, type, member )
  |  |  ------------------
  |  |  |  |   38|  4.16k|#define container_of(ptr, type, member) ({                      \
  |  |  |  |   39|  4.16k|      const typeof( ((type *)0)->member ) *__mptr = (ptr);      \
  |  |  |  |   40|  4.16k|      (type *)( (char *)__mptr - offsetof(type,member) );})
  |  |  ------------------
  ------------------
  176|  4.16k|        if (p->name && strcmp(p->name, name) == 0) {
  ------------------
  |  Branch (176:13): [True: 4.16k, False: 1]
  |  Branch (176:24): [True: 0, False: 4.16k]
  ------------------
  177|      0|            flb_error("[parser] parser named '%s' already exists, skip.",
  ------------------
  |  |  170|      0|    if (flb_log_check(FLB_LOG_ERROR))                                \
  |  |  ------------------
  |  |  |  |   40|      0|#define FLB_LOG_ERROR   1
  |  |  ------------------
  |  |  |  Branch (170:9): [True: 0, False: 0]
  |  |  ------------------
  |  |  171|      0|        flb_log_print(FLB_LOG_ERROR, NULL, 0, fmt, ##__VA_ARGS__)
  |  |  ------------------
  |  |  |  |   40|      0|#define FLB_LOG_ERROR   1
  |  |  ------------------
  ------------------
  178|      0|                      name);
  179|      0|            return NULL;
  180|      0|        }
  181|  4.16k|    }
  182|       |
  183|       |    /* Allocate context */
  184|  4.30k|    p = flb_calloc(1, sizeof(struct flb_parser));
  185|  4.30k|    if (!p) {
  ------------------
  |  Branch (185:9): [True: 2, False: 4.30k]
  ------------------
  186|      2|        flb_errno();
  ------------------
  |  |  232|      2|#define flb_errno() flb_errno_print(errno, __FLB_FILENAME__, __LINE__)
  ------------------
  187|      2|        return NULL;
  188|      2|    }
  189|  4.30k|    p->decoders = decoders;
  190|  4.30k|    mk_list_add(&p->_head, &config->parsers);
  191|       |
  192|       |    /* Format lookup */
  193|  4.30k|    if (strcasecmp(format, "regex") == 0) {
  ------------------
  |  Branch (193:9): [True: 1.47k, False: 2.82k]
  ------------------
  194|  1.47k|        p->type = FLB_PARSER_REGEX;
  ------------------
  |  |   30|  1.47k|#define FLB_PARSER_REGEX 1
  ------------------
  195|  1.47k|    }
  196|  2.82k|    else if (strcasecmp(format, "json") == 0) {
  ------------------
  |  Branch (196:14): [True: 1.48k, False: 1.34k]
  ------------------
  197|  1.48k|        p->type = FLB_PARSER_JSON;
  ------------------
  |  |   31|  1.48k|#define FLB_PARSER_JSON  2
  ------------------
  198|  1.48k|    }
  199|  1.34k|    else if (strcasecmp(format, "ltsv") == 0) {
  ------------------
  |  Branch (199:14): [True: 0, False: 1.34k]
  ------------------
  200|      0|        p->type = FLB_PARSER_LTSV;
  ------------------
  |  |   32|      0|#define FLB_PARSER_LTSV  3
  ------------------
  201|      0|    }
  202|  1.34k|    else if (strcasecmp(format, "logfmt") == 0) {
  ------------------
  |  Branch (202:14): [True: 1.34k, False: 0]
  ------------------
  203|  1.34k|        p->type = FLB_PARSER_LOGFMT;
  ------------------
  |  |   33|  1.34k|#define FLB_PARSER_LOGFMT 4
  ------------------
  204|  1.34k|    }
  205|      0|    else {
  206|      0|        flb_error("[parser:%s] Invalid format %s", name, format);
  ------------------
  |  |  170|      0|    if (flb_log_check(FLB_LOG_ERROR))                                \
  |  |  ------------------
  |  |  |  |   40|      0|#define FLB_LOG_ERROR   1
  |  |  ------------------
  |  |  |  Branch (170:9): [True: 0, False: 0]
  |  |  ------------------
  |  |  171|      0|        flb_log_print(FLB_LOG_ERROR, NULL, 0, fmt, ##__VA_ARGS__)
  |  |  ------------------
  |  |  |  |   40|      0|#define FLB_LOG_ERROR   1
  |  |  ------------------
  ------------------
  207|      0|        mk_list_del(&p->_head);
  208|      0|        flb_free(p);
  209|      0|        return NULL;
  210|      0|    }
  211|       |
  212|  4.30k|    if (p->type == FLB_PARSER_REGEX) {
  ------------------
  |  |   30|  4.30k|#define FLB_PARSER_REGEX 1
  ------------------
  |  Branch (212:9): [True: 1.47k, False: 2.82k]
  ------------------
  213|  1.47k|        if (!p_regex) {
  ------------------
  |  Branch (213:13): [True: 0, False: 1.47k]
  ------------------
  214|      0|            flb_error("[parser:%s] Invalid regex pattern", name);
  ------------------
  |  |  170|      0|    if (flb_log_check(FLB_LOG_ERROR))                                \
  |  |  ------------------
  |  |  |  |   40|      0|#define FLB_LOG_ERROR   1
  |  |  ------------------
  |  |  |  Branch (170:9): [True: 0, False: 0]
  |  |  ------------------
  |  |  171|      0|        flb_log_print(FLB_LOG_ERROR, NULL, 0, fmt, ##__VA_ARGS__)
  |  |  ------------------
  |  |  |  |   40|      0|#define FLB_LOG_ERROR   1
  |  |  ------------------
  ------------------
  215|      0|            mk_list_del(&p->_head);
  216|      0|            flb_free(p);
  217|      0|            return NULL;
  218|      0|        }
  219|       |
  220|  1.47k|        regex = flb_regex_create(p_regex);
  221|  1.47k|        if (!regex) {
  ------------------
  |  Branch (221:13): [True: 1, False: 1.47k]
  ------------------
  222|      1|            flb_error("[parser:%s] Invalid regex pattern %s", name, p_regex);
  ------------------
  |  |  170|      1|    if (flb_log_check(FLB_LOG_ERROR))                                \
  |  |  ------------------
  |  |  |  |   40|      1|#define FLB_LOG_ERROR   1
  |  |  ------------------
  |  |  |  Branch (170:9): [True: 1, False: 0]
  |  |  ------------------
  |  |  171|      1|        flb_log_print(FLB_LOG_ERROR, NULL, 0, fmt, ##__VA_ARGS__)
  |  |  ------------------
  |  |  |  |   40|      1|#define FLB_LOG_ERROR   1
  |  |  ------------------
  ------------------
  223|      1|            mk_list_del(&p->_head);
  224|      1|            flb_free(p);
  225|      1|            return NULL;
  226|      1|        }
  227|  1.47k|        p->regex = regex;
  228|  1.47k|        p->skip_empty = skip_empty;
  229|  1.47k|        p->p_regex = flb_strdup(p_regex);
  230|  1.47k|    }
  231|       |
  232|  4.30k|    p->name = flb_strdup(name);
  233|       |
  234|  4.30k|    if (time_fmt) {
  ------------------
  |  Branch (234:9): [True: 2.96k, False: 1.34k]
  ------------------
  235|  2.96k|        p->time_fmt_full = flb_strdup(time_fmt);
  236|  2.96k|        if (!p->time_fmt_full) {
  ------------------
  |  Branch (236:13): [True: 3, False: 2.96k]
  ------------------
  237|      3|            flb_error("[parser:%s] could not duplicate time fmt full", name);
  ------------------
  |  |  170|      3|    if (flb_log_check(FLB_LOG_ERROR))                                \
  |  |  ------------------
  |  |  |  |   40|      3|#define FLB_LOG_ERROR   1
  |  |  ------------------
  |  |  |  Branch (170:9): [True: 3, False: 0]
  |  |  ------------------
  |  |  171|      3|        flb_log_print(FLB_LOG_ERROR, NULL, 0, fmt, ##__VA_ARGS__)
  |  |  ------------------
  |  |  |  |   40|      3|#define FLB_LOG_ERROR   1
  |  |  ------------------
  ------------------
  238|      3|            flb_interim_parser_destroy(p);
  239|      3|            return NULL;
  240|      3|        }
  241|  2.96k|        p->time_fmt = flb_strdup(time_fmt);
  242|  2.96k|        if (!p->time_fmt) {
  ------------------
  |  Branch (242:13): [True: 1, False: 2.95k]
  ------------------
  243|      1|            flb_error("[parser:%s] could not duplicate time fmt", name);
  ------------------
  |  |  170|      1|    if (flb_log_check(FLB_LOG_ERROR))                                \
  |  |  ------------------
  |  |  |  |   40|      1|#define FLB_LOG_ERROR   1
  |  |  ------------------
  |  |  |  Branch (170:9): [True: 1, False: 0]
  |  |  ------------------
  |  |  171|      1|        flb_log_print(FLB_LOG_ERROR, NULL, 0, fmt, ##__VA_ARGS__)
  |  |  ------------------
  |  |  |  |   40|      1|#define FLB_LOG_ERROR   1
  |  |  ------------------
  ------------------
  244|      1|            flb_interim_parser_destroy(p);
  245|      1|            return NULL;
  246|      1|        }
  247|       |
  248|       |        /* Check if the format is considering the year */
  249|  2.95k|        if (strstr(p->time_fmt, "%Y") || strstr(p->time_fmt, "%y")) {
  ------------------
  |  Branch (249:13): [True: 2.95k, False: 0]
  |  Branch (249:42): [True: 0, False: 0]
  ------------------
  250|  2.95k|            p->time_with_year = FLB_TRUE;
  ------------------
  |  |   26|  2.95k|#define FLB_TRUE   !FLB_FALSE
  |  |  ------------------
  |  |  |  |   25|  2.95k|#define FLB_FALSE  0
  |  |  ------------------
  ------------------
  251|  2.95k|        }
  252|      0|        else if (strstr(p->time_fmt, "%s")) {
  ------------------
  |  Branch (252:18): [True: 0, False: 0]
  ------------------
  253|      0|            is_epoch = FLB_TRUE;
  ------------------
  |  |   26|      0|#define FLB_TRUE   !FLB_FALSE
  |  |  ------------------
  |  |  |  |   25|      0|#define FLB_FALSE  0
  |  |  ------------------
  ------------------
  254|      0|            p->time_with_year = FLB_TRUE;
  ------------------
  |  |   26|      0|#define FLB_TRUE   !FLB_FALSE
  |  |  ------------------
  |  |  |  |   25|      0|#define FLB_FALSE  0
  |  |  ------------------
  ------------------
  255|      0|        }
  256|      0|        else {
  257|      0|            size = strlen(p->time_fmt);
  258|      0|            p->time_with_year = FLB_FALSE;
  ------------------
  |  |   25|      0|#define FLB_FALSE  0
  ------------------
  259|      0|            p->time_fmt_year = flb_malloc(size + 4);
  260|      0|            if (!p->time_fmt_year) {
  ------------------
  |  Branch (260:17): [True: 0, False: 0]
  ------------------
  261|      0|                flb_errno();
  ------------------
  |  |  232|      0|#define flb_errno() flb_errno_print(errno, __FLB_FILENAME__, __LINE__)
  ------------------
  262|      0|                flb_interim_parser_destroy(p);
  263|      0|                return NULL;
  264|      0|            }
  265|       |
  266|       |            /* Append the year at the beginning */
  267|      0|            tmp = p->time_fmt_year;
  268|      0|            *tmp++ = '%';
  269|      0|            *tmp++ = 'Y';
  270|      0|            *tmp++ = ' ';
  271|       |
  272|      0|            memcpy(tmp, p->time_fmt, size);
  273|      0|            tmp += size;
  274|      0|            *tmp++ = '\0';
  275|      0|        }
  276|       |
  277|       |        /* Check if the format contains a timezone (%z) */
  278|  2.95k|        if (strstr(p->time_fmt, "%z") || strstr(p->time_fmt, "%Z") ||
  ------------------
  |  Branch (278:13): [True: 1.47k, False: 1.48k]
  |  Branch (278:42): [True: 0, False: 1.48k]
  ------------------
  279|  2.95k|            strstr(p->time_fmt, "%SZ") || strstr(p->time_fmt, "%S.%LZ")) {
  ------------------
  |  Branch (279:13): [True: 0, False: 1.48k]
  |  Branch (279:43): [True: 0, False: 1.48k]
  ------------------
  280|  1.47k|#if defined(FLB_HAVE_GMTOFF) || !defined(FLB_HAVE_SYSTEM_STRPTIME)
  281|  1.47k|            p->time_with_tz = FLB_TRUE;
  ------------------
  |  |   26|  1.47k|#define FLB_TRUE   !FLB_FALSE
  |  |  ------------------
  |  |  |  |   25|  1.47k|#define FLB_FALSE  0
  |  |  ------------------
  ------------------
  282|       |#else
  283|       |            flb_error("[parser] timezone offset not supported");
  284|       |            flb_error("[parser] you cannot use %%z/%%Z on this platform");
  285|       |            flb_interim_parser_destroy(p);
  286|       |            return NULL;
  287|       |#endif
  288|  1.47k|        }
  289|       |
  290|       |        /*
  291|       |         * Check if the format expect fractional seconds
  292|       |         *
  293|       |         * Since strptime(3) does not support fractional seconds, this
  294|       |         * requires a workaround/hack in our parser. This is a known
  295|       |         * issue and addressed in different ways in other languages.
  296|       |         *
  297|       |         * The following links are a good reference:
  298|       |         *
  299|       |         * - http://stackoverflow.com/questions/7114690/how-to-parse-syslog-timestamp
  300|       |         * - http://code.activestate.com/lists/python-list/521885
  301|       |         */
  302|  2.95k|        if (is_epoch == FLB_TRUE || p->time_with_year == FLB_TRUE) {
  ------------------
  |  |   26|  5.91k|#define FLB_TRUE   !FLB_FALSE
  |  |  ------------------
  |  |  |  |   25|  5.91k|#define FLB_FALSE  0
  |  |  ------------------
  ------------------
                      if (is_epoch == FLB_TRUE || p->time_with_year == FLB_TRUE) {
  ------------------
  |  |   26|  2.95k|#define FLB_TRUE   !FLB_FALSE
  |  |  ------------------
  |  |  |  |   25|  2.95k|#define FLB_FALSE  0
  |  |  ------------------
  ------------------
  |  Branch (302:13): [True: 0, False: 2.95k]
  |  Branch (302:37): [True: 2.95k, False: 0]
  ------------------
  303|  2.95k|            timeptr = p->time_fmt;
  304|  2.95k|        }
  305|      0|        else {
  306|      0|            timeptr = p->time_fmt_year;
  307|      0|        }
  308|       |
  309|  2.95k|        tmp = strstr(timeptr, "%L");
  310|  2.95k|        if (tmp) {
  ------------------
  |  Branch (310:13): [True: 2.95k, False: 0]
  ------------------
  311|  2.95k|            tmp[0] = '\0';
  312|  2.95k|            tmp[1] = '\0';
  313|  2.95k|            p->time_frac_secs = (tmp + 2);
  314|  2.95k|        }
  315|       |
  316|       |        /*
  317|       |         * Fall back to the system timezone
  318|       |         * if there is no zone parsed from the log.
  319|       |         */
  320|  2.95k|        p->time_system_timezone = time_system_timezone;
  321|       |
  322|       |        /*
  323|       |         * Optional fixed timezone offset, only applied if
  324|       |         * not falling back to system timezone.
  325|       |         */
  326|  2.95k|        if (!p->time_system_timezone && time_offset) {
  ------------------
  |  Branch (326:13): [True: 2.95k, False: 0]
  |  Branch (326:41): [True: 0, False: 2.95k]
  ------------------
  327|      0|            diff = 0;
  328|      0|            len = strlen(time_offset);
  329|      0|            ret = flb_parser_tzone_offset(time_offset, len, &diff);
  330|      0|            if (ret == -1) {
  ------------------
  |  Branch (330:17): [True: 0, False: 0]
  ------------------
  331|      0|                flb_interim_parser_destroy(p);
  332|      0|                return NULL;
  333|      0|            }
  334|      0|            p->time_offset = diff;
  335|      0|        }
  336|  2.95k|    }
  337|       |
  338|  4.30k|    if (time_key) {
  ------------------
  |  Branch (338:9): [True: 2.95k, False: 1.34k]
  ------------------
  339|  2.95k|        p->time_key = flb_strdup(time_key);
  340|  2.95k|    }
  341|       |
  342|  4.30k|    p->time_keep = time_keep;
  343|  4.30k|    p->time_strict = time_strict;
  344|  4.30k|    p->logfmt_no_bare_keys = logfmt_no_bare_keys;
  345|  4.30k|    p->types = types;
  346|  4.30k|    p->types_len = types_len;
  347|  4.30k|    return p;
  348|  4.30k|}
flb_parser_destroy:
  351|  4.30k|{
  352|  4.30k|    int i = 0;
  353|       |
  354|  4.30k|    if (parser->type == FLB_PARSER_REGEX) {
  ------------------
  |  |   30|  4.30k|#define FLB_PARSER_REGEX 1
  ------------------
  |  Branch (354:9): [True: 1.47k, False: 2.82k]
  ------------------
  355|  1.47k|        flb_regex_destroy(parser->regex);
  356|  1.47k|        flb_free(parser->p_regex);
  357|  1.47k|    }
  358|       |
  359|  4.30k|    flb_free(parser->name);
  360|  4.30k|    if (parser->time_fmt) {
  ------------------
  |  Branch (360:9): [True: 2.95k, False: 1.34k]
  ------------------
  361|  2.95k|        flb_free(parser->time_fmt);
  362|  2.95k|        flb_free(parser->time_fmt_full);
  363|  2.95k|    }
  364|  4.30k|    if (parser->time_fmt_year) {
  ------------------
  |  Branch (364:9): [True: 0, False: 4.30k]
  ------------------
  365|      0|        flb_free(parser->time_fmt_year);
  366|      0|    }
  367|  4.30k|    if (parser->time_key) {
  ------------------
  |  Branch (367:9): [True: 2.95k, False: 1.34k]
  ------------------
  368|  2.95k|        flb_free(parser->time_key);
  369|  2.95k|    }
  370|  4.30k|    if (parser->types_len != 0) {
  ------------------
  |  Branch (370:9): [True: 0, False: 4.30k]
  ------------------
  371|      0|        for (i=0; i<parser->types_len; i++){
  ------------------
  |  Branch (371:19): [True: 0, False: 0]
  ------------------
  372|      0|            flb_free(parser->types[i].key);
  373|      0|        }
  374|      0|        flb_free(parser->types);
  375|      0|    }
  376|       |
  377|  4.30k|    if (parser->decoders) {
  ------------------
  |  Branch (377:9): [True: 0, False: 4.30k]
  ------------------
  378|      0|        flb_parser_decoder_list_destroy(parser->decoders);
  379|      0|    }
  380|       |
  381|  4.30k|    mk_list_del(&parser->_head);
  382|  4.30k|    flb_free(parser);
  383|  4.30k|}
flb_parser_exit:
  386|  1.49k|{
  387|  1.49k|    struct mk_list *tmp;
  388|  1.49k|    struct mk_list *head;
  389|  1.49k|    struct flb_parser *parser;
  390|       |
  391|       |    /* release 'parsers' */
  392|  2.95k|    mk_list_foreach_safe(head, tmp, &config->parsers) {
  ------------------
  |  |  207|  4.44k|    for (curr = (head)->next, n = curr->next; curr != (head); curr = n, n = curr->next)
  |  |  ------------------
  |  |  |  Branch (207:47): [True: 2.95k, False: 1.49k]
  |  |  ------------------
  ------------------
  393|  2.95k|        parser = mk_list_entry(head, struct flb_parser, _head);
  ------------------
  |  |  214|  2.95k|#define mk_list_entry( ptr, type, member ) container_of( ptr, type, member )
  |  |  ------------------
  |  |  |  |   38|  2.95k|#define container_of(ptr, type, member) ({                      \
  |  |  |  |   39|  2.95k|      const typeof( ((type *)0)->member ) *__mptr = (ptr);      \
  |  |  |  |   40|  2.95k|      (type *)( (char *)__mptr - offsetof(type,member) );})
  |  |  ------------------
  ------------------
  394|  2.95k|        flb_parser_destroy(parser);
  395|  2.95k|    }
  396|       |
  397|       |    /* release 'multiline parsers' */
  398|  1.49k|    flb_ml_exit(config);
  399|  1.49k|}
flb_parser_do:
 1046|  1.34k|{
 1047|       |
 1048|  1.34k|    if (parser->type == FLB_PARSER_REGEX) {
  ------------------
  |  |   30|  1.34k|#define FLB_PARSER_REGEX 1
  ------------------
  |  Branch (1048:9): [True: 0, False: 1.34k]
  ------------------
 1049|      0|        return flb_parser_regex_do(parser, buf, length,
 1050|      0|                                   out_buf, out_size, out_time);
 1051|      0|    }
 1052|  1.34k|    else if (parser->type == FLB_PARSER_JSON) {
  ------------------
  |  |   31|  1.34k|#define FLB_PARSER_JSON  2
  ------------------
  |  Branch (1052:14): [True: 0, False: 1.34k]
  ------------------
 1053|      0|        return flb_parser_json_do(parser, buf, length,
 1054|      0|                                  out_buf, out_size, out_time);
 1055|      0|    }
 1056|  1.34k|    else if (parser->type == FLB_PARSER_LTSV) {
  ------------------
  |  |   32|  1.34k|#define FLB_PARSER_LTSV  3
  ------------------
  |  Branch (1056:14): [True: 0, False: 1.34k]
  ------------------
 1057|      0|        return flb_parser_ltsv_do(parser, buf, length,
 1058|      0|                                  out_buf, out_size, out_time);
 1059|      0|    }
 1060|  1.34k|    else if (parser->type == FLB_PARSER_LOGFMT) {
  ------------------
  |  |   33|  1.34k|#define FLB_PARSER_LOGFMT 4
  ------------------
  |  Branch (1060:14): [True: 1.34k, False: 0]
  ------------------
 1061|  1.34k|        return flb_parser_logfmt_do(parser, buf, length,
 1062|  1.34k|                                  out_buf, out_size, out_time);
 1063|  1.34k|    }
 1064|       |
 1065|      0|    return -1;
 1066|  1.34k|}
flb_parser.c:flb_interim_parser_destroy:
  124|      4|{
  125|      4|    if (parser->type == FLB_PARSER_REGEX) {
  ------------------
  |  |   30|      4|#define FLB_PARSER_REGEX 1
  ------------------
  |  Branch (125:9): [True: 1, False: 3]
  ------------------
  126|      1|        flb_regex_destroy(parser->regex);
  127|      1|        flb_free(parser->p_regex);
  128|      1|    }
  129|       |
  130|      4|    flb_free(parser->name);
  131|      4|    if (parser->time_fmt) {
  ------------------
  |  Branch (131:9): [True: 0, False: 4]
  ------------------
  132|      0|        flb_free(parser->time_fmt);
  133|      0|    }
  134|      4|    if (parser->time_fmt_year) {
  ------------------
  |  Branch (134:9): [True: 0, False: 4]
  ------------------
  135|      0|        flb_free(parser->time_fmt_year);
  136|      0|    }
  137|      4|    if (parser->time_fmt_full) {
  ------------------
  |  Branch (137:9): [True: 1, False: 3]
  ------------------
  138|      1|        flb_free(parser->time_fmt_full);
  139|      1|    }
  140|      4|    if (parser->time_key) {
  ------------------
  |  Branch (140:9): [True: 0, False: 4]
  ------------------
  141|      0|        flb_free(parser->time_key);
  142|      0|    }
  143|       |
  144|      4|    mk_list_del(&parser->_head);
  145|      4|    flb_free(parser);
  146|      4|}

flb_parser_logfmt_do:
  260|  1.34k|{
  261|  1.34k|    int ret;
  262|  1.34k|    time_t time_lookup;
  263|  1.34k|    double tmfrac = 0;
  264|  1.34k|    struct flb_time *t;
  265|  1.34k|    msgpack_sbuffer tmp_sbuf;
  266|  1.34k|    msgpack_packer tmp_pck;
  267|  1.34k|    char *dec_out_buf;
  268|  1.34k|    size_t dec_out_size;
  269|  1.34k|    size_t map_size;
  270|  1.34k|    char *time_key;
  271|  1.34k|    size_t time_key_len;
  272|  1.34k|    int last_byte;
  273|       |
  274|  1.34k|    if (parser->time_key) {
  ------------------
  |  Branch (274:9): [True: 0, False: 1.34k]
  ------------------
  275|      0|        time_key = parser->time_key;
  276|      0|    }
  277|  1.34k|    else {
  278|  1.34k|        time_key = "time";
  279|  1.34k|    }
  280|  1.34k|    time_key_len = strlen(time_key);
  281|  1.34k|    time_lookup = 0;
  282|       |
  283|       |    /* count the number of key value pairs */
  284|  1.34k|    map_size = 0;
  285|  1.34k|    logfmt_parser(parser, in_buf, in_size, NULL,
  286|  1.34k|                  time_key, time_key_len,
  287|  1.34k|                  &time_lookup, &tmfrac, &map_size);
  288|  1.34k|    if (map_size == 0) {
  ------------------
  |  Branch (288:9): [True: 37, False: 1.30k]
  ------------------
  289|     37|        return -1;
  290|     37|    }
  291|       |
  292|       |    /* Prepare new outgoing buffer */
  293|  1.30k|    msgpack_sbuffer_init(&tmp_sbuf);
  294|  1.30k|    msgpack_packer_init(&tmp_pck, &tmp_sbuf, msgpack_sbuffer_write);
  295|  1.30k|    msgpack_pack_map(&tmp_pck, map_size);
  296|       |
  297|  1.30k|    last_byte = logfmt_parser(parser, in_buf, in_size, &tmp_pck,
  298|  1.30k|                              time_key, time_key_len,
  299|  1.30k|                              &time_lookup, &tmfrac, &map_size);
  300|  1.30k|    if (last_byte < 0) {
  ------------------
  |  Branch (300:9): [True: 28, False: 1.27k]
  ------------------
  301|     28|        msgpack_sbuffer_destroy(&tmp_sbuf);
  302|     28|        return last_byte;
  303|     28|    }
  304|       |
  305|       |    /* Export results */
  306|  1.27k|    *out_buf = tmp_sbuf.data;
  307|  1.27k|    *out_size = tmp_sbuf.size;
  308|       |
  309|  1.27k|    t = out_time;
  310|  1.27k|    t->tm.tv_sec  = time_lookup;
  311|  1.27k|    t->tm.tv_nsec = (tmfrac * 1000000000);
  312|       |
  313|       |    /* Check if some decoder was specified */
  314|  1.27k|    if (parser->decoders) {
  ------------------
  |  Branch (314:9): [True: 0, False: 1.27k]
  ------------------
  315|      0|        ret = flb_parser_decoder_do(parser->decoders,
  316|      0|                                    tmp_sbuf.data, tmp_sbuf.size,
  317|      0|                                    &dec_out_buf, &dec_out_size);
  318|      0|        if (ret == 0) {
  ------------------
  |  Branch (318:13): [True: 0, False: 0]
  ------------------
  319|      0|            *out_buf = dec_out_buf;
  320|      0|            *out_size = dec_out_size;
  321|      0|            msgpack_sbuffer_destroy(&tmp_sbuf);
  322|      0|        }
  323|      0|    }
  324|       |
  325|  1.27k|    return last_byte;
  326|  1.30k|}
flb_parser_logfmt.c:logfmt_parser:
   69|  2.64k|{
   70|  2.64k|    int ret;
   71|  2.64k|    struct flb_tm tm = {0};
   72|  2.64k|    const unsigned char *key = NULL;
   73|  2.64k|    size_t key_len = 0;
   74|  2.64k|    const unsigned char *value = NULL;
   75|  2.64k|    size_t value_len = 0;
   76|  2.64k|    const unsigned char *c = (const unsigned char *)in_buf;
   77|  2.64k|    const unsigned char *end = c + in_size;
   78|  2.64k|    int last_byte;
   79|  2.64k|    int do_pack = FLB_TRUE;
  ------------------
  |  |   26|  2.64k|#define FLB_TRUE   !FLB_FALSE
  |  |  ------------------
  |  |  |  |   25|  2.64k|#define FLB_FALSE  0
  |  |  ------------------
  ------------------
   80|  2.64k|    int value_set = FLB_FALSE;
  ------------------
  |  |   25|  2.64k|#define FLB_FALSE  0
  ------------------
   81|  2.64k|    int value_str = FLB_FALSE;
  ------------------
  |  |   25|  2.64k|#define FLB_FALSE  0
  ------------------
   82|  2.64k|    int value_escape = FLB_FALSE;
  ------------------
  |  |   25|  2.64k|#define FLB_FALSE  0
  ------------------
   83|       |
   84|       |    /* if map_size is 0 only count the number of k:v */
   85|  2.64k|    if (*map_size == 0) {
  ------------------
  |  Branch (85:9): [True: 1.34k, False: 1.30k]
  ------------------
   86|  1.34k|        do_pack = FLB_FALSE;
  ------------------
  |  |   25|  1.34k|#define FLB_FALSE  0
  ------------------
   87|  1.34k|    }
   88|       |
   89|  10.5M|    while (c < end) {
  ------------------
  |  Branch (89:12): [True: 10.5M, False: 35]
  ------------------
   90|       |        /* garbage */
   91|  20.2M|        while ((c < end) && !ident_byte[*c]) {
  ------------------
  |  Branch (91:16): [True: 20.2M, False: 70]
  |  Branch (91:29): [True: 9.73M, False: 10.5M]
  ------------------
   92|  9.73M|            c++;
   93|  9.73M|        }
   94|  10.5M|        if (c == end) {
  ------------------
  |  Branch (94:13): [True: 70, False: 10.5M]
  ------------------
   95|     70|            break;
   96|     70|        }
   97|       |        /* key */
   98|  10.5M|        key = c;
   99|  48.3M|        while ((c < end) && ident_byte[*c]) {
  ------------------
  |  Branch (99:16): [True: 48.3M, False: 400]
  |  Branch (99:29): [True: 37.7M, False: 10.5M]
  ------------------
  100|  37.7M|            c++;
  101|  37.7M|        }
  102|       |
  103|  10.5M|        key_len = c - key;
  104|       |        /* value */
  105|  10.5M|        value_len = 0;
  106|  10.5M|        value_set = FLB_FALSE;
  ------------------
  |  |   25|  10.5M|#define FLB_FALSE  0
  ------------------
  107|  10.5M|        value_str = FLB_FALSE;
  ------------------
  |  |   25|  10.5M|#define FLB_FALSE  0
  ------------------
  108|  10.5M|        value_escape =  FLB_FALSE;
  ------------------
  |  |   25|  10.5M|#define FLB_FALSE  0
  ------------------
  109|       |
  110|  10.5M|        if (c < end && *c == '=') {
  ------------------
  |  Branch (110:13): [True: 10.5M, False: 400]
  |  Branch (110:24): [True: 872k, False: 9.65M]
  ------------------
  111|   872k|            value_set = FLB_TRUE;
  ------------------
  |  |   26|   872k|#define FLB_TRUE   !FLB_FALSE
  |  |  ------------------
  |  |  |  |   25|   872k|#define FLB_FALSE  0
  |  |  ------------------
  ------------------
  112|   872k|            c++;
  113|   872k|            if (c < end) {
  ------------------
  |  Branch (113:17): [True: 872k, False: 17]
  ------------------
  114|   872k|                if (*c == '"') {
  ------------------
  |  Branch (114:21): [True: 870k, False: 1.95k]
  ------------------
  115|   870k|                    c++;
  116|   870k|                    value = c;
  117|   870k|                    value_str = FLB_TRUE;
  ------------------
  |  |   26|   870k|#define FLB_TRUE   !FLB_FALSE
  |  |  ------------------
  |  |  |  |   25|   870k|#define FLB_FALSE  0
  |  |  ------------------
  ------------------
  118|  43.9M|                    while (c < end) {
  ------------------
  |  Branch (118:28): [True: 43.9M, False: 1.52k]
  ------------------
  119|  43.9M|                        if (*c != '\\' && *c!= '"') {
  ------------------
  |  Branch (119:29): [True: 42.9M, False: 952k]
  |  Branch (119:43): [True: 42.1M, False: 868k]
  ------------------
  120|  42.1M|                            c++;
  121|  42.1M|                        }
  122|  1.82M|                        else if (*c == '\\') {
  ------------------
  |  Branch (122:34): [True: 952k, False: 868k]
  ------------------
  123|   952k|                            value_escape =  FLB_TRUE;
  ------------------
  |  |   26|   952k|#define FLB_TRUE   !FLB_FALSE
  |  |  ------------------
  |  |  |  |   25|   952k|#define FLB_FALSE  0
  |  |  ------------------
  ------------------
  124|   952k|                            c++;
  125|   952k|                            if (c == end) {
  ------------------
  |  Branch (125:33): [True: 304, False: 952k]
  ------------------
  126|    304|                                break;
  127|    304|                            }
  128|   952k|                            c++;
  129|   952k|                        }
  130|   868k|                        else {
  131|   868k|                            break;
  132|   868k|                        }
  133|  43.9M|                    }
  134|   870k|                    value_len = c - value;
  135|   870k|                    if (c < end && *c == '\"') {
  ------------------
  |  Branch (135:25): [True: 868k, False: 1.82k]
  |  Branch (135:36): [True: 868k, False: 0]
  ------------------
  136|   868k|                        c++;
  137|   868k|                    }
  138|   870k|                }
  139|  1.95k|                else {
  140|  1.95k|                   value = c;
  141|  17.7M|                   while ((c < end) && ident_byte[*c]) {
  ------------------
  |  Branch (141:27): [True: 17.7M, False: 217]
  |  Branch (141:40): [True: 17.7M, False: 1.73k]
  ------------------
  142|  17.7M|                      c++;
  143|  17.7M|                   }
  144|  1.95k|                   value_len = c - value;
  145|  1.95k|                }
  146|   872k|            }
  147|   872k|        }
  148|       |
  149|  10.5M|        if (key_len > 0) {
  ------------------
  |  Branch (149:13): [True: 10.5M, False: 0]
  ------------------
  150|  10.5M|            int time_found = FLB_FALSE;
  ------------------
  |  |   25|  10.5M|#define FLB_FALSE  0
  ------------------
  151|  10.5M|            if (parser->logfmt_no_bare_keys && value_len == 0 && !value_set) {
  ------------------
  |  Branch (151:17): [True: 0, False: 10.5M]
  |  Branch (151:48): [True: 0, False: 0]
  |  Branch (151:66): [True: 0, False: 0]
  ------------------
  152|      0|                if (!do_pack) {
  ------------------
  |  Branch (152:21): [True: 0, False: 0]
  ------------------
  153|      0|                    *map_size = 0;
  154|      0|                }
  155|      0|                return 0;
  156|      0|            }
  157|       |
  158|  10.5M|            if (parser->time_fmt && key_len == time_key_len &&
  ------------------
  |  Branch (158:17): [True: 0, False: 10.5M]
  |  Branch (158:37): [True: 0, False: 0]
  ------------------
  159|  10.5M|                value_len > 0 &&
  ------------------
  |  Branch (159:17): [True: 0, False: 0]
  ------------------
  160|  10.5M|                !strncmp((const char *)key, time_key, key_len)) {
  ------------------
  |  Branch (160:17): [True: 0, False: 0]
  ------------------
  161|      0|                if (do_pack) {
  ------------------
  |  Branch (161:21): [True: 0, False: 0]
  ------------------
  162|      0|                    ret = flb_parser_time_lookup((const char *) value, value_len,
  163|      0|                                                  0, parser, &tm, tmfrac);
  164|      0|                    if (ret == -1) {
  ------------------
  |  Branch (164:25): [True: 0, False: 0]
  ------------------
  165|      0|                        flb_error("[parser:%s] Invalid time format %s",
  ------------------
  |  |  170|      0|    if (flb_log_check(FLB_LOG_ERROR))                                \
  |  |  ------------------
  |  |  |  |   40|      0|#define FLB_LOG_ERROR   1
  |  |  ------------------
  |  |  |  Branch (170:9): [True: 0, False: 0]
  |  |  ------------------
  |  |  171|      0|        flb_log_print(FLB_LOG_ERROR, NULL, 0, fmt, ##__VA_ARGS__)
  |  |  ------------------
  |  |  |  |   40|      0|#define FLB_LOG_ERROR   1
  |  |  ------------------
  ------------------
  166|      0|                                  parser->name, parser->time_fmt_full);
  167|      0|                        return -1;
  168|      0|                    }
  169|      0|                    *time_lookup = flb_parser_tm2time(&tm, parser->time_system_timezone);
  170|      0|                }
  171|      0|                time_found = FLB_TRUE;
  ------------------
  |  |   26|      0|#define FLB_TRUE   !FLB_FALSE
  |  |  ------------------
  |  |  |  |   25|      0|#define FLB_FALSE  0
  |  |  ------------------
  ------------------
  172|      0|            }
  173|       |
  174|  10.5M|            if (time_found == FLB_FALSE || parser->time_keep == FLB_TRUE) {
  ------------------
  |  |   25|  21.0M|#define FLB_FALSE  0
  ------------------
                          if (time_found == FLB_FALSE || parser->time_keep == FLB_TRUE) {
  ------------------
  |  |   26|      0|#define FLB_TRUE   !FLB_FALSE
  |  |  ------------------
  |  |  |  |   25|      0|#define FLB_FALSE  0
  |  |  ------------------
  ------------------
  |  Branch (174:17): [True: 10.5M, False: 0]
  |  Branch (174:44): [True: 0, False: 0]
  ------------------
  175|  10.5M|                if (do_pack) {
  ------------------
  |  Branch (175:21): [True: 5.26M, False: 5.26M]
  ------------------
  176|  5.26M|                    if (parser->types_len != 0) {
  ------------------
  |  Branch (176:25): [True: 0, False: 5.26M]
  ------------------
  177|      0|                        flb_parser_typecast((const char*) key, key_len,
  178|      0|                                            (const char*) value, value_len,
  179|      0|                                            tmp_pck,
  180|      0|                                            parser->types,
  181|      0|                                            parser->types_len);
  182|      0|                    }
  183|  5.26M|                    else {
  184|  5.26M|                        msgpack_pack_str(tmp_pck, key_len);
  185|  5.26M|                        msgpack_pack_str_body(tmp_pck, (const char *)key, key_len);
  186|  5.26M|                        if (value_len == 0) {
  ------------------
  |  Branch (186:29): [True: 4.82M, False: 435k]
  ------------------
  187|  4.82M|                            if (value_str == FLB_TRUE) {
  ------------------
  |  |   26|  4.82M|#define FLB_TRUE   !FLB_FALSE
  |  |  ------------------
  |  |  |  |   25|  4.82M|#define FLB_FALSE  0
  |  |  ------------------
  ------------------
  |  Branch (187:33): [True: 538, False: 4.82M]
  ------------------
  188|    538|                                msgpack_pack_str(tmp_pck, 0);
  189|    538|                            }
  190|  4.82M|                            else {
  191|  4.82M|                                msgpack_pack_true(tmp_pck);
  192|  4.82M|                            }
  193|  4.82M|                        }
  194|   435k|                        else {
  195|   435k|                            if (value_escape == FLB_TRUE) {
  ------------------
  |  |   26|   435k|#define FLB_TRUE   !FLB_FALSE
  |  |  ------------------
  |  |  |  |   25|   435k|#define FLB_FALSE  0
  |  |  ------------------
  ------------------
  |  Branch (195:33): [True: 434k, False: 1.07k]
  ------------------
  196|   434k|                                int out_len;
  197|   434k|                                char *out_str;
  198|       |
  199|   434k|                                out_str = flb_malloc(value_len + 1);
  200|   434k|                                if (out_str == NULL) {
  ------------------
  |  Branch (200:37): [True: 28, False: 434k]
  ------------------
  201|     28|                                    flb_errno();
  ------------------
  |  |  232|     28|#define flb_errno() flb_errno_print(errno, __FLB_FILENAME__, __LINE__)
  ------------------
  202|     28|                                    return -1;
  203|     28|                                }
  204|   434k|                                out_str[0] = 0;
  205|   434k|                                flb_unescape_string_utf8((const char *)value,
  206|   434k|                                                          value_len,
  207|   434k|                                                          out_str);
  208|   434k|                                out_len = strlen(out_str);
  209|       |
  210|   434k|                                msgpack_pack_str(tmp_pck, out_len);
  211|   434k|                                msgpack_pack_str_body(tmp_pck,
  212|   434k|                                                      out_str,
  213|   434k|                                                      out_len);
  214|       |
  215|   434k|                                flb_free(out_str);
  216|   434k|                            }
  217|  1.07k|                            else {
  218|  1.07k|                                msgpack_pack_str(tmp_pck, value_len);
  219|  1.07k|                                msgpack_pack_str_body(tmp_pck,
  220|  1.07k|                                                      (const char *)value,
  221|  1.07k|                                                      value_len);
  222|  1.07k|                            }
  223|   435k|                        }
  224|  5.26M|                    }
  225|  5.26M|                }
  226|  5.26M|                else {
  227|  5.26M|                    (*map_size)++;
  228|  5.26M|                }
  229|  10.5M|            }
  230|  10.5M|        }
  231|       |
  232|  10.5M|        if (c == end) {
  ------------------
  |  Branch (232:13): [True: 2.47k, False: 10.5M]
  ------------------
  233|  2.47k|            break;
  234|  2.47k|        }
  235|       |
  236|  10.5M|        if (*c == '\r') {
  ------------------
  |  Branch (236:13): [True: 33, False: 10.5M]
  ------------------
  237|     33|            c++;
  238|     33|            if (c == end) {
  ------------------
  |  Branch (238:17): [True: 7, False: 26]
  ------------------
  239|      7|                break;
  240|      7|            }
  241|     26|            if (*c == '\n') {
  ------------------
  |  Branch (241:17): [True: 3, False: 23]
  ------------------
  242|      3|                c++;
  243|      3|            }
  244|     26|            break;
  245|     33|        }
  246|  10.5M|        if (*c == '\n') {
  ------------------
  |  Branch (246:13): [True: 6, False: 10.5M]
  ------------------
  247|      6|            c++;
  248|      6|            break;
  249|      6|        }
  250|  10.5M|    }
  251|  2.62k|    last_byte = (const char *)c - in_buf;
  252|       |
  253|  2.62k|    return last_byte;
  254|  2.64k|}

flb_plugin_create:
  183|  1.34k|{
  184|  1.34k|    struct flb_plugins *ctx;
  185|       |
  186|  1.34k|    ctx = flb_malloc(sizeof(struct flb_plugins));
  187|  1.34k|    if (!ctx) {
  ------------------
  |  Branch (187:9): [True: 2, False: 1.34k]
  ------------------
  188|      2|        flb_errno();
  ------------------
  |  |  232|      2|#define flb_errno() flb_errno_print(errno, __FLB_FILENAME__, __LINE__)
  ------------------
  189|      2|        return NULL;
  190|      2|    }
  191|       |
  192|  1.34k|    mk_list_init(&ctx->input);
  193|  1.34k|    mk_list_init(&ctx->processor);
  194|  1.34k|    mk_list_init(&ctx->filter);
  195|  1.34k|    mk_list_init(&ctx->output);
  196|       |
  197|  1.34k|    return ctx;
  198|  1.34k|}
flb_plugin_destroy:
  467|  1.34k|{
  468|  1.34k|    struct mk_list *tmp;
  469|  1.34k|    struct mk_list *head;
  470|  1.34k|    struct flb_plugin *plugin;
  471|       |
  472|  1.34k|    mk_list_foreach_safe(head, tmp, &ctx->input) {
  ------------------
  |  |  207|  1.34k|    for (curr = (head)->next, n = curr->next; curr != (head); curr = n, n = curr->next)
  |  |  ------------------
  |  |  |  Branch (207:47): [True: 0, False: 1.34k]
  |  |  ------------------
  ------------------
  473|      0|        plugin = mk_list_entry(head, struct flb_plugin, _head);
  ------------------
  |  |  214|      0|#define mk_list_entry( ptr, type, member ) container_of( ptr, type, member )
  |  |  ------------------
  |  |  |  |   38|      0|#define container_of(ptr, type, member) ({                      \
  |  |  |  |   39|      0|      const typeof( ((type *)0)->member ) *__mptr = (ptr);      \
  |  |  |  |   40|      0|      (type *)( (char *)__mptr - offsetof(type,member) );})
  |  |  ------------------
  ------------------
  474|      0|        destroy_plugin(plugin);
  475|      0|    }
  476|       |
  477|  1.34k|    mk_list_foreach_safe(head, tmp, &ctx->processor) {
  ------------------
  |  |  207|  1.34k|    for (curr = (head)->next, n = curr->next; curr != (head); curr = n, n = curr->next)
  |  |  ------------------
  |  |  |  Branch (207:47): [True: 0, False: 1.34k]
  |  |  ------------------
  ------------------
  478|      0|        plugin = mk_list_entry(head, struct flb_plugin, _head);
  ------------------
  |  |  214|      0|#define mk_list_entry( ptr, type, member ) container_of( ptr, type, member )
  |  |  ------------------
  |  |  |  |   38|      0|#define container_of(ptr, type, member) ({                      \
  |  |  |  |   39|      0|      const typeof( ((type *)0)->member ) *__mptr = (ptr);      \
  |  |  |  |   40|      0|      (type *)( (char *)__mptr - offsetof(type,member) );})
  |  |  ------------------
  ------------------
  479|      0|        destroy_plugin(plugin);
  480|      0|    }
  481|       |
  482|  1.34k|    mk_list_foreach_safe(head, tmp, &ctx->filter) {
  ------------------
  |  |  207|  1.34k|    for (curr = (head)->next, n = curr->next; curr != (head); curr = n, n = curr->next)
  |  |  ------------------
  |  |  |  Branch (207:47): [True: 0, False: 1.34k]
  |  |  ------------------
  ------------------
  483|      0|        plugin = mk_list_entry(head, struct flb_plugin, _head);
  ------------------
  |  |  214|      0|#define mk_list_entry( ptr, type, member ) container_of( ptr, type, member )
  |  |  ------------------
  |  |  |  |   38|      0|#define container_of(ptr, type, member) ({                      \
  |  |  |  |   39|      0|      const typeof( ((type *)0)->member ) *__mptr = (ptr);      \
  |  |  |  |   40|      0|      (type *)( (char *)__mptr - offsetof(type,member) );})
  |  |  ------------------
  ------------------
  484|      0|        destroy_plugin(plugin);
  485|      0|    }
  486|       |
  487|  1.34k|    mk_list_foreach_safe(head, tmp, &ctx->output) {
  ------------------
  |  |  207|  1.34k|    for (curr = (head)->next, n = curr->next; curr != (head); curr = n, n = curr->next)
  |  |  ------------------
  |  |  |  Branch (207:47): [True: 0, False: 1.34k]
  |  |  ------------------
  ------------------
  488|      0|        plugin = mk_list_entry(head, struct flb_plugin, _head);
  ------------------
  |  |  214|      0|#define mk_list_entry( ptr, type, member ) container_of( ptr, type, member )
  |  |  ------------------
  |  |  |  |   38|      0|#define container_of(ptr, type, member) ({                      \
  |  |  |  |   39|      0|      const typeof( ((type *)0)->member ) *__mptr = (ptr);      \
  |  |  |  |   40|      0|      (type *)( (char *)__mptr - offsetof(type,member) );})
  |  |  ------------------
  ------------------
  489|      0|        destroy_plugin(plugin);
  490|      0|    }
  491|       |
  492|  1.34k|    flb_free(ctx);
  493|  1.34k|}

flb_regex_init:
  156|  1.34k|{
  157|  1.34k|    return onig_init();
  158|  1.34k|}
flb_regex_create:
  161|  33.2k|{
  162|  33.2k|    int ret;
  163|  33.2k|    struct flb_regex *r;
  164|       |
  165|       |    /* Create context */
  166|  33.2k|    r = flb_malloc(sizeof(struct flb_regex));
  167|  33.2k|    if (!r) {
  ------------------
  |  Branch (167:9): [True: 5, False: 33.2k]
  ------------------
  168|      5|        flb_errno();
  ------------------
  |  |  232|      5|#define flb_errno() flb_errno_print(errno, __FLB_FILENAME__, __LINE__)
  ------------------
  169|      5|        return NULL;
  170|      5|    }
  171|       |
  172|       |    /* Compile pattern */
  173|  33.2k|    ret = str_to_regex(pattern, (OnigRegex*)&r->regex);
  174|  33.2k|    if (ret == -1) {
  ------------------
  |  Branch (174:9): [True: 0, False: 33.2k]
  ------------------
  175|      0|        flb_free(r);
  176|      0|        return NULL;
  177|      0|    }
  178|       |
  179|  33.2k|    return r;
  180|  33.2k|}
flb_regex_destroy:
  316|  33.2k|{
  317|  33.2k|    onig_free(r->regex);
  318|  33.2k|    flb_free(r);
  319|  33.2k|    return 0;
  320|  33.2k|}
flb_regex.c:str_to_regex:
  117|  33.2k|{
  118|  33.2k|    int ret;
  119|  33.2k|    size_t len;
  120|  33.2k|    const char *start;
  121|  33.2k|    const char *end;
  122|  33.2k|    char *new_end = NULL;
  123|  33.2k|    OnigErrorInfo einfo;
  124|  33.2k|    OnigOptionType option;
  125|       |
  126|  33.2k|    len = strlen(pattern);
  127|  33.2k|    start = pattern;
  128|  33.2k|    end = pattern + len;
  129|       |
  130|  33.2k|    option = check_option(start, end, &new_end);
  131|       |
  132|  33.2k|    if (pattern[0] == '/' && pattern[len - 1] == '/') {
  ------------------
  |  Branch (132:9): [True: 31.7k, False: 1.47k]
  |  Branch (132:30): [True: 31.7k, False: 0]
  ------------------
  133|  31.7k|        start++;
  134|  31.7k|        end--;
  135|  31.7k|    }
  136|       |
  137|  33.2k|    if (new_end != NULL) {
  ------------------
  |  Branch (137:9): [True: 0, False: 33.2k]
  ------------------
  138|       |        /* pattern is /pat/option. new_end indicates a last '/'. */
  139|      0|        start++;
  140|      0|        end = new_end;
  141|      0|    }
  142|       |
  143|  33.2k|    ret = onig_new(reg,
  144|  33.2k|                   (const unsigned char *)start, (const unsigned char *)end,
  145|  33.2k|                   option,
  146|  33.2k|                   ONIG_ENCODING_UTF8, ONIG_SYNTAX_RUBY, &einfo);
  ------------------
  |  |  274|  33.2k|# define ONIG_ENCODING_UTF8         ONIG_ENCODING_UTF_8
  |  |  ------------------
  |  |  |  |  242|  33.2k|# define ONIG_ENCODING_UTF_8        (&OnigEncodingUTF_8)
  |  |  ------------------
  ------------------
                                 ONIG_ENCODING_UTF8, ONIG_SYNTAX_RUBY, &einfo);
  ------------------
  |  |  514|  33.2k|#define ONIG_SYNTAX_RUBY               (&OnigSyntaxRuby)
  ------------------
  147|       |
  148|  33.2k|    if (ret != ONIG_NORMAL) {
  ------------------
  |  |  627|  33.2k|#define ONIG_NORMAL                                            0
  ------------------
  |  Branch (148:9): [True: 0, False: 33.2k]
  ------------------
  149|      0|        return -1;
  150|      0|    }
  151|  33.2k|    return 0;
  152|  33.2k|}
flb_regex.c:check_option:
   61|  33.2k|{
   62|  33.2k|    char *chr = NULL;
   63|  33.2k|    OnigOptionType option = ONIG_OPTION_NONE;
  ------------------
  |  |  453|  33.2k|#define ONIG_OPTION_NONE                 0U
  ------------------
   64|       |
   65|  33.2k|    if (start == NULL || end == NULL || new_end == NULL) {
  ------------------
  |  Branch (65:9): [True: 0, False: 33.2k]
  |  Branch (65:26): [True: 0, False: 33.2k]
  |  Branch (65:41): [True: 0, False: 33.2k]
  ------------------
   66|      0|        return ONIG_OPTION_DEFAULT;
  ------------------
  |  |  450|      0|#define ONIG_OPTION_DEFAULT            ONIG_OPTION_NONE
  |  |  ------------------
  |  |  |  |  453|      0|#define ONIG_OPTION_NONE                 0U
  |  |  ------------------
  ------------------
   67|      0|    }
   68|  33.2k|    else if (start[0] != '/') {
  ------------------
  |  Branch (68:14): [True: 1.47k, False: 31.7k]
  ------------------
   69|  1.47k|        *new_end = NULL;
   70|  1.47k|        return ONIG_OPTION_DEFAULT;
  ------------------
  |  |  450|  1.47k|#define ONIG_OPTION_DEFAULT            ONIG_OPTION_NONE
  |  |  ------------------
  |  |  |  |  453|  1.47k|#define ONIG_OPTION_NONE                 0U
  |  |  ------------------
  ------------------
   71|  1.47k|    }
   72|       |
   73|  31.7k|    chr = strrchr(start, '/');
   74|  31.7k|    if (!chr) {
  ------------------
  |  Branch (74:9): [True: 0, False: 31.7k]
  ------------------
   75|      0|        *new_end = NULL;
   76|      0|        return ONIG_OPTION_DEFAULT;
  ------------------
  |  |  450|      0|#define ONIG_OPTION_DEFAULT            ONIG_OPTION_NONE
  |  |  ------------------
  |  |  |  |  453|      0|#define ONIG_OPTION_NONE                 0U
  |  |  ------------------
  ------------------
   77|      0|    }
   78|       |
   79|  31.7k|    if (chr == start || chr == end) {
  ------------------
  |  Branch (79:9): [True: 0, False: 31.7k]
  |  Branch (79:25): [True: 0, False: 31.7k]
  ------------------
   80|      0|        *new_end = NULL;
   81|      0|        return ONIG_OPTION_DEFAULT;
  ------------------
  |  |  450|      0|#define ONIG_OPTION_DEFAULT            ONIG_OPTION_NONE
  |  |  ------------------
  |  |  |  |  453|      0|#define ONIG_OPTION_NONE                 0U
  |  |  ------------------
  ------------------
   82|      0|    }
   83|  31.7k|    *new_end = chr;
   84|       |
   85|  31.7k|    chr++;
   86|  31.7k|    while(chr != end && *chr != '\0') {
  ------------------
  |  Branch (86:11): [True: 0, False: 31.7k]
  |  Branch (86:25): [True: 0, False: 0]
  ------------------
   87|      0|        switch (*chr) {
   88|      0|        case 'm':
  ------------------
  |  Branch (88:9): [True: 0, False: 0]
  ------------------
   89|      0|            option |= ONIG_OPTION_MULTILINE;
  ------------------
  |  |  456|      0|#define ONIG_OPTION_MULTILINE            (ONIG_OPTION_EXTEND             << 1)
  |  |  ------------------
  |  |  |  |  455|      0|#define ONIG_OPTION_EXTEND               (ONIG_OPTION_IGNORECASE         << 1)
  |  |  |  |  ------------------
  |  |  |  |  |  |  454|      0|#define ONIG_OPTION_IGNORECASE           1U
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
   90|      0|            break;
   91|      0|        case 'i':
  ------------------
  |  Branch (91:9): [True: 0, False: 0]
  ------------------
   92|      0|            option |= ONIG_OPTION_IGNORECASE;
  ------------------
  |  |  454|      0|#define ONIG_OPTION_IGNORECASE           1U
  ------------------
   93|      0|            break;
   94|      0|        case 'o':
  ------------------
  |  Branch (94:9): [True: 0, False: 0]
  ------------------
   95|      0|            flb_debug("[regex:%s]: 'o' option is not supported.", __FUNCTION__);
  ------------------
  |  |  197|      0|    if (flb_log_check(FLB_LOG_DEBUG))                               \
  |  |  ------------------
  |  |  |  |   43|      0|#define FLB_LOG_DEBUG   4
  |  |  ------------------
  |  |  |  Branch (197:9): [True: 0, False: 0]
  |  |  ------------------
  |  |  198|      0|        flb_log_print(FLB_LOG_DEBUG, NULL, 0, fmt, ##__VA_ARGS__)
  |  |  ------------------
  |  |  |  |   43|      0|#define FLB_LOG_DEBUG   4
  |  |  ------------------
  ------------------
   96|      0|            break;
   97|      0|        case 'x':
  ------------------
  |  Branch (97:9): [True: 0, False: 0]
  ------------------
   98|      0|            option |= ONIG_OPTION_EXTEND;
  ------------------
  |  |  455|      0|#define ONIG_OPTION_EXTEND               (ONIG_OPTION_IGNORECASE         << 1)
  |  |  ------------------
  |  |  |  |  454|      0|#define ONIG_OPTION_IGNORECASE           1U
  |  |  ------------------
  ------------------
   99|      0|            break;
  100|      0|        default:
  ------------------
  |  Branch (100:9): [True: 0, False: 0]
  ------------------
  101|      0|            flb_debug("[regex:%s]: unknown option. use default.", __FUNCTION__);
  ------------------
  |  |  197|      0|    if (flb_log_check(FLB_LOG_DEBUG))                               \
  |  |  ------------------
  |  |  |  |   43|      0|#define FLB_LOG_DEBUG   4
  |  |  ------------------
  |  |  |  Branch (197:9): [True: 0, False: 0]
  |  |  ------------------
  |  |  198|      0|        flb_log_print(FLB_LOG_DEBUG, NULL, 0, fmt, ##__VA_ARGS__)
  |  |  ------------------
  |  |  |  |   43|      0|#define FLB_LOG_DEBUG   4
  |  |  ------------------
  ------------------
  102|      0|            *new_end = NULL;
  103|      0|            return ONIG_OPTION_DEFAULT;
  ------------------
  |  |  450|      0|#define ONIG_OPTION_DEFAULT            ONIG_OPTION_NONE
  |  |  ------------------
  |  |  |  |  453|      0|#define ONIG_OPTION_NONE                 0U
  |  |  ------------------
  ------------------
  104|      0|        }
  105|      0|        chr++;
  106|      0|    }
  107|       |
  108|  31.7k|    if (option == ONIG_OPTION_NONE) {
  ------------------
  |  |  453|  31.7k|#define ONIG_OPTION_NONE                 0U
  ------------------
  |  Branch (108:9): [True: 31.7k, False: 0]
  ------------------
  109|  31.7k|        *new_end = NULL;
  110|  31.7k|        option = ONIG_OPTION_DEFAULT;
  ------------------
  |  |  450|  31.7k|#define ONIG_OPTION_DEFAULT            ONIG_OPTION_NONE
  |  |  ------------------
  |  |  |  |  453|  31.7k|#define ONIG_OPTION_NONE                 0U
  |  |  ------------------
  ------------------
  111|  31.7k|    }
  112|       |
  113|  31.7k|    return option;
  114|  31.7k|}

flb_sds_create_len:
   59|  98.6k|{
   60|  98.6k|    flb_sds_t s;
   61|  98.6k|    struct flb_sds *head;
   62|       |
   63|  98.6k|    s = sds_alloc(len);
   64|  98.6k|    if (!s) {
  ------------------
  |  Branch (64:9): [True: 36, False: 98.6k]
  ------------------
   65|     36|        return NULL;
   66|     36|    }
   67|       |
   68|  98.6k|    if (str) {
  ------------------
  |  Branch (68:9): [True: 98.6k, False: 0]
  ------------------
   69|  98.6k|        memcpy(s, str, len);
   70|  98.6k|        s[len] = '\0';
   71|       |
   72|  98.6k|        head = FLB_SDS_HEADER(s);
  ------------------
  |  |   46|  98.6k|#define FLB_SDS_HEADER(s)  ((struct flb_sds *) (s - FLB_SDS_HEADER_SIZE))
  |  |  ------------------
  |  |  |  |   34|  98.6k|#define FLB_SDS_HEADER_SIZE (sizeof(uint64_t) + sizeof(uint64_t))
  |  |  ------------------
  ------------------
   73|  98.6k|        head->len = len;
   74|  98.6k|    }
   75|  98.6k|    return s;
   76|  98.6k|}
flb_sds_create:
   79|  50.8k|{
   80|  50.8k|    size_t len;
   81|       |
   82|  50.8k|    if (!str) {
  ------------------
  |  Branch (82:9): [True: 0, False: 50.8k]
  ------------------
   83|      0|        len = 0;
   84|      0|    }
   85|  50.8k|    else {
   86|  50.8k|        len = strlen(str);
   87|  50.8k|    }
   88|       |
   89|  50.8k|    return flb_sds_create_len(str, len);
   90|  50.8k|}
flb_sds_destroy:
  390|  98.6k|{
  391|  98.6k|    struct flb_sds *head;
  392|       |
  393|  98.6k|    if (!s) {
  ------------------
  |  Branch (393:9): [True: 0, False: 98.6k]
  ------------------
  394|      0|        return;
  395|      0|    }
  396|       |
  397|  98.6k|    head = FLB_SDS_HEADER(s);
  ------------------
  |  |   46|  98.6k|#define FLB_SDS_HEADER(s)  ((struct flb_sds *) (s - FLB_SDS_HEADER_SIZE))
  |  |  ------------------
  |  |  |  |   34|  98.6k|#define FLB_SDS_HEADER_SIZE (sizeof(uint64_t) + sizeof(uint64_t))
  |  |  ------------------
  ------------------
  398|  98.6k|    flb_free(head);
  399|  98.6k|}
flb_sds.c:sds_alloc:
   37|  98.6k|{
   38|  98.6k|    void *buf;
   39|  98.6k|    flb_sds_t s;
   40|  98.6k|    struct flb_sds *head;
   41|       |
   42|  98.6k|    buf = flb_malloc(FLB_SDS_HEADER_SIZE + size + 1);
  ------------------
  |  |   34|  98.6k|#define FLB_SDS_HEADER_SIZE (sizeof(uint64_t) + sizeof(uint64_t))
  ------------------
   43|  98.6k|    if (!buf) {
  ------------------
  |  Branch (43:9): [True: 36, False: 98.6k]
  ------------------
   44|     36|        flb_errno();
  ------------------
  |  |  232|     36|#define flb_errno() flb_errno_print(errno, __FLB_FILENAME__, __LINE__)
  ------------------
   45|     36|        return NULL;
   46|     36|    }
   47|       |
   48|  98.6k|    head = buf;
   49|  98.6k|    head->len = 0;
   50|  98.6k|    head->alloc = size;
   51|       |
   52|  98.6k|    s = head->buf;
   53|  98.6k|    *s = '\0';
   54|       |
   55|  98.6k|    return s;
   56|  98.6k|}

flb_slist_create:
   28|  33.2k|{
   29|  33.2k|    mk_list_init(list);
   30|  33.2k|    return 0;
   31|  33.2k|}
flb_slist_add_n:
   35|  46.3k|{
   36|  46.3k|    struct flb_slist_entry *e;
   37|       |
   38|  46.3k|    e = flb_malloc(sizeof(struct flb_slist_entry));
   39|  46.3k|    if (!e) {
  ------------------
  |  Branch (39:9): [True: 6, False: 46.3k]
  ------------------
   40|      6|        flb_errno();
  ------------------
  |  |  232|      6|#define flb_errno() flb_errno_print(errno, __FLB_FILENAME__, __LINE__)
  ------------------
   41|      6|        return -1;
   42|      6|    }
   43|       |
   44|  46.3k|    e->str = flb_sds_create_len(str, len);
   45|  46.3k|    if (!e->str) {
  ------------------
  |  Branch (45:9): [True: 10, False: 46.3k]
  ------------------
   46|     10|        flb_free(e);
   47|     10|        return -1;
   48|     10|    }
   49|       |
   50|  46.3k|    mk_list_add(&e->_head, head);
   51|  46.3k|    return 0;
   52|  46.3k|}
flb_slist_split_string:
  220|  31.8k|{
  221|  31.8k|    int i = 0;
  222|  31.8k|    int ret;
  223|  31.8k|    int count = 0;
  224|  31.8k|    int val_len;
  225|  31.8k|    int len;
  226|  31.8k|    int end;
  227|  31.8k|    char *p_init;
  228|  31.8k|    char *p_end;
  229|       |
  230|  31.8k|    if (!str) {
  ------------------
  |  Branch (230:9): [True: 0, False: 31.8k]
  ------------------
  231|      0|        return -1;
  232|      0|    }
  233|       |
  234|  31.8k|    len = strlen(str);
  235|  78.1k|    while (i < len) {
  ------------------
  |  Branch (235:12): [True: 46.3k, False: 31.7k]
  ------------------
  236|  46.3k|        end = mk_string_char_search(str + i, separator, len - i);
  237|  46.3k|        if (end < 0) {
  ------------------
  |  Branch (237:13): [True: 31.7k, False: 14.5k]
  ------------------
  238|  31.7k|            end = len - i;
  239|  31.7k|        }
  240|  14.5k|        else if ((end + i) == i) {
  ------------------
  |  Branch (240:18): [True: 0, False: 14.5k]
  ------------------
  241|      0|            i++;
  242|      0|            continue;
  243|      0|        }
  244|       |
  245|  46.3k|        p_init = (char *) str + i;
  246|  46.3k|        p_end = p_init + end - 1;
  247|       |
  248|       |        /* Skip empty spaces */
  249|  60.8k|        while (*p_init == ' ') {
  ------------------
  |  Branch (249:16): [True: 14.5k, False: 46.3k]
  ------------------
  250|  14.5k|            p_init++;
  251|  14.5k|        }
  252|       |
  253|  46.3k|        while (*p_end == ' ' && p_end >= p_init) {
  ------------------
  |  Branch (253:16): [True: 0, False: 46.3k]
  |  Branch (253:33): [True: 0, False: 0]
  ------------------
  254|      0|            p_end--;
  255|      0|        }
  256|       |
  257|  46.3k|        if (p_init > p_end) {
  ------------------
  |  Branch (257:13): [True: 0, False: 46.3k]
  ------------------
  258|      0|            goto next;
  259|      0|        }
  260|       |
  261|  46.3k|        if (p_init == p_end) {
  ------------------
  |  Branch (261:13): [True: 0, False: 46.3k]
  ------------------
  262|      0|            if (*p_init == ' ') {
  ------------------
  |  Branch (262:17): [True: 0, False: 0]
  ------------------
  263|      0|                goto next;
  264|      0|            }
  265|      0|            val_len = 1;
  266|      0|        }
  267|  46.3k|        else {
  268|  46.3k|            val_len = (p_end - p_init) + 1;
  269|  46.3k|        }
  270|       |
  271|  46.3k|        if (val_len == 0) {
  ------------------
  |  Branch (271:13): [True: 0, False: 46.3k]
  ------------------
  272|      0|            goto next;
  273|      0|        }
  274|       |
  275|  46.3k|        ret = flb_slist_add_n(list, p_init, val_len);
  276|  46.3k|        if (ret == -1) {
  ------------------
  |  Branch (276:13): [True: 16, False: 46.3k]
  ------------------
  277|     16|            return -1;
  278|     16|        }
  279|  46.3k|        count++;
  280|       |
  281|       |        /* Append remaining string as a new node ? */
  282|  46.3k|        if (count >= max_split && max_split > 0) {
  ------------------
  |  Branch (282:13): [True: 46.3k, False: 0]
  |  Branch (282:35): [True: 0, False: 46.3k]
  ------------------
  283|      0|            p_end = p_init + end;
  284|      0|            if (*p_end == separator) {
  ------------------
  |  Branch (284:17): [True: 0, False: 0]
  ------------------
  285|      0|                p_end++;
  286|      0|            }
  287|      0|            while (*p_end == ' ') {
  ------------------
  |  Branch (287:20): [True: 0, False: 0]
  ------------------
  288|      0|                p_end++;
  289|      0|            }
  290|       |
  291|      0|            if ((p_end - str) >= len) {
  ------------------
  |  Branch (291:17): [True: 0, False: 0]
  ------------------
  292|      0|                break;
  293|      0|            }
  294|       |
  295|      0|            ret = flb_slist_add(list, p_end);
  296|      0|            if (ret == -1) {
  ------------------
  |  Branch (296:17): [True: 0, False: 0]
  ------------------
  297|      0|                return -1;
  298|      0|            }
  299|      0|            count++;
  300|      0|            break;
  301|      0|        }
  302|       |
  303|  46.3k|    next:
  304|  46.3k|        i += end + 1;
  305|  46.3k|    }
  306|       |
  307|  31.7k|    return count;
  308|  31.8k|}
flb_slist_destroy:
  323|  33.2k|{
  324|  33.2k|    struct mk_list *tmp;
  325|  33.2k|    struct mk_list *head;
  326|  33.2k|    struct flb_slist_entry *e;
  327|       |
  328|  46.3k|    mk_list_foreach_safe(head, tmp, list) {
  ------------------
  |  |  207|  79.5k|    for (curr = (head)->next, n = curr->next; curr != (head); curr = n, n = curr->next)
  |  |  ------------------
  |  |  |  Branch (207:47): [True: 46.3k, False: 33.2k]
  |  |  ------------------
  ------------------
  329|  46.3k|        e = mk_list_entry(head, struct flb_slist_entry, _head);
  ------------------
  |  |  214|  46.3k|#define mk_list_entry( ptr, type, member ) container_of( ptr, type, member )
  |  |  ------------------
  |  |  |  |   38|  46.3k|#define container_of(ptr, type, member) ({                      \
  |  |  |  |   39|  46.3k|      const typeof( ((type *)0)->member ) *__mptr = (ptr);      \
  |  |  |  |   40|  46.3k|      (type *)( (char *)__mptr - offsetof(type,member) );})
  |  |  ------------------
  ------------------
  330|  46.3k|        flb_sds_destroy(e->str);
  331|  46.3k|        mk_list_del(&e->_head);
  332|  46.3k|        flb_free(e);
  333|  46.3k|    }
  334|  33.2k|}

flb_unescape_string_utf8:
  128|   434k|{
  129|   434k|    uint32_t ch;
  130|   434k|    char temp[4];
  131|   434k|    const char *end;
  132|   434k|    const char *next;
  133|   434k|                int size;
  134|       |
  135|       |
  136|   434k|    int count_out = 0;
  137|   434k|    int count_in = 0;
  138|   434k|    int esc_in = 0;
  139|   434k|    int esc_out = 0;
  140|       |
  141|   434k|    end = in_buf + sz;
  142|  15.3M|    while (in_buf < end && *in_buf && count_in < sz) {
  ------------------
  |  Branch (142:12): [True: 14.9M, False: 433k]
  |  Branch (142:28): [True: 14.9M, False: 508]
  |  Branch (142:39): [True: 14.9M, False: 0]
  ------------------
  143|  14.9M|        next = in_buf + 1;
  144|  14.9M|        if (next < end && *in_buf == '\\') {
  ------------------
  |  Branch (144:13): [True: 14.9M, False: 1.39k]
  |  Branch (144:27): [True: 470k, False: 14.4M]
  ------------------
  145|   470k|            esc_in = 2;
  146|   470k|            switch (*next) {
  147|    663|            case '"':
  ------------------
  |  Branch (147:13): [True: 663, False: 469k]
  ------------------
  148|    663|                ch = '"';
  149|    663|                break;
  150|    200|            case '\'':
  ------------------
  |  Branch (150:13): [True: 200, False: 470k]
  ------------------
  151|    200|                ch = '\'';
  152|    200|                break;
  153|  1.20k|            case '\\':
  ------------------
  |  Branch (153:13): [True: 1.20k, False: 469k]
  ------------------
  154|  1.20k|                ch = '\\';
  155|  1.20k|                break;
  156|    476|            case '/':
  ------------------
  |  Branch (156:13): [True: 476, False: 470k]
  ------------------
  157|    476|                ch = '/';
  158|    476|                break;
  159|    469|            case 'n':
  ------------------
  |  Branch (159:13): [True: 469, False: 470k]
  ------------------
  160|    469|                ch = '\n';
  161|    469|                break;
  162|    301|            case 'b':
  ------------------
  |  Branch (162:13): [True: 301, False: 470k]
  ------------------
  163|    301|                ch = '\b';
  164|    301|                break;
  165|    260|            case 't':
  ------------------
  |  Branch (165:13): [True: 260, False: 470k]
  ------------------
  166|    260|                ch = '\t';
  167|    260|                break;
  168|    626|            case 'f':
  ------------------
  |  Branch (168:13): [True: 626, False: 470k]
  ------------------
  169|    626|                ch = '\f';
  170|    626|                break;
  171|    238|            case 'r':
  ------------------
  |  Branch (171:13): [True: 238, False: 470k]
  ------------------
  172|    238|                ch = '\r';
  173|    238|                break;
  174|   466k|            default:
  ------------------
  |  Branch (174:13): [True: 466k, False: 4.43k]
  ------------------
  175|   466k|                size = end - next;
  176|   466k|                if (size > 0) {
  ------------------
  |  Branch (176:21): [True: 466k, False: 0]
  ------------------
  177|   466k|                    esc_in = u8_read_escape_sequence(next, size, &ch) + 1;
  178|   466k|                }
  179|      0|                else {
  180|       |                    /* because char is unsigned char by default on arm, so we need to do a explicit conversion */
  181|      0|                    ch = (uint32_t) (signed char) *in_buf;
  182|      0|                    esc_in = 1;
  183|      0|                }
  184|   470k|            }
  185|   470k|        }
  186|  14.4M|        else {
  187|       |            /* explicit convert char to signed char */
  188|  14.4M|            ch = (uint32_t) (signed char) *in_buf;
  189|  14.4M|            esc_in = 1;
  190|  14.4M|        }
  191|       |
  192|  14.9M|        in_buf += esc_in;
  193|  14.9M|        count_in += esc_in;
  194|       |
  195|  14.9M|        esc_out = u8_wc_toutf8(temp, ch);
  196|  14.9M|        if (esc_out > sz-count_out) {
  ------------------
  |  Branch (196:13): [True: 0, False: 14.9M]
  ------------------
  197|      0|            flb_error("Crossing over string boundary");
  ------------------
  |  |  170|      0|    if (flb_log_check(FLB_LOG_ERROR))                                \
  |  |  ------------------
  |  |  |  |   40|      0|#define FLB_LOG_ERROR   1
  |  |  ------------------
  |  |  |  Branch (170:9): [True: 0, False: 0]
  |  |  ------------------
  |  |  171|      0|        flb_log_print(FLB_LOG_ERROR, NULL, 0, fmt, ##__VA_ARGS__)
  |  |  ------------------
  |  |  |  |   40|      0|#define FLB_LOG_ERROR   1
  |  |  ------------------
  ------------------
  198|      0|            break;
  199|      0|        }
  200|       |
  201|  14.9M|        if (esc_out == 0) {
  ------------------
  |  Branch (201:13): [True: 1.17M, False: 13.7M]
  ------------------
  202|  1.17M|            out_buf[count_out] = ch;
  203|  1.17M|            esc_out = 1;
  204|  1.17M|        }
  205|  13.7M|        else if (esc_out == 1) {
  ------------------
  |  Branch (205:18): [True: 13.7M, False: 15.8k]
  ------------------
  206|  13.7M|            out_buf[count_out] = (char) temp[0];
  207|  13.7M|        }
  208|  15.8k|        else {
  209|  15.8k|            memcpy(&out_buf[count_out], temp, esc_out);
  210|  15.8k|        }
  211|  14.9M|        count_out += esc_out;
  212|  14.9M|    }
  213|   434k|    if (count_in < sz) {
  ------------------
  |  Branch (213:9): [True: 508, False: 433k]
  ------------------
  214|    508|        flb_error("Not at boundary but still NULL terminating : %d - '%s'", sz, in_buf);
  ------------------
  |  |  170|    508|    if (flb_log_check(FLB_LOG_ERROR))                                \
  |  |  ------------------
  |  |  |  |   40|    508|#define FLB_LOG_ERROR   1
  |  |  ------------------
  |  |  |  Branch (170:9): [True: 508, False: 0]
  |  |  ------------------
  |  |  171|    508|        flb_log_print(FLB_LOG_ERROR, NULL, 0, fmt, ##__VA_ARGS__)
  |  |  ------------------
  |  |  |  |   40|    508|#define FLB_LOG_ERROR   1
  |  |  ------------------
  ------------------
  215|    508|    }
  216|   434k|    out_buf[count_out] = '\0';
  217|   434k|    return count_out;
  218|   434k|}
flb_unescape.c:u8_read_escape_sequence:
   70|   466k|{
   71|   466k|    uint32_t ch;
   72|   466k|    char digs[9]="\0\0\0\0\0\0\0\0";
   73|   466k|    int dno=0, i=1;
   74|       |
   75|   466k|    ch = (uint32_t)str[0];    /* take literal character */
   76|       |
   77|   466k|    if (str[0] == 'n')
  ------------------
  |  Branch (77:9): [True: 0, False: 466k]
  ------------------
   78|      0|        ch = L'\n';
   79|   466k|    else if (str[0] == 't')
  ------------------
  |  Branch (79:14): [True: 0, False: 466k]
  ------------------
   80|      0|        ch = L'\t';
   81|   466k|    else if (str[0] == 'r')
  ------------------
  |  Branch (81:14): [True: 0, False: 466k]
  ------------------
   82|      0|        ch = L'\r';
   83|   466k|    else if (str[0] == 'b')
  ------------------
  |  Branch (83:14): [True: 0, False: 466k]
  ------------------
   84|      0|        ch = L'\b';
   85|   466k|    else if (str[0] == 'f')
  ------------------
  |  Branch (85:14): [True: 0, False: 466k]
  ------------------
   86|      0|        ch = L'\f';
   87|   466k|    else if (str[0] == 'v')
  ------------------
  |  Branch (87:14): [True: 641, False: 465k]
  ------------------
   88|    641|        ch = L'\v';
   89|   465k|    else if (str[0] == 'a')
  ------------------
  |  Branch (89:14): [True: 450, False: 465k]
  ------------------
   90|    450|        ch = L'\a';
   91|   465k|    else if (octal_digit(str[0])) {
  ------------------
  |  Branch (91:14): [True: 1.67k, False: 463k]
  ------------------
   92|  1.67k|        i = 0;
   93|  2.56k|        do {
   94|  2.56k|            digs[dno++] = str[i++];
   95|  2.56k|        } while (i < size && octal_digit(str[i]) && dno < 3);
  ------------------
  |  Branch (95:18): [True: 2.32k, False: 237]
  |  Branch (95:30): [True: 949, False: 1.37k]
  |  Branch (95:53): [True: 891, False: 58]
  ------------------
   96|  1.67k|        ch = strtol(digs, NULL, 8);
   97|  1.67k|    }
   98|   463k|    else if (str[0] == 'x') {
  ------------------
  |  Branch (98:14): [True: 437k, False: 26.1k]
  ------------------
   99|   447k|        while (i < size && hex_digit(str[i]) && dno < 2) {
  ------------------
  |  Branch (99:16): [True: 17.4k, False: 430k]
  |  Branch (99:28): [True: 11.0k, False: 6.41k]
  |  Branch (99:49): [True: 10.2k, False: 746]
  ------------------
  100|  10.2k|            digs[dno++] = str[i++];
  101|  10.2k|        }
  102|   437k|        if (dno > 0) {
  ------------------
  |  Branch (102:13): [True: 5.82k, False: 431k]
  ------------------
  103|  5.82k|            ch = strtol(digs, NULL, 16);
  104|  5.82k|        }
  105|   437k|    }
  106|  26.1k|    else if (str[0] == 'u') {
  ------------------
  |  Branch (106:14): [True: 11.1k, False: 14.9k]
  ------------------
  107|  40.9k|        while (i < size && hex_digit(str[i]) && dno < 4) {
  ------------------
  |  Branch (107:16): [True: 40.3k, False: 545]
  |  Branch (107:28): [True: 33.8k, False: 6.48k]
  |  Branch (107:49): [True: 29.7k, False: 4.13k]
  ------------------
  108|  29.7k|            digs[dno++] = str[i++];
  109|  29.7k|        }
  110|  11.1k|        if (dno > 0) {
  ------------------
  |  Branch (110:13): [True: 9.90k, False: 1.25k]
  ------------------
  111|  9.90k|            ch = strtol(digs, NULL, 16);
  112|  9.90k|        }
  113|  11.1k|    }
  114|  14.9k|    else if (str[0] == 'U') {
  ------------------
  |  Branch (114:14): [True: 9.28k, False: 5.70k]
  ------------------
  115|  45.6k|        while (i < size && hex_digit(str[i]) && dno < 8) {
  ------------------
  |  Branch (115:16): [True: 44.4k, False: 1.18k]
  |  Branch (115:28): [True: 36.9k, False: 7.53k]
  |  Branch (115:49): [True: 36.4k, False: 562]
  ------------------
  116|  36.4k|            digs[dno++] = str[i++];
  117|  36.4k|        }
  118|  9.28k|        if (dno > 0) {
  ------------------
  |  Branch (118:13): [True: 7.11k, False: 2.16k]
  ------------------
  119|  7.11k|            ch = strtol(digs, NULL, 16);
  120|  7.11k|        }
  121|  9.28k|    }
  122|   466k|    *dest = ch;
  123|       |
  124|   466k|    return i;
  125|   466k|}
flb_unescape.c:octal_digit:
   29|   467k|{
   30|   467k|    return (c >= '0' && c <= '7');
  ------------------
  |  Branch (30:13): [True: 465k, False: 1.92k]
  |  Branch (30:25): [True: 2.62k, False: 462k]
  ------------------
   31|   467k|}
flb_unescape.c:hex_digit:
   34|   102k|{
   35|   102k|    return ((c >= '0' && c <= '9') ||
  ------------------
  |  Branch (35:14): [True: 98.7k, False: 3.57k]
  |  Branch (35:26): [True: 7.78k, False: 90.9k]
  ------------------
   36|   102k|            (c >= 'A' && c <= 'F') ||
  ------------------
  |  Branch (36:14): [True: 90.7k, False: 3.72k]
  |  Branch (36:26): [True: 29.5k, False: 61.2k]
  ------------------
   37|   102k|            (c >= 'a' && c <= 'f'));
  ------------------
  |  Branch (37:14): [True: 45.9k, False: 18.9k]
  |  Branch (37:26): [True: 44.4k, False: 1.49k]
  ------------------
   38|   102k|}
flb_unescape.c:u8_wc_toutf8:
   41|  14.9M|{
   42|  14.9M|    if (ch < 0x80) {
  ------------------
  |  Branch (42:9): [True: 13.7M, False: 1.19M]
  ------------------
   43|  13.7M|        dest[0] = (char)ch;
   44|  13.7M|        return 1;
   45|  13.7M|    }
   46|  1.19M|    if (ch < 0x800) {
  ------------------
  |  Branch (46:9): [True: 5.10k, False: 1.18M]
  ------------------
   47|  5.10k|        dest[0] = (ch>>6) | 0xC0;
   48|  5.10k|        dest[1] = (ch & 0x3F) | 0x80;
   49|  5.10k|        return 2;
   50|  5.10k|    }
   51|  1.18M|    if (ch < 0x10000) {
  ------------------
  |  Branch (51:9): [True: 7.18k, False: 1.17M]
  ------------------
   52|  7.18k|        dest[0] = (ch>>12) | 0xE0;
   53|  7.18k|        dest[1] = ((ch>>6) & 0x3F) | 0x80;
   54|  7.18k|        dest[2] = (ch & 0x3F) | 0x80;
   55|  7.18k|        return 3;
   56|  7.18k|    }
   57|  1.17M|    if (ch < 0x110000) {
  ------------------
  |  Branch (57:9): [True: 3.55k, False: 1.17M]
  ------------------
   58|  3.55k|        dest[0] = (ch>>18) | 0xF0;
   59|  3.55k|        dest[1] = ((ch>>12) & 0x3F) | 0x80;
   60|  3.55k|        dest[2] = ((ch>>6) & 0x3F) | 0x80;
   61|  3.55k|        dest[3] = (ch & 0x3F) | 0x80;
   62|  3.55k|        return 4;
   63|  3.55k|    }
   64|  1.17M|    return 0;
   65|  1.17M|}

flb_worker_init:
  112|  1.34k|{
  113|  1.34k|    FLB_TLS_INIT(flb_worker_ctx);
  ------------------
  |  |   35|  1.34k|#define FLB_TLS_INIT(key)          do {} while (0)
  |  |  ------------------
  |  |  |  Branch (35:49): [Folded - Ignored]
  |  |  ------------------
  ------------------
  114|       |
  115|  1.34k|    return 0;
  116|  1.34k|}
flb_worker_get:
  135|    989|{
  136|    989|    return FLB_TLS_GET(flb_worker_ctx);
  ------------------
  |  |   34|    989|#define FLB_TLS_GET(key)           key
  ------------------
  137|    989|}
flb_worker_exit:
  156|  1.49k|{
  157|  1.49k|    int c = 0;
  158|  1.49k|    struct mk_list *tmp;
  159|  1.49k|    struct mk_list *head;
  160|  1.49k|    struct flb_worker *worker;
  161|       |
  162|  1.49k|    mk_list_foreach_safe(head, tmp, &config->workers) {
  ------------------
  |  |  207|  1.49k|    for (curr = (head)->next, n = curr->next; curr != (head); curr = n, n = curr->next)
  |  |  ------------------
  |  |  |  Branch (207:47): [True: 0, False: 1.49k]
  |  |  ------------------
  ------------------
  163|      0|        worker = mk_list_entry(head, struct flb_worker, _head);
  ------------------
  |  |  214|      0|#define mk_list_entry( ptr, type, member ) container_of( ptr, type, member )
  |  |  ------------------
  |  |  |  |   38|      0|#define container_of(ptr, type, member) ({                      \
  |  |  |  |   39|      0|      const typeof( ((type *)0)->member ) *__mptr = (ptr);      \
  |  |  |  |   40|      0|      (type *)( (char *)__mptr - offsetof(type,member) );})
  |  |  ------------------
  ------------------
  164|      0|        flb_worker_destroy(worker);
  165|      0|        c++;
  166|      0|    }
  167|       |
  168|  1.49k|    return c;
  169|  1.49k|}

flb_ml_init:
 1548|  1.48k|{
 1549|  1.48k|    int ret;
 1550|       |
 1551|  1.48k|    ret = flb_ml_parser_builtin_create(config);
 1552|  1.48k|    if (ret == -1) {
  ------------------
  |  Branch (1552:9): [True: 64, False: 1.42k]
  ------------------
 1553|     64|        return -1;
 1554|     64|    }
 1555|       |
 1556|  1.42k|    return 0;
 1557|  1.48k|}
flb_ml_exit:
 1560|  1.49k|{
 1561|  1.49k|    flb_ml_parser_destroy_all(&config->multiline_parsers);
 1562|  1.49k|    return 0;
 1563|  1.49k|}

flb_ml_parser_init:
   28|  5.74k|{
   29|  5.74k|    int ret;
   30|       |
   31|  5.74k|    ret = flb_ml_rule_init(ml_parser);
   32|  5.74k|    if (ret == -1) {
  ------------------
  |  Branch (32:9): [True: 15, False: 5.73k]
  ------------------
   33|     15|        return -1;
   34|     15|    }
   35|       |
   36|  5.73k|    return 0;
   37|  5.74k|}
flb_ml_parser_builtin_create:
   41|  1.48k|{
   42|  1.48k|    struct flb_ml_parser *mlp;
   43|       |
   44|       |    /* Docker */
   45|  1.48k|    mlp = flb_ml_parser_docker(config);
   46|  1.48k|    if (!mlp) {
  ------------------
  |  Branch (46:9): [True: 7, False: 1.47k]
  ------------------
   47|      7|        flb_error("[multiline] could not init 'docker' built-in parser");
  ------------------
  |  |  170|      7|    if (flb_log_check(FLB_LOG_ERROR))                                \
  |  |  ------------------
  |  |  |  |   40|      7|#define FLB_LOG_ERROR   1
  |  |  ------------------
  |  |  |  Branch (170:9): [True: 7, False: 0]
  |  |  ------------------
  |  |  171|      7|        flb_log_print(FLB_LOG_ERROR, NULL, 0, fmt, ##__VA_ARGS__)
  |  |  ------------------
  |  |  |  |   40|      7|#define FLB_LOG_ERROR   1
  |  |  ------------------
  ------------------
   48|      7|        return -1;
   49|      7|    }
   50|       |
   51|       |    /* CRI */
   52|  1.47k|    mlp = flb_ml_parser_cri(config);
   53|  1.47k|    if (!mlp) {
  ------------------
  |  Branch (53:9): [True: 6, False: 1.47k]
  ------------------
   54|      6|        flb_error("[multiline] could not init 'cri' built-in parser");
  ------------------
  |  |  170|      6|    if (flb_log_check(FLB_LOG_ERROR))                                \
  |  |  ------------------
  |  |  |  |   40|      6|#define FLB_LOG_ERROR   1
  |  |  ------------------
  |  |  |  Branch (170:9): [True: 6, False: 0]
  |  |  ------------------
  |  |  171|      6|        flb_log_print(FLB_LOG_ERROR, NULL, 0, fmt, ##__VA_ARGS__)
  |  |  ------------------
  |  |  |  |   40|      6|#define FLB_LOG_ERROR   1
  |  |  ------------------
  ------------------
   55|      6|        return -1;
   56|      6|    }
   57|       |
   58|       |    /* Java */
   59|  1.47k|    mlp = flb_ml_parser_java(config, NULL);
   60|  1.47k|    if (!mlp) {
  ------------------
  |  Branch (60:9): [True: 28, False: 1.44k]
  ------------------
   61|     28|        flb_error("[multiline] could not init 'java' built-in parser");
  ------------------
  |  |  170|     28|    if (flb_log_check(FLB_LOG_ERROR))                                \
  |  |  ------------------
  |  |  |  |   40|     28|#define FLB_LOG_ERROR   1
  |  |  ------------------
  |  |  |  Branch (170:9): [True: 28, False: 0]
  |  |  ------------------
  |  |  171|     28|        flb_log_print(FLB_LOG_ERROR, NULL, 0, fmt, ##__VA_ARGS__)
  |  |  ------------------
  |  |  |  |   40|     28|#define FLB_LOG_ERROR   1
  |  |  ------------------
  ------------------
   62|     28|        return -1;
   63|     28|    }
   64|       |
   65|       |    /* Go */
   66|  1.44k|    mlp = flb_ml_parser_go(config, NULL);
   67|  1.44k|    if (!mlp) {
  ------------------
  |  Branch (67:9): [True: 11, False: 1.43k]
  ------------------
   68|     11|        flb_error("[multiline] could not init 'go' built-in parser");
  ------------------
  |  |  170|     11|    if (flb_log_check(FLB_LOG_ERROR))                                \
  |  |  ------------------
  |  |  |  |   40|     11|#define FLB_LOG_ERROR   1
  |  |  ------------------
  |  |  |  Branch (170:9): [True: 11, False: 0]
  |  |  ------------------
  |  |  171|     11|        flb_log_print(FLB_LOG_ERROR, NULL, 0, fmt, ##__VA_ARGS__)
  |  |  ------------------
  |  |  |  |   40|     11|#define FLB_LOG_ERROR   1
  |  |  ------------------
  ------------------
   69|     11|        return -1;
   70|     11|    }
   71|       |
   72|       |    /* Ruby */
   73|  1.43k|    mlp = flb_ml_parser_ruby(config, NULL);
   74|  1.43k|    if (!mlp) {
  ------------------
  |  Branch (74:9): [True: 5, False: 1.42k]
  ------------------
   75|      5|        flb_error("[multiline] could not init 'ruby' built-in parser");
  ------------------
  |  |  170|      5|    if (flb_log_check(FLB_LOG_ERROR))                                \
  |  |  ------------------
  |  |  |  |   40|      5|#define FLB_LOG_ERROR   1
  |  |  ------------------
  |  |  |  Branch (170:9): [True: 5, False: 0]
  |  |  ------------------
  |  |  171|      5|        flb_log_print(FLB_LOG_ERROR, NULL, 0, fmt, ##__VA_ARGS__)
  |  |  ------------------
  |  |  |  |   40|      5|#define FLB_LOG_ERROR   1
  |  |  ------------------
  ------------------
   76|      5|        return -1;
   77|      5|    }
   78|       |
   79|       |    /* Python */
   80|  1.42k|    mlp = flb_ml_parser_python(config, NULL);
   81|  1.42k|    if (!mlp) {
  ------------------
  |  Branch (81:9): [True: 7, False: 1.42k]
  ------------------
   82|      7|        flb_error("[multiline] could not init 'python' built-in parser");
  ------------------
  |  |  170|      7|    if (flb_log_check(FLB_LOG_ERROR))                                \
  |  |  ------------------
  |  |  |  |   40|      7|#define FLB_LOG_ERROR   1
  |  |  ------------------
  |  |  |  Branch (170:9): [True: 7, False: 0]
  |  |  ------------------
  |  |  171|      7|        flb_log_print(FLB_LOG_ERROR, NULL, 0, fmt, ##__VA_ARGS__)
  |  |  ------------------
  |  |  |  |   40|      7|#define FLB_LOG_ERROR   1
  |  |  ------------------
  ------------------
   83|      7|        return -1;
   84|      7|    }
   85|       |
   86|  1.42k|    return 0;
   87|  1.42k|}
flb_ml_parser_create:
   98|  8.74k|{
   99|  8.74k|    struct flb_ml_parser *ml_parser;
  100|       |
  101|  8.74k|    ml_parser = flb_calloc(1, sizeof(struct flb_ml_parser));
  102|  8.74k|    if (!ml_parser) {
  ------------------
  |  Branch (102:9): [True: 4, False: 8.73k]
  ------------------
  103|      4|        flb_errno();
  ------------------
  |  |  232|      4|#define flb_errno() flb_errno_print(errno, __FLB_FILENAME__, __LINE__)
  ------------------
  104|      4|        return NULL;
  105|      4|    }
  106|  8.73k|    ml_parser->name = flb_sds_create(name);
  107|  8.73k|    ml_parser->type = type;
  108|       |
  109|  8.73k|    if (match_str) {
  ------------------
  |  Branch (109:9): [True: 2.95k, False: 5.77k]
  ------------------
  110|  2.95k|        ml_parser->match_str = flb_sds_create(match_str);
  111|  2.95k|        if (!ml_parser->match_str) {
  ------------------
  |  Branch (111:13): [True: 2, False: 2.95k]
  ------------------
  112|      2|            if (ml_parser->name) {
  ------------------
  |  Branch (112:17): [True: 2, False: 0]
  ------------------
  113|      2|                flb_sds_destroy(ml_parser->name);
  114|      2|            }
  115|      2|            flb_free(ml_parser);
  116|      2|            return NULL;
  117|      2|        }
  118|  2.95k|    }
  119|       |
  120|  8.73k|    ml_parser->parser = parser_ctx;
  121|       |
  122|  8.73k|    if (parser_name) {
  ------------------
  |  Branch (122:9): [True: 0, False: 8.73k]
  ------------------
  123|      0|        ml_parser->parser_name = flb_sds_create(parser_name);
  124|      0|    }
  125|  8.73k|    ml_parser->negate = negate;
  126|  8.73k|    ml_parser->flush_ms = flush_ms;
  127|  8.73k|    mk_list_init(&ml_parser->regex_rules);
  128|  8.73k|    mk_list_add(&ml_parser->_head, &ctx->multiline_parsers);
  129|       |
  130|  8.73k|    if (key_content) {
  ------------------
  |  Branch (130:9): [True: 2.95k, False: 5.77k]
  ------------------
  131|  2.95k|        ml_parser->key_content = flb_sds_create(key_content);
  132|  2.95k|        if (!ml_parser->key_content) {
  ------------------
  |  Branch (132:13): [True: 3, False: 2.95k]
  ------------------
  133|      3|            flb_ml_parser_destroy(ml_parser);
  134|      3|            return NULL;
  135|      3|        }
  136|  2.95k|    }
  137|       |
  138|  8.73k|    if (key_group) {
  ------------------
  |  Branch (138:9): [True: 2.95k, False: 5.77k]
  ------------------
  139|  2.95k|        ml_parser->key_group = flb_sds_create(key_group);
  140|  2.95k|        if (!ml_parser->key_group) {
  ------------------
  |  Branch (140:13): [True: 1, False: 2.95k]
  ------------------
  141|      1|            flb_ml_parser_destroy(ml_parser);
  142|      1|            return NULL;
  143|      1|        }
  144|  2.95k|    }
  145|       |
  146|  8.73k|    if (key_pattern) {
  ------------------
  |  Branch (146:9): [True: 1.47k, False: 7.25k]
  ------------------
  147|  1.47k|        ml_parser->key_pattern = flb_sds_create(key_pattern);
  148|  1.47k|        if (!ml_parser->key_pattern) {
  ------------------
  |  Branch (148:13): [True: 1, False: 1.47k]
  ------------------
  149|      1|            flb_ml_parser_destroy(ml_parser);
  150|      1|            return NULL;
  151|      1|        }
  152|  1.47k|    }
  153|       |
  154|  8.72k|    return ml_parser;
  155|  8.73k|}
flb_ml_parser_destroy:
  274|  8.73k|{
  275|  8.73k|    if (!ml_parser) {
  ------------------
  |  Branch (275:9): [True: 0, False: 8.73k]
  ------------------
  276|      0|        return 0;
  277|      0|    }
  278|       |
  279|  8.73k|    if (ml_parser->name) {
  ------------------
  |  Branch (279:9): [True: 8.72k, False: 9]
  ------------------
  280|  8.72k|        flb_sds_destroy(ml_parser->name);
  281|  8.72k|    }
  282|       |
  283|  8.73k|    if (ml_parser->parser_name) {
  ------------------
  |  Branch (283:9): [True: 0, False: 8.73k]
  ------------------
  284|      0|        flb_sds_destroy(ml_parser->parser_name);
  285|      0|    }
  286|       |
  287|  8.73k|    if (ml_parser->match_str) {
  ------------------
  |  Branch (287:9): [True: 2.95k, False: 5.77k]
  ------------------
  288|  2.95k|        flb_sds_destroy(ml_parser->match_str);
  289|  2.95k|    }
  290|  8.73k|    if (ml_parser->key_content) {
  ------------------
  |  Branch (290:9): [True: 2.95k, False: 5.78k]
  ------------------
  291|  2.95k|        flb_sds_destroy(ml_parser->key_content);
  292|  2.95k|    }
  293|  8.73k|    if (ml_parser->key_group) {
  ------------------
  |  Branch (293:9): [True: 2.95k, False: 5.78k]
  ------------------
  294|  2.95k|        flb_sds_destroy(ml_parser->key_group);
  295|  2.95k|    }
  296|  8.73k|    if (ml_parser->key_pattern) {
  ------------------
  |  Branch (296:9): [True: 1.47k, False: 7.26k]
  ------------------
  297|  1.47k|        flb_sds_destroy(ml_parser->key_pattern);
  298|  1.47k|    }
  299|       |
  300|       |    /* Regex rules */
  301|  8.73k|    flb_ml_rule_destroy_all(ml_parser);
  302|       |
  303|       |    /* Unlink from struct flb_config->multiline_parsers */
  304|  8.73k|    mk_list_del(&ml_parser->_head);
  305|       |
  306|  8.73k|    flb_free(ml_parser);
  307|  8.73k|    return 0;
  308|  8.73k|}
flb_ml_parser_destroy_all:
  338|  1.49k|{
  339|  1.49k|    struct mk_list *tmp;
  340|  1.49k|    struct mk_list *head;
  341|  1.49k|    struct flb_ml_parser *parser;
  342|       |
  343|  8.68k|    mk_list_foreach_safe(head, tmp, list) {
  ------------------
  |  |  207|  10.1k|    for (curr = (head)->next, n = curr->next; curr != (head); curr = n, n = curr->next)
  |  |  ------------------
  |  |  |  Branch (207:47): [True: 8.68k, False: 1.49k]
  |  |  ------------------
  ------------------
  344|  8.68k|        parser = mk_list_entry(head, struct flb_ml_parser, _head);
  ------------------
  |  |  214|  8.68k|#define mk_list_entry( ptr, type, member ) container_of( ptr, type, member )
  |  |  ------------------
  |  |  |  |   38|  8.68k|#define container_of(ptr, type, member) ({                      \
  |  |  |  |   39|  8.68k|      const typeof( ((type *)0)->member ) *__mptr = (ptr);      \
  |  |  |  |   40|  8.68k|      (type *)( (char *)__mptr - offsetof(type,member) );})
  |  |  ------------------
  ------------------
  345|  8.68k|        flb_ml_parser_destroy(parser);
  346|  8.68k|    }
  347|  1.49k|}

flb_ml_parser_cri:
   54|  1.47k|{
   55|  1.47k|    struct flb_parser *parser;
   56|  1.47k|    struct flb_ml_parser *mlp;
   57|       |
   58|       |    /* Create a Docker parser */
   59|  1.47k|    parser = cri_parser_create(config);
   60|  1.47k|    if (!parser) {
  ------------------
  |  Branch (60:9): [True: 2, False: 1.47k]
  ------------------
   61|      2|        return NULL;
   62|      2|    }
   63|       |
   64|  1.47k|    mlp = flb_ml_parser_create(config,
   65|  1.47k|                               "cri",                /* name      */
   66|  1.47k|                               FLB_ML_EQ,            /* type      */
  ------------------
  |  |   37|  1.47k|#define FLB_ML_EQ        3    /* record key/content equaks 'abc'    */
  ------------------
   67|  1.47k|                               "F",                  /* match_str */
   68|  1.47k|                               FLB_FALSE,            /* negate    */
  ------------------
  |  |   25|  1.47k|#define FLB_FALSE  0
  ------------------
   69|  1.47k|                               FLB_ML_FLUSH_TIMEOUT, /* flush_ms  */
  ------------------
  |  |   50|  1.47k|#define FLB_ML_FLUSH_TIMEOUT    4000 /* Flush timeout default (milliseconds) */
  ------------------
   70|  1.47k|                               "log",                /* key_content */
   71|  1.47k|                               "stream",             /* key_group   */
   72|  1.47k|                               "_p",                 /* key_pattern */
   73|  1.47k|                               parser,               /* parser ctx  */
   74|  1.47k|                               NULL);                /* parser name */
   75|       |
   76|  1.47k|    if (!mlp) {
  ------------------
  |  Branch (76:9): [True: 4, False: 1.47k]
  ------------------
   77|      4|        flb_error("[multiline] could not create 'cri mode'");
  ------------------
  |  |  170|      4|    if (flb_log_check(FLB_LOG_ERROR))                                \
  |  |  ------------------
  |  |  |  |   40|      4|#define FLB_LOG_ERROR   1
  |  |  ------------------
  |  |  |  Branch (170:9): [True: 4, False: 0]
  |  |  ------------------
  |  |  171|      4|        flb_log_print(FLB_LOG_ERROR, NULL, 0, fmt, ##__VA_ARGS__)
  |  |  ------------------
  |  |  |  |   40|      4|#define FLB_LOG_ERROR   1
  |  |  ------------------
  ------------------
   78|      4|        return NULL;
   79|      4|    }
   80|       |
   81|  1.47k|    return mlp;
   82|  1.47k|}
flb_ml_parser_cri.c:cri_parser_create:
   31|  1.47k|{
   32|  1.47k|    struct flb_parser *p;
   33|       |
   34|  1.47k|    p = flb_parser_create("_ml_cri",               /* parser name */
   35|  1.47k|                          "regex",                 /* backend type */
   36|  1.47k|                          FLB_ML_CRI_REGEX,        /* regex */
  ------------------
  |  |   25|  1.47k|  "^(?<time>.+?) (?<stream>stdout|stderr) (?<_p>F|P) (?<log>.*)$"
  ------------------
   37|  1.47k|                          FLB_FALSE,               /* skip_empty */
  ------------------
  |  |   25|  1.47k|#define FLB_FALSE  0
  ------------------
   38|  1.47k|                          FLB_ML_CRI_TIME,         /* time format */
  ------------------
  |  |   27|  1.47k|  "%Y-%m-%dT%H:%M:%S.%L%z"
  ------------------
   39|  1.47k|                          "time",                  /* time key */
   40|  1.47k|                          NULL,                    /* time offset */
   41|  1.47k|                          FLB_TRUE,                /* time keep */
  ------------------
  |  |   26|  1.47k|#define FLB_TRUE   !FLB_FALSE
  |  |  ------------------
  |  |  |  |   25|  1.47k|#define FLB_FALSE  0
  |  |  ------------------
  ------------------
   42|  1.47k|                          FLB_FALSE,               /* time strict */
  ------------------
  |  |   25|  1.47k|#define FLB_FALSE  0
  ------------------
   43|  1.47k|                          FLB_FALSE,               /* time system timezone */
  ------------------
  |  |   25|  1.47k|#define FLB_FALSE  0
  ------------------
   44|  1.47k|                          FLB_FALSE,               /* no bare keys */
  ------------------
  |  |   25|  1.47k|#define FLB_FALSE  0
  ------------------
   45|  1.47k|                          NULL,                    /* parser types */
   46|  1.47k|                          0,                       /* types len */
   47|  1.47k|                          NULL,                    /* decoders */
   48|  1.47k|                          config);                 /* Fluent Bit context */
   49|  1.47k|    return p;
   50|  1.47k|}

flb_ml_parser_docker:
   49|  1.48k|{
   50|  1.48k|    struct flb_parser *parser;
   51|  1.48k|    struct flb_ml_parser *mlp;
   52|       |
   53|       |    /* Create a Docker parser */
   54|  1.48k|    parser = docker_parser_create(config);
   55|  1.48k|    if (!parser) {
  ------------------
  |  Branch (55:9): [True: 4, False: 1.48k]
  ------------------
   56|      4|        return NULL;
   57|      4|    }
   58|       |
   59|       |    /*
   60|       |     * Let's explain this multiline mode, then you (the reader) might want
   61|       |     * to submit a PR with new built-in modes :)
   62|       |     *
   63|       |     * Containerized apps under Docker writes logs to stdout/stderr. These streams
   64|       |     * (stdout/stderr) are handled by Docker, in most of cases the content is
   65|       |     * stored in a .json file in your file system. A message like "hey!" gets into
   66|       |     * a JSON map like this:
   67|       |     *
   68|       |     * {"log": "hey!\n", "stream": "stdout", "time": "2021-02-01T01:40:03.53412Z"}
   69|       |     *
   70|       |     * By Docker log spec, any 'log' key that "ends with a \n" it's a complete
   71|       |     * log record, but Docker also limits the log record size to 16KB, so a long
   72|       |     * message that does not fit into 16KB can be split in multiple JSON lines,
   73|       |     * the following example use short words to describe the context:
   74|       |     *
   75|       |     * - original message: 'one, two, three\n'
   76|       |     *
   77|       |     * Docker log interpretation:
   78|       |     *
   79|       |     * - {"log": "one, ", "stream": "stdout", "time": "2021-02-01T01:40:03.53413Z"}
   80|       |     * - {"log": "two, ", "stream": "stdout", "time": "2021-02-01T01:40:03.53414Z"}
   81|       |     * - {"log": "three\n", "stream": "stdout", "time": "2021-02-01T01:40:03.53415Z"}
   82|       |     *
   83|       |     * So every 'log' key that does not ends with '\n', it's a partial log record
   84|       |     * and for logging purposes it needs to be concatenated with further messages
   85|       |     * until a final '\n' is found.
   86|       |     *
   87|       |     * We setup the Multiline mode as follows:
   88|       |     *
   89|       |     * - Use the type 'FLB_ML_ENDSWITH' to specify that we expect the 'log'
   90|       |     *   key must ends with a '\n' for complete messages, otherwise it means is
   91|       |     *   a continuation message. In case a message is not complete just wait until
   92|       |     *   500 milliseconds (0.5 second) and flush the buffer.
   93|       |     */
   94|  1.48k|    mlp = flb_ml_parser_create(config,                  /* Fluent Bit context */
   95|  1.48k|                               "docker",                /* name           */
   96|  1.48k|                               FLB_ML_ENDSWITH,         /* type           */
  ------------------
  |  |   36|  1.48k|#define FLB_ML_ENDSWITH  2    /* record key/content ends with 'abc' */
  ------------------
   97|  1.48k|                               "\n",                    /* match_str      */
   98|  1.48k|                               FLB_FALSE,               /* negate         */
  ------------------
  |  |   25|  1.48k|#define FLB_FALSE  0
  ------------------
   99|  1.48k|                               FLB_ML_FLUSH_TIMEOUT,    /* flush_ms  */
  ------------------
  |  |   50|  1.48k|#define FLB_ML_FLUSH_TIMEOUT    4000 /* Flush timeout default (milliseconds) */
  ------------------
  100|  1.48k|                               "log",                   /* key_content    */
  101|  1.48k|                               "stream",                /* key_group      */
  102|  1.48k|                               NULL,                    /* key_pattern    */
  103|  1.48k|                               parser,                  /* parser ctx     */
  104|  1.48k|                               NULL);                   /* parser name    */
  105|  1.48k|    if (!mlp) {
  ------------------
  |  Branch (105:9): [True: 3, False: 1.47k]
  ------------------
  106|      3|        flb_error("[multiline] could not create 'docker mode'");
  ------------------
  |  |  170|      3|    if (flb_log_check(FLB_LOG_ERROR))                                \
  |  |  ------------------
  |  |  |  |   40|      3|#define FLB_LOG_ERROR   1
  |  |  ------------------
  |  |  |  Branch (170:9): [True: 3, False: 0]
  |  |  ------------------
  |  |  171|      3|        flb_log_print(FLB_LOG_ERROR, NULL, 0, fmt, ##__VA_ARGS__)
  |  |  ------------------
  |  |  |  |   40|      3|#define FLB_LOG_ERROR   1
  |  |  ------------------
  ------------------
  107|      3|        return NULL;
  108|      3|    }
  109|       |
  110|  1.47k|    return mlp;
  111|  1.48k|}
flb_ml_parser_docker.c:docker_parser_create:
   26|  1.48k|{
   27|  1.48k|    struct flb_parser *p;
   28|       |
   29|  1.48k|    p = flb_parser_create("_ml_json_docker",      /* parser name */
   30|  1.48k|                          "json",                 /* backend type */
   31|  1.48k|                          NULL,                   /* regex */
   32|  1.48k|                          FLB_TRUE,               /* skip_empty */
  ------------------
  |  |   26|  1.48k|#define FLB_TRUE   !FLB_FALSE
  |  |  ------------------
  |  |  |  |   25|  1.48k|#define FLB_FALSE  0
  |  |  ------------------
  ------------------
   33|  1.48k|                          "%Y-%m-%dT%H:%M:%S.%L", /* time format */
   34|  1.48k|                          "time",                 /* time key */
   35|  1.48k|                          NULL,                   /* time offset */
   36|  1.48k|                          FLB_TRUE,               /* time keep */
  ------------------
  |  |   26|  1.48k|#define FLB_TRUE   !FLB_FALSE
  |  |  ------------------
  |  |  |  |   25|  1.48k|#define FLB_FALSE  0
  |  |  ------------------
  ------------------
   37|  1.48k|                          FLB_FALSE,              /* time strict */
  ------------------
  |  |   25|  1.48k|#define FLB_FALSE  0
  ------------------
   38|  1.48k|                          FLB_FALSE,              /* time system timezone */
  ------------------
  |  |   25|  1.48k|#define FLB_FALSE  0
  ------------------
   39|  1.48k|                          FLB_FALSE,              /* no bare keys */
  ------------------
  |  |   25|  1.48k|#define FLB_FALSE  0
  ------------------
   40|  1.48k|                          NULL,                   /* parser types */
   41|  1.48k|                          0,                      /* types len */
   42|  1.48k|                          NULL,                   /* decoders */
   43|  1.48k|                          config);                /* Fluent Bit context */
   44|  1.48k|    return p;
   45|  1.48k|}

flb_ml_parser_go:
   38|  1.44k|{
   39|  1.44k|    int ret;
   40|  1.44k|    struct flb_ml_parser *mlp;
   41|       |
   42|  1.44k|    mlp = flb_ml_parser_create(config,               /* Fluent Bit context */
   43|  1.44k|                               "go",                 /* name      */
   44|  1.44k|                               FLB_ML_REGEX,         /* type      */
  ------------------
  |  |   35|  1.44k|#define FLB_ML_REGEX     1    /* pattern is a regular expression    */
  ------------------
   45|  1.44k|                               NULL,                 /* match_str */
   46|  1.44k|                               FLB_FALSE,            /* negate    */
  ------------------
  |  |   25|  1.44k|#define FLB_FALSE  0
  ------------------
   47|  1.44k|                               FLB_ML_FLUSH_TIMEOUT, /* flush_ms  */
  ------------------
  |  |   50|  1.44k|#define FLB_ML_FLUSH_TIMEOUT    4000 /* Flush timeout default (milliseconds) */
  ------------------
   48|  1.44k|                               key,                  /* key_content */
   49|  1.44k|                               NULL,                 /* key_group   */
   50|  1.44k|                               NULL,                 /* key_pattern */
   51|  1.44k|                               NULL,                 /* parser ctx  */
   52|  1.44k|                               NULL);                /* parser name */
   53|       |
   54|  1.44k|    if (!mlp) {
  ------------------
  |  Branch (54:9): [True: 1, False: 1.44k]
  ------------------
   55|      1|        flb_error("[multiline] could not create 'go mode'");
  ------------------
  |  |  170|      1|    if (flb_log_check(FLB_LOG_ERROR))                                \
  |  |  ------------------
  |  |  |  |   40|      1|#define FLB_LOG_ERROR   1
  |  |  ------------------
  |  |  |  Branch (170:9): [True: 1, False: 0]
  |  |  ------------------
  |  |  171|      1|        flb_log_print(FLB_LOG_ERROR, NULL, 0, fmt, ##__VA_ARGS__)
  |  |  ------------------
  |  |  |  |   40|      1|#define FLB_LOG_ERROR   1
  |  |  ------------------
  ------------------
   56|      1|        return NULL;
   57|      1|    }
   58|       |
   59|  1.44k|    ret = rule(mlp,
  ------------------
  |  |   25|  1.44k|#define rule flb_ml_rule_create
  ------------------
   60|  1.44k|               "start_state",
   61|  1.44k|               "/\\bpanic: /",
   62|  1.44k|               "go_after_panic", NULL);
   63|  1.44k|    if (ret != 0) {
  ------------------
  |  Branch (63:9): [True: 1, False: 1.44k]
  ------------------
   64|      1|        rule_error(mlp);
   65|      1|        return NULL;
   66|      1|    }
   67|       |
   68|  1.44k|    ret = rule(mlp,
  ------------------
  |  |   25|  1.44k|#define rule flb_ml_rule_create
  ------------------
   69|  1.44k|               "start_state",
   70|  1.44k|               "/http: panic serving/",
   71|  1.44k|               "go_goroutine", NULL);
   72|  1.44k|    if (ret != 0) {
  ------------------
  |  Branch (72:9): [True: 1, False: 1.44k]
  ------------------
   73|      1|        rule_error(mlp);
   74|      1|        return NULL;
   75|      1|    }
   76|       |
   77|  1.44k|    ret = rule(mlp,
  ------------------
  |  |   25|  1.44k|#define rule flb_ml_rule_create
  ------------------
   78|  1.44k|               "go_after_panic",
   79|  1.44k|               "/^$/",
   80|  1.44k|               "go_goroutine", NULL);
   81|  1.44k|    if (ret != 0) {
  ------------------
  |  Branch (81:9): [True: 1, False: 1.44k]
  ------------------
   82|      1|        rule_error(mlp);
   83|      1|        return NULL;
   84|      1|    }
   85|       |
   86|  1.44k|    ret = rule(mlp,
  ------------------
  |  |   25|  1.44k|#define rule flb_ml_rule_create
  ------------------
   87|  1.44k|               "go_after_panic, go_after_signal, go_frame_1",
   88|  1.44k|               "/^$/",
   89|  1.44k|               "go_goroutine", NULL);
   90|  1.44k|    if (ret != 0) {
  ------------------
  |  Branch (90:9): [True: 1, False: 1.44k]
  ------------------
   91|      1|        rule_error(mlp);
   92|      1|        return NULL;
   93|      1|    }
   94|       |
   95|  1.44k|    ret = rule(mlp,
  ------------------
  |  |   25|  1.44k|#define rule flb_ml_rule_create
  ------------------
   96|  1.44k|               "go_after_panic",
   97|  1.44k|               "/^\\[signal /",
   98|  1.44k|               "go_after_signal", NULL);
   99|  1.44k|    if (ret != 0) {
  ------------------
  |  Branch (99:9): [True: 1, False: 1.43k]
  ------------------
  100|      1|        rule_error(mlp);
  101|      1|        return NULL;
  102|      1|    }
  103|       |
  104|  1.43k|    ret = rule(mlp,
  ------------------
  |  |   25|  1.43k|#define rule flb_ml_rule_create
  ------------------
  105|  1.43k|               "go_goroutine",
  106|  1.43k|               "/^goroutine \\d+ \\[[^\\]]+\\]:$/",
  107|  1.43k|               "go_frame_1", NULL);
  108|  1.43k|    if (ret != 0) {
  ------------------
  |  Branch (108:9): [True: 2, False: 1.43k]
  ------------------
  109|      2|        rule_error(mlp);
  110|      2|        return NULL;
  111|      2|    }
  112|       |
  113|  1.43k|    ret = rule(mlp,
  ------------------
  |  |   25|  1.43k|#define rule flb_ml_rule_create
  ------------------
  114|  1.43k|               "go_frame_1",
  115|  1.43k|               "/^(?:[^\\s.:]+\\.)*[^\\s.():]+\\(|^created by /",
  116|  1.43k|               "go_frame_2", NULL);
  117|  1.43k|    if (ret != 0) {
  ------------------
  |  Branch (117:9): [True: 1, False: 1.43k]
  ------------------
  118|      1|        rule_error(mlp);
  119|      1|        return NULL;
  120|      1|    }
  121|       |
  122|  1.43k|    ret = rule(mlp,
  ------------------
  |  |   25|  1.43k|#define rule flb_ml_rule_create
  ------------------
  123|  1.43k|               "go_frame_2",
  124|  1.43k|               "/^\\s/",
  125|  1.43k|               "go_frame_1", NULL);
  126|  1.43k|    if (ret != 0) {
  ------------------
  |  Branch (126:9): [True: 1, False: 1.43k]
  ------------------
  127|      1|        rule_error(mlp);
  128|      1|        return NULL;
  129|      1|    }
  130|       |
  131|       |    /* Map the rules (mandatory for regex rules) */
  132|  1.43k|    ret = flb_ml_parser_init(mlp);
  133|  1.43k|    if (ret != 0) {
  ------------------
  |  Branch (133:9): [True: 1, False: 1.43k]
  ------------------
  134|      1|        flb_error("[multiline: go] error on mapping rules");
  ------------------
  |  |  170|      1|    if (flb_log_check(FLB_LOG_ERROR))                                \
  |  |  ------------------
  |  |  |  |   40|      1|#define FLB_LOG_ERROR   1
  |  |  ------------------
  |  |  |  Branch (170:9): [True: 1, False: 0]
  |  |  ------------------
  |  |  171|      1|        flb_log_print(FLB_LOG_ERROR, NULL, 0, fmt, ##__VA_ARGS__)
  |  |  ------------------
  |  |  |  |   40|      1|#define FLB_LOG_ERROR   1
  |  |  ------------------
  ------------------
  135|      1|        flb_ml_parser_destroy(mlp);
  136|      1|        return NULL;
  137|      1|    }
  138|       |
  139|  1.43k|    return mlp;
  140|  1.43k|}
flb_ml_parser_go.c:rule_error:
   28|      9|{
   29|      9|    int id;
   30|       |
   31|      9|    id = mk_list_size(&mlp->regex_rules);
   32|      9|    flb_error("[multiline: go] rule #%i could not be created", id);
  ------------------
  |  |  170|      9|    if (flb_log_check(FLB_LOG_ERROR))                                \
  |  |  ------------------
  |  |  |  |   40|      9|#define FLB_LOG_ERROR   1
  |  |  ------------------
  |  |  |  Branch (170:9): [True: 9, False: 0]
  |  |  ------------------
  |  |  171|      9|        flb_log_print(FLB_LOG_ERROR, NULL, 0, fmt, ##__VA_ARGS__)
  |  |  ------------------
  |  |  |  |   40|      9|#define FLB_LOG_ERROR   1
  |  |  ------------------
  ------------------
   33|      9|    flb_ml_parser_destroy(mlp);
   34|      9|}

flb_ml_parser_java:
   38|  1.47k|{
   39|  1.47k|    int ret;
   40|  1.47k|    struct flb_ml_parser *mlp;
   41|       |
   42|  1.47k|    mlp = flb_ml_parser_create(config,               /* Fluent Bit context */
   43|  1.47k|                               "java",               /* name      */
   44|  1.47k|                               FLB_ML_REGEX,         /* type      */
  ------------------
  |  |   35|  1.47k|#define FLB_ML_REGEX     1    /* pattern is a regular expression    */
  ------------------
   45|  1.47k|                               NULL,                 /* match_str */
   46|  1.47k|                               FLB_FALSE,            /* negate    */
  ------------------
  |  |   25|  1.47k|#define FLB_FALSE  0
  ------------------
   47|  1.47k|                               FLB_ML_FLUSH_TIMEOUT, /* flush_ms  */
  ------------------
  |  |   50|  1.47k|#define FLB_ML_FLUSH_TIMEOUT    4000 /* Flush timeout default (milliseconds) */
  ------------------
   48|  1.47k|                               key,                  /* key_content */
   49|  1.47k|                               NULL,                 /* key_group   */
   50|  1.47k|                               NULL,                 /* key_pattern */
   51|  1.47k|                               NULL,                 /* parser ctx  */
   52|  1.47k|                               NULL);                /* parser name */
   53|       |
   54|  1.47k|    if (!mlp) {
  ------------------
  |  Branch (54:9): [True: 1, False: 1.47k]
  ------------------
   55|      1|        flb_error("[multiline] could not create 'java mode'");
  ------------------
  |  |  170|      1|    if (flb_log_check(FLB_LOG_ERROR))                                \
  |  |  ------------------
  |  |  |  |   40|      1|#define FLB_LOG_ERROR   1
  |  |  ------------------
  |  |  |  Branch (170:9): [True: 1, False: 0]
  |  |  ------------------
  |  |  171|      1|        flb_log_print(FLB_LOG_ERROR, NULL, 0, fmt, ##__VA_ARGS__)
  |  |  ------------------
  |  |  |  |   40|      1|#define FLB_LOG_ERROR   1
  |  |  ------------------
  ------------------
   56|      1|        return NULL;
   57|      1|    }
   58|       |
   59|  1.47k|    ret = rule(mlp,
  ------------------
  |  |   25|  1.47k|#define rule flb_ml_rule_create
  ------------------
   60|  1.47k|               "start_state, java_start_exception",
   61|  1.47k|               "/(.)(?:Exception|Error|Throwable|V8 errors stack trace)[:\\r\\n]/",
   62|  1.47k|               "java_after_exception", NULL);
   63|  1.47k|    if (ret != 0) {
  ------------------
  |  Branch (63:9): [True: 3, False: 1.46k]
  ------------------
   64|      3|        rule_error(mlp);
   65|      3|        return NULL;
   66|      3|    }
   67|       |
   68|  1.46k|    ret = rule(mlp,
  ------------------
  |  |   25|  1.46k|#define rule flb_ml_rule_create
  ------------------
   69|  1.46k|               "java_after_exception",
   70|  1.46k|               "/^[\\t ]*nested exception is:[\\t ]*/",
   71|  1.46k|               "java_start_exception", NULL);
   72|  1.46k|    if (ret != 0) {
  ------------------
  |  Branch (72:9): [True: 2, False: 1.46k]
  ------------------
   73|      2|        rule_error(mlp);
   74|      2|        return NULL;
   75|      2|    }
   76|       |
   77|  1.46k|    ret = rule(mlp,
  ------------------
  |  |   25|  1.46k|#define rule flb_ml_rule_create
  ------------------
   78|  1.46k|               "java_after_exception",
   79|  1.46k|               "/^[\\r\\n]*$/",
   80|  1.46k|               "java_after_exception", NULL);
   81|  1.46k|    if (ret != 0) {
  ------------------
  |  Branch (81:9): [True: 1, False: 1.46k]
  ------------------
   82|      1|        rule_error(mlp);
   83|      1|        return NULL;
   84|      1|    }
   85|       |
   86|  1.46k|    ret = rule(mlp,
  ------------------
  |  |   25|  1.46k|#define rule flb_ml_rule_create
  ------------------
   87|  1.46k|               "java_after_exception, java",
   88|  1.46k|               "/^[\\t ]+(?:eval )?at /",
   89|  1.46k|               "java", NULL);
   90|  1.46k|    if (ret != 0) {
  ------------------
  |  Branch (90:9): [True: 4, False: 1.46k]
  ------------------
   91|      4|        rule_error(mlp);
   92|      4|        return NULL;
   93|      4|    }
   94|       |
   95|  1.46k|    ret = rule(mlp,
  ------------------
  |  |   25|  1.46k|#define rule flb_ml_rule_create
  ------------------
   96|  1.46k|               "java_after_exception, java",
   97|       |               /* C# nested exception */
   98|  1.46k|               "/^[\\t ]+--- End of inner exception stack trace ---$/",
   99|  1.46k|               "java", NULL);
  100|  1.46k|    if (ret != 0) {
  ------------------
  |  Branch (100:9): [True: 1, False: 1.46k]
  ------------------
  101|      1|        rule_error(mlp);
  102|      1|        return NULL;
  103|      1|    }
  104|       |
  105|  1.46k|    ret = rule(mlp,
  ------------------
  |  |   25|  1.46k|#define rule flb_ml_rule_create
  ------------------
  106|  1.46k|               "java_after_exception, java",
  107|       |               /* C# exception from async code */
  108|  1.46k|               "/^--- End of stack trace from previous (?x:"
  109|  1.46k|               ")location where exception was thrown ---$/",
  110|  1.46k|               "java", NULL);
  111|  1.46k|    if (ret != 0) {
  ------------------
  |  Branch (111:9): [True: 2, False: 1.45k]
  ------------------
  112|      2|        rule_error(mlp);
  113|      2|        return NULL;
  114|      2|    }
  115|       |
  116|  1.45k|    ret = rule(mlp,
  ------------------
  |  |   25|  1.45k|#define rule flb_ml_rule_create
  ------------------
  117|  1.45k|               "java_after_exception, java",
  118|  1.45k|               "/^[\\t ]*(?:Caused by|Suppressed):/",
  119|  1.45k|               "java_after_exception", NULL);
  120|  1.45k|    if (ret != 0) {
  ------------------
  |  Branch (120:9): [True: 1, False: 1.45k]
  ------------------
  121|      1|        rule_error(mlp);
  122|      1|        return NULL;
  123|      1|    }
  124|       |
  125|  1.45k|    ret = rule(mlp,
  ------------------
  |  |   25|  1.45k|#define rule flb_ml_rule_create
  ------------------
  126|  1.45k|               "java_after_exception, java",
  127|  1.45k|               "/^[\\t ]*... \\d+ (?:more|common frames omitted)/",
  128|  1.45k|               "java", NULL);
  129|  1.45k|    if (ret != 0) {
  ------------------
  |  Branch (129:9): [True: 1, False: 1.45k]
  ------------------
  130|      1|        rule_error(mlp);
  131|      1|        return NULL;
  132|      1|    }
  133|       |
  134|       |    /* Map the rules (mandatory for regex rules) */
  135|  1.45k|    ret = flb_ml_parser_init(mlp);
  136|  1.45k|    if (ret != 0) {
  ------------------
  |  Branch (136:9): [True: 12, False: 1.44k]
  ------------------
  137|     12|        flb_error("[multiline: java] error on mapping rules");
  ------------------
  |  |  170|     12|    if (flb_log_check(FLB_LOG_ERROR))                                \
  |  |  ------------------
  |  |  |  |   40|     12|#define FLB_LOG_ERROR   1
  |  |  ------------------
  |  |  |  Branch (170:9): [True: 12, False: 0]
  |  |  ------------------
  |  |  171|     12|        flb_log_print(FLB_LOG_ERROR, NULL, 0, fmt, ##__VA_ARGS__)
  |  |  ------------------
  |  |  |  |   40|     12|#define FLB_LOG_ERROR   1
  |  |  ------------------
  ------------------
  138|     12|        flb_ml_parser_destroy(mlp);
  139|     12|        return NULL;
  140|     12|    }
  141|       |
  142|  1.44k|    return mlp;
  143|  1.45k|}
flb_ml_parser_java.c:rule_error:
   28|     15|{
   29|     15|    int id;
   30|       |
   31|     15|    id = mk_list_size(&ml_parser->regex_rules);
   32|     15|    flb_error("[multiline: java] rule #%i could not be created", id);
  ------------------
  |  |  170|     15|    if (flb_log_check(FLB_LOG_ERROR))                                \
  |  |  ------------------
  |  |  |  |   40|     15|#define FLB_LOG_ERROR   1
  |  |  ------------------
  |  |  |  Branch (170:9): [True: 15, False: 0]
  |  |  ------------------
  |  |  171|     15|        flb_log_print(FLB_LOG_ERROR, NULL, 0, fmt, ##__VA_ARGS__)
  |  |  ------------------
  |  |  |  |   40|     15|#define FLB_LOG_ERROR   1
  |  |  ------------------
  ------------------
   33|     15|    flb_ml_parser_destroy(ml_parser);
   34|     15|}

flb_ml_parser_python:
   38|  1.42k|{
   39|  1.42k|    int ret;
   40|  1.42k|    struct flb_ml_parser *mlp;
   41|       |
   42|  1.42k|    mlp = flb_ml_parser_create(config,               /* Fluent Bit context */
   43|  1.42k|                               "python",             /* name      */
   44|  1.42k|                               FLB_ML_REGEX,         /* type      */
  ------------------
  |  |   35|  1.42k|#define FLB_ML_REGEX     1    /* pattern is a regular expression    */
  ------------------
   45|  1.42k|                               NULL,                 /* match_str */
   46|  1.42k|                               FLB_FALSE,            /* negate    */
  ------------------
  |  |   25|  1.42k|#define FLB_FALSE  0
  ------------------
   47|  1.42k|                               FLB_ML_FLUSH_TIMEOUT, /* flush_ms  */
  ------------------
  |  |   50|  1.42k|#define FLB_ML_FLUSH_TIMEOUT    4000 /* Flush timeout default (milliseconds) */
  ------------------
   48|  1.42k|                               key,                  /* key_content */
   49|  1.42k|                               NULL,                 /* key_group   */
   50|  1.42k|                               NULL,                 /* key_pattern */
   51|  1.42k|                               NULL,                 /* parser ctx  */
   52|  1.42k|                               NULL);                /* parser name */
   53|       |
   54|  1.42k|    if (!mlp) {
  ------------------
  |  Branch (54:9): [True: 1, False: 1.42k]
  ------------------
   55|      1|        flb_error("[multiline] could not create 'python mode'");
  ------------------
  |  |  170|      1|    if (flb_log_check(FLB_LOG_ERROR))                                \
  |  |  ------------------
  |  |  |  |   40|      1|#define FLB_LOG_ERROR   1
  |  |  ------------------
  |  |  |  Branch (170:9): [True: 1, False: 0]
  |  |  ------------------
  |  |  171|      1|        flb_log_print(FLB_LOG_ERROR, NULL, 0, fmt, ##__VA_ARGS__)
  |  |  ------------------
  |  |  |  |   40|      1|#define FLB_LOG_ERROR   1
  |  |  ------------------
  ------------------
   56|      1|        return NULL;
   57|      1|    }
   58|       |
   59|       |    /* rule(:start_state, /^Traceback \(most recent call last\):$/, :python) */
   60|  1.42k|    ret = rule(mlp,
  ------------------
  |  |   25|  1.42k|#define rule flb_ml_rule_create
  ------------------
   61|  1.42k|               "start_state", "/^Traceback \\(most recent call last\\):$/",
   62|  1.42k|               "python", NULL);
   63|  1.42k|    if (ret != 0) {
  ------------------
  |  Branch (63:9): [True: 1, False: 1.42k]
  ------------------
   64|      1|        rule_error(mlp);
   65|      1|        return NULL;
   66|      1|    }
   67|       |
   68|       |    /* rule(:python, /^[\t ]+File /, :python_code) */
   69|  1.42k|    ret = rule(mlp, "python", "/^[\\t ]+File /", "python_code", NULL);
  ------------------
  |  |   25|  1.42k|#define rule flb_ml_rule_create
  ------------------
   70|  1.42k|    if (ret != 0) {
  ------------------
  |  Branch (70:9): [True: 1, False: 1.42k]
  ------------------
   71|      1|        rule_error(mlp);
   72|      1|        return NULL;
   73|      1|    }
   74|       |
   75|       |    /* rule(:python_code, /[^\t ]/, :python) */
   76|  1.42k|    ret = rule(mlp, "python_code", "/[^\\t ]/", "python", NULL);
  ------------------
  |  |   25|  1.42k|#define rule flb_ml_rule_create
  ------------------
   77|  1.42k|    if (ret != 0) {
  ------------------
  |  Branch (77:9): [True: 2, False: 1.42k]
  ------------------
   78|      2|        rule_error(mlp);
   79|      2|        return NULL;
   80|      2|    }
   81|       |
   82|       |    /* rule(:python, /^(?:[^\s.():]+\.)*[^\s.():]+:/, :start_state) */
   83|  1.42k|    ret = rule(mlp, "python", "/^(?:[^\\s.():]+\\.)*[^\\s.():]+:/", "start_state", NULL);
  ------------------
  |  |   25|  1.42k|#define rule flb_ml_rule_create
  ------------------
   84|  1.42k|    if (ret != 0) {
  ------------------
  |  Branch (84:9): [True: 1, False: 1.42k]
  ------------------
   85|      1|        rule_error(mlp);
   86|      1|        return NULL;
   87|      1|    }
   88|       |
   89|       |    /* Map the rules (mandatory for regex rules) */
   90|  1.42k|    ret = flb_ml_parser_init(mlp);
   91|  1.42k|    if (ret != 0) {
  ------------------
  |  Branch (91:9): [True: 1, False: 1.42k]
  ------------------
   92|      1|        flb_error("[multiline: python] error on mapping rules");
  ------------------
  |  |  170|      1|    if (flb_log_check(FLB_LOG_ERROR))                                \
  |  |  ------------------
  |  |  |  |   40|      1|#define FLB_LOG_ERROR   1
  |  |  ------------------
  |  |  |  Branch (170:9): [True: 1, False: 0]
  |  |  ------------------
  |  |  171|      1|        flb_log_print(FLB_LOG_ERROR, NULL, 0, fmt, ##__VA_ARGS__)
  |  |  ------------------
  |  |  |  |   40|      1|#define FLB_LOG_ERROR   1
  |  |  ------------------
  ------------------
   93|      1|        flb_ml_parser_destroy(mlp);
   94|      1|        return NULL;
   95|      1|    }
   96|       |
   97|  1.42k|    return mlp;
   98|  1.42k|}
flb_ml_parser_python.c:rule_error:
   28|      5|{
   29|      5|    int id;
   30|       |
   31|      5|    id = mk_list_size(&mlp->regex_rules);
   32|      5|    flb_error("[multiline: python] rule #%i could not be created", id);
  ------------------
  |  |  170|      5|    if (flb_log_check(FLB_LOG_ERROR))                                \
  |  |  ------------------
  |  |  |  |   40|      5|#define FLB_LOG_ERROR   1
  |  |  ------------------
  |  |  |  Branch (170:9): [True: 5, False: 0]
  |  |  ------------------
  |  |  171|      5|        flb_log_print(FLB_LOG_ERROR, NULL, 0, fmt, ##__VA_ARGS__)
  |  |  ------------------
  |  |  |  |   40|      5|#define FLB_LOG_ERROR   1
  |  |  ------------------
  ------------------
   33|      5|    flb_ml_parser_destroy(mlp);
   34|      5|}

flb_ml_parser_ruby:
   38|  1.43k|{
   39|  1.43k|    int ret;
   40|  1.43k|    struct flb_ml_parser *mlp;
   41|       |
   42|  1.43k|    mlp = flb_ml_parser_create(config,               /* Fluent Bit context */
   43|  1.43k|                               "ruby",                 /* name      */
   44|  1.43k|                               FLB_ML_REGEX,         /* type      */
  ------------------
  |  |   35|  1.43k|#define FLB_ML_REGEX     1    /* pattern is a regular expression    */
  ------------------
   45|  1.43k|                               NULL,                 /* match_str */
   46|  1.43k|                               FLB_FALSE,            /* negate    */
  ------------------
  |  |   25|  1.43k|#define FLB_FALSE  0
  ------------------
   47|  1.43k|                               FLB_ML_FLUSH_TIMEOUT, /* flush_ms  */
  ------------------
  |  |   50|  1.43k|#define FLB_ML_FLUSH_TIMEOUT    4000 /* Flush timeout default (milliseconds) */
  ------------------
   48|  1.43k|                               key,                  /* key_content */
   49|  1.43k|                               NULL,                 /* key_group   */
   50|  1.43k|                               NULL,                 /* key_pattern */
   51|  1.43k|                               NULL,                 /* parser ctx  */
   52|  1.43k|                               NULL);                /* parser name */
   53|       |
   54|  1.43k|    if (!mlp) {
  ------------------
  |  Branch (54:9): [True: 1, False: 1.43k]
  ------------------
   55|      1|        flb_error("[multiline] could not create 'ruby mode'");
  ------------------
  |  |  170|      1|    if (flb_log_check(FLB_LOG_ERROR))                                \
  |  |  ------------------
  |  |  |  |   40|      1|#define FLB_LOG_ERROR   1
  |  |  ------------------
  |  |  |  Branch (170:9): [True: 1, False: 0]
  |  |  ------------------
  |  |  171|      1|        flb_log_print(FLB_LOG_ERROR, NULL, 0, fmt, ##__VA_ARGS__)
  |  |  ------------------
  |  |  |  |   40|      1|#define FLB_LOG_ERROR   1
  |  |  ------------------
  ------------------
   56|      1|        return NULL;
   57|      1|    }
   58|       |
   59|  1.43k|    ret = rule(mlp,
  ------------------
  |  |   25|  1.43k|#define rule flb_ml_rule_create
  ------------------
   60|  1.43k|               "start_state, ruby_start_exception",
   61|  1.43k|               "/^.+:\\d+:in\\s+.*/",
   62|  1.43k|               "ruby_after_exception", NULL);
   63|  1.43k|    if (ret != 0) {
  ------------------
  |  Branch (63:9): [True: 1, False: 1.43k]
  ------------------
   64|      1|        rule_error(mlp);
   65|      1|        return NULL;
   66|      1|    }
   67|       |
   68|  1.43k|    ret = rule(mlp,
  ------------------
  |  |   25|  1.43k|#define rule flb_ml_rule_create
  ------------------
   69|  1.43k|               "ruby_after_exception, ruby",
   70|  1.43k|               "/^\\s+from\\s+.*:\\d+:in\\s+.*/",
   71|  1.43k|               "ruby", NULL);
   72|  1.43k|    if (ret != 0) {
  ------------------
  |  Branch (72:9): [True: 2, False: 1.43k]
  ------------------
   73|      2|        rule_error(mlp);
   74|      2|        return NULL;
   75|      2|    }
   76|       |
   77|       |
   78|       |    /* Map the rules (mandatory for regex rules) */
   79|  1.43k|    ret = flb_ml_parser_init(mlp);
   80|  1.43k|    if (ret != 0) {
  ------------------
  |  Branch (80:9): [True: 1, False: 1.42k]
  ------------------
   81|      1|        flb_error("[multiline: ruby] error on mapping rules");
  ------------------
  |  |  170|      1|    if (flb_log_check(FLB_LOG_ERROR))                                \
  |  |  ------------------
  |  |  |  |   40|      1|#define FLB_LOG_ERROR   1
  |  |  ------------------
  |  |  |  Branch (170:9): [True: 1, False: 0]
  |  |  ------------------
  |  |  171|      1|        flb_log_print(FLB_LOG_ERROR, NULL, 0, fmt, ##__VA_ARGS__)
  |  |  ------------------
  |  |  |  |   40|      1|#define FLB_LOG_ERROR   1
  |  |  ------------------
  ------------------
   82|      1|        flb_ml_parser_destroy(mlp);
   83|      1|        return NULL;
   84|      1|    }
   85|       |
   86|  1.42k|    return mlp;
   87|  1.43k|}
flb_ml_parser_ruby.c:rule_error:
   28|      3|{
   29|      3|    int id;
   30|       |
   31|      3|    id = mk_list_size(&mlp->regex_rules);
   32|      3|    flb_error("[multiline: ruby] rule #%i could not be created", id);
  ------------------
  |  |  170|      3|    if (flb_log_check(FLB_LOG_ERROR))                                \
  |  |  ------------------
  |  |  |  |   40|      3|#define FLB_LOG_ERROR   1
  |  |  ------------------
  |  |  |  Branch (170:9): [True: 3, False: 0]
  |  |  ------------------
  |  |  171|      3|        flb_log_print(FLB_LOG_ERROR, NULL, 0, fmt, ##__VA_ARGS__)
  |  |  ------------------
  |  |  |  |   40|      3|#define FLB_LOG_ERROR   1
  |  |  ------------------
  ------------------
   33|      3|    flb_ml_parser_destroy(mlp);
   34|      3|}

get_start_state:
   33|  31.7k|{
   34|  31.7k|    struct mk_list *head;
   35|  31.7k|    struct flb_slist_entry *e;
   36|       |
   37|  43.3k|    mk_list_foreach(head, list) {
  ------------------
  |  |  205|  67.9k|#define mk_list_foreach(curr, head) for( curr = (head)->next; curr != (head); curr = curr->next )
  |  |  ------------------
  |  |  |  Branch (205:63): [True: 43.3k, False: 24.5k]
  |  |  ------------------
  ------------------
   38|  43.3k|        e = mk_list_entry(head, struct flb_slist_entry, _head);
  ------------------
  |  |  214|  43.3k|#define mk_list_entry( ptr, type, member ) container_of( ptr, type, member )
  |  |  ------------------
  |  |  |  |   38|  43.3k|#define container_of(ptr, type, member) ({                      \
  |  |  |  |   39|  43.3k|      const typeof( ((type *)0)->member ) *__mptr = (ptr);      \
  |  |  |  |   40|  43.3k|      (type *)( (char *)__mptr - offsetof(type,member) );})
  |  |  ------------------
  ------------------
   39|  43.3k|        if (strcmp(e->str, "start_state") == 0) {
  ------------------
  |  Branch (39:13): [True: 7.21k, False: 36.1k]
  ------------------
   40|  7.21k|            return e;
   41|  7.21k|        }
   42|  43.3k|    }
   43|       |
   44|  24.5k|    return NULL;
   45|  31.7k|}
flb_ml_rule_create:
   52|  31.8k|{
   53|  31.8k|    int ret;
   54|  31.8k|    int first_rule = FLB_FALSE;
  ------------------
  |  |   25|  31.8k|#define FLB_FALSE  0
  ------------------
   55|  31.8k|    struct flb_ml_rule *rule;
   56|       |
   57|  31.8k|    rule = flb_calloc(1, sizeof(struct flb_ml_rule));
   58|  31.8k|    if (!rule) {
  ------------------
  |  Branch (58:9): [True: 4, False: 31.8k]
  ------------------
   59|      4|        flb_errno();
  ------------------
  |  |  232|      4|#define flb_errno() flb_errno_print(errno, __FLB_FILENAME__, __LINE__)
  ------------------
   60|      4|        return -1;
   61|      4|    }
   62|  31.8k|    flb_slist_create(&rule->from_states);
   63|  31.8k|    mk_list_init(&rule->to_state_map);
   64|       |
   65|  31.8k|    if (mk_list_size(&ml_parser->regex_rules) == 0) {
  ------------------
  |  Branch (65:9): [True: 5.77k, False: 26.0k]
  ------------------
   66|  5.77k|        first_rule = FLB_TRUE;
  ------------------
  |  |   26|  5.77k|#define FLB_TRUE   !FLB_FALSE
  |  |  ------------------
  |  |  |  |   25|  5.77k|#define FLB_FALSE  0
  |  |  ------------------
  ------------------
   67|  5.77k|    }
   68|  31.8k|    mk_list_add(&rule->_head, &ml_parser->regex_rules);
   69|       |
   70|       |    /* from_states */
   71|  31.8k|    ret = flb_slist_split_string(&rule->from_states, from_states, ',', -1);
   72|  31.8k|    if (ret <= 0) {
  ------------------
  |  Branch (72:9): [True: 16, False: 31.7k]
  ------------------
   73|     16|        flb_error("[multiline] rule is empty or has invalid 'from_states' tokens");
  ------------------
  |  |  170|     16|    if (flb_log_check(FLB_LOG_ERROR))                                \
  |  |  ------------------
  |  |  |  |   40|     16|#define FLB_LOG_ERROR   1
  |  |  ------------------
  |  |  |  Branch (170:9): [True: 16, False: 0]
  |  |  ------------------
  |  |  171|     16|        flb_log_print(FLB_LOG_ERROR, NULL, 0, fmt, ##__VA_ARGS__)
  |  |  ------------------
  |  |  |  |   40|     16|#define FLB_LOG_ERROR   1
  |  |  ------------------
  ------------------
   74|     16|        flb_ml_rule_destroy(rule);
   75|     16|        return -1;
   76|     16|    }
   77|       |
   78|       |    /* Check if the rule contains a 'start_state' */
   79|  31.7k|    if (get_start_state(&rule->from_states)) {
  ------------------
  |  Branch (79:9): [True: 7.21k, False: 24.5k]
  ------------------
   80|  7.21k|        rule->start_state = FLB_TRUE;
  ------------------
  |  |   26|  7.21k|#define FLB_TRUE   !FLB_FALSE
  |  |  ------------------
  |  |  |  |   25|  7.21k|#define FLB_FALSE  0
  |  |  ------------------
  ------------------
   81|  7.21k|    }
   82|  24.5k|    else if (first_rule) {
  ------------------
  |  Branch (82:14): [True: 0, False: 24.5k]
  ------------------
   83|      0|        flb_error("[multiline] rule don't contain a 'start_state'");
  ------------------
  |  |  170|      0|    if (flb_log_check(FLB_LOG_ERROR))                                \
  |  |  ------------------
  |  |  |  |   40|      0|#define FLB_LOG_ERROR   1
  |  |  ------------------
  |  |  |  Branch (170:9): [True: 0, False: 0]
  |  |  ------------------
  |  |  171|      0|        flb_log_print(FLB_LOG_ERROR, NULL, 0, fmt, ##__VA_ARGS__)
  |  |  ------------------
  |  |  |  |   40|      0|#define FLB_LOG_ERROR   1
  |  |  ------------------
  ------------------
   84|      0|        flb_ml_rule_destroy(rule);
   85|      0|        return -1;
   86|      0|    }
   87|       |
   88|       |    /* regex content pattern */
   89|  31.7k|    rule->regex = flb_regex_create(regex_pattern);
   90|  31.7k|    if (!rule->regex) {
  ------------------
  |  Branch (90:9): [True: 4, False: 31.7k]
  ------------------
   91|      4|        flb_ml_rule_destroy(rule);
   92|      4|        return -1;
   93|      4|    }
   94|       |
   95|       |    /* to_state */
   96|  31.7k|    if (to_state) {
  ------------------
  |  Branch (96:9): [True: 31.7k, False: 0]
  ------------------
   97|  31.7k|        rule->to_state = flb_sds_create(to_state);
   98|  31.7k|        if (!rule->to_state) {
  ------------------
  |  Branch (98:13): [True: 8, False: 31.7k]
  ------------------
   99|      8|            flb_ml_rule_destroy(rule);
  100|      8|            return -1;
  101|      8|        }
  102|  31.7k|    }
  103|       |
  104|       |    /* regex end pattern */
  105|  31.7k|    if (end_pattern) {
  ------------------
  |  Branch (105:9): [True: 0, False: 31.7k]
  ------------------
  106|      0|        rule->regex_end = flb_regex_create(end_pattern);
  107|      0|        if (!rule->regex_end) {
  ------------------
  |  Branch (107:13): [True: 0, False: 0]
  ------------------
  108|      0|            flb_ml_rule_destroy(rule);
  109|      0|            return -1;
  110|      0|        }
  111|      0|    }
  112|       |
  113|  31.7k|    return 0;
  114|  31.7k|}
flb_ml_rule_destroy:
  117|  31.8k|{
  118|  31.8k|    struct mk_list *tmp;
  119|  31.8k|    struct mk_list *head;
  120|  31.8k|    struct to_state *st;
  121|       |
  122|  31.8k|    flb_slist_destroy(&rule->from_states);
  123|       |
  124|  31.8k|    if (rule->regex) {
  ------------------
  |  Branch (124:9): [True: 31.7k, False: 20]
  ------------------
  125|  31.7k|        flb_regex_destroy(rule->regex);
  126|  31.7k|    }
  127|       |
  128|       |
  129|  31.8k|    if (rule->to_state) {
  ------------------
  |  Branch (129:9): [True: 31.7k, False: 28]
  ------------------
  130|  31.7k|        flb_sds_destroy(rule->to_state);
  131|  31.7k|    }
  132|       |
  133|  89.4k|    mk_list_foreach_safe(head, tmp, &rule->to_state_map) {
  ------------------
  |  |  207|   121k|    for (curr = (head)->next, n = curr->next; curr != (head); curr = n, n = curr->next)
  |  |  ------------------
  |  |  |  Branch (207:47): [True: 89.4k, False: 31.8k]
  |  |  ------------------
  ------------------
  134|  89.4k|        st = mk_list_entry(head, struct to_state, _head);
  ------------------
  |  |  214|  89.4k|#define mk_list_entry( ptr, type, member ) container_of( ptr, type, member )
  |  |  ------------------
  |  |  |  |   38|  89.4k|#define container_of(ptr, type, member) ({                      \
  |  |  |  |   39|  89.4k|      const typeof( ((type *)0)->member ) *__mptr = (ptr);      \
  |  |  |  |   40|  89.4k|      (type *)( (char *)__mptr - offsetof(type,member) );})
  |  |  ------------------
  ------------------
  135|  89.4k|        mk_list_del(&st->_head);
  136|  89.4k|        flb_free(st);
  137|  89.4k|    }
  138|       |
  139|  31.8k|    if (rule->regex_end) {
  ------------------
  |  Branch (139:9): [True: 0, False: 31.8k]
  ------------------
  140|      0|        flb_regex_destroy(rule->regex_end);
  141|      0|    }
  142|       |
  143|  31.8k|    mk_list_del(&rule->_head);
  144|  31.8k|    flb_free(rule);
  145|  31.8k|}
flb_ml_rule_destroy_all:
  148|  8.73k|{
  149|  8.73k|    struct mk_list *tmp;
  150|  8.73k|    struct mk_list *head;
  151|  8.73k|    struct flb_ml_rule *rule;
  152|       |
  153|  31.7k|    mk_list_foreach_safe(head, tmp, &ml_parser->regex_rules) {
  ------------------
  |  |  207|  40.5k|    for (curr = (head)->next, n = curr->next; curr != (head); curr = n, n = curr->next)
  |  |  ------------------
  |  |  |  Branch (207:47): [True: 31.7k, False: 8.73k]
  |  |  ------------------
  ------------------
  154|  31.7k|        rule = mk_list_entry(head, struct flb_ml_rule, _head);
  ------------------
  |  |  214|  31.7k|#define mk_list_entry( ptr, type, member ) container_of( ptr, type, member )
  |  |  ------------------
  |  |  |  |   38|  31.7k|#define container_of(ptr, type, member) ({                      \
  |  |  |  |   39|  31.7k|      const typeof( ((type *)0)->member ) *__mptr = (ptr);      \
  |  |  |  |   40|  31.7k|      (type *)( (char *)__mptr - offsetof(type,member) );})
  |  |  ------------------
  ------------------
  155|  31.7k|        flb_ml_rule_destroy(rule);
  156|  31.7k|    }
  157|  8.73k|}
flb_ml_rule_init:
  281|  5.74k|{
  282|  5.74k|    int ret;
  283|  5.74k|    struct mk_list *head;
  284|  5.74k|    struct flb_ml_rule *rule;
  285|       |
  286|       |    /* FIXME: sort rules by start_state first (let's trust in the caller) */
  287|       |
  288|       |    /* For each rule, compose it to_state_map list */
  289|  31.6k|    mk_list_foreach(head, &ml_parser->regex_rules) {
  ------------------
  |  |  205|  37.3k|#define mk_list_foreach(curr, head) for( curr = (head)->next; curr != (head); curr = curr->next )
  |  |  ------------------
  |  |  |  Branch (205:63): [True: 31.6k, False: 5.73k]
  |  |  ------------------
  ------------------
  290|  31.6k|        rule = mk_list_entry(head, struct flb_ml_rule, _head);
  ------------------
  |  |  214|  31.6k|#define mk_list_entry( ptr, type, member ) container_of( ptr, type, member )
  |  |  ------------------
  |  |  |  |   38|  31.6k|#define container_of(ptr, type, member) ({                      \
  |  |  |  |   39|  31.6k|      const typeof( ((type *)0)->member ) *__mptr = (ptr);      \
  |  |  |  |   40|  31.6k|      (type *)( (char *)__mptr - offsetof(type,member) );})
  |  |  ------------------
  ------------------
  291|       |        /* Populate 'rule->to_state_map' list */
  292|  31.6k|        ret = set_to_state_map(ml_parser, rule);
  293|  31.6k|        if (ret == -1) {
  ------------------
  |  Branch (293:13): [True: 15, False: 31.6k]
  ------------------
  294|     15|            return -1;
  295|     15|        }
  296|  31.6k|    }
  297|       |
  298|  5.73k|    return 0;
  299|  5.74k|}
flb_ml_rule.c:set_to_state_map:
  199|  31.6k|{
  200|  31.6k|    int ret;
  201|  31.6k|    struct to_state *s;
  202|  31.6k|    struct mk_list *head;
  203|  31.6k|    struct flb_ml_rule *r;
  204|       |
  205|  31.6k|    if (!rule->to_state) {
  ------------------
  |  Branch (205:9): [True: 0, False: 31.6k]
  ------------------
  206|       |        /* no to_state */
  207|      0|        return 0;
  208|      0|    }
  209|       |
  210|       |    /* Iterate all rules that matches the to_state */
  211|   213k|    mk_list_foreach(head, &ml_parser->regex_rules) {
  ------------------
  |  |  205|   244k|#define mk_list_foreach(curr, head) for( curr = (head)->next; curr != (head); curr = curr->next )
  |  |  ------------------
  |  |  |  Branch (205:63): [True: 213k, False: 31.6k]
  |  |  ------------------
  ------------------
  212|   213k|        r = mk_list_entry(head, struct flb_ml_rule, _head);
  ------------------
  |  |  214|   213k|#define mk_list_entry( ptr, type, member ) container_of( ptr, type, member )
  |  |  ------------------
  |  |  |  |   38|   213k|#define container_of(ptr, type, member) ({                      \
  |  |  |  |   39|   213k|      const typeof( ((type *)0)->member ) *__mptr = (ptr);      \
  |  |  |  |   40|   213k|      (type *)( (char *)__mptr - offsetof(type,member) );})
  |  |  ------------------
  ------------------
  213|       |
  214|       |        /* Check if rule->to_state, matches an existing (registered) from_state */
  215|   213k|        ret = to_states_exists(ml_parser, rule->to_state);
  216|   213k|        if (!ret) {
  ------------------
  |  Branch (216:13): [True: 0, False: 213k]
  ------------------
  217|      0|            flb_error("[multiline parser: %s] to_state='%s' is not registered",
  ------------------
  |  |  170|      0|    if (flb_log_check(FLB_LOG_ERROR))                                \
  |  |  ------------------
  |  |  |  |   40|      0|#define FLB_LOG_ERROR   1
  |  |  ------------------
  |  |  |  Branch (170:9): [True: 0, False: 0]
  |  |  ------------------
  |  |  171|      0|        flb_log_print(FLB_LOG_ERROR, NULL, 0, fmt, ##__VA_ARGS__)
  |  |  ------------------
  |  |  |  |   40|      0|#define FLB_LOG_ERROR   1
  |  |  ------------------
  ------------------
  218|      0|                      ml_parser->name, rule->to_state);
  219|      0|            return -1;
  220|      0|        }
  221|       |
  222|       |        /*
  223|       |         * A rule can have many 'from_states', check if the current 'rule->to_state'
  224|       |         * matches any 'r->from_states'
  225|       |         */
  226|   213k|        ret = to_states_matches_rule(r, rule->to_state);
  227|   213k|        if (!ret) {
  ------------------
  |  Branch (227:13): [True: 123k, False: 89.4k]
  ------------------
  228|   123k|            continue;
  229|   123k|        }
  230|       |
  231|       |        /* We have a match. Create a 'to_state' entry into the 'to_state_map' list */
  232|  89.4k|        s = flb_malloc(sizeof(struct to_state));
  233|  89.4k|        if (!s) {
  ------------------
  |  Branch (233:13): [True: 15, False: 89.4k]
  ------------------
  234|     15|            flb_errno();
  ------------------
  |  |  232|     15|#define flb_errno() flb_errno_print(errno, __FLB_FILENAME__, __LINE__)
  ------------------
  235|     15|            return -1;
  236|     15|        }
  237|  89.4k|        s->rule = r;
  238|  89.4k|        mk_list_add(&s->_head, &rule->to_state_map);
  239|  89.4k|    }
  240|       |
  241|  31.6k|    return 0;
  242|  31.6k|}
flb_ml_rule.c:to_states_exists:
  161|   213k|{
  162|   213k|    struct mk_list *head;
  163|   213k|    struct mk_list *r_head;
  164|   213k|    struct flb_ml_rule *rule;
  165|   213k|    struct flb_slist_entry *e;
  166|       |
  167|   793k|    mk_list_foreach(head, &ml_parser->regex_rules) {
  ------------------
  |  |  205|   793k|#define mk_list_foreach(curr, head) for( curr = (head)->next; curr != (head); curr = curr->next )
  |  |  ------------------
  |  |  |  Branch (205:63): [True: 793k, False: 0]
  |  |  ------------------
  ------------------
  168|   793k|        rule = mk_list_entry(head, struct flb_ml_rule, _head);
  ------------------
  |  |  214|   793k|#define mk_list_entry( ptr, type, member ) container_of( ptr, type, member )
  |  |  ------------------
  |  |  |  |   38|   793k|#define container_of(ptr, type, member) ({                      \
  |  |  |  |   39|   793k|      const typeof( ((type *)0)->member ) *__mptr = (ptr);      \
  |  |  |  |   40|   793k|      (type *)( (char *)__mptr - offsetof(type,member) );})
  |  |  ------------------
  ------------------
  169|       |
  170|  1.09M|        mk_list_foreach(r_head, &rule->from_states) {
  ------------------
  |  |  205|  1.67M|#define mk_list_foreach(curr, head) for( curr = (head)->next; curr != (head); curr = curr->next )
  |  |  ------------------
  |  |  |  Branch (205:63): [True: 1.09M, False: 580k]
  |  |  ------------------
  ------------------
  171|  1.09M|            e = mk_list_entry(r_head, struct flb_slist_entry, _head);
  ------------------
  |  |  214|  1.09M|#define mk_list_entry( ptr, type, member ) container_of( ptr, type, member )
  |  |  ------------------
  |  |  |  |   38|  1.09M|#define container_of(ptr, type, member) ({                      \
  |  |  |  |   39|  1.09M|      const typeof( ((type *)0)->member ) *__mptr = (ptr);      \
  |  |  |  |   40|  1.09M|      (type *)( (char *)__mptr - offsetof(type,member) );})
  |  |  ------------------
  ------------------
  172|  1.09M|            if (strcmp(e->str, state) == 0) {
  ------------------
  |  Branch (172:17): [True: 213k, False: 877k]
  ------------------
  173|   213k|                return FLB_TRUE;
  ------------------
  |  |   26|   213k|#define FLB_TRUE   !FLB_FALSE
  |  |  ------------------
  |  |  |  |   25|   213k|#define FLB_FALSE  0
  |  |  ------------------
  ------------------
  174|   213k|            }
  175|  1.09M|        }
  176|   793k|    }
  177|       |
  178|      0|    return FLB_FALSE;
  ------------------
  |  |   25|      0|#define FLB_FALSE  0
  ------------------
  179|   213k|}
flb_ml_rule.c:to_states_matches_rule:
  183|   213k|{
  184|   213k|    struct mk_list *head;
  185|   213k|    struct flb_slist_entry *e;
  186|       |
  187|   283k|    mk_list_foreach(head, &rule->from_states) {
  ------------------
  |  |  205|   407k|#define mk_list_foreach(curr, head) for( curr = (head)->next; curr != (head); curr = curr->next )
  |  |  ------------------
  |  |  |  Branch (205:63): [True: 283k, False: 123k]
  |  |  ------------------
  ------------------
  188|   283k|        e = mk_list_entry(head, struct flb_slist_entry, _head);
  ------------------
  |  |  214|   283k|#define mk_list_entry( ptr, type, member ) container_of( ptr, type, member )
  |  |  ------------------
  |  |  |  |   38|   283k|#define container_of(ptr, type, member) ({                      \
  |  |  |  |   39|   283k|      const typeof( ((type *)0)->member ) *__mptr = (ptr);      \
  |  |  |  |   40|   283k|      (type *)( (char *)__mptr - offsetof(type,member) );})
  |  |  ------------------
  ------------------
  189|   283k|        if (strcmp(e->str, state) == 0) {
  ------------------
  |  Branch (189:13): [True: 89.4k, False: 194k]
  ------------------
  190|  89.4k|            return FLB_TRUE;
  ------------------
  |  |   26|  89.4k|#define FLB_TRUE   !FLB_FALSE
  |  |  ------------------
  |  |  |  |   25|  89.4k|#define FLB_FALSE  0
  |  |  ------------------
  ------------------
  191|  89.4k|        }
  192|   283k|    }
  193|       |
  194|   123k|    return FLB_FALSE;
  ------------------
  |  |   25|   123k|#define FLB_FALSE  0
  ------------------
  195|   213k|}

LLVMFuzzerTestOneInput:
    7|  1.50k|int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size){
    8|  1.50k|    void *out_buf = NULL;
    9|  1.50k|    size_t out_size = 0;
   10|  1.50k|    struct flb_time out_time;
   11|  1.50k|    struct flb_config *fuzz_config;
   12|  1.50k|    struct flb_parser *fuzz_parser;
   13|       |
   14|       |    /* Set flb_malloc_mod to be fuzzer-data dependent */
   15|  1.50k|    if (size < 4) {
  ------------------
  |  Branch (15:9): [True: 2, False: 1.49k]
  ------------------
   16|      2|        return 0;
   17|      2|    }
   18|  1.49k|    flb_malloc_p = 0;
   19|  1.49k|    flb_malloc_mod = *(int*)data;
   20|  1.49k|    data += 4;
   21|  1.49k|    size -= 4;
   22|       |
   23|       |    /* Avoid division by zero for modulo operations */
   24|  1.49k|    if (flb_malloc_mod == 0) {
  ------------------
  |  Branch (24:9): [True: 2, False: 1.49k]
  ------------------
   25|      2|        flb_malloc_mod = 1;
   26|      2|    }
   27|       |
   28|       |    /* logfmt parser */
   29|  1.49k|    fuzz_config = flb_config_init();
   30|  1.49k|    if (fuzz_config == NULL) {
  ------------------
  |  Branch (30:9): [True: 154, False: 1.34k]
  ------------------
   31|    154|        return 0;
   32|    154|    }
   33|  1.34k|    fuzz_parser = flb_parser_create("fuzzer", "logfmt", NULL, FLB_TRUE,
  ------------------
  |  |   26|  1.34k|#define FLB_TRUE   !FLB_FALSE
  |  |  ------------------
  |  |  |  |   25|  1.34k|#define FLB_FALSE  0
  |  |  ------------------
  ------------------
   34|  1.34k|                                    NULL, NULL, NULL, MK_FALSE,
  ------------------
  |  |   27|  1.34k|#define MK_FALSE 0
  ------------------
   35|  1.34k|                                    MK_TRUE, FLB_FALSE, FLB_FALSE, NULL, 0,
  ------------------
  |  |   28|  1.34k|#define MK_TRUE  !MK_FALSE
  |  |  ------------------
  |  |  |  |   27|  1.34k|#define MK_FALSE 0
  |  |  ------------------
  ------------------
                                                  MK_TRUE, FLB_FALSE, FLB_FALSE, NULL, 0,
  ------------------
  |  |   25|  1.34k|#define FLB_FALSE  0
  ------------------
                                                  MK_TRUE, FLB_FALSE, FLB_FALSE, NULL, 0,
  ------------------
  |  |   25|  1.34k|#define FLB_FALSE  0
  ------------------
   36|  1.34k|                                    NULL, fuzz_config);
   37|  1.34k|    if (fuzz_parser) {
  ------------------
  |  Branch (37:9): [True: 1.34k, False: 1]
  ------------------
   38|  1.34k|        flb_parser_do(fuzz_parser, (char*)data, size,
   39|  1.34k|                      &out_buf, &out_size, &out_time);
   40|       |
   41|  1.34k|        if (out_buf != NULL) {
  ------------------
  |  Branch (41:13): [True: 1.27k, False: 65]
  ------------------
   42|  1.27k|            free(out_buf);
   43|  1.27k|        }
   44|  1.34k|        flb_parser_destroy(fuzz_parser);
   45|  1.34k|    }
   46|       |
   47|  1.34k|    flb_config_exit(fuzz_config);
   48|       |
   49|  1.34k|    return 0;
   50|  1.49k|}

