flb_config_map.c:flb_env_warn_unused:
   34|  15.7k|{
   35|  15.7k|    env->warn_unused = warn;
   36|  15.7k|}

flb_log.c:flb_log_check:
  103|    556|static inline int flb_log_check(int l) {
  104|    556|    struct flb_worker *w;
  105|    556|    w = (struct flb_worker *) FLB_TLS_GET(flb_worker_ctx);
  ------------------
  |  |   34|    556|#define FLB_TLS_GET(key)           key
  ------------------
  106|    556|    if (!w && l <= 3) {
  ------------------
  |  Branch (106:9): [True: 556, False: 0]
  |  Branch (106:15): [True: 556, False: 0]
  ------------------
  107|    556|        return FLB_TRUE;
  ------------------
  |  |   26|    556|#define FLB_TRUE   !FLB_FALSE
  |  |  ------------------
  |  |  |  |   25|    556|#define FLB_FALSE  0
  |  |  ------------------
  ------------------
  108|    556|    }
  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_log_check:
  103|    344|static inline int flb_log_check(int l) {
  104|    344|    struct flb_worker *w;
  105|    344|    w = (struct flb_worker *) FLB_TLS_GET(flb_worker_ctx);
  ------------------
  |  |   34|    344|#define FLB_TLS_GET(key)           key
  ------------------
  106|    344|    if (!w && l <= 3) {
  ------------------
  |  Branch (106:9): [True: 344, False: 0]
  |  Branch (106:15): [True: 344, False: 0]
  ------------------
  107|    344|        return FLB_TRUE;
  ------------------
  |  |   26|    344|#define FLB_TRUE   !FLB_FALSE
  |  |  ------------------
  |  |  |  |   25|    344|#define FLB_FALSE  0
  |  |  ------------------
  ------------------
  108|    344|    }
  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_map.c:flb_log_check:
  103|    979|static inline int flb_log_check(int l) {
  104|    979|    struct flb_worker *w;
  105|    979|    w = (struct flb_worker *) FLB_TLS_GET(flb_worker_ctx);
  ------------------
  |  |   34|    979|#define FLB_TLS_GET(key)           key
  ------------------
  106|    979|    if (!w && l <= 3) {
  ------------------
  |  Branch (106:9): [True: 979, False: 0]
  |  Branch (106:15): [True: 979, False: 0]
  ------------------
  107|    979|        return FLB_TRUE;
  ------------------
  |  |   26|    979|#define FLB_TRUE   !FLB_FALSE
  |  |  ------------------
  |  |  |  |   25|    979|#define FLB_FALSE  0
  |  |  ------------------
  ------------------
  108|    979|    }
  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|     12|static inline int flb_log_check(int l) {
  104|     12|    struct flb_worker *w;
  105|     12|    w = (struct flb_worker *) FLB_TLS_GET(flb_worker_ctx);
  ------------------
  |  |   34|     12|#define FLB_TLS_GET(key)           key
  ------------------
  106|     12|    if (!w && l <= 3) {
  ------------------
  |  Branch (106:9): [True: 12, False: 0]
  |  Branch (106:15): [True: 12, False: 0]
  ------------------
  107|     12|        return FLB_TRUE;
  ------------------
  |  |   26|     12|#define FLB_TRUE   !FLB_FALSE
  |  |  ------------------
  |  |  |  |   25|     12|#define FLB_FALSE  0
  |  |  ------------------
  ------------------
  108|     12|    }
  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|    202|static inline int flb_log_check(int l) {
  104|    202|    struct flb_worker *w;
  105|    202|    w = (struct flb_worker *) FLB_TLS_GET(flb_worker_ctx);
  ------------------
  |  |   34|    202|#define FLB_TLS_GET(key)           key
  ------------------
  106|    202|    if (!w && l <= 3) {
  ------------------
  |  Branch (106:9): [True: 202, False: 0]
  |  Branch (106:15): [True: 202, False: 0]
  ------------------
  107|    202|        return FLB_TRUE;
  ------------------
  |  |   26|    202|#define FLB_TRUE   !FLB_FALSE
  |  |  ------------------
  |  |  |  |   25|    202|#define FLB_FALSE  0
  |  |  ------------------
  ------------------
  108|    202|    }
  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|     54|static inline int flb_log_check(int l) {
  104|     54|    struct flb_worker *w;
  105|     54|    w = (struct flb_worker *) FLB_TLS_GET(flb_worker_ctx);
  ------------------
  |  |   34|     54|#define FLB_TLS_GET(key)           key
  ------------------
  106|     54|    if (!w && l <= 3) {
  ------------------
  |  Branch (106:9): [True: 54, False: 0]
  |  Branch (106:15): [True: 54, False: 0]
  ------------------
  107|     54|        return FLB_TRUE;
  ------------------
  |  |   26|     54|#define FLB_TRUE   !FLB_FALSE
  |  |  ------------------
  |  |  |  |   25|     54|#define FLB_FALSE  0
  |  |  ------------------
  ------------------
  108|     54|    }
  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|      8|static inline int flb_log_check(int l) {
  104|      8|    struct flb_worker *w;
  105|      8|    w = (struct flb_worker *) FLB_TLS_GET(flb_worker_ctx);
  ------------------
  |  |   34|      8|#define FLB_TLS_GET(key)           key
  ------------------
  106|      8|    if (!w && l <= 3) {
  ------------------
  |  Branch (106:9): [True: 8, False: 0]
  |  Branch (106:15): [True: 8, False: 0]
  ------------------
  107|      8|        return FLB_TRUE;
  ------------------
  |  |   26|      8|#define FLB_TRUE   !FLB_FALSE
  |  |  ------------------
  |  |  |  |   25|      8|#define FLB_FALSE  0
  |  |  ------------------
  ------------------
  108|      8|    }
  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|     19|static inline int flb_log_check(int l) {
  104|     19|    struct flb_worker *w;
  105|     19|    w = (struct flb_worker *) FLB_TLS_GET(flb_worker_ctx);
  ------------------
  |  |   34|     19|#define FLB_TLS_GET(key)           key
  ------------------
  106|     19|    if (!w && l <= 3) {
  ------------------
  |  Branch (106:9): [True: 19, False: 0]
  |  Branch (106:15): [True: 19, False: 0]
  ------------------
  107|     19|        return FLB_TRUE;
  ------------------
  |  |   26|     19|#define FLB_TRUE   !FLB_FALSE
  |  |  ------------------
  |  |  |  |   25|     19|#define FLB_FALSE  0
  |  |  ------------------
  ------------------
  108|     19|    }
  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|     19|static inline int flb_log_check(int l) {
  104|     19|    struct flb_worker *w;
  105|     19|    w = (struct flb_worker *) FLB_TLS_GET(flb_worker_ctx);
  ------------------
  |  |   34|     19|#define FLB_TLS_GET(key)           key
  ------------------
  106|     19|    if (!w && l <= 3) {
  ------------------
  |  Branch (106:9): [True: 19, False: 0]
  |  Branch (106:15): [True: 19, False: 0]
  ------------------
  107|     19|        return FLB_TRUE;
  ------------------
  |  |   26|     19|#define FLB_TRUE   !FLB_FALSE
  |  |  ------------------
  |  |  |  |   25|     19|#define FLB_FALSE  0
  |  |  ------------------
  ------------------
  108|     19|    }
  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|     82|static inline int flb_log_check(int l) {
  104|     82|    struct flb_worker *w;
  105|     82|    w = (struct flb_worker *) FLB_TLS_GET(flb_worker_ctx);
  ------------------
  |  |   34|     82|#define FLB_TLS_GET(key)           key
  ------------------
  106|     82|    if (!w && l <= 3) {
  ------------------
  |  Branch (106:9): [True: 82, False: 0]
  |  Branch (106:15): [True: 82, False: 0]
  ------------------
  107|     82|        return FLB_TRUE;
  ------------------
  |  |   26|     82|#define FLB_TRUE   !FLB_FALSE
  |  |  ------------------
  |  |  |  |   25|     82|#define FLB_FALSE  0
  |  |  ------------------
  ------------------
  108|     82|    }
  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|     44|static inline int flb_log_check(int l) {
  104|     44|    struct flb_worker *w;
  105|     44|    w = (struct flb_worker *) FLB_TLS_GET(flb_worker_ctx);
  ------------------
  |  |   34|     44|#define FLB_TLS_GET(key)           key
  ------------------
  106|     44|    if (!w && l <= 3) {
  ------------------
  |  Branch (106:9): [True: 44, False: 0]
  |  Branch (106:15): [True: 44, False: 0]
  ------------------
  107|     44|        return FLB_TRUE;
  ------------------
  |  |   26|     44|#define FLB_TRUE   !FLB_FALSE
  |  |  ------------------
  |  |  |  |   25|     44|#define FLB_FALSE  0
  |  |  ------------------
  ------------------
  108|     44|    }
  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|     14|static inline int flb_log_check(int l) {
  104|     14|    struct flb_worker *w;
  105|     14|    w = (struct flb_worker *) FLB_TLS_GET(flb_worker_ctx);
  ------------------
  |  |   34|     14|#define FLB_TLS_GET(key)           key
  ------------------
  106|     14|    if (!w && l <= 3) {
  ------------------
  |  Branch (106:9): [True: 14, False: 0]
  |  Branch (106:15): [True: 14, False: 0]
  ------------------
  107|     14|        return FLB_TRUE;
  ------------------
  |  |   26|     14|#define FLB_TRUE   !FLB_FALSE
  |  |  ------------------
  |  |  |  |   25|     14|#define FLB_FALSE  0
  |  |  ------------------
  ------------------
  108|     14|    }
  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|}

config_map_fuzzer.c:flb_malloc:
   67|  2.29k|void *flb_malloc(const size_t size) {
   68|       |
   69|  2.29k|#ifdef FLB_HAVE_TESTS_OSSFUZZ
   70|       |   // 1% chance of failure
   71|  2.29k|   if (flb_fuzz_get_probability(1)) {
  ------------------
  |  Branch (71:8): [True: 8, False: 2.29k]
  ------------------
   72|      8|     return NULL;
   73|      8|   }
   74|  2.29k|#endif
   75|       |
   76|  2.29k|    if (size == 0) {
  ------------------
  |  Branch (76:9): [True: 0, False: 2.29k]
  ------------------
   77|      0|        return NULL;
   78|      0|    }
   79|       |
   80|  2.29k|    return malloc(size);
   81|  2.29k|}
config_map_fuzzer.c:flb_fuzz_get_probability:
   56|  2.29k|static inline int flb_fuzz_get_probability(int val) {
   57|  2.29k|  flb_malloc_p += 1;
   58|  2.29k|  flb_malloc_p = flb_malloc_p % flb_malloc_mod;
   59|  2.29k|  if (val > flb_malloc_p) {
  ------------------
  |  Branch (59:7): [True: 8, False: 2.29k]
  ------------------
   60|      8|    return 1;
   61|      8|  }
   62|  2.29k|  return 0;
   63|  2.29k|}
config_map_fuzzer.c:flb_free:
  126|  2.29k|static inline void flb_free(void *ptr) {
  127|  2.29k|    free(ptr);
  128|  2.29k|}
flb_kv.c:flb_calloc:
   84|  1.17k|void *flb_calloc(size_t n, const size_t size) {
   85|  1.17k|    if (size == 0) {
  ------------------
  |  Branch (85:9): [True: 0, False: 1.17k]
  ------------------
   86|      0|        return NULL;
   87|      0|    }
   88|  1.17k|#ifdef FLB_HAVE_TESTS_OSSFUZZ
   89|       |   // Add chance of failure. Used by fuzzing to test error-handling code.
   90|  1.17k|   if (flb_fuzz_get_probability(1)) {
  ------------------
  |  Branch (90:8): [True: 1, False: 1.17k]
  ------------------
   91|      1|     return NULL;
   92|      1|   }
   93|  1.17k|#endif
   94|       |
   95|  1.17k|    return calloc(n, size);
   96|  1.17k|}
flb_kv.c:flb_fuzz_get_probability:
   56|  1.17k|static inline int flb_fuzz_get_probability(int val) {
   57|  1.17k|  flb_malloc_p += 1;
   58|  1.17k|  flb_malloc_p = flb_malloc_p % flb_malloc_mod;
   59|  1.17k|  if (val > flb_malloc_p) {
  ------------------
  |  Branch (59:7): [True: 1, False: 1.17k]
  ------------------
   60|      1|    return 1;
   61|      1|  }
   62|  1.17k|  return 0;
   63|  1.17k|}
flb_kv.c:flb_free:
  126|  1.17k|static inline void flb_free(void *ptr) {
  127|  1.17k|    free(ptr);
  128|  1.17k|}
flb_sds.c:flb_malloc:
   67|   138k|void *flb_malloc(const size_t size) {
   68|       |
   69|   138k|#ifdef FLB_HAVE_TESTS_OSSFUZZ
   70|       |   // 1% chance of failure
   71|   138k|   if (flb_fuzz_get_probability(1)) {
  ------------------
  |  Branch (71:8): [True: 177, False: 137k]
  ------------------
   72|    177|     return NULL;
   73|    177|   }
   74|   137k|#endif
   75|       |
   76|   137k|    if (size == 0) {
  ------------------
  |  Branch (76:9): [True: 0, False: 137k]
  ------------------
   77|      0|        return NULL;
   78|      0|    }
   79|       |
   80|   137k|    return malloc(size);
   81|   137k|}
flb_sds.c:flb_fuzz_get_probability:
   56|   138k|static inline int flb_fuzz_get_probability(int val) {
   57|   138k|  flb_malloc_p += 1;
   58|   138k|  flb_malloc_p = flb_malloc_p % flb_malloc_mod;
   59|   138k|  if (val > flb_malloc_p) {
  ------------------
  |  Branch (59:7): [True: 177, False: 137k]
  ------------------
   60|    177|    return 1;
   61|    177|  }
   62|   137k|  return 0;
   63|   138k|}
flb_sds.c:flb_free:
  126|   137k|static inline void flb_free(void *ptr) {
  127|   137k|    free(ptr);
  128|   137k|}
flb_config.c:flb_malloc:
   67|  96.1k|void *flb_malloc(const size_t size) {
   68|       |
   69|  96.1k|#ifdef FLB_HAVE_TESTS_OSSFUZZ
   70|       |   // 1% chance of failure
   71|  96.1k|   if (flb_fuzz_get_probability(1)) {
  ------------------
  |  Branch (71:8): [True: 142, False: 96.0k]
  ------------------
   72|    142|     return NULL;
   73|    142|   }
   74|  96.0k|#endif
   75|       |
   76|  96.0k|    if (size == 0) {
  ------------------
  |  Branch (76:9): [True: 0, False: 96.0k]
  ------------------
   77|      0|        return NULL;
   78|      0|    }
   79|       |
   80|  96.0k|    return malloc(size);
   81|  96.0k|}
flb_config.c:flb_fuzz_get_probability:
   56|  97.7k|static inline int flb_fuzz_get_probability(int val) {
   57|  97.7k|  flb_malloc_p += 1;
   58|  97.7k|  flb_malloc_p = flb_malloc_p % flb_malloc_mod;
   59|  97.7k|  if (val > flb_malloc_p) {
  ------------------
  |  Branch (59:7): [True: 149, False: 97.5k]
  ------------------
   60|    149|    return 1;
   61|    149|  }
   62|  97.5k|  return 0;
   63|  97.7k|}
flb_config.c:flb_free:
  126|  97.5k|static inline void flb_free(void *ptr) {
  127|  97.5k|    free(ptr);
  128|  97.5k|}
flb_config.c:flb_calloc:
   84|  1.53k|void *flb_calloc(size_t n, const size_t size) {
   85|  1.53k|    if (size == 0) {
  ------------------
  |  Branch (85:9): [True: 0, False: 1.53k]
  ------------------
   86|      0|        return NULL;
   87|      0|    }
   88|  1.53k|#ifdef FLB_HAVE_TESTS_OSSFUZZ
   89|       |   // Add chance of failure. Used by fuzzing to test error-handling code.
   90|  1.53k|   if (flb_fuzz_get_probability(1)) {
  ------------------
  |  Branch (90:8): [True: 7, False: 1.52k]
  ------------------
   91|      7|     return NULL;
   92|      7|   }
   93|  1.52k|#endif
   94|       |
   95|  1.52k|    return calloc(n, size);
   96|  1.53k|}
flb_config_map.c:flb_malloc:
   67|  7.22k|void *flb_malloc(const size_t size) {
   68|       |
   69|  7.22k|#ifdef FLB_HAVE_TESTS_OSSFUZZ
   70|       |   // 1% chance of failure
   71|  7.22k|   if (flb_fuzz_get_probability(1)) {
  ------------------
  |  Branch (71:8): [True: 14, False: 7.21k]
  ------------------
   72|     14|     return NULL;
   73|     14|   }
   74|  7.21k|#endif
   75|       |
   76|  7.21k|    if (size == 0) {
  ------------------
  |  Branch (76:9): [True: 0, False: 7.21k]
  ------------------
   77|      0|        return NULL;
   78|      0|    }
   79|       |
   80|  7.21k|    return malloc(size);
   81|  7.21k|}
flb_config_map.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: 29, False: 18.9k]
  ------------------
   60|     29|    return 1;
   61|     29|  }
   62|  18.9k|  return 0;
   63|  18.9k|}
flb_config_map.c:flb_calloc:
   84|  11.7k|void *flb_calloc(size_t n, const size_t size) {
   85|  11.7k|    if (size == 0) {
  ------------------
  |  Branch (85:9): [True: 0, False: 11.7k]
  ------------------
   86|      0|        return NULL;
   87|      0|    }
   88|  11.7k|#ifdef FLB_HAVE_TESTS_OSSFUZZ
   89|       |   // Add chance of failure. Used by fuzzing to test error-handling code.
   90|  11.7k|   if (flb_fuzz_get_probability(1)) {
  ------------------
  |  Branch (90:8): [True: 15, False: 11.7k]
  ------------------
   91|     15|     return NULL;
   92|     15|   }
   93|  11.7k|#endif
   94|       |
   95|  11.7k|    return calloc(n, size);
   96|  11.7k|}
flb_config_map.c:flb_free:
  126|  18.9k|static inline void flb_free(void *ptr) {
  127|  18.9k|    free(ptr);
  128|  18.9k|}
flb_slist.c:flb_malloc:
   67|  66.8k|void *flb_malloc(const size_t size) {
   68|       |
   69|  66.8k|#ifdef FLB_HAVE_TESTS_OSSFUZZ
   70|       |   // 1% chance of failure
   71|  66.8k|   if (flb_fuzz_get_probability(1)) {
  ------------------
  |  Branch (71:8): [True: 78, False: 66.8k]
  ------------------
   72|     78|     return NULL;
   73|     78|   }
   74|  66.8k|#endif
   75|       |
   76|  66.8k|    if (size == 0) {
  ------------------
  |  Branch (76:9): [True: 0, False: 66.8k]
  ------------------
   77|      0|        return NULL;
   78|      0|    }
   79|       |
   80|  66.8k|    return malloc(size);
   81|  66.8k|}
flb_slist.c:flb_fuzz_get_probability:
   56|  66.8k|static inline int flb_fuzz_get_probability(int val) {
   57|  66.8k|  flb_malloc_p += 1;
   58|  66.8k|  flb_malloc_p = flb_malloc_p % flb_malloc_mod;
   59|  66.8k|  if (val > flb_malloc_p) {
  ------------------
  |  Branch (59:7): [True: 78, False: 66.8k]
  ------------------
   60|     78|    return 1;
   61|     78|  }
   62|  66.8k|  return 0;
   63|  66.8k|}
flb_slist.c:flb_free:
  126|  66.6k|static inline void flb_free(void *ptr) {
  127|  66.6k|    free(ptr);
  128|  66.6k|}
flb_plugin.c:flb_malloc:
   67|  1.17k|void *flb_malloc(const size_t size) {
   68|       |
   69|  1.17k|#ifdef FLB_HAVE_TESTS_OSSFUZZ
   70|       |   // 1% chance of failure
   71|  1.17k|   if (flb_fuzz_get_probability(1)) {
  ------------------
  |  Branch (71:8): [True: 1, False: 1.17k]
  ------------------
   72|      1|     return NULL;
   73|      1|   }
   74|  1.17k|#endif
   75|       |
   76|  1.17k|    if (size == 0) {
  ------------------
  |  Branch (76:9): [True: 0, False: 1.17k]
  ------------------
   77|      0|        return NULL;
   78|      0|    }
   79|       |
   80|  1.17k|    return malloc(size);
   81|  1.17k|}
flb_plugin.c:flb_fuzz_get_probability:
   56|  1.17k|static inline int flb_fuzz_get_probability(int val) {
   57|  1.17k|  flb_malloc_p += 1;
   58|  1.17k|  flb_malloc_p = flb_malloc_p % flb_malloc_mod;
   59|  1.17k|  if (val > flb_malloc_p) {
  ------------------
  |  Branch (59:7): [True: 1, False: 1.17k]
  ------------------
   60|      1|    return 1;
   61|      1|  }
   62|  1.17k|  return 0;
   63|  1.17k|}
flb_plugin.c:flb_free:
  126|  1.17k|static inline void flb_free(void *ptr) {
  127|  1.17k|    free(ptr);
  128|  1.17k|}
flb_config_format.c:flb_calloc:
   84|  1.52k|void *flb_calloc(size_t n, const size_t size) {
   85|  1.52k|    if (size == 0) {
  ------------------
  |  Branch (85:9): [True: 0, False: 1.52k]
  ------------------
   86|      0|        return NULL;
   87|      0|    }
   88|  1.52k|#ifdef FLB_HAVE_TESTS_OSSFUZZ
   89|       |   // Add chance of failure. Used by fuzzing to test error-handling code.
   90|  1.52k|   if (flb_fuzz_get_probability(1)) {
  ------------------
  |  Branch (90:8): [True: 5, False: 1.52k]
  ------------------
   91|      5|     return NULL;
   92|      5|   }
   93|  1.52k|#endif
   94|       |
   95|  1.52k|    return calloc(n, size);
   96|  1.52k|}
flb_config_format.c:flb_fuzz_get_probability:
   56|  3.04k|static inline int flb_fuzz_get_probability(int val) {
   57|  3.04k|  flb_malloc_p += 1;
   58|  3.04k|  flb_malloc_p = flb_malloc_p % flb_malloc_mod;
   59|  3.04k|  if (val > flb_malloc_p) {
  ------------------
  |  Branch (59:7): [True: 8, False: 3.03k]
  ------------------
   60|      8|    return 1;
   61|      8|  }
   62|  3.03k|  return 0;
   63|  3.04k|}
flb_config_format.c:flb_free:
  126|  3.03k|static inline void flb_free(void *ptr) {
  127|  3.03k|    free(ptr);
  128|  3.03k|}
flb_config_format.c:flb_malloc:
   67|  1.52k|void *flb_malloc(const size_t size) {
   68|       |
   69|  1.52k|#ifdef FLB_HAVE_TESTS_OSSFUZZ
   70|       |   // 1% chance of failure
   71|  1.52k|   if (flb_fuzz_get_probability(1)) {
  ------------------
  |  Branch (71:8): [True: 3, False: 1.51k]
  ------------------
   72|      3|     return NULL;
   73|      3|   }
   74|  1.51k|#endif
   75|       |
   76|  1.51k|    if (size == 0) {
  ------------------
  |  Branch (76:9): [True: 0, False: 1.51k]
  ------------------
   77|      0|        return NULL;
   78|      0|    }
   79|       |
   80|  1.51k|    return malloc(size);
   81|  1.51k|}
flb_parser.c:flb_calloc:
   84|  2.99k|void *flb_calloc(size_t n, const size_t size) {
   85|  2.99k|    if (size == 0) {
  ------------------
  |  Branch (85:9): [True: 0, False: 2.99k]
  ------------------
   86|      0|        return NULL;
   87|      0|    }
   88|  2.99k|#ifdef FLB_HAVE_TESTS_OSSFUZZ
   89|       |   // Add chance of failure. Used by fuzzing to test error-handling code.
   90|  2.99k|   if (flb_fuzz_get_probability(1)) {
  ------------------
  |  Branch (90:8): [True: 4, False: 2.99k]
  ------------------
   91|      4|     return NULL;
   92|      4|   }
   93|  2.99k|#endif
   94|       |
   95|  2.99k|    return calloc(n, size);
   96|  2.99k|}
flb_parser.c:flb_fuzz_get_probability:
   56|  16.4k|static inline int flb_fuzz_get_probability(int val) {
   57|  16.4k|  flb_malloc_p += 1;
   58|  16.4k|  flb_malloc_p = flb_malloc_p % flb_malloc_mod;
   59|  16.4k|  if (val > flb_malloc_p) {
  ------------------
  |  Branch (59:7): [True: 27, False: 16.3k]
  ------------------
   60|     27|    return 1;
   61|     27|  }
   62|  16.3k|  return 0;
   63|  16.4k|}
flb_parser.c:flb_free:
  126|  16.4k|static inline void flb_free(void *ptr) {
  127|  16.4k|    free(ptr);
  128|  16.4k|}
flb_parser.c:flb_malloc:
   67|  13.4k|void *flb_malloc(const size_t size) {
   68|       |
   69|  13.4k|#ifdef FLB_HAVE_TESTS_OSSFUZZ
   70|       |   // 1% chance of failure
   71|  13.4k|   if (flb_fuzz_get_probability(1)) {
  ------------------
  |  Branch (71:8): [True: 23, False: 13.3k]
  ------------------
   72|     23|     return NULL;
   73|     23|   }
   74|  13.3k|#endif
   75|       |
   76|  13.3k|    if (size == 0) {
  ------------------
  |  Branch (76:9): [True: 0, False: 13.3k]
  ------------------
   77|      0|        return NULL;
   78|      0|    }
   79|       |
   80|  13.3k|    return malloc(size);
   81|  13.3k|}
flb_regex.c:flb_malloc:
   67|  31.8k|void *flb_malloc(const size_t size) {
   68|       |
   69|  31.8k|#ifdef FLB_HAVE_TESTS_OSSFUZZ
   70|       |   // 1% chance of failure
   71|  31.8k|   if (flb_fuzz_get_probability(1)) {
  ------------------
  |  Branch (71:8): [True: 22, False: 31.7k]
  ------------------
   72|     22|     return NULL;
   73|     22|   }
   74|  31.7k|#endif
   75|       |
   76|  31.7k|    if (size == 0) {
  ------------------
  |  Branch (76:9): [True: 0, False: 31.7k]
  ------------------
   77|      0|        return NULL;
   78|      0|    }
   79|       |
   80|  31.7k|    return malloc(size);
   81|  31.7k|}
flb_regex.c:flb_fuzz_get_probability:
   56|  31.8k|static inline int flb_fuzz_get_probability(int val) {
   57|  31.8k|  flb_malloc_p += 1;
   58|  31.8k|  flb_malloc_p = flb_malloc_p % flb_malloc_mod;
   59|  31.8k|  if (val > flb_malloc_p) {
  ------------------
  |  Branch (59:7): [True: 22, False: 31.7k]
  ------------------
   60|     22|    return 1;
   61|     22|  }
   62|  31.7k|  return 0;
   63|  31.8k|}
flb_regex.c:flb_free:
  126|  31.7k|static inline void flb_free(void *ptr) {
  127|  31.7k|    free(ptr);
  128|  31.7k|}
flb_env.c:flb_malloc:
   67|  1.51k|void *flb_malloc(const size_t size) {
   68|       |
   69|  1.51k|#ifdef FLB_HAVE_TESTS_OSSFUZZ
   70|       |   // 1% chance of failure
   71|  1.51k|   if (flb_fuzz_get_probability(1)) {
  ------------------
  |  Branch (71:8): [True: 2, False: 1.51k]
  ------------------
   72|      2|     return NULL;
   73|      2|   }
   74|  1.51k|#endif
   75|       |
   76|  1.51k|    if (size == 0) {
  ------------------
  |  Branch (76:9): [True: 0, False: 1.51k]
  ------------------
   77|      0|        return NULL;
   78|      0|    }
   79|       |
   80|  1.51k|    return malloc(size);
   81|  1.51k|}
flb_env.c:flb_fuzz_get_probability:
   56|  1.51k|static inline int flb_fuzz_get_probability(int val) {
   57|  1.51k|  flb_malloc_p += 1;
   58|  1.51k|  flb_malloc_p = flb_malloc_p % flb_malloc_mod;
   59|  1.51k|  if (val > flb_malloc_p) {
  ------------------
  |  Branch (59:7): [True: 2, False: 1.51k]
  ------------------
   60|      2|    return 1;
   61|      2|  }
   62|  1.51k|  return 0;
   63|  1.51k|}
flb_env.c:flb_free:
  126|  1.51k|static inline void flb_free(void *ptr) {
  127|  1.51k|    free(ptr);
  128|  1.51k|}
flb_hash_table.c:flb_calloc:
   84|  3.02k|void *flb_calloc(size_t n, const size_t size) {
   85|  3.02k|    if (size == 0) {
  ------------------
  |  Branch (85:9): [True: 0, False: 3.02k]
  ------------------
   86|      0|        return NULL;
   87|      0|    }
   88|  3.02k|#ifdef FLB_HAVE_TESTS_OSSFUZZ
   89|       |   // Add chance of failure. Used by fuzzing to test error-handling code.
   90|  3.02k|   if (flb_fuzz_get_probability(1)) {
  ------------------
  |  Branch (90:8): [True: 3, False: 3.02k]
  ------------------
   91|      3|     return NULL;
   92|      3|   }
   93|  3.02k|#endif
   94|       |
   95|  3.02k|    return calloc(n, size);
   96|  3.02k|}
flb_hash_table.c:flb_fuzz_get_probability:
   56|  3.02k|static inline int flb_fuzz_get_probability(int val) {
   57|  3.02k|  flb_malloc_p += 1;
   58|  3.02k|  flb_malloc_p = flb_malloc_p % flb_malloc_mod;
   59|  3.02k|  if (val > flb_malloc_p) {
  ------------------
  |  Branch (59:7): [True: 3, False: 3.02k]
  ------------------
   60|      3|    return 1;
   61|      3|  }
   62|  3.02k|  return 0;
   63|  3.02k|}
flb_hash_table.c:flb_free:
  126|  3.02k|static inline void flb_free(void *ptr) {
  127|  3.02k|    free(ptr);
  128|  3.02k|}
flb_kernel.c:flb_malloc:
   67|  3.03k|void *flb_malloc(const size_t size) {
   68|       |
   69|  3.03k|#ifdef FLB_HAVE_TESTS_OSSFUZZ
   70|       |   // 1% chance of failure
   71|  3.03k|   if (flb_fuzz_get_probability(1)) {
  ------------------
  |  Branch (71:8): [True: 5, False: 3.02k]
  ------------------
   72|      5|     return NULL;
   73|      5|   }
   74|  3.02k|#endif
   75|       |
   76|  3.02k|    if (size == 0) {
  ------------------
  |  Branch (76:9): [True: 0, False: 3.02k]
  ------------------
   77|      0|        return NULL;
   78|      0|    }
   79|       |
   80|  3.02k|    return malloc(size);
   81|  3.02k|}
flb_kernel.c:flb_fuzz_get_probability:
   56|  3.03k|static inline int flb_fuzz_get_probability(int val) {
   57|  3.03k|  flb_malloc_p += 1;
   58|  3.03k|  flb_malloc_p = flb_malloc_p % flb_malloc_mod;
   59|  3.03k|  if (val > flb_malloc_p) {
  ------------------
  |  Branch (59:7): [True: 5, False: 3.02k]
  ------------------
   60|      5|    return 1;
   61|      5|  }
   62|  3.02k|  return 0;
   63|  3.03k|}
flb_kernel.c:flb_free:
  126|  3.02k|static inline void flb_free(void *ptr) {
  127|  3.02k|    free(ptr);
  128|  3.02k|}
flb_ml_parser.c:flb_calloc:
   84|  8.50k|void *flb_calloc(size_t n, const size_t size) {
   85|  8.50k|    if (size == 0) {
  ------------------
  |  Branch (85:9): [True: 0, False: 8.50k]
  ------------------
   86|      0|        return NULL;
   87|      0|    }
   88|  8.50k|#ifdef FLB_HAVE_TESTS_OSSFUZZ
   89|       |   // Add chance of failure. Used by fuzzing to test error-handling code.
   90|  8.50k|   if (flb_fuzz_get_probability(1)) {
  ------------------
  |  Branch (90:8): [True: 11, False: 8.49k]
  ------------------
   91|     11|     return NULL;
   92|     11|   }
   93|  8.49k|#endif
   94|       |
   95|  8.49k|    return calloc(n, size);
   96|  8.50k|}
flb_ml_parser.c:flb_fuzz_get_probability:
   56|  8.50k|static inline int flb_fuzz_get_probability(int val) {
   57|  8.50k|  flb_malloc_p += 1;
   58|  8.50k|  flb_malloc_p = flb_malloc_p % flb_malloc_mod;
   59|  8.50k|  if (val > flb_malloc_p) {
  ------------------
  |  Branch (59:7): [True: 11, False: 8.49k]
  ------------------
   60|     11|    return 1;
   61|     11|  }
   62|  8.49k|  return 0;
   63|  8.50k|}
flb_ml_parser.c:flb_free:
  126|  8.49k|static inline void flb_free(void *ptr) {
  127|  8.49k|    free(ptr);
  128|  8.49k|}
flb_ml_rule.c:flb_calloc:
   84|  30.4k|void *flb_calloc(size_t n, const size_t size) {
   85|  30.4k|    if (size == 0) {
  ------------------
  |  Branch (85:9): [True: 0, False: 30.4k]
  ------------------
   86|      0|        return NULL;
   87|      0|    }
   88|  30.4k|#ifdef FLB_HAVE_TESTS_OSSFUZZ
   89|       |   // Add chance of failure. Used by fuzzing to test error-handling code.
   90|  30.4k|   if (flb_fuzz_get_probability(1)) {
  ------------------
  |  Branch (90:8): [True: 22, False: 30.3k]
  ------------------
   91|     22|     return NULL;
   92|     22|   }
   93|  30.3k|#endif
   94|       |
   95|  30.3k|    return calloc(n, size);
   96|  30.4k|}
flb_ml_rule.c:flb_fuzz_get_probability:
   56|   115k|static inline int flb_fuzz_get_probability(int val) {
   57|   115k|  flb_malloc_p += 1;
   58|   115k|  flb_malloc_p = flb_malloc_p % flb_malloc_mod;
   59|   115k|  if (val > flb_malloc_p) {
  ------------------
  |  Branch (59:7): [True: 53, False: 115k]
  ------------------
   60|     53|    return 1;
   61|     53|  }
   62|   115k|  return 0;
   63|   115k|}
flb_ml_rule.c:flb_free:
  126|   115k|static inline void flb_free(void *ptr) {
  127|   115k|    free(ptr);
  128|   115k|}
flb_ml_rule.c:flb_malloc:
   67|  85.0k|void *flb_malloc(const size_t size) {
   68|       |
   69|  85.0k|#ifdef FLB_HAVE_TESTS_OSSFUZZ
   70|       |   // 1% chance of failure
   71|  85.0k|   if (flb_fuzz_get_probability(1)) {
  ------------------
  |  Branch (71:8): [True: 31, False: 85.0k]
  ------------------
   72|     31|     return NULL;
   73|     31|   }
   74|  85.0k|#endif
   75|       |
   76|  85.0k|    if (size == 0) {
  ------------------
  |  Branch (76:9): [True: 0, False: 85.0k]
  ------------------
   77|      0|        return NULL;
   78|      0|    }
   79|       |
   80|  85.0k|    return malloc(size);
   81|  85.0k|}

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

flb_sds.c:flb_sds_alloc:
   68|  7.87k|{
   69|  7.87k|    return (size_t) FLB_SDS_HEADER(s)->alloc;
  ------------------
  |  |   46|  7.87k|#define FLB_SDS_HEADER(s)  ((struct flb_sds *) (s - FLB_SDS_HEADER_SIZE))
  |  |  ------------------
  |  |  |  |   34|  7.87k|#define FLB_SDS_HEADER_SIZE (sizeof(uint64_t) + sizeof(uint64_t))
  |  |  ------------------
  ------------------
   70|  7.87k|}
flb_sds.c:flb_sds_avail:
   73|  19.0k|{
   74|  19.0k|    struct flb_sds *h;
   75|       |
   76|  19.0k|    h = FLB_SDS_HEADER(s);
  ------------------
  |  |   46|  19.0k|#define FLB_SDS_HEADER(s)  ((struct flb_sds *) (s - FLB_SDS_HEADER_SIZE))
  |  |  ------------------
  |  |  |  |   34|  19.0k|#define FLB_SDS_HEADER_SIZE (sizeof(uint64_t) + sizeof(uint64_t))
  |  |  ------------------
  ------------------
   77|  19.0k|    return (size_t) (h->alloc - h->len);
   78|  19.0k|}
flb_sds.c:flb_sds_len:
   49|  6.35k|{
   50|  6.35k|    return (size_t) FLB_SDS_HEADER(s)->len;
  ------------------
  |  |   46|  6.35k|#define FLB_SDS_HEADER(s)  ((struct flb_sds *) (s - FLB_SDS_HEADER_SIZE))
  |  |  ------------------
  |  |  |  |   34|  6.35k|#define FLB_SDS_HEADER_SIZE (sizeof(uint64_t) + sizeof(uint64_t))
  |  |  ------------------
  ------------------
   51|  6.35k|}
flb_config_map.c:flb_sds_len:
   49|  31.8k|{
   50|  31.8k|    return (size_t) FLB_SDS_HEADER(s)->len;
  ------------------
  |  |   46|  31.8k|#define FLB_SDS_HEADER(s)  ((struct flb_sds *) (s - FLB_SDS_HEADER_SIZE))
  |  |  ------------------
  |  |  |  |   34|  31.8k|#define FLB_SDS_HEADER_SIZE (sizeof(uint64_t) + sizeof(uint64_t))
  |  |  ------------------
  ------------------
   51|  31.8k|}
flb_slist.c:flb_sds_len_set:
   63|     59|{
   64|     59|    FLB_SDS_HEADER(s)->len = len;
  ------------------
  |  |   46|     59|#define FLB_SDS_HEADER(s)  ((struct flb_sds *) (s - FLB_SDS_HEADER_SIZE))
  |  |  ------------------
  |  |  |  |   34|     59|#define FLB_SDS_HEADER_SIZE (sizeof(uint64_t) + sizeof(uint64_t))
  |  |  ------------------
  ------------------
   65|     59|}
flb_env.c:flb_sds_len:
   49|  7.87k|{
   50|  7.87k|    return (size_t) FLB_SDS_HEADER(s)->len;
  ------------------
  |  |   46|  7.87k|#define FLB_SDS_HEADER(s)  ((struct flb_sds *) (s - FLB_SDS_HEADER_SIZE))
  |  |  ------------------
  |  |  |  |   34|  7.87k|#define FLB_SDS_HEADER_SIZE (sizeof(uint64_t) + sizeof(uint64_t))
  |  |  ------------------
  ------------------
   51|  7.87k|}

flb_config.c:flb_strdup:
   45|  3.03k|{
   46|  3.03k|    return flb_strndup(s, strlen(s));
   47|  3.03k|}
flb_config.c:flb_strndup:
   31|  3.03k|{
   32|  3.03k|    char *str;
   33|       |
   34|  3.03k|    str = (char *) flb_malloc(n + 1);
   35|  3.03k|    if (!str) {
  ------------------
  |  Branch (35:9): [True: 5, False: 3.02k]
  ------------------
   36|      5|        return NULL;
   37|      5|    }
   38|  3.02k|    memcpy(str, s, n);
   39|  3.02k|    str[n] = '\0';
   40|       |
   41|  3.02k|    return str;
   42|  3.03k|}
flb_config.c:flb_str_emptyval:
   51|  4.54k|{
   52|  4.54k|    if (s != NULL && strcmp(s, "") == 0) {
  ------------------
  |  Branch (52:9): [True: 0, False: 4.54k]
  |  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.54k|    return FLB_FALSE;
  ------------------
  |  |   25|  4.54k|#define FLB_FALSE  0
  ------------------
   56|  4.54k|}
flb_parser.c:flb_strdup:
   45|  13.4k|{
   46|  13.4k|    return flb_strndup(s, strlen(s));
   47|  13.4k|}
flb_parser.c:flb_strndup:
   31|  13.4k|{
   32|  13.4k|    char *str;
   33|       |
   34|  13.4k|    str = (char *) flb_malloc(n + 1);
   35|  13.4k|    if (!str) {
  ------------------
  |  Branch (35:9): [True: 23, False: 13.3k]
  ------------------
   36|     23|        return NULL;
   37|     23|    }
   38|  13.3k|    memcpy(str, s, n);
   39|  13.3k|    str[n] = '\0';
   40|       |
   41|  13.3k|    return str;
   42|  13.4k|}

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

cfl_kvlist_create:
   27|  1.51k|{
   28|  1.51k|    struct cfl_kvlist *list;
   29|       |
   30|  1.51k|    list = malloc(sizeof(struct cfl_kvlist));
   31|  1.51k|    if (list == NULL) {
  ------------------
  |  Branch (31:9): [True: 0, False: 1.51k]
  ------------------
   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.51k|    cfl_list_init(&list->list);
   37|  1.51k|    return list;
   38|  1.51k|}
cfl_kvlist_destroy:
   41|  1.51k|{
   42|  1.51k|    struct cfl_list *tmp;
   43|  1.51k|    struct cfl_list *head;
   44|  1.51k|    struct cfl_kvpair *pair;
   45|       |
   46|  1.51k|    cfl_list_foreach_safe(head, tmp, &list->list) {
  ------------------
  |  |  199|  1.51k|    for (curr = (head)->next, n = curr->next; curr != (head); curr = n, n = curr->next)
  |  |  ------------------
  |  |  |  Branch (199:47): [True: 0, False: 1.51k]
  |  |  ------------------
  ------------------
   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.51k|    free(list);
   61|  1.51k|}

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

flb_kv.c:mk_list_init:
   49|  1.17k|{
   50|  1.17k|    list->next = list;
   51|  1.17k|    list->prev = list;
   52|  1.17k|}
flb_kv.c:mk_list_add:
   64|  1.16k|{
   65|  1.16k|    __mk_list_add(_new, head->prev, head);
   66|  1.16k|}
flb_kv.c:__mk_list_add:
   56|  1.16k|{
   57|  1.16k|    next->prev = _new;
   58|  1.16k|    _new->next = next;
   59|  1.16k|    _new->prev = prev;
   60|  1.16k|    prev->next = _new;
   61|  1.16k|}
flb_kv.c:mk_list_del:
  146|  1.16k|{
  147|  1.16k|    __mk_list_del(entry->prev, entry->next);
  148|  1.16k|    entry->prev = NULL;
  149|  1.16k|    entry->next = NULL;
  150|  1.16k|}
flb_kv.c:__mk_list_del:
  140|  1.16k|{
  141|  1.16k|    prev->next = next;
  142|  1.16k|    next->prev = prev;
  143|  1.16k|}
flb_config.c:mk_list_add:
   64|  93.0k|{
   65|  93.0k|    __mk_list_add(_new, head->prev, head);
   66|  93.0k|}
flb_config.c:__mk_list_add:
   56|  93.0k|{
   57|  93.0k|    next->prev = _new;
   58|  93.0k|    _new->next = next;
   59|  93.0k|    _new->prev = prev;
   60|  93.0k|    prev->next = _new;
   61|  93.0k|}
flb_config.c:mk_list_del:
  146|  93.0k|{
  147|  93.0k|    __mk_list_del(entry->prev, entry->next);
  148|  93.0k|    entry->prev = NULL;
  149|  93.0k|    entry->next = NULL;
  150|  93.0k|}
flb_config.c:__mk_list_del:
  140|  93.0k|{
  141|  93.0k|    prev->next = next;
  142|  93.0k|    next->prev = prev;
  143|  93.0k|}
flb_config.c:mk_list_init:
   49|  28.8k|{
   50|  28.8k|    list->next = list;
   51|  28.8k|    list->prev = list;
   52|  28.8k|}
flb_config_map.c:mk_list_init:
   49|  7.21k|{
   50|  7.21k|    list->next = list;
   51|  7.21k|    list->prev = list;
   52|  7.21k|}
flb_config_map.c:mk_list_add:
   64|  11.6k|{
   65|  11.6k|    __mk_list_add(_new, head->prev, head);
   66|  11.6k|}
flb_config_map.c:__mk_list_add:
   56|  11.6k|{
   57|  11.6k|    next->prev = _new;
   58|  11.6k|    _new->next = next;
   59|  11.6k|    _new->prev = prev;
   60|  11.6k|    prev->next = _new;
   61|  11.6k|}
flb_config_map.c:mk_list_del:
  146|  11.6k|{
  147|  11.6k|    __mk_list_del(entry->prev, entry->next);
  148|  11.6k|    entry->prev = NULL;
  149|  11.6k|    entry->next = NULL;
  150|  11.6k|}
flb_config_map.c:__mk_list_del:
  140|  11.6k|{
  141|  11.6k|    prev->next = next;
  142|  11.6k|    next->prev = prev;
  143|  11.6k|}
flb_config_map.c:mk_list_size:
  162|    875|{
  163|    875|    int ret = 0;
  164|    875|    struct mk_list *it;
  165|  6.81k|    for (it = head->next; it != head; it = it->next, ret++);
  ------------------
  |  Branch (165:27): [True: 5.93k, False: 875]
  ------------------
  166|    875|    return ret;
  167|    875|}
flb_slist.c:mk_list_init:
   49|  31.8k|{
   50|  31.8k|    list->next = list;
   51|  31.8k|    list->prev = list;
   52|  31.8k|}
flb_slist.c:mk_list_add:
   64|  66.7k|{
   65|  66.7k|    __mk_list_add(_new, head->prev, head);
   66|  66.7k|}
flb_slist.c:__mk_list_add:
   56|  66.7k|{
   57|  66.7k|    next->prev = _new;
   58|  66.7k|    _new->next = next;
   59|  66.7k|    _new->prev = prev;
   60|  66.7k|    prev->next = _new;
   61|  66.7k|}
flb_slist.c:mk_list_del:
  146|  66.5k|{
  147|  66.5k|    __mk_list_del(entry->prev, entry->next);
  148|  66.5k|    entry->prev = NULL;
  149|  66.5k|    entry->next = NULL;
  150|  66.5k|}
flb_slist.c:__mk_list_del:
  140|  66.5k|{
  141|  66.5k|    prev->next = next;
  142|  66.5k|    next->prev = prev;
  143|  66.5k|}
flb_plugin.c:mk_list_init:
   49|  4.68k|{
   50|  4.68k|    list->next = list;
   51|  4.68k|    list->prev = list;
   52|  4.68k|}
flb_config_format.c:mk_list_init:
   49|  21.2k|{
   50|  21.2k|    list->next = list;
   51|  21.2k|    list->prev = list;
   52|  21.2k|}
flb_config_format.c:mk_list_add:
   64|  1.51k|{
   65|  1.51k|    __mk_list_add(_new, head->prev, head);
   66|  1.51k|}
flb_config_format.c:__mk_list_add:
   56|  1.51k|{
   57|  1.51k|    next->prev = _new;
   58|  1.51k|    _new->next = next;
   59|  1.51k|    _new->prev = prev;
   60|  1.51k|    prev->next = _new;
   61|  1.51k|}
flb_config_format.c:mk_list_del:
  146|  1.51k|{
  147|  1.51k|    __mk_list_del(entry->prev, entry->next);
  148|  1.51k|    entry->prev = NULL;
  149|  1.51k|    entry->next = NULL;
  150|  1.51k|}
flb_config_format.c:__mk_list_del:
  140|  1.51k|{
  141|  1.51k|    prev->next = next;
  142|  1.51k|    next->prev = prev;
  143|  1.51k|}
flb_parser.c:mk_list_add:
   64|  2.99k|{
   65|  2.99k|    __mk_list_add(_new, head->prev, head);
   66|  2.99k|}
flb_parser.c:__mk_list_add:
   56|  2.99k|{
   57|  2.99k|    next->prev = _new;
   58|  2.99k|    _new->next = next;
   59|  2.99k|    _new->prev = prev;
   60|  2.99k|    prev->next = _new;
   61|  2.99k|}
flb_parser.c:mk_list_del:
  146|  2.99k|{
  147|  2.99k|    __mk_list_del(entry->prev, entry->next);
  148|  2.99k|    entry->prev = NULL;
  149|  2.99k|    entry->next = NULL;
  150|  2.99k|}
flb_parser.c:__mk_list_del:
  140|  2.99k|{
  141|  2.99k|    prev->next = next;
  142|  2.99k|    next->prev = prev;
  143|  2.99k|}
flb_hash_table.c:mk_list_init:
   49|  98.2k|{
   50|  98.2k|    list->next = list;
   51|  98.2k|    list->prev = list;
   52|  98.2k|}
flb_ml_parser.c:mk_list_init:
   49|  8.48k|{
   50|  8.48k|    list->next = list;
   51|  8.48k|    list->prev = list;
   52|  8.48k|}
flb_ml_parser.c:mk_list_add:
   64|  8.48k|{
   65|  8.48k|    __mk_list_add(_new, head->prev, head);
   66|  8.48k|}
flb_ml_parser.c:__mk_list_add:
   56|  8.48k|{
   57|  8.48k|    next->prev = _new;
   58|  8.48k|    _new->next = next;
   59|  8.48k|    _new->prev = prev;
   60|  8.48k|    prev->next = _new;
   61|  8.48k|}
flb_ml_parser.c:mk_list_del:
  146|  8.48k|{
  147|  8.48k|    __mk_list_del(entry->prev, entry->next);
  148|  8.48k|    entry->prev = NULL;
  149|  8.48k|    entry->next = NULL;
  150|  8.48k|}
flb_ml_parser.c:__mk_list_del:
  140|  8.48k|{
  141|  8.48k|    prev->next = next;
  142|  8.48k|    next->prev = prev;
  143|  8.48k|}
flb_ml_rule.c:mk_list_init:
   49|  30.3k|{
   50|  30.3k|    list->next = list;
   51|  30.3k|    list->prev = list;
   52|  30.3k|}
flb_ml_rule.c:mk_list_size:
  162|  30.3k|{
  163|  30.3k|    int ret = 0;
  164|  30.3k|    struct mk_list *it;
  165|   117k|    for (it = head->next; it != head; it = it->next, ret++);
  ------------------
  |  Branch (165:27): [True: 87.2k, False: 30.3k]
  ------------------
  166|  30.3k|    return ret;
  167|  30.3k|}
flb_ml_rule.c:mk_list_add:
   64|   115k|{
   65|   115k|    __mk_list_add(_new, head->prev, head);
   66|   115k|}
flb_ml_rule.c:__mk_list_add:
   56|   115k|{
   57|   115k|    next->prev = _new;
   58|   115k|    _new->next = next;
   59|   115k|    _new->prev = prev;
   60|   115k|    prev->next = _new;
   61|   115k|}
flb_ml_rule.c:mk_list_del:
  146|   115k|{
  147|   115k|    __mk_list_del(entry->prev, entry->next);
  148|   115k|    entry->prev = NULL;
  149|   115k|    entry->next = NULL;
  150|   115k|}
flb_ml_rule.c:__mk_list_del:
  140|   115k|{
  141|   115k|    prev->next = next;
  142|   115k|    next->prev = prev;
  143|   115k|}
flb_ml_parser_python.c:mk_list_size:
  162|     13|{
  163|     13|    int ret = 0;
  164|     13|    struct mk_list *it;
  165|     33|    for (it = head->next; it != head; it = it->next, ret++);
  ------------------
  |  Branch (165:27): [True: 20, False: 13]
  ------------------
  166|     13|    return ret;
  167|     13|}
flb_ml_parser_java.c:mk_list_size:
  162|     60|{
  163|     60|    int ret = 0;
  164|     60|    struct mk_list *it;
  165|    255|    for (it = head->next; it != head; it = it->next, ret++);
  ------------------
  |  Branch (165:27): [True: 195, False: 60]
  ------------------
  166|     60|    return ret;
  167|     60|}
flb_ml_parser_go.c:mk_list_size:
  162|     38|{
  163|     38|    int ret = 0;
  164|     38|    struct mk_list *it;
  165|    163|    for (it = head->next; it != head; it = it->next, ret++);
  ------------------
  |  Branch (165:27): [True: 125, False: 38]
  ------------------
  166|     38|    return ret;
  167|     38|}
flb_ml_parser_ruby.c:mk_list_size:
  162|     10|{
  163|     10|    int ret = 0;
  164|     10|    struct mk_list *it;
  165|     17|    for (it = head->next; it != head; it = it->next, ret++);
  ------------------
  |  Branch (165:27): [True: 7, False: 10]
  ------------------
  166|     10|    return ret;
  167|     10|}

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

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

onigenc_unicode_is_code_ctype:
  183|  43.8k|{
  184|  43.8k|  if (
  185|  43.8k|#ifdef USE_UNICODE_PROPERTIES
  186|  43.8k|      ctype <= ONIGENC_MAX_STD_CTYPE &&
  ------------------
  |  |  309|  43.8k|#define ONIGENC_MAX_STD_CTYPE  ONIGENC_CTYPE_ASCII
  |  |  ------------------
  |  |  |  |  308|  87.6k|#define ONIGENC_CTYPE_ASCII    14
  |  |  ------------------
  ------------------
  |  Branch (186:7): [True: 43.8k, False: 0]
  ------------------
  187|  43.8k|#endif
  188|  43.8k|      code < 256) {
  ------------------
  |  Branch (188:7): [True: 43.8k, False: 0]
  ------------------
  189|  43.8k|    return ONIGENC_IS_UNICODE_ISO_8859_1_CTYPE(code, ctype);
  ------------------
  |  |   33|  43.8k|  ((EncUNICODE_ISO_8859_1_CtypeTable[code] & CTYPE_TO_BIT(ctype)) != 0)
  |  |  ------------------
  |  |  |  |  113|  43.8k|#define CTYPE_TO_BIT(ctype)  (1<<(ctype))
  |  |  ------------------
  ------------------
  190|  43.8k|  }
  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|  17.4k|{
  203|  17.4k|  if (ctype >= CODE_RANGES_NUM) {
  ------------------
  |  |  179|  17.4k|#define CODE_RANGES_NUM numberof(CodeRanges)
  |  |  ------------------
  |  |  |  |  129|  17.4k|# define numberof(array) (int )(sizeof(array) / sizeof((array)[0]))
  |  |  ------------------
  ------------------
  |  Branch (203:7): [True: 0, False: 17.4k]
  ------------------
  204|      0|    return ONIGERR_TYPE_BUG;
  ------------------
  |  |  633|      0|#define ONIGERR_TYPE_BUG                                       -6
  ------------------
  205|      0|  }
  206|       |
  207|  17.4k|  *ranges = CodeRanges[ctype];
  208|       |
  209|  17.4k|  return 0;
  210|  17.4k|}

utf_8.c:mbc_enc_len:
  317|  3.47M|{
  318|  3.47M|  int firstbyte = *p++;
  319|  3.47M|  state_t s;
  320|  3.47M|  s = trans[0][firstbyte];
  321|  3.47M|  if (s < 0) return s == ACCEPT ? ONIGENC_CONSTRUCT_MBCLEN_CHARFOUND(1) :
  ------------------
  |  |  345|  3.47M|#define ONIGENC_CONSTRUCT_MBCLEN_CHARFOUND(n)   (n)
  ------------------
  |  Branch (321:7): [True: 3.47M, False: 0]
  |  Branch (321:21): [True: 3.47M, False: 0]
  ------------------
  322|  3.47M|                                  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.07M|{
  382|  1.07M|  int c, len;
  383|  1.07M|  OnigCodePoint n;
  384|       |
  385|  1.07M|  len = mbc_enc_len(p, end, enc);
  386|  1.07M|  c = *p++;
  387|  1.07M|  if (len > 1) {
  ------------------
  |  Branch (387:7): [True: 0, False: 1.07M]
  ------------------
  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.07M|  else {
  397|  1.07M|#ifdef USE_INVALID_CODE_SCHEME
  398|  1.07M|    if (c > 0xfd) {
  ------------------
  |  Branch (398:9): [True: 0, False: 1.07M]
  ------------------
  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.07M|#endif
  402|  1.07M|    return (OnigCodePoint )c;
  403|  1.07M|  }
  404|  1.07M|}
utf_8.c:code_to_mbclen:
  408|  67.3k|{
  409|  67.3k|  if      ((code & 0xffffff80) == 0) return 1;
  ------------------
  |  Branch (409:12): [True: 67.3k, 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|  67.3k|}
utf_8.c:get_ctype_code_range:
  524|  17.4k|{
  525|  17.4k|  *sb_out = 0x80;
  526|  17.4k|  return onigenc_unicode_ctype_code_range(ctype, ranges);
  527|  17.4k|}

onig_bbuf_init:
  143|  49.2k|{
  144|  49.2k|  if (size <= 0) {
  ------------------
  |  Branch (144:7): [True: 0, False: 49.2k]
  ------------------
  145|      0|    size   = 0;
  146|      0|    buf->p = NULL;
  147|      0|  }
  148|  49.2k|  else {
  149|  49.2k|    buf->p = (UChar* )xmalloc(size);
  ------------------
  |  |  142|  49.2k|# define xmalloc     malloc
  ------------------
  150|  49.2k|    if (IS_NULL(buf->p)) return(ONIGERR_MEMORY);
  ------------------
  |  |  311|  49.2k|#define IS_NULL(p)                    (((void*)(p)) == (void*)0)
  |  |  ------------------
  |  |  |  Branch (311:39): [True: 0, False: 49.2k]
  |  |  ------------------
  ------------------
                  if (IS_NULL(buf->p)) return(ONIGERR_MEMORY);
  ------------------
  |  |  632|      0|#define ONIGERR_MEMORY                                         -5
  ------------------
  151|  49.2k|  }
  152|       |
  153|  49.2k|  buf->alloc = (unsigned int )size;
  154|  49.2k|  buf->used  = 0;
  155|  49.2k|  return 0;
  156|  49.2k|}
onig_free_body:
 5535|  31.7k|{
 5536|  31.7k|  if (IS_NOT_NULL(reg)) {
  ------------------
  |  |  312|  31.7k|#define IS_NOT_NULL(p)                (((void*)(p)) != (void*)0)
  |  |  ------------------
  |  |  |  Branch (312:39): [True: 31.7k, False: 0]
  |  |  ------------------
  ------------------
 5537|  31.7k|    if (IS_NOT_NULL(reg->p))                xfree(reg->p);
  ------------------
  |  |  312|  31.7k|#define IS_NOT_NULL(p)                (((void*)(p)) != (void*)0)
  |  |  ------------------
  |  |  |  Branch (312:39): [True: 31.7k, False: 0]
  |  |  ------------------
  ------------------
                  if (IS_NOT_NULL(reg->p))                xfree(reg->p);
  ------------------
  |  |  145|  31.7k|# define xfree       free
  ------------------
 5538|  31.7k|    if (IS_NOT_NULL(reg->exact))            xfree(reg->exact);
  ------------------
  |  |  312|  31.7k|#define IS_NOT_NULL(p)                (((void*)(p)) != (void*)0)
  |  |  ------------------
  |  |  |  Branch (312:39): [True: 15.2k, False: 16.5k]
  |  |  ------------------
  ------------------
                  if (IS_NOT_NULL(reg->exact))            xfree(reg->exact);
  ------------------
  |  |  145|  15.2k|# define xfree       free
  ------------------
 5539|  31.7k|    if (IS_NOT_NULL(reg->repeat_range))     xfree(reg->repeat_range);
  ------------------
  |  |  312|  31.7k|#define IS_NOT_NULL(p)                (((void*)(p)) != (void*)0)
  |  |  ------------------
  |  |  |  Branch (312:39): [True: 0, False: 31.7k]
  |  |  ------------------
  ------------------
                  if (IS_NOT_NULL(reg->repeat_range))     xfree(reg->repeat_range);
  ------------------
  |  |  145|      0|# define xfree       free
  ------------------
 5540|  31.7k|    if (IS_NOT_NULL(reg->chain))            onig_free(reg->chain);
  ------------------
  |  |  312|  31.7k|#define IS_NOT_NULL(p)                (((void*)(p)) != (void*)0)
  |  |  ------------------
  |  |  |  Branch (312:39): [True: 0, False: 31.7k]
  |  |  ------------------
  ------------------
 5541|       |
 5542|  31.7k|#ifdef USE_NAMED_GROUP
 5543|  31.7k|    onig_names_free(reg);
 5544|  31.7k|#endif
 5545|  31.7k|  }
 5546|  31.7k|}
onig_free:
 5550|  31.7k|{
 5551|  31.7k|  if (IS_NOT_NULL(reg)) {
  ------------------
  |  |  312|  31.7k|#define IS_NOT_NULL(p)                (((void*)(p)) != (void*)0)
  |  |  ------------------
  |  |  |  Branch (312:39): [True: 31.7k, False: 0]
  |  |  ------------------
  ------------------
 5552|  31.7k|    onig_free_body(reg);
 5553|  31.7k|    xfree(reg);
  ------------------
  |  |  145|  31.7k|# define xfree       free
  ------------------
 5554|  31.7k|  }
 5555|  31.7k|}
onig_compile:
 5620|  31.7k|{
 5621|  31.7k|#define COMPILE_INIT_SIZE  20
 5622|       |
 5623|  31.7k|  int r;
 5624|  31.7k|  OnigDistance init_size;
 5625|  31.7k|  Node*  root;
 5626|  31.7k|  ScanEnv  scan_env = {0};
 5627|  31.7k|#ifdef USE_SUBEXP_CALL
 5628|  31.7k|  UnsetAddrList  uslist;
 5629|  31.7k|#endif
 5630|       |
 5631|  31.7k|  if (IS_NOT_NULL(einfo)) einfo->par = (UChar* )NULL;
  ------------------
  |  |  312|  31.7k|#define IS_NOT_NULL(p)                (((void*)(p)) != (void*)0)
  |  |  ------------------
  |  |  |  Branch (312:39): [True: 31.7k, 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|  31.7k|  if (reg->alloc == 0) {
  ------------------
  |  Branch (5642:7): [True: 31.7k, False: 0]
  ------------------
 5643|  31.7k|    init_size = (pattern_end - pattern) * 2;
 5644|  31.7k|    if (init_size <= 0) init_size = COMPILE_INIT_SIZE;
  ------------------
  |  | 5621|      0|#define COMPILE_INIT_SIZE  20
  ------------------
  |  Branch (5644:9): [True: 0, False: 31.7k]
  ------------------
 5645|  31.7k|    r = BBUF_INIT(reg, init_size);
  ------------------
  |  |  460|  31.7k|#define BBUF_INIT(buf,size)    onig_bbuf_init((BBuf* )(buf), (size))
  ------------------
 5646|  31.7k|    if (r != 0) goto end;
  ------------------
  |  Branch (5646:9): [True: 0, False: 31.7k]
  ------------------
 5647|  31.7k|  }
 5648|      0|  else
 5649|      0|    reg->used = 0;
 5650|       |
 5651|  31.7k|  reg->num_mem            = 0;
 5652|  31.7k|  reg->num_repeat         = 0;
 5653|  31.7k|  reg->num_null_check     = 0;
 5654|  31.7k|  reg->repeat_range_alloc = 0;
 5655|  31.7k|  reg->repeat_range       = (OnigRepeatRange* )NULL;
 5656|       |#ifdef USE_COMBINATION_EXPLOSION_CHECK
 5657|       |  reg->num_comb_exp_check = 0;
 5658|       |#endif
 5659|       |
 5660|  31.7k|  r = onig_parse_make_tree(&root, pattern, pattern_end, reg, &scan_env);
 5661|  31.7k|  if (r != 0) goto err;
  ------------------
  |  Branch (5661:7): [True: 0, False: 31.7k]
  ------------------
 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|  31.7k|#ifdef USE_NAMED_GROUP
 5671|       |  /* mixed use named group and no-named group */
 5672|  31.7k|  if (scan_env.num_named > 0 &&
  ------------------
  |  Branch (5672:7): [True: 1.48k, False: 30.3k]
  ------------------
 5673|  31.7k|      IS_SYNTAX_BV(scan_env.syntax, ONIG_SYN_CAPTURE_ONLY_NAMED_GROUP) &&
  ------------------
  |  |  332|  33.2k|#define IS_SYNTAX_BV(syn, bvm)    (((syn)->behavior & (bvm)) != 0)
  |  |  ------------------
  |  |  |  Branch (332:35): [True: 1.48k, False: 0]
  |  |  ------------------
  ------------------
 5674|  31.7k|      !ONIG_IS_OPTION_ON(reg->options, ONIG_OPTION_CAPTURE_GROUP)) {
  ------------------
  |  |  479|  1.48k|#define ONIG_IS_OPTION_ON(options,option)   ((options) & (option))
  ------------------
  |  Branch (5674:7): [True: 1.48k, False: 0]
  ------------------
 5675|  1.48k|    if (scan_env.num_named != scan_env.num_mem)
  ------------------
  |  Branch (5675:9): [True: 0, False: 1.48k]
  ------------------
 5676|      0|      r = disable_noname_group_capture(&root, reg, &scan_env);
 5677|  1.48k|    else
 5678|  1.48k|      r = numbered_ref_check(root);
 5679|       |
 5680|  1.48k|    if (r != 0) goto err;
  ------------------
  |  Branch (5680:9): [True: 0, False: 1.48k]
  ------------------
 5681|  1.48k|  }
 5682|  31.7k|#endif
 5683|       |
 5684|  31.7k|#ifdef USE_SUBEXP_CALL
 5685|  31.7k|  if (scan_env.num_call > 0) {
  ------------------
  |  Branch (5685:7): [True: 0, False: 31.7k]
  ------------------
 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|  31.7k|  else
 5699|  31.7k|    reg->num_call = 0;
 5700|  31.7k|#endif
 5701|       |
 5702|  31.7k|  r = setup_tree(root, reg, 0, &scan_env);
 5703|  31.7k|  if (r != 0) goto err_unset;
  ------------------
  |  Branch (5703:7): [True: 0, False: 31.7k]
  ------------------
 5704|       |
 5705|       |#ifdef ONIG_DEBUG_PARSE_TREE
 5706|       |  print_tree(stderr, root);
 5707|       |#endif
 5708|       |
 5709|  31.7k|  reg->capture_history  = scan_env.capture_history;
 5710|  31.7k|  reg->bt_mem_start     = scan_env.bt_mem_start;
 5711|  31.7k|  reg->bt_mem_start    |= reg->capture_history;
 5712|  31.7k|  if (IS_FIND_CONDITION(reg->options))
  ------------------
  |  |  400|  31.7k|#define IS_FIND_CONDITION(option) ((option) & \
  |  |  ------------------
  |  |  |  Branch (400:35): [True: 0, False: 31.7k]
  |  |  ------------------
  |  |  401|  31.7k|          (ONIG_OPTION_FIND_LONGEST | ONIG_OPTION_FIND_NOT_EMPTY))
  |  |  ------------------
  |  |  |  |  459|  31.7k|#define ONIG_OPTION_FIND_LONGEST         (ONIG_OPTION_SINGLELINE         << 1)
  |  |  |  |  ------------------
  |  |  |  |  |  |  458|  31.7k|#define ONIG_OPTION_SINGLELINE           (ONIG_OPTION_MULTILINE          << 1)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  456|  31.7k|#define ONIG_OPTION_MULTILINE            (ONIG_OPTION_EXTEND             << 1)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  455|  31.7k|#define ONIG_OPTION_EXTEND               (ONIG_OPTION_IGNORECASE         << 1)
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  454|  31.7k|#define ONIG_OPTION_IGNORECASE           1U
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |                         (ONIG_OPTION_FIND_LONGEST | ONIG_OPTION_FIND_NOT_EMPTY))
  |  |  ------------------
  |  |  |  |  460|  31.7k|#define ONIG_OPTION_FIND_NOT_EMPTY       (ONIG_OPTION_FIND_LONGEST       << 1)
  |  |  |  |  ------------------
  |  |  |  |  |  |  459|  31.7k|#define ONIG_OPTION_FIND_LONGEST         (ONIG_OPTION_SINGLELINE         << 1)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  458|  31.7k|#define ONIG_OPTION_SINGLELINE           (ONIG_OPTION_MULTILINE          << 1)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  456|  31.7k|#define ONIG_OPTION_MULTILINE            (ONIG_OPTION_EXTEND             << 1)
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  455|  31.7k|#define ONIG_OPTION_EXTEND               (ONIG_OPTION_IGNORECASE         << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  454|  31.7k|#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|  31.7k|  else {
 5715|  31.7k|    reg->bt_mem_end  = scan_env.bt_mem_end;
 5716|  31.7k|    reg->bt_mem_end |= reg->capture_history;
 5717|  31.7k|  }
 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|  31.7k|  clear_optimize_info(reg);
 5747|  31.7k|#ifndef ONIG_DONT_OPTIMIZE
 5748|  31.7k|  r = set_optimize_info_from_tree(root, reg, &scan_env);
 5749|  31.7k|  if (r != 0) goto err_unset;
  ------------------
  |  Branch (5749:7): [True: 0, False: 31.7k]
  ------------------
 5750|  31.7k|#endif
 5751|       |
 5752|  31.7k|  if (IS_NOT_NULL(scan_env.mem_nodes_dynamic)) {
  ------------------
  |  |  312|  31.7k|#define IS_NOT_NULL(p)                (((void*)(p)) != (void*)0)
  |  |  ------------------
  |  |  |  Branch (312:39): [True: 0, False: 31.7k]
  |  |  ------------------
  ------------------
 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|  31.7k|  r = compile_tree(root, reg);
 5758|  31.7k|  if (r == 0) {
  ------------------
  |  Branch (5758:7): [True: 31.7k, False: 0]
  ------------------
 5759|  31.7k|    r = add_opcode(reg, OP_END);
 5760|  31.7k|#ifdef USE_SUBEXP_CALL
 5761|  31.7k|    if (scan_env.num_call > 0) {
  ------------------
  |  Branch (5761:9): [True: 0, False: 31.7k]
  ------------------
 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|  31.7k|#endif
 5767|       |
 5768|  31.7k|    if ((reg->num_repeat != 0) || (reg->bt_mem_end != 0))
  ------------------
  |  Branch (5768:9): [True: 0, False: 31.7k]
  |  Branch (5768:35): [True: 0, False: 31.7k]
  ------------------
 5769|      0|      reg->stack_pop_level = STACK_POP_LEVEL_ALL;
  ------------------
  |  |  352|      0|#define STACK_POP_LEVEL_ALL         2
  ------------------
 5770|  31.7k|    else {
 5771|  31.7k|      if (reg->bt_mem_start != 0)
  ------------------
  |  Branch (5771:11): [True: 0, False: 31.7k]
  ------------------
 5772|      0|	reg->stack_pop_level = STACK_POP_LEVEL_MEM_START;
  ------------------
  |  |  351|      0|#define STACK_POP_LEVEL_MEM_START   1
  ------------------
 5773|  31.7k|      else
 5774|  31.7k|	reg->stack_pop_level = STACK_POP_LEVEL_FREE;
  ------------------
  |  |  350|  31.7k|#define STACK_POP_LEVEL_FREE        0
  ------------------
 5775|  31.7k|    }
 5776|  31.7k|  }
 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|  31.7k|#endif
 5782|  31.7k|  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|  31.7k| end:
 5792|  31.7k|  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|  31.7k|{
 5822|  31.7k|  if (! onig_inited)
  ------------------
  |  Branch (5822:7): [True: 1, False: 31.7k]
  ------------------
 5823|      1|    onig_init();
 5824|       |
 5825|  31.7k|  if (IS_NULL(reg))
  ------------------
  |  |  311|  31.7k|#define IS_NULL(p)                    (((void*)(p)) == (void*)0)
  |  |  ------------------
  |  |  |  Branch (311:39): [True: 0, False: 31.7k]
  |  |  ------------------
  ------------------
 5826|      0|    return ONIGERR_INVALID_ARGUMENT;
  ------------------
  |  |  643|      0|#define ONIGERR_INVALID_ARGUMENT                              -30
  ------------------
 5827|       |
 5828|  31.7k|  (reg)->exact            = (UChar* )NULL;
 5829|  31.7k|  (reg)->chain            = (regex_t* )NULL;
 5830|  31.7k|  (reg)->p                = (UChar* )NULL;
 5831|  31.7k|  (reg)->name_table       = (void* )NULL;
 5832|  31.7k|  (reg)->repeat_range     = (OnigRepeatRange* )NULL;
 5833|       |
 5834|  31.7k|  if (ONIGENC_IS_UNDEF(enc))
  ------------------
  |  |  317|  31.7k|#define ONIGENC_IS_UNDEF(enc)          ((enc) == ONIG_ENCODING_UNDEF)
  |  |  ------------------
  |  |  |  |  281|  31.7k|#define ONIG_ENCODING_UNDEF    ((OnigEncoding )0)
  |  |  ------------------
  |  |  |  Branch (317:40): [True: 0, False: 31.7k]
  |  |  ------------------
  ------------------
 5835|      0|    return ONIGERR_DEFAULT_ENCODING_IS_NOT_SET;
  ------------------
  |  |  640|      0|#define ONIGERR_DEFAULT_ENCODING_IS_NOT_SET                   -21
  ------------------
 5836|       |
 5837|  31.7k|  if ((option & (ONIG_OPTION_DONT_CAPTURE_GROUP|ONIG_OPTION_CAPTURE_GROUP))
  ------------------
  |  |  462|  31.7k|#define ONIG_OPTION_DONT_CAPTURE_GROUP   (ONIG_OPTION_NEGATE_SINGLELINE  << 1)
  |  |  ------------------
  |  |  |  |  461|  31.7k|#define ONIG_OPTION_NEGATE_SINGLELINE    (ONIG_OPTION_FIND_NOT_EMPTY     << 1)
  |  |  |  |  ------------------
  |  |  |  |  |  |  460|  31.7k|#define ONIG_OPTION_FIND_NOT_EMPTY       (ONIG_OPTION_FIND_LONGEST       << 1)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  459|  31.7k|#define ONIG_OPTION_FIND_LONGEST         (ONIG_OPTION_SINGLELINE         << 1)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  458|  31.7k|#define ONIG_OPTION_SINGLELINE           (ONIG_OPTION_MULTILINE          << 1)
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  456|  31.7k|#define ONIG_OPTION_MULTILINE            (ONIG_OPTION_EXTEND             << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  455|  31.7k|#define ONIG_OPTION_EXTEND               (ONIG_OPTION_IGNORECASE         << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  454|  31.7k|#define ONIG_OPTION_IGNORECASE           1U
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
                if ((option & (ONIG_OPTION_DONT_CAPTURE_GROUP|ONIG_OPTION_CAPTURE_GROUP))
  ------------------
  |  |  463|  31.7k|#define ONIG_OPTION_CAPTURE_GROUP        (ONIG_OPTION_DONT_CAPTURE_GROUP << 1)
  |  |  ------------------
  |  |  |  |  462|  31.7k|#define ONIG_OPTION_DONT_CAPTURE_GROUP   (ONIG_OPTION_NEGATE_SINGLELINE  << 1)
  |  |  |  |  ------------------
  |  |  |  |  |  |  461|  31.7k|#define ONIG_OPTION_NEGATE_SINGLELINE    (ONIG_OPTION_FIND_NOT_EMPTY     << 1)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  460|  31.7k|#define ONIG_OPTION_FIND_NOT_EMPTY       (ONIG_OPTION_FIND_LONGEST       << 1)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  459|  31.7k|#define ONIG_OPTION_FIND_LONGEST         (ONIG_OPTION_SINGLELINE         << 1)
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  458|  31.7k|#define ONIG_OPTION_SINGLELINE           (ONIG_OPTION_MULTILINE          << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  456|  31.7k|#define ONIG_OPTION_MULTILINE            (ONIG_OPTION_EXTEND             << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  455|  31.7k|#define ONIG_OPTION_EXTEND               (ONIG_OPTION_IGNORECASE         << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  454|  31.7k|#define ONIG_OPTION_IGNORECASE           1U
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  |  Branch (5837:7): [True: 0, False: 31.7k]
  ------------------
 5838|  31.7k|      == (ONIG_OPTION_DONT_CAPTURE_GROUP|ONIG_OPTION_CAPTURE_GROUP)) {
  ------------------
  |  |  462|  31.7k|#define ONIG_OPTION_DONT_CAPTURE_GROUP   (ONIG_OPTION_NEGATE_SINGLELINE  << 1)
  |  |  ------------------
  |  |  |  |  461|  31.7k|#define ONIG_OPTION_NEGATE_SINGLELINE    (ONIG_OPTION_FIND_NOT_EMPTY     << 1)
  |  |  |  |  ------------------
  |  |  |  |  |  |  460|  31.7k|#define ONIG_OPTION_FIND_NOT_EMPTY       (ONIG_OPTION_FIND_LONGEST       << 1)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  459|  31.7k|#define ONIG_OPTION_FIND_LONGEST         (ONIG_OPTION_SINGLELINE         << 1)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  458|  31.7k|#define ONIG_OPTION_SINGLELINE           (ONIG_OPTION_MULTILINE          << 1)
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  456|  31.7k|#define ONIG_OPTION_MULTILINE            (ONIG_OPTION_EXTEND             << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  455|  31.7k|#define ONIG_OPTION_EXTEND               (ONIG_OPTION_IGNORECASE         << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  454|  31.7k|#define ONIG_OPTION_IGNORECASE           1U
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
                    == (ONIG_OPTION_DONT_CAPTURE_GROUP|ONIG_OPTION_CAPTURE_GROUP)) {
  ------------------
  |  |  463|  31.7k|#define ONIG_OPTION_CAPTURE_GROUP        (ONIG_OPTION_DONT_CAPTURE_GROUP << 1)
  |  |  ------------------
  |  |  |  |  462|  31.7k|#define ONIG_OPTION_DONT_CAPTURE_GROUP   (ONIG_OPTION_NEGATE_SINGLELINE  << 1)
  |  |  |  |  ------------------
  |  |  |  |  |  |  461|  31.7k|#define ONIG_OPTION_NEGATE_SINGLELINE    (ONIG_OPTION_FIND_NOT_EMPTY     << 1)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  460|  31.7k|#define ONIG_OPTION_FIND_NOT_EMPTY       (ONIG_OPTION_FIND_LONGEST       << 1)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  459|  31.7k|#define ONIG_OPTION_FIND_LONGEST         (ONIG_OPTION_SINGLELINE         << 1)
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  458|  31.7k|#define ONIG_OPTION_SINGLELINE           (ONIG_OPTION_MULTILINE          << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  456|  31.7k|#define ONIG_OPTION_MULTILINE            (ONIG_OPTION_EXTEND             << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  455|  31.7k|#define ONIG_OPTION_EXTEND               (ONIG_OPTION_IGNORECASE         << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  454|  31.7k|#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|  31.7k|  if ((option & ONIG_OPTION_NEGATE_SINGLELINE) != 0) {
  ------------------
  |  |  461|  31.7k|#define ONIG_OPTION_NEGATE_SINGLELINE    (ONIG_OPTION_FIND_NOT_EMPTY     << 1)
  |  |  ------------------
  |  |  |  |  460|  31.7k|#define ONIG_OPTION_FIND_NOT_EMPTY       (ONIG_OPTION_FIND_LONGEST       << 1)
  |  |  |  |  ------------------
  |  |  |  |  |  |  459|  31.7k|#define ONIG_OPTION_FIND_LONGEST         (ONIG_OPTION_SINGLELINE         << 1)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  458|  31.7k|#define ONIG_OPTION_SINGLELINE           (ONIG_OPTION_MULTILINE          << 1)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  456|  31.7k|#define ONIG_OPTION_MULTILINE            (ONIG_OPTION_EXTEND             << 1)
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  455|  31.7k|#define ONIG_OPTION_EXTEND               (ONIG_OPTION_IGNORECASE         << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  454|  31.7k|#define ONIG_OPTION_IGNORECASE           1U
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  |  Branch (5842:7): [True: 0, False: 31.7k]
  ------------------
 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|  31.7k|  else
 5847|  31.7k|    option |= syntax->options;
 5848|       |
 5849|  31.7k|  (reg)->enc              = enc;
 5850|  31.7k|  (reg)->options          = option;
 5851|  31.7k|  (reg)->syntax           = syntax;
 5852|  31.7k|  (reg)->optimize         = 0;
 5853|       |
 5854|  31.7k|  (reg)->alloc            = 0;
 5855|  31.7k|  (reg)->used             = 0;
 5856|       |
 5857|  31.7k|  (reg)->case_fold_flag   = case_fold_flag;
 5858|  31.7k|  return 0;
 5859|  31.7k|}
onig_new:
 5879|  31.7k|{
 5880|  31.7k|  int r;
 5881|       |
 5882|  31.7k|  *reg = (regex_t* )xmalloc(sizeof(regex_t));
  ------------------
  |  |  142|  31.7k|# define xmalloc     malloc
  ------------------
 5883|  31.7k|  if (IS_NULL(*reg)) return ONIGERR_MEMORY;
  ------------------
  |  |  311|  31.7k|#define IS_NULL(p)                    (((void*)(p)) == (void*)0)
  |  |  ------------------
  |  |  |  Branch (311:39): [True: 0, False: 31.7k]
  |  |  ------------------
  ------------------
                if (IS_NULL(*reg)) return ONIGERR_MEMORY;
  ------------------
  |  |  632|      0|#define ONIGERR_MEMORY                                         -5
  ------------------
 5884|       |
 5885|  31.7k|  r = onig_reg_init(*reg, option, ONIGENC_CASE_FOLD_DEFAULT, enc, syntax);
  ------------------
  |  |  131|  31.7k|#define ONIGENC_CASE_FOLD_DEFAULT  OnigDefaultCaseFoldFlag
  ------------------
 5886|  31.7k|  if (r) goto err;
  ------------------
  |  Branch (5886:7): [True: 0, False: 31.7k]
  ------------------
 5887|       |
 5888|  31.7k|  r = onig_compile(*reg, pattern, pattern_end, einfo);
 5889|  31.7k|  if (r) {
  ------------------
  |  Branch (5889:7): [True: 0, False: 31.7k]
  ------------------
 5890|      0|  err:
 5891|      0|    onig_free(*reg);
 5892|      0|    *reg = NULL;
 5893|      0|  }
 5894|  31.7k|  return r;
 5895|  31.7k|}
onig_init:
 5905|  1.17k|{
 5906|  1.17k|  if (onig_inited != 0)
  ------------------
  |  Branch (5906:7): [True: 1.17k, False: 1]
  ------------------
 5907|  1.17k|    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.17k|}
onig_is_code_in_cc_len:
 5998|  17.6k|{
 5999|  17.6k|  int found;
 6000|       |
 6001|  17.6k|  if (elen > 1 || (code >= SINGLE_BYTE_SIZE)) {
  ------------------
  |  |  426|  17.6k|#define SINGLE_BYTE_SIZE   (1 << BITS_PER_BYTE)
  |  |  ------------------
  |  |  |  |  425|  17.6k|#define BITS_PER_BYTE      8
  |  |  ------------------
  ------------------
  |  Branch (6001:7): [True: 0, False: 17.6k]
  |  Branch (6001:19): [True: 0, False: 17.6k]
  ------------------
 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|  17.6k|  else {
 6010|  17.6k|    found = (BITSET_AT(cc->bs, code) == 0 ? 0 : 1);
  ------------------
  |  |  448|  17.6k|#define BITSET_AT(bs, pos)         (BS_ROOM(bs,pos) & BS_BIT(pos))
  |  |  ------------------
  |  |  |  |  445|  17.6k|#define BS_ROOM(bs,pos)            (bs)[(int )(pos) / BITS_IN_ROOM]
  |  |  |  |  ------------------
  |  |  |  |  |  |  427|  17.6k|#define BITS_IN_ROOM       ((int )sizeof(Bits) * BITS_PER_BYTE)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  425|  17.6k|#define BITS_PER_BYTE      8
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |               #define BITSET_AT(bs, pos)         (BS_ROOM(bs,pos) & BS_BIT(pos))
  |  |  ------------------
  |  |  |  |  446|  17.6k|#define BS_BIT(pos)                (1U << ((int )(pos) % BITS_IN_ROOM))
  |  |  |  |  ------------------
  |  |  |  |  |  |  427|  17.6k|#define BITS_IN_ROOM       ((int )sizeof(Bits) * BITS_PER_BYTE)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  425|  17.6k|#define BITS_PER_BYTE      8
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  |  Branch (6010:14): [True: 10.9k, False: 6.68k]
  ------------------
 6011|  17.6k|  }
 6012|       |
 6013|  17.6k|  if (IS_NCCLASS_NOT(cc))
  ------------------
  |  |  809|  17.6k|#define IS_NCCLASS_NOT(nd)      IS_NCCLASS_FLAG_ON(nd, FLAG_NCCLASS_NOT)
  |  |  ------------------
  |  |  |  |  802|  17.6k|#define IS_NCCLASS_FLAG_ON(cc,flag) ((NCCLASS_FLAGS(cc) & (flag)) != 0)
  |  |  |  |  ------------------
  |  |  |  |  |  |  799|  17.6k|#define NCCLASS_FLAGS(cc)           ((cc)->flags)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (802:37): [True: 6.68k, False: 10.9k]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 6014|  6.68k|    return !found;
 6015|  10.9k|  else
 6016|  10.9k|    return found;
 6017|  17.6k|}
onig_is_code_in_cc:
 6021|  17.6k|{
 6022|  17.6k|  int len;
 6023|       |
 6024|  17.6k|  if (ONIGENC_MBC_MINLEN(enc) > 1) {
  ------------------
  |  |  367|  17.6k|#define ONIGENC_MBC_MINLEN(enc)               ((enc)->min_enc_len)
  ------------------
  |  Branch (6024:7): [True: 0, False: 17.6k]
  ------------------
 6025|      0|    len = 2;
 6026|      0|  }
 6027|  17.6k|  else {
 6028|  17.6k|    len = ONIGENC_CODE_TO_MBCLEN(enc, code);
  ------------------
  |  |  370|  17.6k|#define ONIGENC_CODE_TO_MBCLEN(enc,code)       (enc)->code_to_mbclen(code,enc)
  ------------------
 6029|  17.6k|  }
 6030|  17.6k|  return onig_is_code_in_cc_len(len, code, cc);
 6031|  17.6k|}
regcomp.c:numbered_ref_check:
 1989|  29.6k|{
 1990|  29.6k|  int r = 0;
 1991|       |
 1992|  29.6k|  switch (NTYPE(node)) {
  ------------------
  |  |   69|  29.6k|#define NTYPE(node)             ((node)->u.base.type)
  ------------------
 1993|  1.48k|  case NT_LIST:
  ------------------
  |  |   46|  1.48k|#define NT_LIST        8
  ------------------
  |  Branch (1993:3): [True: 1.48k, False: 28.1k]
  ------------------
 1994|  4.44k|  case NT_ALT:
  ------------------
  |  |   47|  4.44k|#define NT_ALT         9
  ------------------
  |  Branch (1994:3): [True: 2.96k, 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.8k, False: 4.44k]
  |  |  ------------------
  ------------------
  |  Branch (1997:14): [True: 19.2k, False: 0]
  ------------------
 1998|  4.44k|    break;
 1999|  2.96k|  case NT_QTFR:
  ------------------
  |  |   43|  2.96k|#define NT_QTFR        5
  ------------------
  |  Branch (1999:3): [True: 2.96k, False: 26.6k]
  ------------------
 2000|  2.96k|    r = numbered_ref_check(NQTFR(node)->target);
  ------------------
  |  |   80|  2.96k|#define NQTFR(node)        (&((node)->u.qtfr))
  ------------------
 2001|  2.96k|    break;
 2002|  5.92k|  case NT_ENCLOSE:
  ------------------
  |  |   44|  5.92k|#define NT_ENCLOSE     6
  ------------------
  |  Branch (2002:3): [True: 5.92k, False: 23.6k]
  ------------------
 2003|  5.92k|    r = numbered_ref_check(NENCLOSE(node)->target);
  ------------------
  |  |   81|  5.92k|#define NENCLOSE(node)     (&((node)->u.enclose))
  ------------------
 2004|  5.92k|    break;
 2005|       |
 2006|      0|  case NT_BREF:
  ------------------
  |  |   42|      0|#define NT_BREF        4
  ------------------
  |  Branch (2006:3): [True: 0, False: 29.6k]
  ------------------
 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.96k|  case NT_ANCHOR:
  ------------------
  |  |   45|  2.96k|#define NT_ANCHOR      7
  ------------------
  |  Branch (2011:3): [True: 2.96k, False: 26.6k]
  ------------------
 2012|  2.96k|    if (NANCHOR(node)->target)
  ------------------
  |  |   82|  2.96k|#define NANCHOR(node)      (&((node)->u.anchor))
  ------------------
  |  Branch (2012:9): [True: 0, False: 2.96k]
  ------------------
 2013|      0|      r = numbered_ref_check(NANCHOR(node)->target);
  ------------------
  |  |   82|      0|#define NANCHOR(node)      (&((node)->u.anchor))
  ------------------
 2014|  2.96k|    break;
 2015|       |
 2016|  13.3k|  default:
  ------------------
  |  Branch (2016:3): [True: 13.3k, False: 16.2k]
  ------------------
 2017|  13.3k|    break;
 2018|  29.6k|  }
 2019|       |
 2020|  29.6k|  return r;
 2021|  29.6k|}
regcomp.c:get_min_match_length:
 2157|  49.1k|{
 2158|  49.1k|  OnigDistance tmin;
 2159|  49.1k|  int r = 0;
 2160|       |
 2161|  49.1k|  *min = 0;
 2162|  49.1k|  switch (NTYPE(node)) {
  ------------------
  |  |   69|  49.1k|#define NTYPE(node)             ((node)->u.base.type)
  ------------------
 2163|      0|  case NT_BREF:
  ------------------
  |  |   42|      0|#define NT_BREF        4
  ------------------
  |  Branch (2163:3): [True: 0, False: 49.1k]
  ------------------
 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: 49.1k]
  ------------------
 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.66k|  case NT_LIST:
  ------------------
  |  |   46|  2.66k|#define NT_LIST        8
  ------------------
  |  Branch (2196:3): [True: 2.66k, False: 46.5k]
  ------------------
 2197|  5.32k|    do {
 2198|  5.32k|      r = get_min_match_length(NCAR(node), &tmin, env);
  ------------------
  |  |   86|  5.32k|#define NCAR(node)         (NCONS(node)->car)
  |  |  ------------------
  |  |  |  |   83|  5.32k|#define NCONS(node)        (&((node)->u.cons))
  |  |  ------------------
  ------------------
 2199|  5.32k|      if (r == 0) *min += tmin;
  ------------------
  |  Branch (2199:11): [True: 5.32k, False: 0]
  ------------------
 2200|  5.32k|    } while (r == 0 && IS_NOT_NULL(node = NCDR(node)));
  ------------------
  |  |  312|  5.32k|#define IS_NOT_NULL(p)                (((void*)(p)) != (void*)0)
  |  |  ------------------
  |  |  |  Branch (312:39): [True: 2.66k, False: 2.66k]
  |  |  ------------------
  ------------------
  |  Branch (2200:14): [True: 5.32k, False: 0]
  ------------------
 2201|  2.66k|    break;
 2202|       |
 2203|      0|  case NT_ALT:
  ------------------
  |  |   47|      0|#define NT_ALT         9
  ------------------
  |  Branch (2203:3): [True: 0, False: 49.1k]
  ------------------
 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.09k|  case NT_STR:
  ------------------
  |  |   38|  4.09k|#define NT_STR         0
  ------------------
  |  Branch (2217:3): [True: 4.09k, False: 45.0k]
  ------------------
 2218|  4.09k|    {
 2219|  4.09k|      StrNode* sn = NSTR(node);
  ------------------
  |  |   76|  4.09k|#define NSTR(node)         (&((node)->u.str))
  ------------------
 2220|  4.09k|      *min = sn->end - sn->s;
 2221|  4.09k|    }
 2222|  4.09k|    break;
 2223|       |
 2224|      0|  case NT_CTYPE:
  ------------------
  |  |   40|      0|#define NT_CTYPE       2
  ------------------
  |  Branch (2224:3): [True: 0, False: 49.1k]
  ------------------
 2225|      0|    *min = 1;
 2226|      0|    break;
 2227|       |
 2228|  31.4k|  case NT_CCLASS:
  ------------------
  |  |   39|  31.4k|#define NT_CCLASS      1
  ------------------
  |  Branch (2228:3): [True: 31.4k, False: 17.7k]
  ------------------
 2229|  39.7k|  case NT_CANY:
  ------------------
  |  |   41|  39.7k|#define NT_CANY        3
  ------------------
  |  Branch (2229:3): [True: 8.29k, False: 40.8k]
  ------------------
 2230|  39.7k|    *min = 1;
 2231|  39.7k|    break;
 2232|       |
 2233|  2.66k|  case NT_QTFR:
  ------------------
  |  |   43|  2.66k|#define NT_QTFR        5
  ------------------
  |  Branch (2233:3): [True: 2.66k, False: 46.5k]
  ------------------
 2234|  2.66k|    {
 2235|  2.66k|      QtfrNode* qn = NQTFR(node);
  ------------------
  |  |   80|  2.66k|#define NQTFR(node)        (&((node)->u.qtfr))
  ------------------
 2236|       |
 2237|  2.66k|      if (qn->lower > 0) {
  ------------------
  |  Branch (2237:11): [True: 2.66k, False: 0]
  ------------------
 2238|  2.66k|	r = get_min_match_length(qn->target, min, env);
 2239|  2.66k|	if (r == 0)
  ------------------
  |  Branch (2239:6): [True: 2.66k, False: 0]
  ------------------
 2240|  2.66k|	  *min = distance_multiply(*min, qn->lower);
 2241|  2.66k|      }
 2242|  2.66k|    }
 2243|  2.66k|    break;
 2244|       |
 2245|      0|  case NT_ENCLOSE:
  ------------------
  |  |   44|      0|#define NT_ENCLOSE     6
  ------------------
  |  Branch (2245:3): [True: 0, False: 49.1k]
  ------------------
 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: 49.1k]
  ------------------
 2280|      0|  default:
  ------------------
  |  Branch (2280:3): [True: 0, False: 49.1k]
  ------------------
 2281|      0|    break;
 2282|  49.1k|  }
 2283|       |
 2284|  49.1k|  return r;
 2285|  49.1k|}
regcomp.c:distance_multiply:
  108|  45.2k|{
  109|  45.2k|  if (m == 0) return 0;
  ------------------
  |  Branch (109:7): [True: 16.7k, False: 28.5k]
  ------------------
  110|       |
  111|  28.5k|  if (d < ONIG_INFINITE_DISTANCE / m)
  ------------------
  |  |   85|  28.5k|#define ONIG_INFINITE_DISTANCE  ~((OnigDistance )0)
  ------------------
  |  Branch (111:7): [True: 28.5k, False: 0]
  ------------------
  112|  28.5k|    return d * m;
  113|      0|  else
  114|      0|    return ONIG_INFINITE_DISTANCE;
  ------------------
  |  |   85|      0|#define ONIG_INFINITE_DISTANCE  ~((OnigDistance )0)
  ------------------
  115|  28.5k|}
regcomp.c:setup_tree:
 3879|   239k|{
 3880|   239k|  int type;
 3881|   239k|  int r = 0;
 3882|       |
 3883|   239k|restart:
 3884|   239k|  type = NTYPE(node);
  ------------------
  |  |   69|   239k|#define NTYPE(node)             ((node)->u.base.type)
  ------------------
 3885|   239k|  switch (type) {
 3886|  33.1k|  case NT_LIST:
  ------------------
  |  |   46|  33.1k|#define NT_LIST        8
  ------------------
  |  Branch (3886:3): [True: 33.1k, False: 205k]
  ------------------
 3887|  33.1k|    {
 3888|  33.1k|      Node* prev = NULL_NODE;
  ------------------
  |  |  283|  33.1k|#define NULL_NODE  ((Node* )0)
  ------------------
 3889|   137k|      do {
 3890|   137k|	r = setup_tree(NCAR(node), reg, state, env);
  ------------------
  |  |   86|   137k|#define NCAR(node)         (NCONS(node)->car)
  |  |  ------------------
  |  |  |  |   83|   137k|#define NCONS(node)        (&((node)->u.cons))
  |  |  ------------------
  ------------------
 3891|   137k|	if (IS_NOT_NULL(prev) && r == 0) {
  ------------------
  |  |  312|   274k|#define IS_NOT_NULL(p)                (((void*)(p)) != (void*)0)
  |  |  ------------------
  |  |  |  Branch (312:39): [True: 104k, False: 33.1k]
  |  |  ------------------
  ------------------
  |  Branch (3891:27): [True: 104k, False: 0]
  ------------------
 3892|   104k|	  r = next_setup(prev, NCAR(node), reg);
  ------------------
  |  |   86|   104k|#define NCAR(node)         (NCONS(node)->car)
  |  |  ------------------
  |  |  |  |   83|   104k|#define NCONS(node)        (&((node)->u.cons))
  |  |  ------------------
  ------------------
 3893|   104k|	}
 3894|   137k|	prev = NCAR(node);
  ------------------
  |  |   86|   137k|#define NCAR(node)         (NCONS(node)->car)
  |  |  ------------------
  |  |  |  |   83|   137k|#define NCONS(node)        (&((node)->u.cons))
  |  |  ------------------
  ------------------
 3895|   137k|      } while (r == 0 && IS_NOT_NULL(node = NCDR(node)));
  ------------------
  |  |  312|   137k|#define IS_NOT_NULL(p)                (((void*)(p)) != (void*)0)
  |  |  ------------------
  |  |  |  Branch (312:39): [True: 104k, False: 33.1k]
  |  |  ------------------
  ------------------
  |  Branch (3895:16): [True: 137k, False: 0]
  ------------------
 3896|  33.1k|    }
 3897|  33.1k|    break;
 3898|       |
 3899|  8.59k|  case NT_ALT:
  ------------------
  |  |   47|  8.59k|#define NT_ALT         9
  ------------------
  |  Branch (3899:3): [True: 8.59k, False: 230k]
  ------------------
 3900|  20.0k|    do {
 3901|  20.0k|      r = setup_tree(NCAR(node), reg, (state | IN_ALT), env);
  ------------------
  |  |   86|  20.0k|#define NCAR(node)         (NCONS(node)->car)
  |  |  ------------------
  |  |  |  |   83|  20.0k|#define NCONS(node)        (&((node)->u.cons))
  |  |  ------------------
  ------------------
                    r = setup_tree(NCAR(node), reg, (state | IN_ALT), env);
  ------------------
  |  | 3268|  20.0k|#define IN_ALT          (1<<0)
  ------------------
 3902|  20.0k|    } while (r == 0 && IS_NOT_NULL(node = NCDR(node)));
  ------------------
  |  |  312|  20.0k|#define IS_NOT_NULL(p)                (((void*)(p)) != (void*)0)
  |  |  ------------------
  |  |  |  Branch (312:39): [True: 11.5k, False: 8.59k]
  |  |  ------------------
  ------------------
  |  Branch (3902:14): [True: 20.0k, False: 0]
  ------------------
 3903|  8.59k|    break;
 3904|       |
 3905|  32.9k|  case NT_CCLASS:
  ------------------
  |  |   39|  32.9k|#define NT_CCLASS      1
  ------------------
  |  Branch (3905:3): [True: 32.9k, False: 206k]
  ------------------
 3906|  32.9k|    break;
 3907|       |
 3908|  60.2k|  case NT_STR:
  ------------------
  |  |   38|  60.2k|#define NT_STR         0
  ------------------
  |  Branch (3908:3): [True: 60.2k, False: 178k]
  ------------------
 3909|  60.2k|    if (IS_IGNORECASE(reg->options) && !NSTRING_IS_RAW(node)) {
  ------------------
  |  |  396|   120k|#define IS_IGNORECASE(option)     ((option) & ONIG_OPTION_IGNORECASE)
  |  |  ------------------
  |  |  |  |  454|  60.2k|#define ONIG_OPTION_IGNORECASE           1U
  |  |  ------------------
  |  |  |  Branch (396:35): [True: 0, False: 60.2k]
  |  |  ------------------
  ------------------
                  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|  60.2k|    break;
 3913|       |
 3914|      0|  case NT_CTYPE:
  ------------------
  |  |   40|      0|#define NT_CTYPE       2
  ------------------
  |  Branch (3914:3): [True: 0, False: 239k]
  ------------------
 3915|  13.9k|  case NT_CANY:
  ------------------
  |  |   41|  13.9k|#define NT_CANY        3
  ------------------
  |  Branch (3915:3): [True: 13.9k, False: 225k]
  ------------------
 3916|  13.9k|    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: 239k]
  ------------------
 3920|      0|    break;
 3921|      0|#endif
 3922|       |
 3923|      0|  case NT_BREF:
  ------------------
  |  |   42|      0|#define NT_BREF        4
  ------------------
  |  Branch (3923:3): [True: 0, False: 239k]
  ------------------
 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|  41.1k|  case NT_QTFR:
  ------------------
  |  |   43|  41.1k|#define NT_QTFR        5
  ------------------
  |  Branch (3944:3): [True: 41.1k, False: 197k]
  ------------------
 3945|  41.1k|    {
 3946|  41.1k|      OnigDistance d;
 3947|  41.1k|      QtfrNode* qn = NQTFR(node);
  ------------------
  |  |   80|  41.1k|#define NQTFR(node)        (&((node)->u.qtfr))
  ------------------
 3948|  41.1k|      Node* target = qn->target;
 3949|       |
 3950|  41.1k|      if ((state & IN_REPEAT) != 0) {
  ------------------
  |  | 3270|  41.1k|#define IN_REPEAT       (1<<2)
  ------------------
  |  Branch (3950:11): [True: 2.66k, False: 38.5k]
  ------------------
 3951|  2.66k|	qn->state |= NST_IN_REPEAT;
  ------------------
  |  |  140|  2.66k|#define NST_IN_REPEAT             (1<<12) /* STK_REPEAT is nested in stack. */
  ------------------
 3952|  2.66k|      }
 3953|       |
 3954|  41.1k|      if (IS_REPEAT_INFINITE(qn->upper) || qn->upper >= 1) {
  ------------------
  |  |  422|  82.3k|#define IS_REPEAT_INFINITE(n)   ((n) == REPEAT_INFINITE)
  |  |  ------------------
  |  |  |  |  421|  41.1k|#define REPEAT_INFINITE         -1
  |  |  ------------------
  |  |  |  Branch (422:33): [True: 39.7k, False: 1.43k]
  |  |  ------------------
  ------------------
  |  Branch (3954:44): [True: 1.43k, False: 0]
  ------------------
 3955|  41.1k|	r = get_min_match_length(target, &d, env);
 3956|  41.1k|	if (r) break;
  ------------------
  |  Branch (3956:6): [True: 0, False: 41.1k]
  ------------------
 3957|  41.1k|	if (d == 0) {
  ------------------
  |  Branch (3957:6): [True: 0, False: 41.1k]
  ------------------
 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|  41.1k|      }
 3979|       |
 3980|  41.1k|      state |= IN_REPEAT;
  ------------------
  |  | 3270|  41.1k|#define IN_REPEAT       (1<<2)
  ------------------
 3981|  41.1k|      if (qn->lower != qn->upper)
  ------------------
  |  Branch (3981:11): [True: 41.1k, False: 0]
  ------------------
 3982|  41.1k|	state |= IN_VAR_REPEAT;
  ------------------
  |  | 3271|  41.1k|#define IN_VAR_REPEAT   (1<<3)
  ------------------
 3983|  41.1k|      r = setup_tree(target, reg, state, env);
 3984|  41.1k|      if (r) break;
  ------------------
  |  Branch (3984:11): [True: 0, False: 41.1k]
  ------------------
 3985|       |
 3986|       |      /* expand string */
 3987|  41.1k|#define EXPAND_STRING_MAX_LENGTH  100
 3988|  41.1k|      if (NTYPE(target) == NT_STR) {
  ------------------
  |  |   69|  41.1k|#define NTYPE(node)             ((node)->u.base.type)
  ------------------
                    if (NTYPE(target) == NT_STR) {
  ------------------
  |  |   38|  41.1k|#define NT_STR         0
  ------------------
  |  Branch (3988:11): [True: 1.43k, False: 39.7k]
  ------------------
 3989|  1.43k|	if (qn->lower > 1) {
  ------------------
  |  Branch (3989:6): [True: 0, False: 1.43k]
  ------------------
 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.43k|      }
 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|  41.1k|    }
 4048|  41.1k|    break;
 4049|       |
 4050|  41.1k|  case NT_ENCLOSE:
  ------------------
  |  |   44|  8.80k|#define NT_ENCLOSE     6
  ------------------
  |  Branch (4050:3): [True: 8.80k, False: 230k]
  ------------------
 4051|  8.80k|    {
 4052|  8.80k|      EncloseNode* en = NENCLOSE(node);
  ------------------
  |  |   81|  8.80k|#define NENCLOSE(node)     (&((node)->u.enclose))
  ------------------
 4053|       |
 4054|  8.80k|      switch (en->type) {
  ------------------
  |  Branch (4054:15): [True: 0, False: 8.80k]
  ------------------
 4055|  1.42k|      case ENCLOSE_OPTION:
  ------------------
  |  |   95|  1.42k|#define ENCLOSE_OPTION           (1<<1)
  ------------------
  |  Branch (4055:7): [True: 1.42k, False: 7.37k]
  ------------------
 4056|  1.42k|	{
 4057|  1.42k|	  OnigOptionType options = reg->options;
 4058|  1.42k|	  reg->options = NENCLOSE(node)->option;
  ------------------
  |  |   81|  1.42k|#define NENCLOSE(node)     (&((node)->u.enclose))
  ------------------
 4059|  1.42k|	  r = setup_tree(NENCLOSE(node)->target, reg, state, env);
  ------------------
  |  |   81|  1.42k|#define NENCLOSE(node)     (&((node)->u.enclose))
  ------------------
 4060|  1.42k|	  reg->options = options;
 4061|  1.42k|	}
 4062|  1.42k|	break;
 4063|       |
 4064|  7.37k|      case ENCLOSE_MEMORY:
  ------------------
  |  |   94|  7.37k|#define ENCLOSE_MEMORY           (1<<0)
  ------------------
  |  Branch (4064:7): [True: 7.37k, False: 1.42k]
  ------------------
 4065|  7.37k|	if ((state & (IN_ALT | IN_NOT | IN_VAR_REPEAT | IN_CALL)) != 0) {
  ------------------
  |  | 3268|  7.37k|#define IN_ALT          (1<<0)
  ------------------
              	if ((state & (IN_ALT | IN_NOT | IN_VAR_REPEAT | IN_CALL)) != 0) {
  ------------------
  |  | 3269|  7.37k|#define IN_NOT          (1<<1)
  ------------------
              	if ((state & (IN_ALT | IN_NOT | IN_VAR_REPEAT | IN_CALL)) != 0) {
  ------------------
  |  | 3271|  7.37k|#define IN_VAR_REPEAT   (1<<3)
  ------------------
              	if ((state & (IN_ALT | IN_NOT | IN_VAR_REPEAT | IN_CALL)) != 0) {
  ------------------
  |  | 3272|  7.37k|#define IN_CALL         (1<<4)
  ------------------
  |  Branch (4065:6): [True: 0, False: 7.37k]
  ------------------
 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.37k|	if (IS_ENCLOSE_CALLED(en))
  ------------------
  |  |  147|  7.37k|#define IS_ENCLOSE_CALLED(en)          (((en)->state & NST_CALLED)        != 0)
  |  |  ------------------
  |  |  |  |  136|  7.37k|#define NST_CALLED                (1<<8)
  |  |  ------------------
  |  |  |  Branch (147:40): [True: 0, False: 7.37k]
  |  |  ------------------
  ------------------
 4070|      0|	  state |= IN_CALL;
  ------------------
  |  | 3272|      0|#define IN_CALL         (1<<4)
  ------------------
 4071|  7.37k|	if (IS_ENCLOSE_RECURSION(en))
  ------------------
  |  |  149|  7.37k|#define IS_ENCLOSE_RECURSION(en)       (((en)->state & NST_RECURSION)     != 0)
  |  |  ------------------
  |  |  |  |  135|  7.37k|#define NST_RECURSION             (1<<7)
  |  |  ------------------
  |  |  |  Branch (149:40): [True: 0, False: 7.37k]
  |  |  ------------------
  ------------------
 4072|      0|	  state |= IN_RECCALL;
  ------------------
  |  | 3273|      0|#define IN_RECCALL      (1<<5)
  ------------------
 4073|  7.37k|	else if ((state & IN_RECCALL) != 0)
  ------------------
  |  | 3273|  7.37k|#define IN_RECCALL      (1<<5)
  ------------------
  |  Branch (4073:11): [True: 0, False: 7.37k]
  ------------------
 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.37k|	r = setup_tree(en->target, reg, state, env);
 4076|  7.37k|	break;
 4077|       |
 4078|      0|      case ENCLOSE_STOP_BACKTRACK:
  ------------------
  |  |   96|      0|#define ENCLOSE_STOP_BACKTRACK   (1<<2)
  ------------------
  |  Branch (4078:7): [True: 0, False: 8.80k]
  ------------------
 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.80k]
  ------------------
 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.80k]
  ------------------
 4109|      0|	r = setup_tree(NENCLOSE(node)->target, reg, state, env);
  ------------------
  |  |   81|      0|#define NENCLOSE(node)     (&((node)->u.enclose))
  ------------------
 4110|      0|	break;
 4111|  8.80k|      }
 4112|  8.80k|    }
 4113|  8.80k|    break;
 4114|       |
 4115|  40.1k|  case NT_ANCHOR:
  ------------------
  |  |   45|  40.1k|#define NT_ANCHOR      7
  ------------------
  |  Branch (4115:3): [True: 40.1k, False: 198k]
  ------------------
 4116|  40.1k|    {
 4117|  40.1k|      AnchorNode* an = NANCHOR(node);
  ------------------
  |  |   82|  40.1k|#define NANCHOR(node)      (&((node)->u.anchor))
  ------------------
 4118|       |
 4119|  40.1k|      switch (an->type) {
  ------------------
  |  Branch (4119:15): [True: 40.1k, False: 0]
  ------------------
 4120|      0|      case ANCHOR_PREC_READ:
  ------------------
  |  |  551|      0|#define ANCHOR_PREC_READ        (1<<10)
  ------------------
  |  Branch (4120:7): [True: 0, False: 40.1k]
  ------------------
 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: 40.1k]
  ------------------
 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: 40.1k]
  ------------------
 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: 40.1k]
  ------------------
 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|  40.1k|      }
 4173|  40.1k|    }
 4174|  40.1k|    break;
 4175|       |
 4176|  40.1k|  default:
  ------------------
  |  Branch (4176:3): [True: 0, False: 239k]
  ------------------
 4177|      0|    break;
 4178|   239k|  }
 4179|       |
 4180|   239k|  return r;
 4181|   239k|}
regcomp.c:next_setup:
 3333|   104k|{
 3334|   104k|  int type;
 3335|       |
 3336|   111k| retry:
 3337|   111k|  type = NTYPE(node);
  ------------------
  |  |   69|   111k|#define NTYPE(node)             ((node)->u.base.type)
  ------------------
 3338|   111k|  if (type == NT_QTFR) {
  ------------------
  |  |   43|   111k|#define NT_QTFR        5
  ------------------
  |  Branch (3338:7): [True: 37.0k, False: 74.3k]
  ------------------
 3339|  37.0k|    QtfrNode* qn = NQTFR(node);
  ------------------
  |  |   80|  37.0k|#define NQTFR(node)        (&((node)->u.qtfr))
  ------------------
 3340|  37.0k|    if (qn->greedy && IS_REPEAT_INFINITE(qn->upper)) {
  ------------------
  |  |  422|  35.5k|#define IS_REPEAT_INFINITE(n)   ((n) == REPEAT_INFINITE)
  |  |  ------------------
  |  |  |  |  421|  35.5k|#define REPEAT_INFINITE         -1
  |  |  ------------------
  |  |  |  Branch (422:33): [True: 34.1k, False: 1.43k]
  |  |  ------------------
  ------------------
  |  Branch (3340:9): [True: 35.5k, False: 1.48k]
  ------------------
 3341|  34.1k|#ifdef USE_QTFR_PEEK_NEXT
 3342|  34.1k|      Node* n = get_head_value_node(next_node, 1, reg);
 3343|       |      /* '\0': for UTF-16BE etc... */
 3344|  34.1k|      if (IS_NOT_NULL(n) && NSTR(n)->s[0] != '\0') {
  ------------------
  |  |  312|  68.3k|#define IS_NOT_NULL(p)                (((void*)(p)) != (void*)0)
  |  |  ------------------
  |  |  |  Branch (312:39): [True: 20.3k, False: 13.8k]
  |  |  ------------------
  ------------------
                    if (IS_NOT_NULL(n) && NSTR(n)->s[0] != '\0') {
  ------------------
  |  |   76|  20.3k|#define NSTR(node)         (&((node)->u.str))
  ------------------
  |  Branch (3344:29): [True: 20.3k, False: 0]
  ------------------
 3345|  20.3k|	qn->next_head_exact = n;
 3346|  20.3k|      }
 3347|  34.1k|#endif
 3348|       |      /* automatic possessification a*b ==> (?>a*)b */
 3349|  34.1k|      if (qn->lower <= 1) {
  ------------------
  |  Branch (3349:11): [True: 34.1k, False: 0]
  ------------------
 3350|  34.1k|	int ttype = NTYPE(qn->target);
  ------------------
  |  |   69|  34.1k|#define NTYPE(node)             ((node)->u.base.type)
  ------------------
 3351|  34.1k|	if (IS_NODE_TYPE_SIMPLE(ttype)) {
  ------------------
  |  |   66|  34.1k|  ((NTYPE2BIT(type) & (BIT_NT_STR | BIT_NT_CCLASS | BIT_NT_CTYPE |\
  |  |  ------------------
  |  |  |  |   51|  34.1k|#define NTYPE2BIT(type)      (1<<(type))
  |  |  ------------------
  |  |                 ((NTYPE2BIT(type) & (BIT_NT_STR | BIT_NT_CCLASS | BIT_NT_CTYPE |\
  |  |  ------------------
  |  |  |  |   53|  34.1k|#define BIT_NT_STR        NTYPE2BIT(NT_STR)
  |  |  |  |  ------------------
  |  |  |  |  |  |   51|  34.1k|#define NTYPE2BIT(type)      (1<<(type))
  |  |  |  |  ------------------
  |  |  ------------------
  |  |                 ((NTYPE2BIT(type) & (BIT_NT_STR | BIT_NT_CCLASS | BIT_NT_CTYPE |\
  |  |  ------------------
  |  |  |  |   54|  34.1k|#define BIT_NT_CCLASS     NTYPE2BIT(NT_CCLASS)
  |  |  |  |  ------------------
  |  |  |  |  |  |   51|  34.1k|#define NTYPE2BIT(type)      (1<<(type))
  |  |  |  |  ------------------
  |  |  ------------------
  |  |                 ((NTYPE2BIT(type) & (BIT_NT_STR | BIT_NT_CCLASS | BIT_NT_CTYPE |\
  |  |  ------------------
  |  |  |  |   55|  34.1k|#define BIT_NT_CTYPE      NTYPE2BIT(NT_CTYPE)
  |  |  |  |  ------------------
  |  |  |  |  |  |   51|  34.1k|#define NTYPE2BIT(type)      (1<<(type))
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  |  Branch (66:3): [True: 31.4k, False: 2.66k]
  |  |  ------------------
  |  |   67|  34.1k|                       BIT_NT_CANY | BIT_NT_BREF)) != 0)
  |  |  ------------------
  |  |  |  |   56|  34.1k|#define BIT_NT_CANY       NTYPE2BIT(NT_CANY)
  |  |  |  |  ------------------
  |  |  |  |  |  |   51|  34.1k|#define NTYPE2BIT(type)      (1<<(type))
  |  |  |  |  ------------------
  |  |  ------------------
  |  |                                      BIT_NT_CANY | BIT_NT_BREF)) != 0)
  |  |  ------------------
  |  |  |  |   57|  34.1k|#define BIT_NT_BREF       NTYPE2BIT(NT_BREF)
  |  |  |  |  ------------------
  |  |  |  |  |  |   51|  34.1k|#define NTYPE2BIT(type)      (1<<(type))
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 3352|  31.4k|	  Node *x, *y;
 3353|  31.4k|	  x = get_head_value_node(qn->target, 0, reg);
 3354|  31.4k|	  if (IS_NOT_NULL(x)) {
  ------------------
  |  |  312|  31.4k|#define IS_NOT_NULL(p)                (((void*)(p)) != (void*)0)
  |  |  ------------------
  |  |  |  Branch (312:39): [True: 27.3k, False: 4.14k]
  |  |  ------------------
  ------------------
 3355|  27.3k|	    y = get_head_value_node(next_node,  0, reg);
 3356|  27.3k|	    if (IS_NOT_NULL(y) && is_not_included(x, y, reg)) {
  ------------------
  |  |  312|  54.6k|#define IS_NOT_NULL(p)                (((void*)(p)) != (void*)0)
  |  |  ------------------
  |  |  |  Branch (312:39): [True: 17.6k, False: 9.70k]
  |  |  ------------------
  ------------------
  |  Branch (3356:28): [True: 17.6k, False: 0]
  ------------------
 3357|  17.6k|	      Node* en = onig_node_new_enclose(ENCLOSE_STOP_BACKTRACK);
  ------------------
  |  |   96|  17.6k|#define ENCLOSE_STOP_BACKTRACK   (1<<2)
  ------------------
 3358|  17.6k|	      CHECK_NULL_RETURN_MEMERR(en);
  ------------------
  |  |  314|  17.6k|#define CHECK_NULL_RETURN_MEMERR(p)   if (IS_NULL(p)) return ONIGERR_MEMORY
  |  |  ------------------
  |  |  |  |  311|  17.6k|#define IS_NULL(p)                    (((void*)(p)) == (void*)0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (311:39): [True: 0, False: 17.6k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |               #define CHECK_NULL_RETURN_MEMERR(p)   if (IS_NULL(p)) return ONIGERR_MEMORY
  |  |  ------------------
  |  |  |  |  632|      0|#define ONIGERR_MEMORY                                         -5
  |  |  ------------------
  ------------------
 3359|  17.6k|	      SET_ENCLOSE_STATUS(en, NST_STOP_BT_SIMPLE_REPEAT);
  ------------------
  |  |  144|  17.6k|#define SET_ENCLOSE_STATUS(node,f)      (node)->u.enclose.state |=  (f)
  ------------------
 3360|  17.6k|	      swap_node(node, en);
 3361|  17.6k|	      NENCLOSE(node)->target = en;
  ------------------
  |  |   81|  17.6k|#define NENCLOSE(node)     (&((node)->u.enclose))
  ------------------
 3362|  17.6k|	    }
 3363|  27.3k|	  }
 3364|  31.4k|	}
 3365|  34.1k|      }
 3366|  34.1k|    }
 3367|  37.0k|  }
 3368|  74.3k|  else if (type == NT_ENCLOSE) {
  ------------------
  |  |   44|  74.3k|#define NT_ENCLOSE     6
  ------------------
  |  Branch (3368:12): [True: 8.80k, False: 65.5k]
  ------------------
 3369|  8.80k|    EncloseNode* en = NENCLOSE(node);
  ------------------
  |  |   81|  8.80k|#define NENCLOSE(node)     (&((node)->u.enclose))
  ------------------
 3370|  8.80k|    if (en->type == ENCLOSE_MEMORY) {
  ------------------
  |  |   94|  8.80k|#define ENCLOSE_MEMORY           (1<<0)
  ------------------
  |  Branch (3370:9): [True: 7.37k, False: 1.42k]
  ------------------
 3371|  7.37k|      node = en->target;
 3372|  7.37k|      goto retry;
 3373|  7.37k|    }
 3374|  8.80k|  }
 3375|   104k|  return 0;
 3376|   111k|}
regcomp.c:get_head_value_node:
 2746|  95.6k|{
 2747|  95.6k|  Node* n = NULL_NODE;
  ------------------
  |  |  283|  95.6k|#define NULL_NODE  ((Node* )0)
  ------------------
 2748|       |
 2749|  95.6k|  switch (NTYPE(node)) {
  ------------------
  |  |   69|  95.6k|#define NTYPE(node)             ((node)->u.base.type)
  ------------------
 2750|      0|  case NT_BREF:
  ------------------
  |  |   42|      0|#define NT_BREF        4
  ------------------
  |  Branch (2750:3): [True: 0, False: 95.6k]
  ------------------
 2751|  2.83k|  case NT_ALT:
  ------------------
  |  |   47|  2.83k|#define NT_ALT         9
  ------------------
  |  Branch (2751:3): [True: 2.83k, False: 92.8k]
  ------------------
 2752|  9.79k|  case NT_CANY:
  ------------------
  |  |   41|  9.79k|#define NT_CANY        3
  ------------------
  |  Branch (2752:3): [True: 6.96k, False: 88.7k]
  ------------------
 2753|  9.79k|#ifdef USE_SUBEXP_CALL
 2754|  9.79k|  case NT_CALL:
  ------------------
  |  |   48|  9.79k|#define NT_CALL       10
  ------------------
  |  Branch (2754:3): [True: 0, False: 95.6k]
  ------------------
 2755|  9.79k|#endif
 2756|  9.79k|    break;
 2757|       |
 2758|      0|  case NT_CTYPE:
  ------------------
  |  |   40|      0|#define NT_CTYPE       2
  ------------------
  |  Branch (2758:3): [True: 0, False: 95.6k]
  ------------------
 2759|  30.0k|  case NT_CCLASS:
  ------------------
  |  |   39|  30.0k|#define NT_CCLASS      1
  ------------------
  |  Branch (2759:3): [True: 30.0k, False: 65.6k]
  ------------------
 2760|  30.0k|    if (exact == 0) {
  ------------------
  |  Branch (2760:9): [True: 27.3k, False: 2.66k]
  ------------------
 2761|  27.3k|      n = node;
 2762|  27.3k|    }
 2763|  30.0k|    break;
 2764|       |
 2765|      0|  case NT_LIST:
  ------------------
  |  |   46|      0|#define NT_LIST        8
  ------------------
  |  Branch (2765:3): [True: 0, False: 95.6k]
  ------------------
 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|  37.9k|  case NT_STR:
  ------------------
  |  |   38|  37.9k|#define NT_STR         0
  ------------------
  |  Branch (2769:3): [True: 37.9k, False: 57.7k]
  ------------------
 2770|  37.9k|    {
 2771|  37.9k|      StrNode* sn = NSTR(node);
  ------------------
  |  |   76|  37.9k|#define NSTR(node)         (&((node)->u.str))
  ------------------
 2772|       |
 2773|  37.9k|      if (sn->end <= sn->s)
  ------------------
  |  Branch (2773:11): [True: 0, False: 37.9k]
  ------------------
 2774|      0|	break;
 2775|       |
 2776|  37.9k|      if (exact == 0 ||
  ------------------
  |  Branch (2776:11): [True: 17.6k, False: 20.3k]
  ------------------
 2777|  37.9k|	  NSTRING_IS_RAW(node) || !IS_IGNORECASE(reg->options)) {
  ------------------
  |  |  114|  58.2k|#define NSTRING_IS_RAW(node)          (((node)->u.str.flag & NSTR_RAW)   != 0)
  |  |  ------------------
  |  |  |  |  104|  20.3k|#define NSTR_RAW                (1<<0) /* by backslashed number */
  |  |  ------------------
  |  |  |  Branch (114:39): [True: 0, False: 20.3k]
  |  |  ------------------
  ------------------
              	  NSTRING_IS_RAW(node) || !IS_IGNORECASE(reg->options)) {
  ------------------
  |  |  396|  20.3k|#define IS_IGNORECASE(option)     ((option) & ONIG_OPTION_IGNORECASE)
  |  |  ------------------
  |  |  |  |  454|  20.3k|#define ONIG_OPTION_IGNORECASE           1U
  |  |  ------------------
  ------------------
  |  Branch (2777:28): [True: 20.3k, False: 0]
  ------------------
 2778|  37.9k|	n = node;
 2779|  37.9k|      }
 2780|  37.9k|    }
 2781|      0|    break;
 2782|       |
 2783|  13.5k|  case NT_QTFR:
  ------------------
  |  |   43|  13.5k|#define NT_QTFR        5
  ------------------
  |  Branch (2783:3): [True: 13.5k, False: 82.1k]
  ------------------
 2784|  13.5k|    {
 2785|  13.5k|      QtfrNode* qn = NQTFR(node);
  ------------------
  |  |   80|  13.5k|#define NQTFR(node)        (&((node)->u.qtfr))
  ------------------
 2786|  13.5k|      if (qn->lower > 0) {
  ------------------
  |  Branch (2786:11): [True: 2.66k, False: 10.8k]
  ------------------
 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.66k|	  n = get_head_value_node(qn->target, exact, reg);
 2793|  2.66k|      }
 2794|  13.5k|    }
 2795|  13.5k|    break;
 2796|       |
 2797|      0|  case NT_ENCLOSE:
  ------------------
  |  |   44|      0|#define NT_ENCLOSE     6
  ------------------
  |  Branch (2797:3): [True: 0, False: 95.6k]
  ------------------
 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.36k|  case NT_ANCHOR:
  ------------------
  |  |   45|  4.36k|#define NT_ANCHOR      7
  ------------------
  |  Branch (2823:3): [True: 4.36k, False: 91.3k]
  ------------------
 2824|  4.36k|    if (NANCHOR(node)->type == ANCHOR_PREC_READ)
  ------------------
  |  |   82|  4.36k|#define NANCHOR(node)      (&((node)->u.anchor))
  ------------------
                  if (NANCHOR(node)->type == ANCHOR_PREC_READ)
  ------------------
  |  |  551|  4.36k|#define ANCHOR_PREC_READ        (1<<10)
  ------------------
  |  Branch (2824:9): [True: 0, False: 4.36k]
  ------------------
 2825|      0|      n = get_head_value_node(NANCHOR(node)->target, exact, reg);
  ------------------
  |  |   82|      0|#define NANCHOR(node)      (&((node)->u.anchor))
  ------------------
 2826|  4.36k|    break;
 2827|       |
 2828|      0|  default:
  ------------------
  |  Branch (2828:3): [True: 0, False: 95.6k]
  ------------------
 2829|      0|    break;
 2830|  95.6k|  }
 2831|       |
 2832|  95.6k|  return n;
 2833|  95.6k|}
regcomp.c:is_not_included:
 2551|  17.6k|{
 2552|  17.6k|  int i;
 2553|  17.6k|  OnigDistance len;
 2554|  17.6k|  OnigCodePoint code;
 2555|  17.6k|  UChar *p;
  ------------------
  |  |   76|  17.6k|# define UChar OnigUChar
  ------------------
 2556|  17.6k|  int ytype;
 2557|       |
 2558|  35.2k| retry:
 2559|  35.2k|  ytype = NTYPE(y);
  ------------------
  |  |   69|  35.2k|#define NTYPE(node)             ((node)->u.base.type)
  ------------------
 2560|  35.2k|  switch (NTYPE(x)) {
  ------------------
  |  |   69|  35.2k|#define NTYPE(node)             ((node)->u.base.type)
  ------------------
 2561|      0|  case NT_CTYPE:
  ------------------
  |  |   40|      0|#define NT_CTYPE       2
  ------------------
  |  Branch (2561:3): [True: 0, False: 35.2k]
  ------------------
 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|  17.6k|      swap:
 2575|  17.6k|	{
 2576|  17.6k|	  Node* tmp;
 2577|  17.6k|	  tmp = x; x = y; y = tmp;
 2578|  17.6k|	  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|  17.6k|  case NT_CCLASS:
  ------------------
  |  |   39|  17.6k|#define NT_CCLASS      1
  ------------------
  |  Branch (2592:3): [True: 17.6k, False: 17.6k]
  ------------------
 2593|  17.6k|    {
 2594|  17.6k|      CClassNode* xc = NCCLASS(x);
  ------------------
  |  |   77|  17.6k|#define NCCLASS(node)      (&((node)->u.cclass))
  ------------------
 2595|  17.6k|      switch (ytype) {
 2596|      0|      case NT_CTYPE:
  ------------------
  |  |   40|      0|#define NT_CTYPE       2
  ------------------
  |  Branch (2596:7): [True: 0, False: 17.6k]
  ------------------
 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: 17.6k]
  ------------------
 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|  17.6k|      case NT_STR:
  ------------------
  |  |   38|  17.6k|#define NT_STR         0
  ------------------
  |  Branch (2665:7): [True: 17.6k, False: 0]
  ------------------
 2666|  17.6k|	goto swap;
 2667|      0|	break;
 2668|       |
 2669|      0|      default:
  ------------------
  |  Branch (2669:7): [True: 0, False: 17.6k]
  ------------------
 2670|      0|	break;
 2671|  17.6k|      }
 2672|  17.6k|    }
 2673|      0|    break;
 2674|       |
 2675|  17.6k|  case NT_STR:
  ------------------
  |  |   38|  17.6k|#define NT_STR         0
  ------------------
  |  Branch (2675:3): [True: 17.6k, False: 17.6k]
  ------------------
 2676|  17.6k|    {
 2677|  17.6k|      StrNode* xs = NSTR(x);
  ------------------
  |  |   76|  17.6k|#define NSTR(node)         (&((node)->u.str))
  ------------------
 2678|  17.6k|      if (NSTRING_LEN(x) == 0)
  ------------------
  |  |  108|  17.6k|#define NSTRING_LEN(node) (OnigDistance )((node)->u.str.end - (node)->u.str.s)
  ------------------
  |  Branch (2678:11): [True: 0, False: 17.6k]
  ------------------
 2679|      0|	break;
 2680|       |
 2681|  17.6k|      switch (ytype) {
 2682|      0|      case NT_CTYPE:
  ------------------
  |  |   40|      0|#define NT_CTYPE       2
  ------------------
  |  Branch (2682:7): [True: 0, False: 17.6k]
  ------------------
 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|  17.6k|      case NT_CCLASS:
  ------------------
  |  |   39|  17.6k|#define NT_CCLASS      1
  ------------------
  |  Branch (2703:7): [True: 17.6k, False: 0]
  ------------------
 2704|  17.6k|	{
 2705|  17.6k|	  CClassNode* cc = NCCLASS(y);
  ------------------
  |  |   77|  17.6k|#define NCCLASS(node)      (&((node)->u.cclass))
  ------------------
 2706|       |
 2707|  17.6k|	  code = ONIGENC_MBC_TO_CODE(reg->enc, xs->s,
  ------------------
  |  |  369|  17.6k|#define ONIGENC_MBC_TO_CODE(enc,p,end)         (enc)->mbc_to_code((p),(end),enc)
  ------------------
 2708|  17.6k|				     xs->s + ONIGENC_MBC_MAXLEN(reg->enc));
 2709|  17.6k|	  return (onig_is_code_in_cc(reg->enc, code, cc) != 0 ? 0 : 1);
  ------------------
  |  Branch (2709:12): [True: 0, False: 17.6k]
  ------------------
 2710|      0|	}
 2711|      0|	break;
 2712|       |
 2713|      0|      case NT_STR:
  ------------------
  |  |   38|      0|#define NT_STR         0
  ------------------
  |  Branch (2713:7): [True: 0, False: 17.6k]
  ------------------
 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: 17.6k]
  ------------------
 2732|      0|	break;
 2733|  17.6k|      }
 2734|  17.6k|    }
 2735|      0|    break;
 2736|       |
 2737|      0|  default:
  ------------------
  |  Branch (2737:3): [True: 0, False: 35.2k]
  ------------------
 2738|      0|    break;
 2739|  35.2k|  }
 2740|       |
 2741|      0|  return 0;
 2742|  35.2k|}
regcomp.c:swap_node:
   72|  17.6k|{
   73|  17.6k|  Node c;
   74|  17.6k|  c = *a; *a = *b; *b = c;
   75|       |
   76|  17.6k|  if (NTYPE(a) == NT_STR) {
  ------------------
  |  |   69|  17.6k|#define NTYPE(node)             ((node)->u.base.type)
  ------------------
                if (NTYPE(a) == NT_STR) {
  ------------------
  |  |   38|  17.6k|#define NT_STR         0
  ------------------
  |  Branch (76:7): [True: 0, False: 17.6k]
  ------------------
   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|  17.6k|  if (NTYPE(b) == NT_STR) {
  ------------------
  |  |   69|  17.6k|#define NTYPE(node)             ((node)->u.base.type)
  ------------------
                if (NTYPE(b) == NT_STR) {
  ------------------
  |  |   38|  17.6k|#define NT_STR         0
  ------------------
  |  Branch (85:7): [True: 0, False: 17.6k]
  ------------------
   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|  17.6k|}
regcomp.c:distance_add:
   97|   548k|{
   98|   548k|  if (d1 == ONIG_INFINITE_DISTANCE || d2 == ONIG_INFINITE_DISTANCE)
  ------------------
  |  |   85|  1.09M|#define ONIG_INFINITE_DISTANCE  ~((OnigDistance )0)
  ------------------
                if (d1 == ONIG_INFINITE_DISTANCE || d2 == ONIG_INFINITE_DISTANCE)
  ------------------
  |  |   85|   418k|#define ONIG_INFINITE_DISTANCE  ~((OnigDistance )0)
  ------------------
  |  Branch (98:7): [True: 130k, False: 418k]
  |  Branch (98:39): [True: 41.4k, False: 376k]
  ------------------
   99|   171k|    return ONIG_INFINITE_DISTANCE;
  ------------------
  |  |   85|   171k|#define ONIG_INFINITE_DISTANCE  ~((OnigDistance )0)
  ------------------
  100|   376k|  else {
  101|   376k|    if (d1 <= ONIG_INFINITE_DISTANCE - d2) return d1 + d2;
  ------------------
  |  |   85|   376k|#define ONIG_INFINITE_DISTANCE  ~((OnigDistance )0)
  ------------------
  |  Branch (101:9): [True: 376k, False: 0]
  ------------------
  102|      0|    else return ONIG_INFINITE_DISTANCE;
  ------------------
  |  |   85|      0|#define ONIG_INFINITE_DISTANCE  ~((OnigDistance )0)
  ------------------
  103|   376k|  }
  104|   548k|}
regcomp.c:clear_optimize_info:
 5363|  31.7k|{
 5364|  31.7k|  reg->optimize      = ONIG_OPTIMIZE_NONE;
  ------------------
  |  |  355|  31.7k|#define ONIG_OPTIMIZE_NONE              0
  ------------------
 5365|  31.7k|  reg->anchor        = 0;
 5366|  31.7k|  reg->anchor_dmin   = 0;
 5367|  31.7k|  reg->anchor_dmax   = 0;
 5368|  31.7k|  reg->sub_anchor    = 0;
 5369|  31.7k|  reg->exact_end     = (UChar* )NULL;
 5370|  31.7k|  reg->threshold_len = 0;
 5371|  31.7k|  if (IS_NOT_NULL(reg->exact)) {
  ------------------
  |  |  312|  31.7k|#define IS_NOT_NULL(p)                (((void*)(p)) != (void*)0)
  |  |  ------------------
  |  |  |  Branch (312:39): [True: 0, False: 31.7k]
  |  |  ------------------
  ------------------
 5372|      0|    xfree(reg->exact);
  ------------------
  |  |  145|      0|# define xfree       free
  ------------------
 5373|      0|    reg->exact = (UChar* )NULL;
 5374|      0|  }
 5375|  31.7k|}
regcomp.c:set_optimize_info_from_tree:
 5303|  31.7k|{
 5304|       |
 5305|  31.7k|  int r;
 5306|  31.7k|  NodeOptInfo opt;
 5307|  31.7k|  OptEnv env;
 5308|       |
 5309|  31.7k|  env.enc            = reg->enc;
 5310|  31.7k|  env.options        = reg->options;
 5311|  31.7k|  env.case_fold_flag = reg->case_fold_flag;
 5312|  31.7k|  env.scan_env   = scan_env;
 5313|  31.7k|  clear_mml(&env.mmd);
 5314|       |
 5315|  31.7k|  r = optimize_node_left(node, &opt, &env);
 5316|  31.7k|  if (r) return r;
  ------------------
  |  Branch (5316:7): [True: 0, False: 31.7k]
  ------------------
 5317|       |
 5318|  31.7k|  reg->anchor = opt.anc.left_anchor & (ANCHOR_BEGIN_BUF |
  ------------------
  |  |  540|  31.7k|#define ANCHOR_BEGIN_BUF        (1<<0)
  ------------------
 5319|  31.7k|        ANCHOR_BEGIN_POSITION | ANCHOR_ANYCHAR_STAR | ANCHOR_ANYCHAR_STAR_ML |
  ------------------
  |  |  542|  31.7k|#define ANCHOR_BEGIN_POSITION   (1<<2)
  ------------------
                      ANCHOR_BEGIN_POSITION | ANCHOR_ANYCHAR_STAR | ANCHOR_ANYCHAR_STAR_ML |
  ------------------
  |  |  556|  31.7k|#define ANCHOR_ANYCHAR_STAR     (1<<14)   /* ".*" optimize info */
  ------------------
                      ANCHOR_BEGIN_POSITION | ANCHOR_ANYCHAR_STAR | ANCHOR_ANYCHAR_STAR_ML |
  ------------------
  |  |  557|  31.7k|#define ANCHOR_ANYCHAR_STAR_ML  (1<<15)   /* ".*" optimize info (multi-line) */
  ------------------
 5320|  31.7k|        ANCHOR_LOOK_BEHIND);
  ------------------
  |  |  553|  31.7k|#define ANCHOR_LOOK_BEHIND      (1<<12)
  ------------------
 5321|       |
 5322|  31.7k|  if ((opt.anc.left_anchor & (ANCHOR_LOOK_BEHIND | ANCHOR_PREC_READ_NOT)) != 0)
  ------------------
  |  |  553|  31.7k|#define ANCHOR_LOOK_BEHIND      (1<<12)
  ------------------
                if ((opt.anc.left_anchor & (ANCHOR_LOOK_BEHIND | ANCHOR_PREC_READ_NOT)) != 0)
  ------------------
  |  |  552|  31.7k|#define ANCHOR_PREC_READ_NOT    (1<<11)
  ------------------
  |  Branch (5322:7): [True: 0, False: 31.7k]
  ------------------
 5323|      0|    reg->anchor &= ~ANCHOR_ANYCHAR_STAR_ML;
  ------------------
  |  |  557|      0|#define ANCHOR_ANYCHAR_STAR_ML  (1<<15)   /* ".*" optimize info (multi-line) */
  ------------------
 5324|       |
 5325|  31.7k|  reg->anchor |= opt.anc.right_anchor & (ANCHOR_END_BUF | ANCHOR_SEMI_END_BUF |
  ------------------
  |  |  543|  31.7k|#define ANCHOR_END_BUF          (1<<3)
  ------------------
                reg->anchor |= opt.anc.right_anchor & (ANCHOR_END_BUF | ANCHOR_SEMI_END_BUF |
  ------------------
  |  |  544|  31.7k|#define ANCHOR_SEMI_END_BUF     (1<<4)
  ------------------
 5326|  31.7k|	ANCHOR_PREC_READ_NOT);
  ------------------
  |  |  552|  31.7k|#define ANCHOR_PREC_READ_NOT    (1<<11)
  ------------------
 5327|       |
 5328|  31.7k|  if (reg->anchor & (ANCHOR_END_BUF | ANCHOR_SEMI_END_BUF)) {
  ------------------
  |  |  543|  31.7k|#define ANCHOR_END_BUF          (1<<3)
  ------------------
                if (reg->anchor & (ANCHOR_END_BUF | ANCHOR_SEMI_END_BUF)) {
  ------------------
  |  |  544|  31.7k|#define ANCHOR_SEMI_END_BUF     (1<<4)
  ------------------
  |  Branch (5328:7): [True: 0, False: 31.7k]
  ------------------
 5329|      0|    reg->anchor_dmin = opt.len.min;
 5330|      0|    reg->anchor_dmax = opt.len.max;
 5331|      0|  }
 5332|       |
 5333|  31.7k|  if (opt.exb.len > 0 || opt.exm.len > 0) {
  ------------------
  |  Branch (5333:7): [True: 1.37k, False: 30.4k]
  |  Branch (5333:26): [True: 20.7k, False: 9.64k]
  ------------------
 5334|  22.1k|    select_opt_exact_info(reg->enc, &opt.exb, &opt.exm);
 5335|  22.1k|    if (opt.map.value > 0 &&
  ------------------
  |  Branch (5335:9): [True: 22.1k, False: 0]
  ------------------
 5336|  22.1k|	comp_opt_exact_or_map_info(&opt.exb, &opt.map) > 0) {
  ------------------
  |  Branch (5336:2): [True: 6.93k, False: 15.2k]
  ------------------
 5337|  6.93k|      goto set_map;
 5338|  6.93k|    }
 5339|  15.2k|    else {
 5340|  15.2k|      r = set_optimize_exact_info(reg, &opt.exb);
 5341|  15.2k|      set_sub_anchor(reg, &opt.exb.anc);
 5342|  15.2k|    }
 5343|  22.1k|  }
 5344|  9.64k|  else if (opt.map.value > 0) {
  ------------------
  |  Branch (5344:12): [True: 4.15k, False: 5.49k]
  ------------------
 5345|  11.0k|  set_map:
 5346|  11.0k|    set_optimize_map_info(reg, &opt.map);
 5347|  11.0k|    set_sub_anchor(reg, &opt.map.anc);
 5348|  11.0k|  }
 5349|  5.49k|  else {
 5350|  5.49k|    reg->sub_anchor |= opt.anc.left_anchor & ANCHOR_BEGIN_LINE;
  ------------------
  |  |  541|  5.49k|#define ANCHOR_BEGIN_LINE       (1<<1)
  ------------------
 5351|  5.49k|    if (opt.len.max == 0)
  ------------------
  |  Branch (5351:9): [True: 2.73k, False: 2.75k]
  ------------------
 5352|  2.73k|      reg->sub_anchor |= opt.anc.right_anchor & ANCHOR_END_LINE;
  ------------------
  |  |  545|  2.73k|#define ANCHOR_END_LINE         (1<<5)
  ------------------
 5353|  5.49k|  }
 5354|       |
 5355|       |#if defined(ONIG_DEBUG_COMPILE) || defined(ONIG_DEBUG_MATCH)
 5356|       |  print_optimize_info(stderr, reg);
 5357|       |#endif
 5358|  31.7k|  return r;
 5359|  31.7k|}
regcomp.c:clear_mml:
 4385|  1.08M|{
 4386|  1.08M|  mml->min = mml->max = 0;
 4387|  1.08M|}
regcomp.c:optimize_node_left:
 4866|   256k|{
 4867|   256k|  int type;
 4868|   256k|  int r = 0;
 4869|       |
 4870|   256k|  clear_node_opt_info(opt);
 4871|   256k|  set_bound_node_opt_info(opt, &env->mmd);
 4872|       |
 4873|   256k|  type = NTYPE(node);
  ------------------
  |  |   69|   256k|#define NTYPE(node)             ((node)->u.base.type)
  ------------------
 4874|   256k|  switch (type) {
 4875|  33.1k|  case NT_LIST:
  ------------------
  |  |   46|  33.1k|#define NT_LIST        8
  ------------------
  |  Branch (4875:3): [True: 33.1k, False: 223k]
  ------------------
 4876|  33.1k|    {
 4877|  33.1k|      OptEnv nenv;
 4878|  33.1k|      NodeOptInfo nopt;
 4879|  33.1k|      Node* nd = node;
 4880|       |
 4881|  33.1k|      copy_opt_env(&nenv, env);
 4882|   137k|      do {
 4883|   137k|	r = optimize_node_left(NCAR(nd), &nopt, &nenv);
  ------------------
  |  |   86|   137k|#define NCAR(node)         (NCONS(node)->car)
  |  |  ------------------
  |  |  |  |   83|   137k|#define NCONS(node)        (&((node)->u.cons))
  |  |  ------------------
  ------------------
 4884|   137k|	if (r == 0) {
  ------------------
  |  Branch (4884:6): [True: 137k, False: 0]
  ------------------
 4885|   137k|	  add_mml(&nenv.mmd, &nopt.len);
 4886|   137k|	  concat_left_node_opt_info(env->enc, opt, &nopt);
 4887|   137k|	}
 4888|   137k|      } while (r == 0 && IS_NOT_NULL(nd = NCDR(nd)));
  ------------------
  |  |  312|   137k|#define IS_NOT_NULL(p)                (((void*)(p)) != (void*)0)
  |  |  ------------------
  |  |  |  Branch (312:39): [True: 104k, False: 33.1k]
  |  |  ------------------
  ------------------
  |  Branch (4888:16): [True: 137k, False: 0]
  ------------------
 4889|  33.1k|    }
 4890|  33.1k|    break;
 4891|       |
 4892|  8.59k|  case NT_ALT:
  ------------------
  |  |   47|  8.59k|#define NT_ALT         9
  ------------------
  |  Branch (4892:3): [True: 8.59k, False: 248k]
  ------------------
 4893|  8.59k|    {
 4894|  8.59k|      NodeOptInfo nopt;
 4895|  8.59k|      Node* nd = node;
 4896|       |
 4897|  20.0k|      do {
 4898|  20.0k|	r = optimize_node_left(NCAR(nd), &nopt, env);
  ------------------
  |  |   86|  20.0k|#define NCAR(node)         (NCONS(node)->car)
  |  |  ------------------
  |  |  |  |   83|  20.0k|#define NCONS(node)        (&((node)->u.cons))
  |  |  ------------------
  ------------------
 4899|  20.0k|	if (r == 0) {
  ------------------
  |  Branch (4899:6): [True: 20.0k, False: 0]
  ------------------
 4900|  20.0k|	  if (nd == node) copy_node_opt_info(opt, &nopt);
  ------------------
  |  Branch (4900:8): [True: 8.59k, False: 11.5k]
  ------------------
 4901|  11.5k|	  else            alt_merge_node_opt_info(opt, &nopt, env);
 4902|  20.0k|	}
 4903|  20.0k|      } while ((r == 0) && IS_NOT_NULL(nd = NCDR(nd)));
  ------------------
  |  |  312|  20.0k|#define IS_NOT_NULL(p)                (((void*)(p)) != (void*)0)
  |  |  ------------------
  |  |  |  Branch (312:39): [True: 11.5k, False: 8.59k]
  |  |  ------------------
  ------------------
  |  Branch (4903:16): [True: 20.0k, False: 0]
  ------------------
 4904|  8.59k|    }
 4905|  8.59k|    break;
 4906|       |
 4907|  60.2k|  case NT_STR:
  ------------------
  |  |   38|  60.2k|#define NT_STR         0
  ------------------
  |  Branch (4907:3): [True: 60.2k, False: 196k]
  ------------------
 4908|  60.2k|    {
 4909|  60.2k|      StrNode* sn = NSTR(node);
  ------------------
  |  |   76|  60.2k|#define NSTR(node)         (&((node)->u.str))
  ------------------
 4910|  60.2k|      OnigDistance slen = sn->end - sn->s;
 4911|  60.2k|      int is_raw = NSTRING_IS_RAW(node);
  ------------------
  |  |  114|  60.2k|#define NSTRING_IS_RAW(node)          (((node)->u.str.flag & NSTR_RAW)   != 0)
  |  |  ------------------
  |  |  |  |  104|  60.2k|#define NSTR_RAW                (1<<0) /* by backslashed number */
  |  |  ------------------
  ------------------
 4912|       |
 4913|  60.2k|      if (! NSTRING_IS_AMBIG(node)) {
  ------------------
  |  |  115|  60.2k|#define NSTRING_IS_AMBIG(node)        (((node)->u.str.flag & NSTR_AMBIG) != 0)
  |  |  ------------------
  |  |  |  |  105|  60.2k|#define NSTR_AMBIG              (1<<1)
  |  |  ------------------
  ------------------
  |  Branch (4913:11): [True: 60.2k, False: 0]
  ------------------
 4914|  60.2k|	concat_opt_exact_info_str(&opt->exb, sn->s, sn->end,
 4915|  60.2k|				  is_raw, env->enc);
 4916|  60.2k|	opt->exb.ignore_case = 0;
 4917|  60.2k|	if (slen > 0) {
  ------------------
  |  Branch (4917:6): [True: 58.8k, False: 1.42k]
  ------------------
 4918|  58.8k|	  add_char_opt_map_info(&opt->map, *(sn->s), env->enc);
 4919|  58.8k|	}
 4920|  60.2k|	set_mml(&opt->len, slen, slen);
 4921|  60.2k|      }
 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|  60.2k|      if ((OnigDistance )opt->exb.len == slen)
  ------------------
  |  Branch (4946:11): [True: 54.6k, False: 5.59k]
  ------------------
 4947|  54.6k|	opt->exb.reach_end = 1;
 4948|  60.2k|    }
 4949|      0|    break;
 4950|       |
 4951|  32.9k|  case NT_CCLASS:
  ------------------
  |  |   39|  32.9k|#define NT_CCLASS      1
  ------------------
  |  Branch (4951:3): [True: 32.9k, False: 223k]
  ------------------
 4952|  32.9k|    {
 4953|  32.9k|      int i, z;
 4954|  32.9k|      CClassNode* cc = NCCLASS(node);
  ------------------
  |  |   77|  32.9k|#define NCCLASS(node)      (&((node)->u.cclass))
  ------------------
 4955|       |
 4956|       |      /* no need to check ignore case. (set in setup_tree()) */
 4957|       |
 4958|  32.9k|      if (IS_NOT_NULL(cc->mbuf) || IS_NCCLASS_NOT(cc)) {
  ------------------
  |  |  312|  65.8k|#define IS_NOT_NULL(p)                (((void*)(p)) != (void*)0)
  |  |  ------------------
  |  |  |  Branch (312:39): [True: 0, False: 32.9k]
  |  |  ------------------
  ------------------
                    if (IS_NOT_NULL(cc->mbuf) || IS_NCCLASS_NOT(cc)) {
  ------------------
  |  |  809|  32.9k|#define IS_NCCLASS_NOT(nd)      IS_NCCLASS_FLAG_ON(nd, FLAG_NCCLASS_NOT)
  |  |  ------------------
  |  |  |  |  802|  32.9k|#define IS_NCCLASS_FLAG_ON(cc,flag) ((NCCLASS_FLAGS(cc) & (flag)) != 0)
  |  |  |  |  ------------------
  |  |  |  |  |  |  799|  32.9k|#define NCCLASS_FLAGS(cc)           ((cc)->flags)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (802:37): [True: 7.99k, False: 24.9k]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 4959|  7.99k|	OnigDistance min = ONIGENC_MBC_MINLEN(env->enc);
  ------------------
  |  |  367|  7.99k|#define ONIGENC_MBC_MINLEN(enc)               ((enc)->min_enc_len)
  ------------------
 4960|  7.99k|	OnigDistance max = ONIGENC_MBC_MAXLEN_DIST(env->enc);
  ------------------
  |  |  366|  7.99k|#define ONIGENC_MBC_MAXLEN_DIST(enc)           ONIGENC_MBC_MAXLEN(enc)
  |  |  ------------------
  |  |  |  |  365|  7.99k|#define ONIGENC_MBC_MAXLEN(enc)               ((enc)->max_enc_len)
  |  |  ------------------
  ------------------
 4961|       |
 4962|  7.99k|	set_mml(&opt->len, min, max);
 4963|  7.99k|      }
 4964|  24.9k|      else {
 4965|  6.40M|	for (i = 0; i < SINGLE_BYTE_SIZE; i++) {
  ------------------
  |  |  426|  6.40M|#define SINGLE_BYTE_SIZE   (1 << BITS_PER_BYTE)
  |  |  ------------------
  |  |  |  |  425|  6.40M|#define BITS_PER_BYTE      8
  |  |  ------------------
  ------------------
  |  Branch (4965:14): [True: 6.37M, False: 24.9k]
  ------------------
 4966|  6.37M|	  z = BITSET_AT(cc->bs, i);
  ------------------
  |  |  448|  6.37M|#define BITSET_AT(bs, pos)         (BS_ROOM(bs,pos) & BS_BIT(pos))
  |  |  ------------------
  |  |  |  |  445|  6.37M|#define BS_ROOM(bs,pos)            (bs)[(int )(pos) / BITS_IN_ROOM]
  |  |  |  |  ------------------
  |  |  |  |  |  |  427|  6.37M|#define BITS_IN_ROOM       ((int )sizeof(Bits) * BITS_PER_BYTE)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  425|  6.37M|#define BITS_PER_BYTE      8
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |               #define BITSET_AT(bs, pos)         (BS_ROOM(bs,pos) & BS_BIT(pos))
  |  |  ------------------
  |  |  |  |  446|  6.37M|#define BS_BIT(pos)                (1U << ((int )(pos) % BITS_IN_ROOM))
  |  |  |  |  ------------------
  |  |  |  |  |  |  427|  6.37M|#define BITS_IN_ROOM       ((int )sizeof(Bits) * BITS_PER_BYTE)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  425|  6.37M|#define BITS_PER_BYTE      8
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 4967|  6.37M|	  if ((z && !IS_NCCLASS_NOT(cc)) || (!z && IS_NCCLASS_NOT(cc))) {
  ------------------
  |  |  809|   121k|#define IS_NCCLASS_NOT(nd)      IS_NCCLASS_FLAG_ON(nd, FLAG_NCCLASS_NOT)
  |  |  ------------------
  |  |  |  |  802|   121k|#define IS_NCCLASS_FLAG_ON(cc,flag) ((NCCLASS_FLAGS(cc) & (flag)) != 0)
  |  |  |  |  ------------------
  |  |  |  |  |  |  799|   121k|#define NCCLASS_FLAGS(cc)           ((cc)->flags)
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
              	  if ((z && !IS_NCCLASS_NOT(cc)) || (!z && IS_NCCLASS_NOT(cc))) {
  ------------------
  |  |  809|  6.25M|#define IS_NCCLASS_NOT(nd)      IS_NCCLASS_FLAG_ON(nd, FLAG_NCCLASS_NOT)
  |  |  ------------------
  |  |  |  |  802|  6.25M|#define IS_NCCLASS_FLAG_ON(cc,flag) ((NCCLASS_FLAGS(cc) & (flag)) != 0)
  |  |  |  |  ------------------
  |  |  |  |  |  |  799|  6.25M|#define NCCLASS_FLAGS(cc)           ((cc)->flags)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (802:37): [True: 0, False: 6.25M]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  |  Branch (4967:9): [True: 121k, False: 6.25M]
  |  Branch (4967:14): [True: 121k, False: 0]
  |  Branch (4967:39): [True: 6.25M, False: 0]
  ------------------
 4968|   121k|	    add_char_opt_map_info(&opt->map, (UChar )i, env->enc);
 4969|   121k|	  }
 4970|  6.37M|	}
 4971|  24.9k|	set_mml(&opt->len, 1, 1);
 4972|  24.9k|      }
 4973|  32.9k|    }
 4974|  32.9k|    break;
 4975|       |
 4976|      0|  case NT_CTYPE:
  ------------------
  |  |   40|      0|#define NT_CTYPE       2
  ------------------
  |  Branch (4976:3): [True: 0, False: 256k]
  ------------------
 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|  13.9k|  case NT_CANY:
  ------------------
  |  |   41|  13.9k|#define NT_CANY        3
  ------------------
  |  Branch (5013:3): [True: 13.9k, False: 242k]
  ------------------
 5014|  13.9k|    {
 5015|  13.9k|      OnigDistance min = ONIGENC_MBC_MINLEN(env->enc);
  ------------------
  |  |  367|  13.9k|#define ONIGENC_MBC_MINLEN(enc)               ((enc)->min_enc_len)
  ------------------
 5016|  13.9k|      OnigDistance max = ONIGENC_MBC_MAXLEN_DIST(env->enc);
  ------------------
  |  |  366|  13.9k|#define ONIGENC_MBC_MAXLEN_DIST(enc)           ONIGENC_MBC_MAXLEN(enc)
  |  |  ------------------
  |  |  |  |  365|  13.9k|#define ONIGENC_MBC_MAXLEN(enc)               ((enc)->max_enc_len)
  |  |  ------------------
  ------------------
 5017|  13.9k|      set_mml(&opt->len, min, max);
 5018|  13.9k|    }
 5019|  13.9k|    break;
 5020|       |
 5021|  40.1k|  case NT_ANCHOR:
  ------------------
  |  |   45|  40.1k|#define NT_ANCHOR      7
  ------------------
  |  Branch (5021:3): [True: 40.1k, False: 216k]
  ------------------
 5022|  40.1k|    switch (NANCHOR(node)->type) {
  ------------------
  |  |   82|  40.1k|#define NANCHOR(node)      (&((node)->u.anchor))
  ------------------
  |  Branch (5022:13): [True: 1.38k, False: 38.8k]
  ------------------
 5023|      0|    case ANCHOR_BEGIN_BUF:
  ------------------
  |  |  540|      0|#define ANCHOR_BEGIN_BUF        (1<<0)
  ------------------
  |  Branch (5023:5): [True: 0, False: 40.1k]
  ------------------
 5024|      0|    case ANCHOR_BEGIN_POSITION:
  ------------------
  |  |  542|      0|#define ANCHOR_BEGIN_POSITION   (1<<2)
  ------------------
  |  Branch (5024:5): [True: 0, False: 40.1k]
  ------------------
 5025|  27.6k|    case ANCHOR_BEGIN_LINE:
  ------------------
  |  |  541|  27.6k|#define ANCHOR_BEGIN_LINE       (1<<1)
  ------------------
  |  Branch (5025:5): [True: 27.6k, False: 12.5k]
  ------------------
 5026|  27.6k|    case ANCHOR_END_BUF:
  ------------------
  |  |  543|  27.6k|#define ANCHOR_END_BUF          (1<<3)
  ------------------
  |  Branch (5026:5): [True: 0, False: 40.1k]
  ------------------
 5027|  27.6k|    case ANCHOR_SEMI_END_BUF:
  ------------------
  |  |  544|  27.6k|#define ANCHOR_SEMI_END_BUF     (1<<4)
  ------------------
  |  Branch (5027:5): [True: 0, False: 40.1k]
  ------------------
 5028|  38.8k|    case ANCHOR_END_LINE:
  ------------------
  |  |  545|  38.8k|#define ANCHOR_END_LINE         (1<<5)
  ------------------
  |  Branch (5028:5): [True: 11.1k, False: 28.9k]
  ------------------
 5029|  38.8k|    case ANCHOR_LOOK_BEHIND:	/* just for (?<=x).* */
  ------------------
  |  |  553|  38.8k|#define ANCHOR_LOOK_BEHIND      (1<<12)
  ------------------
  |  Branch (5029:5): [True: 0, False: 40.1k]
  ------------------
 5030|  38.8k|    case ANCHOR_PREC_READ_NOT:	/* just for (?!x).* */
  ------------------
  |  |  552|  38.8k|#define ANCHOR_PREC_READ_NOT    (1<<11)
  ------------------
  |  Branch (5030:5): [True: 0, False: 40.1k]
  ------------------
 5031|  38.8k|      add_opt_anc_info(&opt->anc, NANCHOR(node)->type);
  ------------------
  |  |   82|  38.8k|#define NANCHOR(node)      (&((node)->u.anchor))
  ------------------
 5032|  38.8k|      break;
 5033|       |
 5034|      0|    case ANCHOR_PREC_READ:
  ------------------
  |  |  551|      0|#define ANCHOR_PREC_READ        (1<<10)
  ------------------
  |  Branch (5034:5): [True: 0, False: 40.1k]
  ------------------
 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: 40.1k]
  ------------------
 5054|      0|      break;
 5055|  40.1k|    }
 5056|  40.1k|    break;
 5057|       |
 5058|  40.1k|  case NT_BREF:
  ------------------
  |  |   42|      0|#define NT_BREF        4
  ------------------
  |  Branch (5058:3): [True: 0, False: 256k]
  ------------------
 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: 256k]
  ------------------
 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|  41.1k|  case NT_QTFR:
  ------------------
  |  |   43|  41.1k|#define NT_QTFR        5
  ------------------
  |  Branch (5100:3): [True: 41.1k, False: 215k]
  ------------------
 5101|  41.1k|    {
 5102|  41.1k|      int i;
 5103|  41.1k|      OnigDistance min, max;
 5104|  41.1k|      NodeOptInfo nopt;
 5105|  41.1k|      QtfrNode* qn = NQTFR(node);
  ------------------
  |  |   80|  41.1k|#define NQTFR(node)        (&((node)->u.qtfr))
  ------------------
 5106|       |
 5107|  41.1k|      r = optimize_node_left(qn->target, &nopt, env);
 5108|  41.1k|      if (r) break;
  ------------------
  |  Branch (5108:11): [True: 0, False: 41.1k]
  ------------------
 5109|       |
 5110|  41.1k|      if (qn->lower == 0 && IS_REPEAT_INFINITE(qn->upper)) {
  ------------------
  |  |  422|  16.7k|#define IS_REPEAT_INFINITE(n)   ((n) == REPEAT_INFINITE)
  |  |  ------------------
  |  |  |  |  421|  16.7k|#define REPEAT_INFINITE         -1
  |  |  ------------------
  |  |  |  Branch (422:33): [True: 15.3k, False: 1.43k]
  |  |  ------------------
  ------------------
  |  Branch (5110:11): [True: 16.7k, False: 24.4k]
  ------------------
 5111|  15.3k|	if (env->mmd.max == 0 &&
  ------------------
  |  Branch (5111:6): [True: 8.38k, False: 6.92k]
  ------------------
 5112|  15.3k|	    NTYPE(qn->target) == NT_CANY && qn->greedy) {
  ------------------
  |  |   69|  8.38k|#define NTYPE(node)             ((node)->u.base.type)
  ------------------
              	    NTYPE(qn->target) == NT_CANY && qn->greedy) {
  ------------------
  |  |   41|  23.6k|#define NT_CANY        3
  ------------------
  |  Branch (5112:6): [True: 0, False: 8.38k]
  |  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.3k|      }
 5120|  25.8k|      else {
 5121|  25.8k|	if (qn->lower > 0) {
  ------------------
  |  Branch (5121:6): [True: 24.4k, False: 1.43k]
  ------------------
 5122|  24.4k|	  copy_node_opt_info(opt, &nopt);
 5123|  24.4k|	  if (nopt.exb.len > 0) {
  ------------------
  |  Branch (5123:8): [True: 0, False: 24.4k]
  ------------------
 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|  24.4k|	  if (qn->lower != qn->upper) {
  ------------------
  |  Branch (5135:8): [True: 24.4k, False: 0]
  ------------------
 5136|  24.4k|	    opt->exb.reach_end = 0;
 5137|  24.4k|	    opt->exm.reach_end = 0;
 5138|  24.4k|	  }
 5139|  24.4k|	  if (qn->lower > 1)
  ------------------
  |  Branch (5139:8): [True: 0, False: 24.4k]
  ------------------
 5140|      0|	    opt->exm.reach_end = 0;
 5141|  24.4k|	}
 5142|  25.8k|      }
 5143|       |
 5144|  41.1k|      min = distance_multiply(nopt.len.min, qn->lower);
 5145|  41.1k|      if (IS_REPEAT_INFINITE(qn->upper))
  ------------------
  |  |  422|  41.1k|#define IS_REPEAT_INFINITE(n)   ((n) == REPEAT_INFINITE)
  |  |  ------------------
  |  |  |  |  421|  41.1k|#define REPEAT_INFINITE         -1
  |  |  ------------------
  |  |  |  Branch (422:33): [True: 39.7k, False: 1.43k]
  |  |  ------------------
  ------------------
 5146|  39.7k|	max = (nopt.len.max > 0 ? ONIG_INFINITE_DISTANCE : 0);
  ------------------
  |  |   85|  39.7k|#define ONIG_INFINITE_DISTANCE  ~((OnigDistance )0)
  ------------------
  |  Branch (5146:9): [True: 39.7k, False: 0]
  ------------------
 5147|  1.43k|      else
 5148|  1.43k|	max = distance_multiply(nopt.len.max, qn->upper);
 5149|       |
 5150|  41.1k|      set_mml(&opt->len, min, max);
 5151|  41.1k|    }
 5152|      0|    break;
 5153|       |
 5154|  26.4k|  case NT_ENCLOSE:
  ------------------
  |  |   44|  26.4k|#define NT_ENCLOSE     6
  ------------------
  |  Branch (5154:3): [True: 26.4k, False: 230k]
  ------------------
 5155|  26.4k|    {
 5156|  26.4k|      EncloseNode* en = NENCLOSE(node);
  ------------------
  |  |   81|  26.4k|#define NENCLOSE(node)     (&((node)->u.enclose))
  ------------------
 5157|       |
 5158|  26.4k|      switch (en->type) {
  ------------------
  |  Branch (5158:15): [True: 0, False: 26.4k]
  ------------------
 5159|  1.42k|      case ENCLOSE_OPTION:
  ------------------
  |  |   95|  1.42k|#define ENCLOSE_OPTION           (1<<1)
  ------------------
  |  Branch (5159:7): [True: 1.42k, False: 25.0k]
  ------------------
 5160|  1.42k|	{
 5161|  1.42k|	  OnigOptionType save = env->options;
 5162|       |
 5163|  1.42k|	  env->options = en->option;
 5164|  1.42k|	  r = optimize_node_left(en->target, opt, env);
 5165|  1.42k|	  env->options = save;
 5166|  1.42k|	}
 5167|  1.42k|	break;
 5168|       |
 5169|  7.37k|      case ENCLOSE_MEMORY:
  ------------------
  |  |   94|  7.37k|#define ENCLOSE_MEMORY           (1<<0)
  ------------------
  |  Branch (5169:7): [True: 7.37k, False: 19.0k]
  ------------------
 5170|  7.37k|#ifdef USE_SUBEXP_CALL
 5171|  7.37k|	en->opt_count++;
 5172|  7.37k|	if (en->opt_count > MAX_NODE_OPT_INFO_REF_COUNT) {
  ------------------
  |  | 4862|  7.37k|#define MAX_NODE_OPT_INFO_REF_COUNT    5
  ------------------
  |  Branch (5172:6): [True: 0, False: 7.37k]
  ------------------
 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.37k|	else
 5182|  7.37k|#endif
 5183|  7.37k|	{
 5184|  7.37k|	  r = optimize_node_left(en->target, opt, env);
 5185|       |
 5186|  7.37k|	  if (is_set_opt_anc_info(&opt->anc, ANCHOR_ANYCHAR_STAR_MASK)) {
  ------------------
  |  |   91|  7.37k|#define ANCHOR_ANYCHAR_STAR_MASK (ANCHOR_ANYCHAR_STAR | ANCHOR_ANYCHAR_STAR_ML)
  |  |  ------------------
  |  |  |  |  556|  7.37k|#define ANCHOR_ANYCHAR_STAR     (1<<14)   /* ".*" optimize info */
  |  |  ------------------
  |  |               #define ANCHOR_ANYCHAR_STAR_MASK (ANCHOR_ANYCHAR_STAR | ANCHOR_ANYCHAR_STAR_ML)
  |  |  ------------------
  |  |  |  |  557|  7.37k|#define ANCHOR_ANYCHAR_STAR_ML  (1<<15)   /* ".*" optimize info (multi-line) */
  |  |  ------------------
  ------------------
  |  Branch (5186:8): [True: 0, False: 7.37k]
  ------------------
 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.37k|	}
 5191|  7.37k|	break;
 5192|       |
 5193|  17.6k|      case ENCLOSE_STOP_BACKTRACK:
  ------------------
  |  |   96|  17.6k|#define ENCLOSE_STOP_BACKTRACK   (1<<2)
  ------------------
  |  Branch (5193:7): [True: 17.6k, False: 8.80k]
  ------------------
 5194|  17.6k|      case ENCLOSE_CONDITION:
  ------------------
  |  |   97|  17.6k|#define ENCLOSE_CONDITION        (1<<3)
  ------------------
  |  Branch (5194:7): [True: 0, False: 26.4k]
  ------------------
 5195|  17.6k|	r = optimize_node_left(en->target, opt, env);
 5196|  17.6k|	break;
 5197|       |
 5198|      0|      case ENCLOSE_ABSENT:
  ------------------
  |  |   98|      0|#define ENCLOSE_ABSENT           (1<<4)
  ------------------
  |  Branch (5198:7): [True: 0, False: 26.4k]
  ------------------
 5199|      0|	set_mml(&opt->len, 0, ONIG_INFINITE_DISTANCE);
  ------------------
  |  |   85|      0|#define ONIG_INFINITE_DISTANCE  ~((OnigDistance )0)
  ------------------
 5200|      0|	break;
 5201|  26.4k|      }
 5202|  26.4k|    }
 5203|  26.4k|    break;
 5204|       |
 5205|  26.4k|  default:
  ------------------
  |  Branch (5205:3): [True: 0, False: 256k]
  ------------------
 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|   256k|  }
 5213|       |
 5214|   256k|  return r;
 5215|   256k|}
regcomp.c:clear_node_opt_info:
 4775|   256k|{
 4776|   256k|  clear_mml(&opt->len);
 4777|   256k|  clear_opt_anc_info(&opt->anc);
 4778|   256k|  clear_opt_exact_info(&opt->exb);
 4779|   256k|  clear_opt_exact_info(&opt->exm);
 4780|   256k|  clear_opt_exact_info(&opt->expr);
 4781|   256k|  clear_opt_map_info(&opt->map);
 4782|   256k|}
regcomp.c:clear_opt_anc_info:
 4427|  1.20M|{
 4428|  1.20M|  anc->left_anchor  = 0;
 4429|  1.20M|  anc->right_anchor = 0;
 4430|  1.20M|}
regcomp.c:clear_opt_exact_info:
 4510|   797k|{
 4511|   797k|  clear_mml(&ex->mmd);
 4512|   797k|  clear_opt_anc_info(&ex->anc);
 4513|   797k|  ex->reach_end   = 0;
 4514|   797k|  ex->ignore_case = -1;   /* unset */
 4515|   797k|  ex->len         = 0;
 4516|   797k|  ex->s[0]        = '\0';
 4517|   797k|}
regcomp.c:clear_opt_map_info:
 4643|   256k|{
 4644|   256k|  static const OptMapInfo clean_info = {
 4645|   256k|    {0, 0}, {0, 0}, 0,
 4646|   256k|    {
 4647|   256k|      0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
 4648|   256k|      0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
 4649|   256k|      0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
 4650|   256k|      0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
 4651|   256k|      0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
 4652|   256k|      0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
 4653|   256k|      0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
 4654|   256k|      0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
 4655|   256k|      0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
 4656|   256k|      0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
 4657|   256k|      0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
 4658|   256k|      0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
 4659|   256k|      0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
 4660|   256k|      0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
 4661|   256k|      0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
 4662|   256k|      0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0
 4663|   256k|    }
 4664|   256k|  };
 4665|       |
 4666|   256k|  xmemcpy(map, &clean_info, sizeof(OptMapInfo));
  ------------------
  |  |  215|   256k|#define xmemcpy     memcpy
  ------------------
 4667|   256k|}
regcomp.c:set_bound_node_opt_info:
 4767|   256k|{
 4768|   256k|  copy_mml(&(opt->exb.mmd),  mmd);
 4769|   256k|  copy_mml(&(opt->expr.mmd), mmd);
 4770|   256k|  copy_mml(&(opt->map.mmd),  mmd);
 4771|   256k|}
regcomp.c:copy_mml:
 4391|   770k|{
 4392|   770k|  to->min = from->min;
 4393|   770k|  to->max = from->max;
 4394|   770k|}
regcomp.c:copy_opt_env:
 4421|  33.1k|{
 4422|  33.1k|  *to = *from;
 4423|  33.1k|}
regcomp.c:add_mml:
 4398|   274k|{
 4399|   274k|  to->min = distance_add(to->min, from->min);
 4400|   274k|  to->max = distance_add(to->max, from->max);
 4401|   274k|}
regcomp.c:concat_left_node_opt_info:
 4792|   137k|{
 4793|   137k|  int exb_reach, exm_reach;
 4794|   137k|  OptAncInfo tanc;
 4795|       |
 4796|   137k|  concat_opt_anc_info(&tanc, &to->anc, &add->anc, to->len.max, add->len.max);
 4797|   137k|  copy_opt_anc_info(&to->anc, &tanc);
 4798|       |
 4799|   137k|  if (add->exb.len > 0 && to->len.max == 0) {
  ------------------
  |  Branch (4799:7): [True: 40.1k, False: 97.0k]
  |  Branch (4799:27): [True: 8.19k, False: 31.9k]
  ------------------
 4800|  8.19k|    concat_opt_anc_info(&tanc, &to->anc, &add->exb.anc,
 4801|  8.19k|			to->len.max, add->len.max);
 4802|  8.19k|    copy_opt_anc_info(&add->exb.anc, &tanc);
 4803|  8.19k|  }
 4804|       |
 4805|   137k|  if (add->map.value > 0 && to->len.max == 0) {
  ------------------
  |  Branch (4805:7): [True: 63.6k, False: 73.5k]
  |  Branch (4805:29): [True: 15.0k, False: 48.5k]
  ------------------
 4806|  15.0k|    if (add->map.mmd.max == 0)
  ------------------
  |  Branch (4806:9): [True: 15.0k, False: 0]
  ------------------
 4807|  15.0k|      add->map.anc.left_anchor |= to->anc.left_anchor;
 4808|  15.0k|  }
 4809|       |
 4810|   137k|  exb_reach = to->exb.reach_end;
 4811|   137k|  exm_reach = to->exm.reach_end;
 4812|       |
 4813|   137k|  if (add->len.max != 0)
  ------------------
  |  Branch (4813:7): [True: 95.5k, False: 41.6k]
  ------------------
 4814|  95.5k|    to->exb.reach_end = to->exm.reach_end = 0;
 4815|       |
 4816|   137k|  if (add->exb.len > 0) {
  ------------------
  |  Branch (4816:7): [True: 40.1k, False: 97.0k]
  ------------------
 4817|  40.1k|    if (exb_reach) {
  ------------------
  |  Branch (4817:9): [True: 0, False: 40.1k]
  ------------------
 4818|      0|      concat_opt_exact_info(&to->exb, &add->exb, enc);
 4819|      0|      clear_opt_exact_info(&add->exb);
 4820|      0|    }
 4821|  40.1k|    else if (exm_reach) {
  ------------------
  |  Branch (4821:14): [True: 1.48k, False: 38.6k]
  ------------------
 4822|  1.48k|      concat_opt_exact_info(&to->exm, &add->exb, enc);
 4823|  1.48k|      clear_opt_exact_info(&add->exb);
 4824|  1.48k|    }
 4825|  40.1k|  }
 4826|   137k|  select_opt_exact_info(enc, &to->exm, &add->exb);
 4827|   137k|  select_opt_exact_info(enc, &to->exm, &add->exm);
 4828|       |
 4829|   137k|  if (to->expr.len > 0) {
  ------------------
  |  Branch (4829:7): [True: 0, False: 137k]
  ------------------
 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|   137k|  else if (add->expr.len > 0) {
  ------------------
  |  Branch (4840:12): [True: 0, False: 137k]
  ------------------
 4841|      0|    copy_opt_exact_info(&to->expr, &add->expr);
 4842|      0|  }
 4843|       |
 4844|   137k|  select_opt_map_info(&to->map, &add->map);
 4845|       |
 4846|   137k|  add_mml(&to->len, &add->len);
 4847|   137k|}
regcomp.c:concat_opt_anc_info:
 4441|   146k|{
 4442|   146k|  clear_opt_anc_info(to);
 4443|       |
 4444|   146k|  to->left_anchor = left->left_anchor;
 4445|   146k|  if (left_len == 0) {
  ------------------
  |  Branch (4445:7): [True: 70.2k, False: 76.5k]
  ------------------
 4446|  70.2k|    to->left_anchor |= right->left_anchor;
 4447|  70.2k|  }
 4448|       |
 4449|   146k|  to->right_anchor = right->right_anchor;
 4450|   146k|  if (right_len == 0) {
  ------------------
  |  Branch (4450:7): [True: 41.6k, False: 105k]
  ------------------
 4451|  41.6k|    to->right_anchor |= left->right_anchor;
 4452|  41.6k|  }
 4453|   105k|  else {
 4454|   105k|    to->right_anchor |= (left->right_anchor & ANCHOR_PREC_READ_NOT);
  ------------------
  |  |  552|   105k|#define ANCHOR_PREC_READ_NOT    (1<<11)
  ------------------
 4455|   105k|  }
 4456|   146k|}
regcomp.c:copy_opt_anc_info:
 4434|   146k|{
 4435|   146k|  *to = *from;
 4436|   146k|}
regcomp.c:select_opt_map_info:
 4708|   137k|{
 4709|   137k|  const int z = 1<<15; /* 32768: something big value */
 4710|       |
 4711|   137k|  int v1, v2;
 4712|       |
 4713|   137k|  if (alt->value == 0) return ;
  ------------------
  |  Branch (4713:7): [True: 73.5k, False: 63.6k]
  ------------------
 4714|  63.6k|  if (now->value == 0) {
  ------------------
  |  Branch (4714:7): [True: 28.9k, False: 34.6k]
  ------------------
 4715|  28.9k|    copy_opt_map_info(now, alt);
 4716|  28.9k|    return ;
 4717|  28.9k|  }
 4718|       |
 4719|  34.6k|  v1 = z / now->value;
 4720|  34.6k|  v2 = z / alt->value;
 4721|  34.6k|  if (comp_distance_value(&now->mmd, &alt->mmd, v1, v2) > 0)
  ------------------
  |  Branch (4721:7): [True: 0, False: 34.6k]
  ------------------
 4722|      0|    copy_opt_map_info(now, alt);
 4723|  34.6k|}
regcomp.c:comp_distance_value:
 4354|  69.3k|{
 4355|  69.3k|  if (v2 <= 0) return -1;
  ------------------
  |  Branch (4355:7): [True: 0, False: 69.3k]
  ------------------
 4356|  69.3k|  if (v1 <= 0) return  1;
  ------------------
  |  Branch (4356:7): [True: 0, False: 69.3k]
  ------------------
 4357|       |
 4358|  69.3k|  v1 *= distance_value(d1);
 4359|  69.3k|  v2 *= distance_value(d2);
 4360|       |
 4361|  69.3k|  if (v2 > v1) return  1;
  ------------------
  |  Branch (4361:7): [True: 5.51k, False: 63.8k]
  ------------------
 4362|  63.8k|  if (v2 < v1) return -1;
  ------------------
  |  Branch (4362:7): [True: 30.0k, False: 33.7k]
  ------------------
 4363|       |
 4364|  33.7k|  if (d2->min < d1->min) return  1;
  ------------------
  |  Branch (4364:7): [True: 1.41k, False: 32.3k]
  ------------------
 4365|  32.3k|  if (d2->min > d1->min) return -1;
  ------------------
  |  Branch (4365:7): [True: 25.3k, False: 6.98k]
  ------------------
 4366|  6.98k|  return 0;
 4367|  32.3k|}
regcomp.c:distance_value:
 4325|   138k|{
 4326|       |  /* 1000 / (min-max-dist + 1) */
 4327|   138k|  static const short int dist_vals[] = {
 4328|   138k|    1000,  500,  333,  250,  200,  167,  143,  125,  111,  100,
 4329|   138k|      91,   83,   77,   71,   67,   63,   59,   56,   53,   50,
 4330|   138k|      48,   45,   43,   42,   40,   38,   37,   36,   34,   33,
 4331|   138k|      32,   31,   30,   29,   29,   28,   27,   26,   26,   25,
 4332|   138k|      24,   24,   23,   23,   22,   22,   21,   21,   20,   20,
 4333|   138k|      20,   19,   19,   19,   18,   18,   18,   17,   17,   17,
 4334|   138k|      16,   16,   16,   16,   15,   15,   15,   15,   14,   14,
 4335|   138k|      14,   14,   14,   14,   13,   13,   13,   13,   13,   13,
 4336|   138k|      12,   12,   12,   12,   12,   12,   11,   11,   11,   11,
 4337|   138k|      11,   11,   11,   11,   11,   10,   10,   10,   10,   10
 4338|   138k|  };
 4339|       |
 4340|   138k|  OnigDistance d;
 4341|       |
 4342|   138k|  if (mm->max == ONIG_INFINITE_DISTANCE) return 0;
  ------------------
  |  |   85|   138k|#define ONIG_INFINITE_DISTANCE  ~((OnigDistance )0)
  ------------------
  |  Branch (4342:7): [True: 87.8k, False: 50.8k]
  ------------------
 4343|       |
 4344|  50.8k|  d = mm->max - mm->min;
 4345|  50.8k|  if (d < numberof(dist_vals))
  ------------------
  |  |  129|  50.8k|# define numberof(array) (int )(sizeof(array) / sizeof((array)[0]))
  ------------------
  |  Branch (4345:7): [True: 50.8k, False: 0]
  ------------------
 4346|       |    /* return dist_vals[d] * 16 / (mm->min + 12); */
 4347|  50.8k|    return (int )dist_vals[d];
 4348|      0|  else
 4349|      0|    return 1;
 4350|  50.8k|}
regcomp.c:copy_node_opt_info:
 4786|  33.0k|{
 4787|  33.0k|  *to = *from;
 4788|  33.0k|}
regcomp.c:alt_merge_node_opt_info:
 4851|  11.5k|{
 4852|  11.5k|  alt_merge_opt_anc_info  (&to->anc,  &add->anc);
 4853|  11.5k|  alt_merge_opt_exact_info(&to->exb,  &add->exb, env);
 4854|  11.5k|  alt_merge_opt_exact_info(&to->exm,  &add->exm, env);
 4855|  11.5k|  alt_merge_opt_exact_info(&to->expr, &add->expr, env);
 4856|  11.5k|  alt_merge_opt_map_info(env->enc, &to->map,  &add->map);
 4857|       |
 4858|  11.5k|  alt_merge_mml(&to->len, &add->len);
 4859|  11.5k|}
regcomp.c:alt_merge_opt_anc_info:
 4497|  31.7k|{
 4498|  31.7k|  to->left_anchor  &= add->left_anchor;
 4499|  31.7k|  to->right_anchor &= add->right_anchor;
 4500|  31.7k|}
regcomp.c:alt_merge_opt_exact_info:
 4573|  34.5k|{
 4574|  34.5k|  int i, j, len;
 4575|       |
 4576|  34.5k|  if (add->len == 0 || to->len == 0) {
  ------------------
  |  Branch (4576:7): [True: 23.0k, False: 11.5k]
  |  Branch (4576:24): [True: 1.45k, False: 10.0k]
  ------------------
 4577|  24.4k|    clear_opt_exact_info(to);
 4578|  24.4k|    return ;
 4579|  24.4k|  }
 4580|       |
 4581|  10.0k|  if (! is_equal_mml(&to->mmd, &add->mmd)) {
  ------------------
  |  Branch (4581:7): [True: 1.35k, False: 8.69k]
  ------------------
 4582|  1.35k|    clear_opt_exact_info(to);
 4583|  1.35k|    return ;
 4584|  1.35k|  }
 4585|       |
 4586|  14.5k|  for (i = 0; i < to->len && i < add->len; ) {
  ------------------
  |  Branch (4586:15): [True: 14.5k, False: 0]
  |  Branch (4586:30): [True: 14.5k, False: 0]
  ------------------
 4587|  14.5k|    if (to->s[i] != add->s[i]) break;
  ------------------
  |  Branch (4587:9): [True: 8.69k, False: 5.89k]
  ------------------
 4588|  5.89k|    len = enclen(env->enc, to->s + i, to->s + to->len);
  ------------------
  |  |   93|  5.89k|#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.89k|#define ONIGENC_MBC_ENC_LEN(enc,p,e)          onigenc_mbclen(p,e,enc)
  |  |  ------------------
  |  |  |  Branch (93:26): [True: 0, False: 5.89k]
  |  |  ------------------
  ------------------
 4589|       |
 4590|  5.89k|    for (j = 1; j < len; j++) {
  ------------------
  |  Branch (4590:17): [True: 0, False: 5.89k]
  ------------------
 4591|      0|      if (to->s[i+j] != add->s[i+j]) break;
  ------------------
  |  Branch (4591:11): [True: 0, False: 0]
  ------------------
 4592|      0|    }
 4593|  5.89k|    if (j < len) break;
  ------------------
  |  Branch (4593:9): [True: 0, False: 5.89k]
  ------------------
 4594|  5.89k|    i += len;
 4595|  5.89k|  }
 4596|       |
 4597|  8.69k|  if (! add->reach_end || i < add->len || i < to->len) {
  ------------------
  |  Branch (4597:7): [True: 0, False: 8.69k]
  |  Branch (4597:27): [True: 8.69k, False: 0]
  |  Branch (4597:43): [True: 0, False: 0]
  ------------------
 4598|  8.69k|    to->reach_end = 0;
 4599|  8.69k|  }
 4600|  8.69k|  to->len = i;
 4601|  8.69k|  if (to->ignore_case < 0)
  ------------------
  |  Branch (4601:7): [True: 0, False: 8.69k]
  ------------------
 4602|      0|    to->ignore_case = add->ignore_case;
 4603|  8.69k|  else if (add->ignore_case >= 0)
  ------------------
  |  Branch (4603:12): [True: 8.69k, False: 0]
  ------------------
 4604|  8.69k|    to->ignore_case |= add->ignore_case;
 4605|       |
 4606|  8.69k|  alt_merge_opt_anc_info(&to->anc, &add->anc);
 4607|  8.69k|  if (! to->reach_end) to->anc.right_anchor = 0;
  ------------------
  |  Branch (4607:7): [True: 8.69k, False: 0]
  ------------------
 4608|  8.69k|}
regcomp.c:is_equal_mml:
 4371|  10.0k|{
 4372|  10.0k|  return (a->min == b->min && a->max == b->max) ? 1 : 0;
  ------------------
  |  Branch (4372:11): [True: 8.69k, False: 1.35k]
  |  Branch (4372:31): [True: 8.69k, False: 0]
  ------------------
 4373|  10.0k|}
regcomp.c:alt_merge_opt_map_info:
 4740|  11.5k|{
 4741|  11.5k|  int i, val;
 4742|       |
 4743|       |  /* if (! is_equal_mml(&to->mmd, &add->mmd)) return ; */
 4744|  11.5k|  if (to->value == 0) return ;
  ------------------
  |  Branch (4744:7): [True: 0, False: 11.5k]
  ------------------
 4745|  11.5k|  if (add->value == 0 || to->mmd.max < add->mmd.min) {
  ------------------
  |  Branch (4745:7): [True: 0, False: 11.5k]
  |  Branch (4745:26): [True: 0, False: 11.5k]
  ------------------
 4746|      0|    clear_opt_map_info(to);
 4747|      0|    return ;
 4748|      0|  }
 4749|       |
 4750|  11.5k|  alt_merge_mml(&to->mmd, &add->mmd);
 4751|       |
 4752|  11.5k|  val = 0;
 4753|  2.95M|  for (i = 0; i < ONIG_CHAR_TABLE_SIZE; i++) {
  ------------------
  |  |  756|  2.95M|#define ONIG_CHAR_TABLE_SIZE   256
  ------------------
  |  Branch (4753:15): [True: 2.94M, False: 11.5k]
  ------------------
 4754|  2.94M|    if (add->map[i])
  ------------------
  |  Branch (4754:9): [True: 11.5k, False: 2.93M]
  ------------------
 4755|  11.5k|      to->map[i] = 1;
 4756|       |
 4757|  2.94M|    if (to->map[i])
  ------------------
  |  Branch (4757:9): [True: 21.5k, False: 2.92M]
  ------------------
 4758|  21.5k|      val += map_position_value(enc, i);
 4759|  2.94M|  }
 4760|  11.5k|  to->value = val;
 4761|       |
 4762|  11.5k|  alt_merge_opt_anc_info(&to->anc, &add->anc);
 4763|  11.5k|}
regcomp.c:map_position_value:
 4301|   204k|{
 4302|   204k|  static const short int ByteValTable[] = {
 4303|   204k|     5,  1,  1,  1,  1,  1,  1,  1,  1, 10, 10,  1,  1, 10,  1,  1,
 4304|   204k|     1,  1,  1,  1,  1,  1,  1,  1,  1,  1,  1,  1,  1,  1,  1,  1,
 4305|   204k|    12,  4,  7,  4,  4,  4,  4,  4,  4,  5,  5,  5,  5,  5,  5,  5,
 4306|   204k|     6,  6,  6,  6,  6,  6,  6,  6,  6,  6,  5,  5,  5,  5,  5,  5,
 4307|   204k|     5,  6,  6,  6,  6,  7,  6,  6,  6,  6,  6,  6,  6,  6,  6,  6,
 4308|   204k|     6,  6,  6,  6,  6,  6,  6,  6,  6,  6,  6,  5,  6,  5,  5,  5,
 4309|   204k|     5,  6,  6,  6,  6,  7,  6,  6,  6,  6,  6,  6,  6,  6,  6,  6,
 4310|   204k|     6,  6,  6,  6,  6,  6,  6,  6,  6,  6,  6,  5,  5,  5,  5,  1
 4311|   204k|  };
 4312|       |
 4313|   204k|  if (i < numberof(ByteValTable)) {
  ------------------
  |  |  129|   204k|# define numberof(array) (int )(sizeof(array) / sizeof((array)[0]))
  ------------------
  |  Branch (4313:7): [True: 204k, False: 0]
  ------------------
 4314|   204k|    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: 204k]
  |  Branch (4314:19): [True: 0, False: 0]
  ------------------
 4315|      0|      return 20;
 4316|   204k|    else
 4317|   204k|      return (int )ByteValTable[i];
 4318|   204k|  }
 4319|      0|  else
 4320|      0|    return 4;   /* Take it easy. */
 4321|   204k|}
regcomp.c:alt_merge_mml:
 4414|  23.0k|{
 4415|  23.0k|  if (to->min > from->min) to->min = from->min;
  ------------------
  |  Branch (4415:7): [True: 2.80k, False: 20.2k]
  ------------------
 4416|  23.0k|  if (to->max < from->max) to->max = from->max;
  ------------------
  |  Branch (4416:7): [True: 4.28k, False: 18.7k]
  ------------------
 4417|  23.0k|}
regcomp.c:concat_opt_exact_info_str:
 4557|  60.2k|{
 4558|  60.2k|  int i, j, len;
 4559|  60.2k|  UChar *p;
  ------------------
  |  |   76|  60.2k|# define UChar OnigUChar
  ------------------
 4560|       |
 4561|   499k|  for (i = to->len, p = s; p < end && i < OPT_EXACT_MAXLEN; ) {
  ------------------
  |  |   89|   444k|#define OPT_EXACT_MAXLEN   24	/* This must be smaller than ONIG_CHAR_TABLE_SIZE. */
  ------------------
  |  Branch (4561:28): [True: 444k, False: 54.6k]
  |  Branch (4561:39): [True: 438k, False: 5.59k]
  ------------------
 4562|   438k|    len = enclen(enc, p, end);
  ------------------
  |  |   93|   438k|#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|   438k|#define ONIGENC_MBC_ENC_LEN(enc,p,e)          onigenc_mbclen(p,e,enc)
  |  |  ------------------
  |  |  |  Branch (93:26): [True: 0, False: 438k]
  |  |  ------------------
  ------------------
 4563|   438k|    if (i + len > OPT_EXACT_MAXLEN) break;
  ------------------
  |  |   89|   438k|#define OPT_EXACT_MAXLEN   24	/* This must be smaller than ONIG_CHAR_TABLE_SIZE. */
  ------------------
  |  Branch (4563:9): [True: 0, False: 438k]
  ------------------
 4564|   877k|    for (j = 0; j < len && p < end; j++)
  ------------------
  |  Branch (4564:17): [True: 438k, False: 438k]
  |  Branch (4564:28): [True: 438k, False: 0]
  ------------------
 4565|   438k|      to->s[i++] = *p++;
 4566|   438k|  }
 4567|       |
 4568|  60.2k|  to->len = i;
 4569|  60.2k|}
regcomp.c:add_char_opt_map_info:
 4677|   180k|{
 4678|   180k|  if (map->map[c] == 0) {
  ------------------
  |  Branch (4678:7): [True: 180k, False: 0]
  ------------------
 4679|   180k|    map->map[c] = 1;
 4680|   180k|    map->value += map_position_value(enc, c);
 4681|   180k|  }
 4682|   180k|}
regcomp.c:set_mml:
 4378|   148k|{
 4379|   148k|  mml->min = min;
 4380|   148k|  mml->max = max;
 4381|   148k|}
regcomp.c:add_opt_anc_info:
 4479|  38.8k|{
 4480|  38.8k|  if (is_left_anchor(anc))
  ------------------
  |  Branch (4480:7): [True: 27.6k, False: 11.1k]
  ------------------
 4481|  27.6k|    to->left_anchor |= anc;
 4482|  11.1k|  else
 4483|  11.1k|    to->right_anchor |= anc;
 4484|  38.8k|}
regcomp.c:is_left_anchor:
 4460|  38.8k|{
 4461|  38.8k|  if (anc == ANCHOR_END_BUF || anc == ANCHOR_SEMI_END_BUF ||
  ------------------
  |  |  543|  77.6k|#define ANCHOR_END_BUF          (1<<3)
  ------------------
                if (anc == ANCHOR_END_BUF || anc == ANCHOR_SEMI_END_BUF ||
  ------------------
  |  |  544|  77.6k|#define ANCHOR_SEMI_END_BUF     (1<<4)
  ------------------
  |  Branch (4461:7): [True: 0, False: 38.8k]
  |  Branch (4461:32): [True: 0, False: 38.8k]
  ------------------
 4462|  38.8k|      anc == ANCHOR_END_LINE || anc == ANCHOR_PREC_READ ||
  ------------------
  |  |  545|  77.6k|#define ANCHOR_END_LINE         (1<<5)
  ------------------
                    anc == ANCHOR_END_LINE || anc == ANCHOR_PREC_READ ||
  ------------------
  |  |  551|  66.4k|#define ANCHOR_PREC_READ        (1<<10)
  ------------------
  |  Branch (4462:7): [True: 11.1k, False: 27.6k]
  |  Branch (4462:33): [True: 0, False: 27.6k]
  ------------------
 4463|  38.8k|      anc == ANCHOR_PREC_READ_NOT)
  ------------------
  |  |  552|  27.6k|#define ANCHOR_PREC_READ_NOT    (1<<11)
  ------------------
  |  Branch (4463:7): [True: 0, False: 27.6k]
  ------------------
 4464|  11.1k|    return 0;
 4465|       |
 4466|  27.6k|  return 1;
 4467|  38.8k|}
regcomp.c:copy_opt_exact_info:
 4521|  46.8k|{
 4522|  46.8k|  *to = *from;
 4523|  46.8k|}
regcomp.c:copy_opt_map_info:
 4671|  28.9k|{
 4672|  28.9k|  *to = *from;
 4673|  28.9k|}
regcomp.c:concat_opt_exact_info:
 4527|  1.48k|{
 4528|  1.48k|  int i, j, len;
 4529|  1.48k|  UChar *p, *end;
  ------------------
  |  |   76|  1.48k|# define UChar OnigUChar
  ------------------
 4530|  1.48k|  OptAncInfo tanc;
 4531|       |
 4532|  1.48k|  if (to->ignore_case < 0)
  ------------------
  |  Branch (4532:7): [True: 0, False: 1.48k]
  ------------------
 4533|      0|    to->ignore_case = add->ignore_case;
 4534|  1.48k|  else if (to->ignore_case != add->ignore_case)
  ------------------
  |  Branch (4534:12): [True: 0, False: 1.48k]
  ------------------
 4535|      0|    return ;  /* avoid */
 4536|       |
 4537|  1.48k|  p = add->s;
 4538|  1.48k|  end = p + add->len;
 4539|  5.92k|  for (i = to->len; p < end; ) {
  ------------------
  |  Branch (4539:21): [True: 4.44k, False: 1.48k]
  ------------------
 4540|  4.44k|    len = enclen(enc, p, end);
  ------------------
  |  |   93|  4.44k|#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.44k|#define ONIGENC_MBC_ENC_LEN(enc,p,e)          onigenc_mbclen(p,e,enc)
  |  |  ------------------
  |  |  |  Branch (93:26): [True: 0, False: 4.44k]
  |  |  ------------------
  ------------------
 4541|  4.44k|    if (i + len > OPT_EXACT_MAXLEN) break;
  ------------------
  |  |   89|  4.44k|#define OPT_EXACT_MAXLEN   24	/* This must be smaller than ONIG_CHAR_TABLE_SIZE. */
  ------------------
  |  Branch (4541:9): [True: 0, False: 4.44k]
  ------------------
 4542|  8.88k|    for (j = 0; j < len && p < end; j++)
  ------------------
  |  Branch (4542:17): [True: 4.44k, False: 4.44k]
  |  Branch (4542:28): [True: 4.44k, False: 0]
  ------------------
 4543|  4.44k|      to->s[i++] = *p++;
 4544|  4.44k|  }
 4545|       |
 4546|  1.48k|  to->len = i;
 4547|  1.48k|  to->reach_end = (p == end ? add->reach_end : 0);
  ------------------
  |  Branch (4547:20): [True: 1.48k, False: 0]
  ------------------
 4548|       |
 4549|  1.48k|  concat_opt_anc_info(&tanc, &to->anc, &add->anc, 1, 1);
 4550|  1.48k|  if (! to->reach_end) tanc.right_anchor = 0;
  ------------------
  |  Branch (4550:7): [True: 1.48k, False: 0]
  ------------------
 4551|  1.48k|  copy_opt_anc_info(&to->anc, &tanc);
 4552|  1.48k|}
regcomp.c:is_set_opt_anc_info:
 4471|  7.37k|{
 4472|  7.37k|  if ((to->left_anchor & anc) != 0) return 1;
  ------------------
  |  Branch (4472:7): [True: 0, False: 7.37k]
  ------------------
 4473|       |
 4474|  7.37k|  return ((to->right_anchor & anc) != 0 ? 1 : 0);
  ------------------
  |  Branch (4474:11): [True: 0, False: 7.37k]
  ------------------
 4475|  7.37k|}
regcomp.c:select_opt_exact_info:
 4612|   296k|{
 4613|   296k|  int v1, v2;
 4614|       |
 4615|   296k|  v1 = now->len;
 4616|   296k|  v2 = alt->len;
 4617|       |
 4618|   296k|  if (v2 == 0) {
  ------------------
  |  Branch (4618:7): [True: 237k, False: 59.3k]
  ------------------
 4619|   237k|    return ;
 4620|   237k|  }
 4621|  59.3k|  else if (v1 == 0) {
  ------------------
  |  Branch (4621:12): [True: 46.8k, False: 12.5k]
  ------------------
 4622|  46.8k|    copy_opt_exact_info(now, alt);
 4623|  46.8k|    return ;
 4624|  46.8k|  }
 4625|  12.5k|  else if (v1 <= 2 && v2 <= 2) {
  ------------------
  |  Branch (4625:12): [True: 2.74k, False: 9.75k]
  |  Branch (4625:23): [True: 1.40k, False: 1.33k]
  ------------------
 4626|       |    /* ByteValTable[x] is big value --> low price */
 4627|  1.40k|    v2 = map_position_value(enc, now->s[0]);
 4628|  1.40k|    v1 = map_position_value(enc, alt->s[0]);
 4629|       |
 4630|  1.40k|    if (now->len > 1) v1 += 5;
  ------------------
  |  Branch (4630:9): [True: 0, False: 1.40k]
  ------------------
 4631|  1.40k|    if (alt->len > 1) v2 += 5;
  ------------------
  |  Branch (4631:9): [True: 0, False: 1.40k]
  ------------------
 4632|  1.40k|  }
 4633|       |
 4634|  12.5k|  if (now->ignore_case <= 0) v1 *= 2;
  ------------------
  |  Branch (4634:7): [True: 12.5k, False: 0]
  ------------------
 4635|  12.5k|  if (alt->ignore_case <= 0) v2 *= 2;
  ------------------
  |  Branch (4635:7): [True: 12.5k, False: 0]
  ------------------
 4636|       |
 4637|  12.5k|  if (comp_distance_value(&now->mmd, &alt->mmd, v1, v2) > 0)
  ------------------
  |  Branch (4637:7): [True: 0, False: 12.5k]
  ------------------
 4638|      0|    copy_opt_exact_info(now, alt);
 4639|  12.5k|}
regcomp.c:comp_opt_exact_or_map_info:
 4727|  22.1k|{
 4728|  22.1k|#define COMP_EM_BASE  20
 4729|  22.1k|  int ve, vm;
 4730|       |
 4731|  22.1k|  if (m->value <= 0) return -1;
  ------------------
  |  Branch (4731:7): [True: 0, False: 22.1k]
  ------------------
 4732|       |
 4733|  22.1k|  ve = COMP_EM_BASE * e->len * (e->ignore_case > 0 ? 1 : 2);
  ------------------
  |  | 4728|  22.1k|#define COMP_EM_BASE  20
  ------------------
  |  Branch (4733:33): [True: 0, False: 22.1k]
  ------------------
 4734|  22.1k|  vm = COMP_EM_BASE * 5 * 2 / m->value;
  ------------------
  |  | 4728|  22.1k|#define COMP_EM_BASE  20
  ------------------
 4735|  22.1k|  return comp_distance_value(&e->mmd, &m->mmd, ve, vm);
 4736|  22.1k|}
regcomp.c:set_optimize_exact_info:
 5219|  15.2k|{
 5220|  15.2k|  int allow_reverse;
 5221|       |
 5222|  15.2k|  if (e->len == 0) return 0;
  ------------------
  |  Branch (5222:7): [True: 0, False: 15.2k]
  ------------------
 5223|       |
 5224|  15.2k|  reg->exact = (UChar* )xmalloc(e->len);
  ------------------
  |  |  142|  15.2k|# define xmalloc     malloc
  ------------------
 5225|  15.2k|  CHECK_NULL_RETURN_MEMERR(reg->exact);
  ------------------
  |  |  314|  15.2k|#define CHECK_NULL_RETURN_MEMERR(p)   if (IS_NULL(p)) return ONIGERR_MEMORY
  |  |  ------------------
  |  |  |  |  311|  15.2k|#define IS_NULL(p)                    (((void*)(p)) == (void*)0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (311:39): [True: 0, False: 15.2k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |               #define CHECK_NULL_RETURN_MEMERR(p)   if (IS_NULL(p)) return ONIGERR_MEMORY
  |  |  ------------------
  |  |  |  |  632|      0|#define ONIGERR_MEMORY                                         -5
  |  |  ------------------
  ------------------
 5226|  15.2k|  xmemcpy(reg->exact, e->s, e->len);
  ------------------
  |  |  215|  15.2k|#define xmemcpy     memcpy
  ------------------
 5227|  15.2k|  reg->exact_end = reg->exact + e->len;
 5228|       |
 5229|  15.2k|  allow_reverse =
 5230|  15.2k|	ONIGENC_IS_ALLOWED_REVERSE_MATCH(reg->enc, reg->exact, reg->exact_end);
  ------------------
  |  |  335|  15.2k|        (enc)->is_allowed_reverse_match(s,end,enc)
  ------------------
 5231|       |
 5232|  15.2k|  if (e->ignore_case > 0) {
  ------------------
  |  Branch (5232:7): [True: 0, False: 15.2k]
  ------------------
 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.2k|  else {
 5252|  15.2k|    if (e->len >= 3 || (e->len >= 2 && allow_reverse)) {
  ------------------
  |  Branch (5252:9): [True: 11.1k, False: 4.05k]
  |  Branch (5252:25): [True: 0, False: 4.05k]
  |  Branch (5252:40): [True: 0, False: 0]
  ------------------
 5253|  11.1k|      set_bm_skip(reg->exact, reg->exact_end, reg,
 5254|  11.1k|		  reg->map, 0);
 5255|  11.1k|      reg->optimize = (allow_reverse != 0
  ------------------
  |  Branch (5255:24): [True: 11.1k, False: 0]
  ------------------
 5256|  11.1k|		     ? ONIG_OPTIMIZE_EXACT_BM : ONIG_OPTIMIZE_EXACT_BM_NOT_REV);
  ------------------
  |  |  357|  11.1k|#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.1k|    }
 5258|  4.05k|    else {
 5259|  4.05k|      reg->optimize = ONIG_OPTIMIZE_EXACT;
  ------------------
  |  |  356|  4.05k|#define ONIG_OPTIMIZE_EXACT             1   /* Slow Search */
  ------------------
 5260|  4.05k|    }
 5261|  15.2k|  }
 5262|       |
 5263|  15.2k|  reg->dmin = e->mmd.min;
 5264|  15.2k|  reg->dmax = e->mmd.max;
 5265|       |
 5266|  15.2k|  if (reg->dmin != ONIG_INFINITE_DISTANCE) {
  ------------------
  |  |   85|  15.2k|#define ONIG_INFINITE_DISTANCE  ~((OnigDistance )0)
  ------------------
  |  Branch (5266:7): [True: 15.2k, False: 0]
  ------------------
 5267|  15.2k|    reg->threshold_len = (int )(reg->dmin + (reg->exact_end - reg->exact));
 5268|  15.2k|  }
 5269|       |
 5270|  15.2k|  return 0;
 5271|  15.2k|}
regcomp.c:set_bm_skip:
 4187|  11.1k|{
 4188|  11.1k|  OnigDistance i, len;
 4189|  11.1k|  int clen, flen, n, j, k;
 4190|  11.1k|  UChar *p, buf[ONIGENC_MBC_CASE_FOLD_MAXLEN];
  ------------------
  |  |   76|  11.1k|# define UChar OnigUChar
  ------------------
 4191|  11.1k|  OnigCaseFoldCodeItem items[ONIGENC_GET_CASE_FOLD_CODES_MAX_NUM];
 4192|  11.1k|  OnigEncoding enc = reg->enc;
 4193|       |
 4194|  11.1k|  len = end - s;
 4195|  11.1k|  if (len >= ONIG_CHAR_TABLE_SIZE) {
  ------------------
  |  |  756|  11.1k|#define ONIG_CHAR_TABLE_SIZE   256
  ------------------
  |  Branch (4195:7): [True: 0, False: 11.1k]
  ------------------
 4196|       |    /* This should not happen. */
 4197|      0|    return ONIGERR_TYPE_BUG;
  ------------------
  |  |  633|      0|#define ONIGERR_TYPE_BUG                                       -6
  ------------------
 4198|      0|  }
 4199|       |
 4200|  11.1k|  if (ignore_case) {
  ------------------
  |  Branch (4200:7): [True: 0, False: 11.1k]
  ------------------
 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.86M|  for (i = 0; i < ONIG_CHAR_TABLE_SIZE; i++)
  ------------------
  |  |  756|  2.86M|#define ONIG_CHAR_TABLE_SIZE   256
  ------------------
  |  Branch (4227:15): [True: 2.85M, False: 11.1k]
  ------------------
 4228|  2.85M|    skip[i] = (UChar )(len + 1);
 4229|  11.1k|  n = 0;
 4230|   172k|  for (i = 0; i < len; i += clen) {
  ------------------
  |  Branch (4230:15): [True: 161k, False: 11.1k]
  ------------------
 4231|   161k|    p = s + i;
 4232|   161k|    if (ignore_case)
  ------------------
  |  Branch (4232:9): [True: 0, False: 161k]
  ------------------
 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|   161k|					     p, end, items);
 4235|   161k|    clen = enclen(enc, p, end);
  ------------------
  |  |   93|   161k|#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|   161k|#define ONIGENC_MBC_ENC_LEN(enc,p,e)          onigenc_mbclen(p,e,enc)
  |  |  ------------------
  |  |  |  Branch (93:26): [True: 0, False: 161k]
  |  |  ------------------
  ------------------
 4236|   161k|    if (p + clen > end)
  ------------------
  |  Branch (4236:9): [True: 0, False: 161k]
  ------------------
 4237|      0|      clen = (int )(end - p);
 4238|       |
 4239|   322k|    for (j = 0; j < clen; j++) {
  ------------------
  |  Branch (4239:17): [True: 161k, False: 161k]
  ------------------
 4240|   161k|      skip[s[i + j]] = (UChar )(len - i - j);
 4241|   161k|      for (k = 0; k < n; k++) {
  ------------------
  |  Branch (4241:19): [True: 0, False: 161k]
  ------------------
 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|   161k|    }
 4246|   161k|  }
 4247|       |
 4248|  11.1k|  return (int )len;
 4249|  11.1k|}
regcomp.c:set_sub_anchor:
 5292|  26.2k|{
 5293|  26.2k|  reg->sub_anchor |= anc->left_anchor  & ANCHOR_BEGIN_LINE;
  ------------------
  |  |  541|  26.2k|#define ANCHOR_BEGIN_LINE       (1<<1)
  ------------------
 5294|  26.2k|  reg->sub_anchor |= anc->right_anchor & ANCHOR_END_LINE;
  ------------------
  |  |  545|  26.2k|#define ANCHOR_END_LINE         (1<<5)
  ------------------
 5295|  26.2k|}
regcomp.c:set_optimize_map_info:
 5275|  11.0k|{
 5276|  11.0k|  int i;
 5277|       |
 5278|  2.84M|  for (i = 0; i < ONIG_CHAR_TABLE_SIZE; i++)
  ------------------
  |  |  756|  2.84M|#define ONIG_CHAR_TABLE_SIZE   256
  ------------------
  |  Branch (5278:15): [True: 2.83M, False: 11.0k]
  ------------------
 5279|  2.83M|    reg->map[i] = m->map[i];
 5280|       |
 5281|  11.0k|  reg->optimize   = ONIG_OPTIMIZE_MAP;
  ------------------
  |  |  360|  11.0k|#define ONIG_OPTIMIZE_MAP               5   /* char map */
  ------------------
 5282|  11.0k|  reg->dmin       = m->mmd.min;
 5283|  11.0k|  reg->dmax       = m->mmd.max;
 5284|       |
 5285|  11.0k|  if (reg->dmin != ONIG_INFINITE_DISTANCE) {
  ------------------
  |  |   85|  11.0k|#define ONIG_INFINITE_DISTANCE  ~((OnigDistance )0)
  ------------------
  |  Branch (5285:7): [True: 11.0k, False: 0]
  ------------------
 5286|  11.0k|    reg->threshold_len = (int )(reg->dmin + 1);
 5287|  11.0k|  }
 5288|  11.0k|}
regcomp.c:compile_tree:
 1688|   256k|{
 1689|   256k|  int n, type, len, pos, r = 0;
 1690|       |
 1691|   256k|  type = NTYPE(node);
  ------------------
  |  |   69|   256k|#define NTYPE(node)             ((node)->u.base.type)
  ------------------
 1692|   256k|  switch (type) {
 1693|  33.1k|  case NT_LIST:
  ------------------
  |  |   46|  33.1k|#define NT_LIST        8
  ------------------
  |  Branch (1693:3): [True: 33.1k, False: 223k]
  ------------------
 1694|   137k|    do {
 1695|   137k|      r = compile_tree(NCAR(node), reg);
  ------------------
  |  |   86|   137k|#define NCAR(node)         (NCONS(node)->car)
  |  |  ------------------
  |  |  |  |   83|   137k|#define NCONS(node)        (&((node)->u.cons))
  |  |  ------------------
  ------------------
 1696|   137k|    } while (r == 0 && IS_NOT_NULL(node = NCDR(node)));
  ------------------
  |  |  312|   137k|#define IS_NOT_NULL(p)                (((void*)(p)) != (void*)0)
  |  |  ------------------
  |  |  |  Branch (312:39): [True: 104k, False: 33.1k]
  |  |  ------------------
  ------------------
  |  Branch (1696:14): [True: 137k, False: 0]
  ------------------
 1697|  33.1k|    break;
 1698|       |
 1699|  8.59k|  case NT_ALT:
  ------------------
  |  |   47|  8.59k|#define NT_ALT         9
  ------------------
  |  Branch (1699:3): [True: 8.59k, False: 248k]
  ------------------
 1700|  8.59k|    {
 1701|  8.59k|      Node* x = node;
 1702|  8.59k|      len = 0;
 1703|  20.0k|      do {
 1704|  20.0k|	len += compile_length_tree(NCAR(x), reg);
  ------------------
  |  |   86|  20.0k|#define NCAR(node)         (NCONS(node)->car)
  |  |  ------------------
  |  |  |  |   83|  20.0k|#define NCONS(node)        (&((node)->u.cons))
  |  |  ------------------
  ------------------
 1705|  20.0k|	if (NCDR(x) != NULL) {
  ------------------
  |  |   87|  20.0k|#define NCDR(node)         (NCONS(node)->cdr)
  |  |  ------------------
  |  |  |  |   83|  20.0k|#define NCONS(node)        (&((node)->u.cons))
  |  |  ------------------
  ------------------
  |  Branch (1705:6): [True: 11.5k, False: 8.59k]
  ------------------
 1706|  11.5k|	  len += SIZE_OP_PUSH + SIZE_OP_JUMP;
  ------------------
  |  |  721|  11.5k|#define SIZE_OP_PUSH                   (SIZE_OPCODE + SIZE_RELADDR)
  |  |  ------------------
  |  |  |  |  688|  11.5k|#define SIZE_OPCODE           1
  |  |  ------------------
  |  |               #define SIZE_OP_PUSH                   (SIZE_OPCODE + SIZE_RELADDR)
  |  |  ------------------
  |  |  |  |  689|  11.5k|#define SIZE_RELADDR          (int )sizeof(RelAddrType)
  |  |  ------------------
  ------------------
              	  len += SIZE_OP_PUSH + SIZE_OP_JUMP;
  ------------------
  |  |  720|  11.5k|#define SIZE_OP_JUMP                   (SIZE_OPCODE + SIZE_RELADDR)
  |  |  ------------------
  |  |  |  |  688|  11.5k|#define SIZE_OPCODE           1
  |  |  ------------------
  |  |               #define SIZE_OP_JUMP                   (SIZE_OPCODE + SIZE_RELADDR)
  |  |  ------------------
  |  |  |  |  689|  11.5k|#define SIZE_RELADDR          (int )sizeof(RelAddrType)
  |  |  ------------------
  ------------------
 1707|  11.5k|	}
 1708|  20.0k|      } while (IS_NOT_NULL(x = NCDR(x)));
  ------------------
  |  |  312|  20.0k|#define IS_NOT_NULL(p)                (((void*)(p)) != (void*)0)
  |  |  ------------------
  |  |  |  Branch (312:39): [True: 11.5k, False: 8.59k]
  |  |  ------------------
  ------------------
 1709|  8.59k|      pos = reg->used + len;  /* goal position */
 1710|       |
 1711|  20.0k|      do {
 1712|  20.0k|	len = compile_length_tree(NCAR(node), reg);
  ------------------
  |  |   86|  20.0k|#define NCAR(node)         (NCONS(node)->car)
  |  |  ------------------
  |  |  |  |   83|  20.0k|#define NCONS(node)        (&((node)->u.cons))
  |  |  ------------------
  ------------------
 1713|  20.0k|	if (IS_NOT_NULL(NCDR(node))) {
  ------------------
  |  |  312|  20.0k|#define IS_NOT_NULL(p)                (((void*)(p)) != (void*)0)
  |  |  ------------------
  |  |  |  Branch (312:39): [True: 11.5k, False: 8.59k]
  |  |  ------------------
  ------------------
 1714|  11.5k|	  r = add_opcode_rel_addr(reg, OP_PUSH, len + SIZE_OP_JUMP);
  ------------------
  |  |  720|  11.5k|#define SIZE_OP_JUMP                   (SIZE_OPCODE + SIZE_RELADDR)
  |  |  ------------------
  |  |  |  |  688|  11.5k|#define SIZE_OPCODE           1
  |  |  ------------------
  |  |               #define SIZE_OP_JUMP                   (SIZE_OPCODE + SIZE_RELADDR)
  |  |  ------------------
  |  |  |  |  689|  11.5k|#define SIZE_RELADDR          (int )sizeof(RelAddrType)
  |  |  ------------------
  ------------------
 1715|  11.5k|	  if (r) break;
  ------------------
  |  Branch (1715:8): [True: 0, False: 11.5k]
  ------------------
 1716|  11.5k|	}
 1717|  20.0k|	r = compile_tree(NCAR(node), reg);
  ------------------
  |  |   86|  20.0k|#define NCAR(node)         (NCONS(node)->car)
  |  |  ------------------
  |  |  |  |   83|  20.0k|#define NCONS(node)        (&((node)->u.cons))
  |  |  ------------------
  ------------------
 1718|  20.0k|	if (r) break;
  ------------------
  |  Branch (1718:6): [True: 0, False: 20.0k]
  ------------------
 1719|  20.0k|	if (IS_NOT_NULL(NCDR(node))) {
  ------------------
  |  |  312|  20.0k|#define IS_NOT_NULL(p)                (((void*)(p)) != (void*)0)
  |  |  ------------------
  |  |  |  Branch (312:39): [True: 11.5k, False: 8.59k]
  |  |  ------------------
  ------------------
 1720|  11.5k|	  len = pos - (reg->used + SIZE_OP_JUMP);
  ------------------
  |  |  720|  11.5k|#define SIZE_OP_JUMP                   (SIZE_OPCODE + SIZE_RELADDR)
  |  |  ------------------
  |  |  |  |  688|  11.5k|#define SIZE_OPCODE           1
  |  |  ------------------
  |  |               #define SIZE_OP_JUMP                   (SIZE_OPCODE + SIZE_RELADDR)
  |  |  ------------------
  |  |  |  |  689|  11.5k|#define SIZE_RELADDR          (int )sizeof(RelAddrType)
  |  |  ------------------
  ------------------
 1721|  11.5k|	  r = add_opcode_rel_addr(reg, OP_JUMP, len);
 1722|  11.5k|	  if (r) break;
  ------------------
  |  Branch (1722:8): [True: 0, False: 11.5k]
  ------------------
 1723|  11.5k|	}
 1724|  20.0k|      } while (IS_NOT_NULL(node = NCDR(node)));
  ------------------
  |  |  312|  20.0k|#define IS_NOT_NULL(p)                (((void*)(p)) != (void*)0)
  |  |  ------------------
  |  |  |  Branch (312:39): [True: 11.5k, False: 8.59k]
  |  |  ------------------
  ------------------
 1725|  8.59k|    }
 1726|      0|    break;
 1727|       |
 1728|  60.2k|  case NT_STR:
  ------------------
  |  |   38|  60.2k|#define NT_STR         0
  ------------------
  |  Branch (1728:3): [True: 60.2k, False: 196k]
  ------------------
 1729|  60.2k|    if (NSTRING_IS_RAW(node))
  ------------------
  |  |  114|  60.2k|#define NSTRING_IS_RAW(node)          (((node)->u.str.flag & NSTR_RAW)   != 0)
  |  |  ------------------
  |  |  |  |  104|  60.2k|#define NSTR_RAW                (1<<0) /* by backslashed number */
  |  |  ------------------
  |  |  |  Branch (114:39): [True: 0, False: 60.2k]
  |  |  ------------------
  ------------------
 1730|      0|      r = compile_string_raw_node(NSTR(node), reg);
  ------------------
  |  |   76|      0|#define NSTR(node)         (&((node)->u.str))
  ------------------
 1731|  60.2k|    else
 1732|  60.2k|      r = compile_string_node(node, reg);
 1733|  60.2k|    break;
 1734|       |
 1735|  54.5k|  case NT_CCLASS:
  ------------------
  |  |   39|  54.5k|#define NT_CCLASS      1
  ------------------
  |  Branch (1735:3): [True: 54.5k, False: 202k]
  ------------------
 1736|  54.5k|    r = compile_cclass_node(NCCLASS(node), reg);
  ------------------
  |  |   77|  54.5k|#define NCCLASS(node)      (&((node)->u.cclass))
  ------------------
 1737|  54.5k|    break;
 1738|       |
 1739|      0|  case NT_CTYPE:
  ------------------
  |  |   40|      0|#define NT_CTYPE       2
  ------------------
  |  Branch (1739:3): [True: 0, False: 256k]
  ------------------
 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|  9.97k|  case NT_CANY:
  ------------------
  |  |   41|  9.97k|#define NT_CANY        3
  ------------------
  |  Branch (1762:3): [True: 9.97k, False: 246k]
  ------------------
 1763|  9.97k|    if (IS_MULTILINE(reg->options))
  ------------------
  |  |  395|  9.97k|#define IS_MULTILINE(option)      ((option) & ONIG_OPTION_MULTILINE)
  |  |  ------------------
  |  |  |  |  456|  9.97k|#define ONIG_OPTION_MULTILINE            (ONIG_OPTION_EXTEND             << 1)
  |  |  |  |  ------------------
  |  |  |  |  |  |  455|  9.97k|#define ONIG_OPTION_EXTEND               (ONIG_OPTION_IGNORECASE         << 1)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  454|  9.97k|#define ONIG_OPTION_IGNORECASE           1U
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  |  Branch (395:35): [True: 0, False: 9.97k]
  |  |  ------------------
  ------------------
 1764|      0|      r = add_opcode(reg, OP_ANYCHAR_ML);
 1765|  9.97k|    else
 1766|  9.97k|      r = add_opcode(reg, OP_ANYCHAR);
 1767|  9.97k|    break;
 1768|       |
 1769|      0|  case NT_BREF:
  ------------------
  |  |   42|      0|#define NT_BREF        4
  ------------------
  |  Branch (1769:3): [True: 0, False: 256k]
  ------------------
 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: 256k]
  ------------------
 1833|      0|    r = compile_call(NCALL(node), reg);
  ------------------
  |  |   84|      0|#define NCALL(node)        (&((node)->u.call))
  ------------------
 1834|      0|    break;
 1835|      0|#endif
 1836|       |
 1837|  23.5k|  case NT_QTFR:
  ------------------
  |  |   43|  23.5k|#define NT_QTFR        5
  ------------------
  |  Branch (1837:3): [True: 23.5k, False: 233k]
  ------------------
 1838|  23.5k|    r = compile_quantifier_node(NQTFR(node), reg);
  ------------------
  |  |   80|  23.5k|#define NQTFR(node)        (&((node)->u.qtfr))
  ------------------
 1839|  23.5k|    break;
 1840|       |
 1841|  26.4k|  case NT_ENCLOSE:
  ------------------
  |  |   44|  26.4k|#define NT_ENCLOSE     6
  ------------------
  |  Branch (1841:3): [True: 26.4k, False: 230k]
  ------------------
 1842|  26.4k|    r = compile_enclose_node(NENCLOSE(node), reg);
  ------------------
  |  |   81|  26.4k|#define NENCLOSE(node)     (&((node)->u.enclose))
  ------------------
 1843|  26.4k|    break;
 1844|       |
 1845|  40.1k|  case NT_ANCHOR:
  ------------------
  |  |   45|  40.1k|#define NT_ANCHOR      7
  ------------------
  |  Branch (1845:3): [True: 40.1k, False: 216k]
  ------------------
 1846|  40.1k|    r = compile_anchor_node(NANCHOR(node), reg);
  ------------------
  |  |   82|  40.1k|#define NANCHOR(node)      (&((node)->u.anchor))
  ------------------
 1847|  40.1k|    break;
 1848|       |
 1849|      0|  default:
  ------------------
  |  Branch (1849:3): [True: 0, False: 256k]
  ------------------
 1850|       |#ifdef ONIG_DEBUG
 1851|       |    fprintf(stderr, "compile_tree: undefined node type %d\n", NTYPE(node));
 1852|       |#endif
 1853|      0|    break;
 1854|   256k|  }
 1855|       |
 1856|   256k|  return r;
 1857|   256k|}
regcomp.c:compile_length_tree:
 1593|   135k|{
 1594|   135k|  int len, type, r;
 1595|       |
 1596|   135k|  type = NTYPE(node);
  ------------------
  |  |   69|   135k|#define NTYPE(node)             ((node)->u.base.type)
  ------------------
 1597|   135k|  switch (type) {
 1598|  10.7k|  case NT_LIST:
  ------------------
  |  |   46|  10.7k|#define NT_LIST        8
  ------------------
  |  Branch (1598:3): [True: 10.7k, False: 124k]
  ------------------
 1599|  10.7k|    len = 0;
 1600|  26.9k|    do {
 1601|  26.9k|      r = compile_length_tree(NCAR(node), reg);
  ------------------
  |  |   86|  26.9k|#define NCAR(node)         (NCONS(node)->car)
  |  |  ------------------
  |  |  |  |   83|  26.9k|#define NCONS(node)        (&((node)->u.cons))
  |  |  ------------------
  ------------------
 1602|  26.9k|      if (r < 0) return r;
  ------------------
  |  Branch (1602:11): [True: 0, False: 26.9k]
  ------------------
 1603|  26.9k|      len += r;
 1604|  26.9k|    } while (IS_NOT_NULL(node = NCDR(node)));
  ------------------
  |  |  312|  26.9k|#define IS_NOT_NULL(p)                (((void*)(p)) != (void*)0)
  |  |  ------------------
  |  |  |  Branch (312:39): [True: 16.1k, False: 10.7k]
  |  |  ------------------
  ------------------
 1605|  10.7k|    r = len;
 1606|  10.7k|    break;
 1607|       |
 1608|      0|  case NT_ALT:
  ------------------
  |  |   47|      0|#define NT_ALT         9
  ------------------
  |  Branch (1608:3): [True: 0, False: 135k]
  ------------------
 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|  46.9k|  case NT_STR:
  ------------------
  |  |   38|  46.9k|#define NT_STR         0
  ------------------
  |  Branch (1623:3): [True: 46.9k, False: 88.2k]
  ------------------
 1624|  46.9k|    if (NSTRING_IS_RAW(node))
  ------------------
  |  |  114|  46.9k|#define NSTRING_IS_RAW(node)          (((node)->u.str.flag & NSTR_RAW)   != 0)
  |  |  ------------------
  |  |  |  |  104|  46.9k|#define NSTR_RAW                (1<<0) /* by backslashed number */
  |  |  ------------------
  |  |  |  Branch (114:39): [True: 0, False: 46.9k]
  |  |  ------------------
  ------------------
 1625|      0|      r = compile_length_string_raw_node(NSTR(node), reg);
  ------------------
  |  |   76|      0|#define NSTR(node)         (&((node)->u.str))
  ------------------
 1626|  46.9k|    else
 1627|  46.9k|      r = compile_length_string_node(node, reg);
 1628|  46.9k|    break;
 1629|       |
 1630|  44.9k|  case NT_CCLASS:
  ------------------
  |  |   39|  44.9k|#define NT_CCLASS      1
  ------------------
  |  Branch (1630:3): [True: 44.9k, False: 90.2k]
  ------------------
 1631|  44.9k|    r = compile_length_cclass_node(NCCLASS(node), reg);
  ------------------
  |  |   77|  44.9k|#define NCCLASS(node)      (&((node)->u.cclass))
  ------------------
 1632|  44.9k|    break;
 1633|       |
 1634|      0|  case NT_CTYPE:
  ------------------
  |  |   40|      0|#define NT_CTYPE       2
  ------------------
  |  Branch (1634:3): [True: 0, False: 135k]
  ------------------
 1635|  8.29k|  case NT_CANY:
  ------------------
  |  |   41|  8.29k|#define NT_CANY        3
  ------------------
  |  Branch (1635:3): [True: 8.29k, False: 126k]
  ------------------
 1636|  8.29k|    r = SIZE_OPCODE;
  ------------------
  |  |  688|  8.29k|#define SIZE_OPCODE           1
  ------------------
 1637|  8.29k|    break;
 1638|       |
 1639|      0|  case NT_BREF:
  ------------------
  |  |   42|      0|#define NT_BREF        4
  ------------------
  |  Branch (1639:3): [True: 0, False: 135k]
  ------------------
 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: 135k]
  ------------------
 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|  10.7k|  case NT_QTFR:
  ------------------
  |  |   43|  10.7k|#define NT_QTFR        5
  ------------------
  |  Branch (1666:3): [True: 10.7k, False: 124k]
  ------------------
 1667|  10.7k|    r = compile_length_quantifier_node(NQTFR(node), reg);
  ------------------
  |  |   80|  10.7k|#define NQTFR(node)        (&((node)->u.qtfr))
  ------------------
 1668|  10.7k|    break;
 1669|       |
 1670|  8.06k|  case NT_ENCLOSE:
  ------------------
  |  |   44|  8.06k|#define NT_ENCLOSE     6
  ------------------
  |  Branch (1670:3): [True: 8.06k, False: 127k]
  ------------------
 1671|  8.06k|    r = compile_length_enclose_node(NENCLOSE(node), reg);
  ------------------
  |  |   81|  8.06k|#define NENCLOSE(node)     (&((node)->u.enclose))
  ------------------
 1672|  8.06k|    break;
 1673|       |
 1674|  5.40k|  case NT_ANCHOR:
  ------------------
  |  |   45|  5.40k|#define NT_ANCHOR      7
  ------------------
  |  Branch (1674:3): [True: 5.40k, False: 129k]
  ------------------
 1675|  5.40k|    r = compile_length_anchor_node(NANCHOR(node), reg);
  ------------------
  |  |   82|  5.40k|#define NANCHOR(node)      (&((node)->u.anchor))
  ------------------
 1676|  5.40k|    break;
 1677|       |
 1678|      0|  default:
  ------------------
  |  Branch (1678:3): [True: 0, False: 135k]
  ------------------
 1679|      0|    return ONIGERR_TYPE_BUG;
  ------------------
  |  |  633|      0|#define ONIGERR_TYPE_BUG                                       -6
  ------------------
 1680|      0|    break;
 1681|   135k|  }
 1682|       |
 1683|   135k|  return r;
 1684|   135k|}
regcomp.c:add_compile_string_length:
  427|  46.9k|{
  428|  46.9k|  int len;
  429|  46.9k|  int op = select_str_opcode(mb_len, byte_len, ignore_case);
  430|       |
  431|  46.9k|  len = SIZE_OPCODE;
  ------------------
  |  |  688|  46.9k|#define SIZE_OPCODE           1
  ------------------
  432|       |
  433|  46.9k|  if (op == OP_EXACTMBN)  len += SIZE_LENGTH;
  ------------------
  |  |  691|      0|#define SIZE_LENGTH           (int )sizeof(LengthType)
  ------------------
  |  Branch (433:7): [True: 0, False: 46.9k]
  ------------------
  434|  46.9k|  if (IS_NEED_STR_LEN_OP_EXACT(op))
  ------------------
  |  |  316|  46.9k|   ((op) == OP_EXACTN    || (op) == OP_EXACTMB2N ||\
  |  |  ------------------
  |  |  |  Branch (316:5): [True: 25.8k, False: 21.1k]
  |  |  |  Branch (316:29): [True: 0, False: 21.1k]
  |  |  ------------------
  |  |  317|  46.9k|    (op) == OP_EXACTMB3N || (op) == OP_EXACTMBN  || (op) == OP_EXACTN_IC)
  |  |  ------------------
  |  |  |  Branch (317:5): [True: 0, False: 21.1k]
  |  |  |  Branch (317:29): [True: 0, False: 21.1k]
  |  |  |  Branch (317:53): [True: 0, False: 21.1k]
  |  |  ------------------
  ------------------
  435|  25.8k|    len += SIZE_LENGTH;
  ------------------
  |  |  691|  25.8k|#define SIZE_LENGTH           (int )sizeof(LengthType)
  ------------------
  436|       |
  437|  46.9k|  len += (int )byte_len;
  438|  46.9k|  return len;
  439|  46.9k|}
regcomp.c:select_str_opcode:
  321|   105k|{
  322|   105k|  int op;
  323|   105k|  OnigDistance str_len = (byte_len + mb_len - 1) / mb_len;
  324|       |
  325|   105k|  if (ignore_case) {
  ------------------
  |  Branch (325:7): [True: 0, False: 105k]
  ------------------
  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|   105k|  else {
  332|   105k|    switch (mb_len) {
  333|   105k|    case 1:
  ------------------
  |  Branch (333:5): [True: 105k, False: 0]
  ------------------
  334|   105k|      switch (str_len) {
  335|  33.6k|      case 1:  op = OP_EXACT1; break;
  ------------------
  |  Branch (335:7): [True: 33.6k, False: 72.2k]
  ------------------
  336|  2.71k|      case 2:  op = OP_EXACT2; break;
  ------------------
  |  Branch (336:7): [True: 2.71k, False: 103k]
  ------------------
  337|  4.10k|      case 3:  op = OP_EXACT3; break;
  ------------------
  |  Branch (337:7): [True: 4.10k, False: 101k]
  ------------------
  338|  5.55k|      case 4:  op = OP_EXACT4; break;
  ------------------
  |  Branch (338:7): [True: 5.55k, False: 100k]
  ------------------
  339|  8.56k|      case 5:  op = OP_EXACT5; break;
  ------------------
  |  Branch (339:7): [True: 8.56k, False: 97.2k]
  ------------------
  340|  51.2k|      default: op = OP_EXACTN; break;
  ------------------
  |  Branch (340:7): [True: 51.2k, False: 54.5k]
  ------------------
  341|   105k|      }
  342|   105k|      break;
  343|       |
  344|   105k|    case 2:
  ------------------
  |  Branch (344:5): [True: 0, False: 105k]
  ------------------
  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: 105k]
  ------------------
  354|      0|      op = OP_EXACTMB3N;
  355|      0|      break;
  356|       |
  357|      0|    default:
  ------------------
  |  Branch (357:5): [True: 0, False: 105k]
  ------------------
  358|      0|      op = OP_EXACTMBN;
  359|      0|      break;
  360|   105k|    }
  361|   105k|  }
  362|   105k|  return op;
  363|   105k|}
regcomp.c:compile_length_string_node:
  465|  46.9k|{
  466|  46.9k|  int rlen, r, len, prev_len, blen, ambig;
  467|  46.9k|  OnigEncoding enc = reg->enc;
  468|  46.9k|  UChar *p, *prev;
  ------------------
  |  |   76|  46.9k|# define UChar OnigUChar
  ------------------
  469|  46.9k|  StrNode* sn;
  470|       |
  471|  46.9k|  sn = NSTR(node);
  ------------------
  |  |   76|  46.9k|#define NSTR(node)         (&((node)->u.str))
  ------------------
  472|  46.9k|  if (sn->end <= sn->s)
  ------------------
  |  Branch (472:7): [True: 0, False: 46.9k]
  ------------------
  473|      0|    return 0;
  474|       |
  475|  46.9k|  ambig = NSTRING_IS_AMBIG(node);
  ------------------
  |  |  115|  46.9k|#define NSTRING_IS_AMBIG(node)        (((node)->u.str.flag & NSTR_AMBIG) != 0)
  |  |  ------------------
  |  |  |  |  105|  46.9k|#define NSTR_AMBIG              (1<<1)
  |  |  ------------------
  ------------------
  476|       |
  477|  46.9k|  p = prev = sn->s;
  478|  46.9k|  prev_len = enclen(enc, p, sn->end);
  ------------------
  |  |   93|  46.9k|#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|  46.9k|#define ONIGENC_MBC_ENC_LEN(enc,p,e)          onigenc_mbclen(p,e,enc)
  |  |  ------------------
  |  |  |  Branch (93:26): [True: 0, False: 46.9k]
  |  |  ------------------
  ------------------
  479|  46.9k|  p += prev_len;
  480|  46.9k|  blen = prev_len;
  481|  46.9k|  rlen = 0;
  482|       |
  483|   338k|  for (; p < sn->end; ) {
  ------------------
  |  Branch (483:10): [True: 291k, False: 46.9k]
  ------------------
  484|   291k|    len = enclen(enc, p, sn->end);
  ------------------
  |  |   93|   291k|#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|   291k|#define ONIGENC_MBC_ENC_LEN(enc,p,e)          onigenc_mbclen(p,e,enc)
  |  |  ------------------
  |  |  |  Branch (93:26): [True: 0, False: 291k]
  |  |  ------------------
  ------------------
  485|   291k|    if (len == prev_len || ambig) {
  ------------------
  |  Branch (485:9): [True: 291k, False: 0]
  |  Branch (485:28): [True: 0, False: 0]
  ------------------
  486|   291k|      blen += len;
  487|   291k|    }
  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|   291k|    p += len;
  496|   291k|  }
  497|  46.9k|  r = add_compile_string_length(prev, prev_len, blen, reg, ambig);
  498|  46.9k|  rlen += r;
  499|  46.9k|  return rlen;
  500|  46.9k|}
regcomp.c:compile_length_cclass_node:
  587|  44.9k|{
  588|  44.9k|  int len;
  589|       |
  590|  44.9k|  if (IS_NULL(cc->mbuf)) {
  ------------------
  |  |  311|  44.9k|#define IS_NULL(p)                    (((void*)(p)) == (void*)0)
  |  |  ------------------
  |  |  |  Branch (311:39): [True: 44.9k, False: 0]
  |  |  ------------------
  ------------------
  591|  44.9k|    len = SIZE_OPCODE + SIZE_BITSET;
  ------------------
  |  |  688|  44.9k|#define SIZE_OPCODE           1
  ------------------
                  len = SIZE_OPCODE + SIZE_BITSET;
  ------------------
  |  |  438|  44.9k|#define SIZE_BITSET        (int )sizeof(BitSet)
  ------------------
  592|  44.9k|  }
  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|  44.9k|  return len;
  608|  44.9k|}
regcomp.c:compile_length_quantifier_node:
  965|  10.7k|{
  966|  10.7k|  int len, mod_tlen;
  967|  10.7k|  int infinite = IS_REPEAT_INFINITE(qn->upper);
  ------------------
  |  |  422|  10.7k|#define IS_REPEAT_INFINITE(n)   ((n) == REPEAT_INFINITE)
  |  |  ------------------
  |  |  |  |  421|  10.7k|#define REPEAT_INFINITE         -1
  |  |  ------------------
  ------------------
  968|  10.7k|  int empty_info = qn->target_empty_info;
  969|  10.7k|  int tlen = compile_length_tree(qn->target, reg);
  970|       |
  971|  10.7k|  if (tlen < 0) return tlen;
  ------------------
  |  Branch (971:7): [True: 0, False: 10.7k]
  ------------------
  972|       |
  973|       |  /* anychar repeat */
  974|  10.7k|  if (NTYPE(qn->target) == NT_CANY) {
  ------------------
  |  |   69|  10.7k|#define NTYPE(node)             ((node)->u.base.type)
  ------------------
                if (NTYPE(qn->target) == NT_CANY) {
  ------------------
  |  |   41|  10.7k|#define NT_CANY        3
  ------------------
  |  Branch (974:7): [True: 0, False: 10.7k]
  ------------------
  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|  10.7k|  if (empty_info != 0)
  ------------------
  |  Branch (983:7): [True: 0, False: 10.7k]
  ------------------
  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|  10.7k|  else
  986|  10.7k|    mod_tlen = tlen;
  987|       |
  988|  10.7k|  if (infinite &&
  ------------------
  |  Branch (988:7): [True: 10.7k, False: 0]
  ------------------
  989|  10.7k|      (qn->lower <= 1 || tlen * qn->lower <= QUANTIFIER_EXPAND_LIMIT_SIZE)) {
  ------------------
  |  |  724|      0|#define QUANTIFIER_EXPAND_LIMIT_SIZE   50
  ------------------
  |  Branch (989:8): [True: 10.7k, False: 0]
  |  Branch (989:26): [True: 0, False: 0]
  ------------------
  990|  10.7k|    if (qn->lower == 1 && tlen > QUANTIFIER_EXPAND_LIMIT_SIZE) {
  ------------------
  |  |  724|  8.06k|#define QUANTIFIER_EXPAND_LIMIT_SIZE   50
  ------------------
  |  Branch (990:9): [True: 8.06k, False: 2.70k]
  |  Branch (990:27): [True: 0, False: 8.06k]
  ------------------
  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|  10.7k|    else {
  994|  10.7k|      len = tlen * qn->lower;
  995|  10.7k|    }
  996|       |
  997|  10.7k|    if (qn->greedy) {
  ------------------
  |  Branch (997:9): [True: 10.7k, 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|  10.7k|      if (IS_NOT_NULL(qn->next_head_exact))
  ------------------
  |  |  312|  10.7k|#define IS_NOT_NULL(p)                (((void*)(p)) != (void*)0)
  |  |  ------------------
  |  |  |  Branch (312:39): [True: 8.06k, False: 2.70k]
  |  |  ------------------
  ------------------
 1004|  8.06k|	len += SIZE_OP_PUSH_IF_PEEK_NEXT + mod_tlen + SIZE_OP_JUMP;
  ------------------
  |  |  724|  8.06k|#define SIZE_OP_PUSH_IF_PEEK_NEXT      (SIZE_OPCODE + SIZE_RELADDR + 1)
  |  |  ------------------
  |  |  |  |  688|  8.06k|#define SIZE_OPCODE           1
  |  |  ------------------
  |  |               #define SIZE_OP_PUSH_IF_PEEK_NEXT      (SIZE_OPCODE + SIZE_RELADDR + 1)
  |  |  ------------------
  |  |  |  |  689|  8.06k|#define SIZE_RELADDR          (int )sizeof(RelAddrType)
  |  |  ------------------
  ------------------
              	len += SIZE_OP_PUSH_IF_PEEK_NEXT + mod_tlen + SIZE_OP_JUMP;
  ------------------
  |  |  720|  8.06k|#define SIZE_OP_JUMP                   (SIZE_OPCODE + SIZE_RELADDR)
  |  |  ------------------
  |  |  |  |  688|  8.06k|#define SIZE_OPCODE           1
  |  |  ------------------
  |  |               #define SIZE_OP_JUMP                   (SIZE_OPCODE + SIZE_RELADDR)
  |  |  ------------------
  |  |  |  |  689|  8.06k|#define SIZE_RELADDR          (int )sizeof(RelAddrType)
  |  |  ------------------
  ------------------
 1005|  2.70k|      else
 1006|  2.70k|	len += SIZE_OP_PUSH + mod_tlen + SIZE_OP_JUMP;
  ------------------
  |  |  721|  2.70k|#define SIZE_OP_PUSH                   (SIZE_OPCODE + SIZE_RELADDR)
  |  |  ------------------
  |  |  |  |  688|  2.70k|#define SIZE_OPCODE           1
  |  |  ------------------
  |  |               #define SIZE_OP_PUSH                   (SIZE_OPCODE + SIZE_RELADDR)
  |  |  ------------------
  |  |  |  |  689|  2.70k|#define SIZE_RELADDR          (int )sizeof(RelAddrType)
  |  |  ------------------
  ------------------
              	len += SIZE_OP_PUSH + mod_tlen + SIZE_OP_JUMP;
  ------------------
  |  |  720|  2.70k|#define SIZE_OP_JUMP                   (SIZE_OPCODE + SIZE_RELADDR)
  |  |  ------------------
  |  |  |  |  688|  2.70k|#define SIZE_OPCODE           1
  |  |  ------------------
  |  |               #define SIZE_OP_JUMP                   (SIZE_OPCODE + SIZE_RELADDR)
  |  |  ------------------
  |  |  |  |  689|  2.70k|#define SIZE_RELADDR          (int )sizeof(RelAddrType)
  |  |  ------------------
  ------------------
 1007|  10.7k|    }
 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|  10.7k|  }
 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|  10.7k|  return len;
 1029|  10.7k|}
regcomp.c:compile_length_enclose_node:
 1213|  8.06k|{
 1214|  8.06k|  int len;
 1215|  8.06k|  int tlen;
 1216|       |
 1217|  8.06k|  if (node->type == ENCLOSE_OPTION)
  ------------------
  |  |   95|  8.06k|#define ENCLOSE_OPTION           (1<<1)
  ------------------
  |  Branch (1217:7): [True: 0, False: 8.06k]
  ------------------
 1218|      0|    return compile_length_option_node(node, reg);
 1219|       |
 1220|  8.06k|  if (node->target) {
  ------------------
  |  Branch (1220:7): [True: 8.06k, False: 0]
  ------------------
 1221|  8.06k|    tlen = compile_length_tree(node->target, reg);
 1222|  8.06k|    if (tlen < 0) return tlen;
  ------------------
  |  Branch (1222:9): [True: 0, False: 8.06k]
  ------------------
 1223|  8.06k|  }
 1224|      0|  else
 1225|      0|    tlen = 0;
 1226|       |
 1227|  8.06k|  switch (node->type) {
 1228|      0|  case ENCLOSE_MEMORY:
  ------------------
  |  |   94|      0|#define ENCLOSE_MEMORY           (1<<0)
  ------------------
  |  Branch (1228:3): [True: 0, False: 8.06k]
  ------------------
 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.06k|  case ENCLOSE_STOP_BACKTRACK:
  ------------------
  |  |   96|  8.06k|#define ENCLOSE_STOP_BACKTRACK   (1<<2)
  ------------------
  |  Branch (1258:3): [True: 8.06k, False: 0]
  ------------------
 1259|  8.06k|    if (IS_ENCLOSE_STOP_BT_SIMPLE_REPEAT(node)) {
  ------------------
  |  |  156|  8.06k|    (((en)->state & NST_STOP_BT_SIMPLE_REPEAT) != 0)
  |  |  ------------------
  |  |  |  |  134|  8.06k|#define NST_STOP_BT_SIMPLE_REPEAT (1<<6)
  |  |  ------------------
  |  |  |  Branch (156:5): [True: 8.06k, False: 0]
  |  |  ------------------
  ------------------
 1260|  8.06k|      QtfrNode* qn = NQTFR(node->target);
  ------------------
  |  |   80|  8.06k|#define NQTFR(node)        (&((node)->u.qtfr))
  ------------------
 1261|  8.06k|      tlen = compile_length_tree(qn->target, reg);
 1262|  8.06k|      if (tlen < 0) return tlen;
  ------------------
  |  Branch (1262:11): [True: 0, False: 8.06k]
  ------------------
 1263|       |
 1264|  8.06k|      len = tlen * qn->lower
 1265|  8.06k|	  + SIZE_OP_PUSH + tlen + SIZE_OP_POP + SIZE_OP_JUMP;
  ------------------
  |  |  721|  8.06k|#define SIZE_OP_PUSH                   (SIZE_OPCODE + SIZE_RELADDR)
  |  |  ------------------
  |  |  |  |  688|  8.06k|#define SIZE_OPCODE           1
  |  |  ------------------
  |  |               #define SIZE_OP_PUSH                   (SIZE_OPCODE + SIZE_RELADDR)
  |  |  ------------------
  |  |  |  |  689|  8.06k|#define SIZE_RELADDR          (int )sizeof(RelAddrType)
  |  |  ------------------
  ------------------
              	  + SIZE_OP_PUSH + tlen + SIZE_OP_POP + SIZE_OP_JUMP;
  ------------------
  |  |  722|  8.06k|#define SIZE_OP_POP                     SIZE_OPCODE
  |  |  ------------------
  |  |  |  |  688|  8.06k|#define SIZE_OPCODE           1
  |  |  ------------------
  ------------------
              	  + SIZE_OP_PUSH + tlen + SIZE_OP_POP + SIZE_OP_JUMP;
  ------------------
  |  |  720|  8.06k|#define SIZE_OP_JUMP                   (SIZE_OPCODE + SIZE_RELADDR)
  |  |  ------------------
  |  |  |  |  688|  8.06k|#define SIZE_OPCODE           1
  |  |  ------------------
  |  |               #define SIZE_OP_JUMP                   (SIZE_OPCODE + SIZE_RELADDR)
  |  |  ------------------
  |  |  |  |  689|  8.06k|#define SIZE_RELADDR          (int )sizeof(RelAddrType)
  |  |  ------------------
  ------------------
 1266|  8.06k|    }
 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.06k|    break;
 1271|       |
 1272|  8.06k|  case ENCLOSE_CONDITION:
  ------------------
  |  |   97|      0|#define ENCLOSE_CONDITION        (1<<3)
  ------------------
  |  Branch (1272:3): [True: 0, False: 8.06k]
  ------------------
 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.06k]
  ------------------
 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.06k]
  ------------------
 1297|      0|    return ONIGERR_TYPE_BUG;
  ------------------
  |  |  633|      0|#define ONIGERR_TYPE_BUG                                       -6
  ------------------
 1298|      0|    break;
 1299|  8.06k|  }
 1300|       |
 1301|  8.06k|  return len;
 1302|  8.06k|}
regcomp.c:compile_length_anchor_node:
 1463|  5.40k|{
 1464|  5.40k|  int len;
 1465|  5.40k|  int tlen = 0;
 1466|       |
 1467|  5.40k|  if (node->target) {
  ------------------
  |  Branch (1467:7): [True: 0, False: 5.40k]
  ------------------
 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.40k|  switch (node->type) {
 1473|      0|  case ANCHOR_PREC_READ:
  ------------------
  |  |  551|      0|#define ANCHOR_PREC_READ        (1<<10)
  ------------------
  |  Branch (1473:3): [True: 0, False: 5.40k]
  ------------------
 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.40k]
  ------------------
 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.40k]
  ------------------
 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.40k]
  ------------------
 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.40k|  default:
  ------------------
  |  Branch (1486:3): [True: 5.40k, False: 0]
  ------------------
 1487|  5.40k|    len = SIZE_OPCODE;
  ------------------
  |  |  688|  5.40k|#define SIZE_OPCODE           1
  ------------------
 1488|  5.40k|    break;
 1489|  5.40k|  }
 1490|       |
 1491|  5.40k|  return len;
 1492|  5.40k|}
regcomp.c:add_opcode_rel_addr:
  277|  90.3k|{
  278|  90.3k|  int r;
  279|       |
  280|  90.3k|  r = add_opcode(reg, opcode);
  281|  90.3k|  if (r) return r;
  ------------------
  |  Branch (281:7): [True: 0, False: 90.3k]
  ------------------
  282|  90.3k|  r = add_rel_addr(reg, addr);
  283|  90.3k|  return r;
  284|  90.3k|}
regcomp.c:add_rel_addr:
  223|  90.3k|{
  224|  90.3k|  RelAddrType ra = (RelAddrType )addr;
  225|       |
  226|  90.3k|  BBUF_ADD(reg, &ra, SIZE_RELADDR);
  ------------------
  |  |  504|  90.3k|#define BBUF_ADD(buf,bytes,n)       BBUF_WRITE((buf),(buf)->used,(bytes),(n))
  |  |  ------------------
  |  |  |  |  490|  90.3k|#define BBUF_WRITE(buf,pos,bytes,n) do{\
  |  |  |  |  491|  90.3k|  int used = (pos) + (int )(n);\
  |  |  |  |  492|  90.3k|  if ((buf)->alloc < (unsigned int )used) BBUF_EXPAND((buf),used);\
  |  |  |  |  ------------------
  |  |  |  |  |  |  470|  4.18k|#define BBUF_EXPAND(buf,low) do{\
  |  |  |  |  |  |  471|  4.18k|  UChar *tmp;\
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   76|  4.18k|# define UChar OnigUChar
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  472|  4.18k|  do { (buf)->alloc *= 2; } while ((buf)->alloc < (unsigned int )low);\
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (472:36): [True: 0, False: 4.18k]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  473|  4.18k|  tmp = (UChar* )xrealloc((buf)->p, (buf)->alloc);\
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  143|  4.18k|# define xrealloc    realloc
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  474|  4.18k|  if (IS_NULL(tmp)) return(ONIGERR_MEMORY);\
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  311|  4.18k|#define IS_NULL(p)                    (((void*)(p)) == (void*)0)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (311:39): [True: 0, False: 4.18k]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |                 if (IS_NULL(tmp)) return(ONIGERR_MEMORY);\
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  632|      0|#define ONIGERR_MEMORY                                         -5
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  475|  4.18k|  (buf)->p = tmp;\
  |  |  |  |  |  |  476|  4.18k|} while (0)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (476:10): [Folded - Ignored]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (492:7): [True: 4.18k, False: 86.1k]
  |  |  |  |  ------------------
  |  |  |  |  493|  90.3k|  xmemcpy((buf)->p + (pos), (bytes), (n));\
  |  |  |  |  ------------------
  |  |  |  |  |  |  215|  90.3k|#define xmemcpy     memcpy
  |  |  |  |  ------------------
  |  |  |  |  494|  90.3k|  if ((buf)->used < (unsigned int )used) (buf)->used = used;\
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (494:7): [True: 90.3k, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  495|  90.3k|} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (495:10): [Folded - Ignored]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  227|  90.3k|  return 0;
  228|  90.3k|}
regcomp.c:add_compile_string:
  444|  58.8k|{
  445|  58.8k|  int op = select_str_opcode(mb_len, byte_len, ignore_case);
  446|  58.8k|  add_opcode(reg, op);
  447|       |
  448|  58.8k|  if (op == OP_EXACTMBN)
  ------------------
  |  Branch (448:7): [True: 0, False: 58.8k]
  ------------------
  449|      0|    add_length(reg, mb_len);
  450|       |
  451|  58.8k|  if (IS_NEED_STR_LEN_OP_EXACT(op)) {
  ------------------
  |  |  316|  58.8k|   ((op) == OP_EXACTN    || (op) == OP_EXACTMB2N ||\
  |  |  ------------------
  |  |  |  Branch (316:5): [True: 25.4k, False: 33.3k]
  |  |  |  Branch (316:29): [True: 0, False: 33.3k]
  |  |  ------------------
  |  |  317|  58.8k|    (op) == OP_EXACTMB3N || (op) == OP_EXACTMBN  || (op) == OP_EXACTN_IC)
  |  |  ------------------
  |  |  |  Branch (317:5): [True: 0, False: 33.3k]
  |  |  |  Branch (317:29): [True: 0, False: 33.3k]
  |  |  |  Branch (317:53): [True: 0, False: 33.3k]
  |  |  ------------------
  ------------------
  452|  25.4k|    if (op == OP_EXACTN_IC)
  ------------------
  |  Branch (452:9): [True: 0, False: 25.4k]
  ------------------
  453|      0|      add_length(reg, byte_len);
  454|  25.4k|    else
  455|  25.4k|      add_length(reg, byte_len / mb_len);
  456|  25.4k|  }
  457|       |
  458|  58.8k|  add_bytes(reg, s, byte_len);
  459|  58.8k|  return 0;
  460|  58.8k|}
regcomp.c:add_bytes:
  288|  61.5k|{
  289|  61.5k|  BBUF_ADD(reg, bytes, len);
  ------------------
  |  |  504|  61.5k|#define BBUF_ADD(buf,bytes,n)       BBUF_WRITE((buf),(buf)->used,(bytes),(n))
  |  |  ------------------
  |  |  |  |  490|  61.5k|#define BBUF_WRITE(buf,pos,bytes,n) do{\
  |  |  |  |  491|  61.5k|  int used = (pos) + (int )(n);\
  |  |  |  |  492|  61.5k|  if ((buf)->alloc < (unsigned int )used) BBUF_EXPAND((buf),used);\
  |  |  |  |  ------------------
  |  |  |  |  |  |  470|  2.87k|#define BBUF_EXPAND(buf,low) do{\
  |  |  |  |  |  |  471|  2.87k|  UChar *tmp;\
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   76|  2.87k|# define UChar OnigUChar
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  472|  2.87k|  do { (buf)->alloc *= 2; } while ((buf)->alloc < (unsigned int )low);\
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (472:36): [True: 0, False: 2.87k]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  473|  2.87k|  tmp = (UChar* )xrealloc((buf)->p, (buf)->alloc);\
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  143|  2.87k|# define xrealloc    realloc
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  474|  2.87k|  if (IS_NULL(tmp)) return(ONIGERR_MEMORY);\
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  311|  2.87k|#define IS_NULL(p)                    (((void*)(p)) == (void*)0)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (311:39): [True: 0, False: 2.87k]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |                 if (IS_NULL(tmp)) return(ONIGERR_MEMORY);\
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  632|      0|#define ONIGERR_MEMORY                                         -5
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  475|  2.87k|  (buf)->p = tmp;\
  |  |  |  |  |  |  476|  2.87k|} while (0)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (476:10): [Folded - Ignored]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (492:7): [True: 2.87k, False: 58.6k]
  |  |  |  |  ------------------
  |  |  |  |  493|  61.5k|  xmemcpy((buf)->p + (pos), (bytes), (n));\
  |  |  |  |  ------------------
  |  |  |  |  |  |  215|  61.5k|#define xmemcpy     memcpy
  |  |  |  |  ------------------
  |  |  |  |  494|  61.5k|  if ((buf)->used < (unsigned int )used) (buf)->used = used;\
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (494:7): [True: 61.5k, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  495|  61.5k|} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (495:10): [Folded - Ignored]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  290|  61.5k|  return 0;
  291|  61.5k|}
regcomp.c:compile_string_node:
  513|  60.2k|{
  514|  60.2k|  int r, len, prev_len, blen, ambig;
  515|  60.2k|  OnigEncoding enc = reg->enc;
  516|  60.2k|  UChar *p, *prev, *end;
  ------------------
  |  |   76|  60.2k|# define UChar OnigUChar
  ------------------
  517|  60.2k|  StrNode* sn;
  518|       |
  519|  60.2k|  sn = NSTR(node);
  ------------------
  |  |   76|  60.2k|#define NSTR(node)         (&((node)->u.str))
  ------------------
  520|  60.2k|  if (sn->end <= sn->s)
  ------------------
  |  Branch (520:7): [True: 1.42k, False: 58.8k]
  ------------------
  521|  1.42k|    return 0;
  522|       |
  523|  58.8k|  end = sn->end;
  524|  58.8k|  ambig = NSTRING_IS_AMBIG(node);
  ------------------
  |  |  115|  58.8k|#define NSTRING_IS_AMBIG(node)        (((node)->u.str.flag & NSTR_AMBIG) != 0)
  |  |  ------------------
  |  |  |  |  105|  58.8k|#define NSTR_AMBIG              (1<<1)
  |  |  ------------------
  ------------------
  525|       |
  526|  58.8k|  p = prev = sn->s;
  527|  58.8k|  prev_len = enclen(enc, p, end);
  ------------------
  |  |   93|  58.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|  58.8k|#define ONIGENC_MBC_ENC_LEN(enc,p,e)          onigenc_mbclen(p,e,enc)
  |  |  ------------------
  |  |  |  Branch (93:26): [True: 0, False: 58.8k]
  |  |  ------------------
  ------------------
  528|  58.8k|  p += prev_len;
  529|  58.8k|  blen = prev_len;
  530|       |
  531|   517k|  for (; p < end; ) {
  ------------------
  |  Branch (531:10): [True: 458k, False: 58.8k]
  ------------------
  532|   458k|    len = enclen(enc, p, end);
  ------------------
  |  |   93|   458k|#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|   458k|#define ONIGENC_MBC_ENC_LEN(enc,p,e)          onigenc_mbclen(p,e,enc)
  |  |  ------------------
  |  |  |  Branch (93:26): [True: 0, False: 458k]
  |  |  ------------------
  ------------------
  533|   458k|    if (len == prev_len || ambig) {
  ------------------
  |  Branch (533:9): [True: 458k, False: 0]
  |  Branch (533:28): [True: 0, False: 0]
  ------------------
  534|   458k|      blen += len;
  535|   458k|    }
  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|   458k|    p += len;
  549|   458k|  }
  550|  58.8k|  return add_compile_string(prev, prev_len, blen, reg, ambig);
  551|  58.8k|}
regcomp.c:compile_cclass_node:
  612|  54.5k|{
  613|  54.5k|  int r;
  614|       |
  615|  54.5k|  if (IS_NULL(cc->mbuf)) {
  ------------------
  |  |  311|  54.5k|#define IS_NULL(p)                    (((void*)(p)) == (void*)0)
  |  |  ------------------
  |  |  |  Branch (311:39): [True: 54.5k, False: 0]
  |  |  ------------------
  ------------------
  616|  54.5k|    if (IS_NCCLASS_NOT(cc))
  ------------------
  |  |  809|  54.5k|#define IS_NCCLASS_NOT(nd)      IS_NCCLASS_FLAG_ON(nd, FLAG_NCCLASS_NOT)
  |  |  ------------------
  |  |  |  |  802|  54.5k|#define IS_NCCLASS_FLAG_ON(cc,flag) ((NCCLASS_FLAGS(cc) & (flag)) != 0)
  |  |  |  |  ------------------
  |  |  |  |  |  |  799|  54.5k|#define NCCLASS_FLAGS(cc)           ((cc)->flags)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (802:37): [True: 14.6k, False: 39.8k]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  617|  14.6k|      add_opcode(reg, OP_CCLASS_NOT);
  618|  39.8k|    else
  619|  39.8k|      add_opcode(reg, OP_CCLASS);
  620|       |
  621|  54.5k|    r = add_bitset(reg, cc->bs);
  622|  54.5k|  }
  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|  54.5k|  return r;
  645|  54.5k|}
regcomp.c:add_bitset:
  295|  54.5k|{
  296|  54.5k|  BBUF_ADD(reg, bs, SIZE_BITSET);
  ------------------
  |  |  504|  54.5k|#define BBUF_ADD(buf,bytes,n)       BBUF_WRITE((buf),(buf)->used,(bytes),(n))
  |  |  ------------------
  |  |  |  |  490|  54.5k|#define BBUF_WRITE(buf,pos,bytes,n) do{\
  |  |  |  |  491|  54.5k|  int used = (pos) + (int )(n);\
  |  |  |  |  492|  54.5k|  if ((buf)->alloc < (unsigned int )used) BBUF_EXPAND((buf),used);\
  |  |  |  |  ------------------
  |  |  |  |  |  |  470|  21.7k|#define BBUF_EXPAND(buf,low) do{\
  |  |  |  |  |  |  471|  21.7k|  UChar *tmp;\
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   76|  21.7k|# define UChar OnigUChar
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  472|  27.1k|  do { (buf)->alloc *= 2; } while ((buf)->alloc < (unsigned int )low);\
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (472:36): [True: 5.45k, False: 21.7k]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  473|  21.7k|  tmp = (UChar* )xrealloc((buf)->p, (buf)->alloc);\
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  143|  21.7k|# define xrealloc    realloc
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  474|  21.7k|  if (IS_NULL(tmp)) return(ONIGERR_MEMORY);\
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  311|  21.7k|#define IS_NULL(p)                    (((void*)(p)) == (void*)0)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (311:39): [True: 0, False: 21.7k]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |                 if (IS_NULL(tmp)) return(ONIGERR_MEMORY);\
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  632|      0|#define ONIGERR_MEMORY                                         -5
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  475|  21.7k|  (buf)->p = tmp;\
  |  |  |  |  |  |  476|  21.7k|} while (0)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (476:10): [Folded - Ignored]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (492:7): [True: 21.7k, False: 32.8k]
  |  |  |  |  ------------------
  |  |  |  |  493|  54.5k|  xmemcpy((buf)->p + (pos), (bytes), (n));\
  |  |  |  |  ------------------
  |  |  |  |  |  |  215|  54.5k|#define xmemcpy     memcpy
  |  |  |  |  ------------------
  |  |  |  |  494|  54.5k|  if ((buf)->used < (unsigned int )used) (buf)->used = used;\
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (494:7): [True: 54.5k, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  495|  54.5k|} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (495:10): [Folded - Ignored]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  297|  54.5k|  return 0;
  298|  54.5k|}
regcomp.c:add_length:
  241|  25.4k|{
  242|  25.4k|  LengthType l = (LengthType )len;
  243|       |
  244|  25.4k|  BBUF_ADD(reg, &l, SIZE_LENGTH);
  ------------------
  |  |  504|  25.4k|#define BBUF_ADD(buf,bytes,n)       BBUF_WRITE((buf),(buf)->used,(bytes),(n))
  |  |  ------------------
  |  |  |  |  490|  25.4k|#define BBUF_WRITE(buf,pos,bytes,n) do{\
  |  |  |  |  491|  25.4k|  int used = (pos) + (int )(n);\
  |  |  |  |  492|  25.4k|  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: 25.4k]
  |  |  |  |  ------------------
  |  |  |  |  493|  25.4k|  xmemcpy((buf)->p + (pos), (bytes), (n));\
  |  |  |  |  ------------------
  |  |  |  |  |  |  215|  25.4k|#define xmemcpy     memcpy
  |  |  |  |  ------------------
  |  |  |  |  494|  25.4k|  if ((buf)->used < (unsigned int )used) (buf)->used = used;\
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (494:7): [True: 25.4k, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  495|  25.4k|} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (495:10): [Folded - Ignored]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  245|  25.4k|  return 0;
  246|  25.4k|}
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|  23.5k|{
 1034|  23.5k|  int i, r, mod_tlen;
 1035|  23.5k|  int infinite = IS_REPEAT_INFINITE(qn->upper);
  ------------------
  |  |  422|  23.5k|#define IS_REPEAT_INFINITE(n)   ((n) == REPEAT_INFINITE)
  |  |  ------------------
  |  |  |  |  421|  23.5k|#define REPEAT_INFINITE         -1
  |  |  ------------------
  ------------------
 1036|  23.5k|  int empty_info = qn->target_empty_info;
 1037|  23.5k|  int tlen = compile_length_tree(qn->target, reg);
 1038|       |
 1039|  23.5k|  if (tlen < 0) return tlen;
  ------------------
  |  Branch (1039:7): [True: 0, False: 23.5k]
  ------------------
 1040|       |
 1041|  23.5k|  if (is_anychar_star_quantifier(qn)) {
  ------------------
  |  Branch (1041:7): [True: 6.81k, False: 16.7k]
  ------------------
 1042|  6.81k|    r = compile_tree_n_times(qn->target, qn->lower, reg);
 1043|  6.81k|    if (r) return r;
  ------------------
  |  Branch (1043:9): [True: 0, False: 6.81k]
  ------------------
 1044|  6.81k|    if (IS_NOT_NULL(qn->next_head_exact)) {
  ------------------
  |  |  312|  6.81k|#define IS_NOT_NULL(p)                (((void*)(p)) != (void*)0)
  |  |  ------------------
  |  |  |  Branch (312:39): [True: 2.66k, False: 4.14k]
  |  |  ------------------
  ------------------
 1045|  2.66k|      if (IS_MULTILINE(reg->options))
  ------------------
  |  |  395|  2.66k|#define IS_MULTILINE(option)      ((option) & ONIG_OPTION_MULTILINE)
  |  |  ------------------
  |  |  |  |  456|  2.66k|#define ONIG_OPTION_MULTILINE            (ONIG_OPTION_EXTEND             << 1)
  |  |  |  |  ------------------
  |  |  |  |  |  |  455|  2.66k|#define ONIG_OPTION_EXTEND               (ONIG_OPTION_IGNORECASE         << 1)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  454|  2.66k|#define ONIG_OPTION_IGNORECASE           1U
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  |  Branch (395:35): [True: 0, False: 2.66k]
  |  |  ------------------
  ------------------
 1046|      0|	r = add_opcode(reg, OP_ANYCHAR_ML_STAR_PEEK_NEXT);
 1047|  2.66k|      else
 1048|  2.66k|	r = add_opcode(reg, OP_ANYCHAR_STAR_PEEK_NEXT);
 1049|  2.66k|      if (r) return r;
  ------------------
  |  Branch (1049:11): [True: 0, False: 2.66k]
  ------------------
 1050|  2.66k|      return add_bytes(reg, NSTR(qn->next_head_exact)->s, 1);
  ------------------
  |  |   76|  2.66k|#define NSTR(node)         (&((node)->u.str))
  ------------------
 1051|  2.66k|    }
 1052|  4.14k|    else {
 1053|  4.14k|      if (IS_MULTILINE(reg->options))
  ------------------
  |  |  395|  4.14k|#define IS_MULTILINE(option)      ((option) & ONIG_OPTION_MULTILINE)
  |  |  ------------------
  |  |  |  |  456|  4.14k|#define ONIG_OPTION_MULTILINE            (ONIG_OPTION_EXTEND             << 1)
  |  |  |  |  ------------------
  |  |  |  |  |  |  455|  4.14k|#define ONIG_OPTION_EXTEND               (ONIG_OPTION_IGNORECASE         << 1)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  454|  4.14k|#define ONIG_OPTION_IGNORECASE           1U
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  |  Branch (395:35): [True: 0, False: 4.14k]
  |  |  ------------------
  ------------------
 1054|      0|	return add_opcode(reg, OP_ANYCHAR_ML_STAR);
 1055|  4.14k|      else
 1056|  4.14k|	return add_opcode(reg, OP_ANYCHAR_STAR);
 1057|  4.14k|    }
 1058|  6.81k|  }
 1059|       |
 1060|  16.7k|  if (empty_info != 0)
  ------------------
  |  Branch (1060:7): [True: 0, False: 16.7k]
  ------------------
 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|  16.7k|  else
 1063|  16.7k|    mod_tlen = tlen;
 1064|       |
 1065|  16.7k|  if (infinite &&
  ------------------
  |  Branch (1065:7): [True: 15.2k, False: 1.43k]
  ------------------
 1066|  16.7k|      (qn->lower <= 1 || tlen * qn->lower <= QUANTIFIER_EXPAND_LIMIT_SIZE)) {
  ------------------
  |  |  724|      0|#define QUANTIFIER_EXPAND_LIMIT_SIZE   50
  ------------------
  |  Branch (1066:8): [True: 15.2k, False: 0]
  |  Branch (1066:26): [True: 0, False: 0]
  ------------------
 1067|  15.2k|    if (qn->lower == 1 && tlen > QUANTIFIER_EXPAND_LIMIT_SIZE) {
  ------------------
  |  |  724|  6.91k|#define QUANTIFIER_EXPAND_LIMIT_SIZE   50
  ------------------
  |  Branch (1067:9): [True: 6.91k, False: 8.38k]
  |  Branch (1067:27): [True: 0, False: 6.91k]
  ------------------
 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.2k|    else {
 1085|  15.2k|      r = compile_tree_n_times(qn->target, qn->lower, reg);
 1086|  15.2k|      if (r) return r;
  ------------------
  |  Branch (1086:11): [True: 0, False: 15.2k]
  ------------------
 1087|  15.2k|    }
 1088|       |
 1089|  15.2k|    if (qn->greedy) {
  ------------------
  |  Branch (1089:9): [True: 13.8k, False: 1.48k]
  ------------------
 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|  13.8k|      if (IS_NOT_NULL(qn->next_head_exact)) {
  ------------------
  |  |  312|  13.8k|#define IS_NOT_NULL(p)                (((void*)(p)) != (void*)0)
  |  |  ------------------
  |  |  |  Branch (312:39): [True: 0, False: 13.8k]
  |  |  ------------------
  ------------------
 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|  13.8k|      else {
 1114|  13.8k|	r = add_opcode_rel_addr(reg, OP_PUSH, mod_tlen + SIZE_OP_JUMP);
  ------------------
  |  |  720|  13.8k|#define SIZE_OP_JUMP                   (SIZE_OPCODE + SIZE_RELADDR)
  |  |  ------------------
  |  |  |  |  688|  13.8k|#define SIZE_OPCODE           1
  |  |  ------------------
  |  |               #define SIZE_OP_JUMP                   (SIZE_OPCODE + SIZE_RELADDR)
  |  |  ------------------
  |  |  |  |  689|  13.8k|#define SIZE_RELADDR          (int )sizeof(RelAddrType)
  |  |  ------------------
  ------------------
 1115|  13.8k|	if (r) return r;
  ------------------
  |  Branch (1115:6): [True: 0, False: 13.8k]
  ------------------
 1116|  13.8k|	r = compile_tree_empty_check(qn->target, reg, empty_info);
 1117|  13.8k|	if (r) return r;
  ------------------
  |  Branch (1117:6): [True: 0, False: 13.8k]
  ------------------
 1118|  13.8k|	r = add_opcode_rel_addr(reg, OP_JUMP,
 1119|  13.8k|		     -(mod_tlen + (int )SIZE_OP_JUMP + (int )SIZE_OP_PUSH));
  ------------------
  |  |  720|  13.8k|#define SIZE_OP_JUMP                   (SIZE_OPCODE + SIZE_RELADDR)
  |  |  ------------------
  |  |  |  |  688|  13.8k|#define SIZE_OPCODE           1
  |  |  ------------------
  |  |               #define SIZE_OP_JUMP                   (SIZE_OPCODE + SIZE_RELADDR)
  |  |  ------------------
  |  |  |  |  689|  13.8k|#define SIZE_RELADDR          (int )sizeof(RelAddrType)
  |  |  ------------------
  ------------------
              		     -(mod_tlen + (int )SIZE_OP_JUMP + (int )SIZE_OP_PUSH));
  ------------------
  |  |  721|  13.8k|#define SIZE_OP_PUSH                   (SIZE_OPCODE + SIZE_RELADDR)
  |  |  ------------------
  |  |  |  |  688|  13.8k|#define SIZE_OPCODE           1
  |  |  ------------------
  |  |               #define SIZE_OP_PUSH                   (SIZE_OPCODE + SIZE_RELADDR)
  |  |  ------------------
  |  |  |  |  689|  13.8k|#define SIZE_RELADDR          (int )sizeof(RelAddrType)
  |  |  ------------------
  ------------------
 1120|  13.8k|      }
 1121|  13.8k|    }
 1122|  1.48k|    else {
 1123|  1.48k|      r = add_opcode_rel_addr(reg, OP_JUMP, mod_tlen);
 1124|  1.48k|      if (r) return r;
  ------------------
  |  Branch (1124:11): [True: 0, False: 1.48k]
  ------------------
 1125|  1.48k|      r = compile_tree_empty_check(qn->target, reg, empty_info);
 1126|  1.48k|      if (r) return r;
  ------------------
  |  Branch (1126:11): [True: 0, False: 1.48k]
  ------------------
 1127|  1.48k|      r = add_opcode_rel_addr(reg, OP_PUSH, -(mod_tlen + (int )SIZE_OP_PUSH));
  ------------------
  |  |  721|  1.48k|#define SIZE_OP_PUSH                   (SIZE_OPCODE + SIZE_RELADDR)
  |  |  ------------------
  |  |  |  |  688|  1.48k|#define SIZE_OPCODE           1
  |  |  ------------------
  |  |               #define SIZE_OP_PUSH                   (SIZE_OPCODE + SIZE_RELADDR)
  |  |  ------------------
  |  |  |  |  689|  1.48k|#define SIZE_RELADDR          (int )sizeof(RelAddrType)
  |  |  ------------------
  ------------------
 1128|  1.48k|    }
 1129|  15.2k|  }
 1130|  1.43k|  else if (qn->upper == 0 && qn->is_referred != 0) { /* /(?<n>..){0}/ */
  ------------------
  |  Branch (1130:12): [True: 0, False: 1.43k]
  |  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.43k|  else if (!infinite && qn->greedy &&
  ------------------
  |  Branch (1135:12): [True: 1.43k, False: 0]
  |  Branch (1135:25): [True: 1.43k, False: 0]
  ------------------
 1136|  1.43k|           (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.43k, False: 0]
  |  Branch (1136:31): [True: 0, False: 0]
  ------------------
 1137|  1.43k|                                  <= QUANTIFIER_EXPAND_LIMIT_SIZE)) {
  ------------------
  |  |  724|      0|#define QUANTIFIER_EXPAND_LIMIT_SIZE   50
  ------------------
 1138|  1.43k|    int n = qn->upper - qn->lower;
 1139|       |
 1140|  1.43k|    r = compile_tree_n_times(qn->target, qn->lower, reg);
 1141|  1.43k|    if (r) return r;
  ------------------
  |  Branch (1141:9): [True: 0, False: 1.43k]
  ------------------
 1142|       |
 1143|  2.87k|    for (i = 0; i < n; i++) {
  ------------------
  |  Branch (1143:17): [True: 1.43k, False: 1.43k]
  ------------------
 1144|  1.43k|      r = add_opcode_rel_addr(reg, OP_PUSH,
 1145|  1.43k|			   (n - i) * tlen + (n - i - 1) * SIZE_OP_PUSH);
  ------------------
  |  |  721|  1.43k|#define SIZE_OP_PUSH                   (SIZE_OPCODE + SIZE_RELADDR)
  |  |  ------------------
  |  |  |  |  688|  1.43k|#define SIZE_OPCODE           1
  |  |  ------------------
  |  |               #define SIZE_OP_PUSH                   (SIZE_OPCODE + SIZE_RELADDR)
  |  |  ------------------
  |  |  |  |  689|  1.43k|#define SIZE_RELADDR          (int )sizeof(RelAddrType)
  |  |  ------------------
  ------------------
 1146|  1.43k|      if (r) return r;
  ------------------
  |  Branch (1146:11): [True: 0, False: 1.43k]
  ------------------
 1147|  1.43k|      r = compile_tree(qn->target, reg);
 1148|  1.43k|      if (r) return r;
  ------------------
  |  Branch (1148:11): [True: 0, False: 1.43k]
  ------------------
 1149|  1.43k|    }
 1150|  1.43k|  }
 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|  16.7k|  return r;
 1162|  16.7k|}
regcomp.c:is_anychar_star_quantifier:
  716|  23.5k|{
  717|  23.5k|  if (qn->greedy && IS_REPEAT_INFINITE(qn->upper) &&
  ------------------
  |  |  422|  45.6k|#define IS_REPEAT_INFINITE(n)   ((n) == REPEAT_INFINITE)
  |  |  ------------------
  |  |  |  |  421|  22.0k|#define REPEAT_INFINITE         -1
  |  |  ------------------
  |  |  |  Branch (422:33): [True: 20.6k, False: 1.43k]
  |  |  ------------------
  ------------------
  |  Branch (717:7): [True: 22.0k, False: 1.48k]
  ------------------
  718|  23.5k|      NTYPE(qn->target) == NT_CANY)
  ------------------
  |  |   69|  20.6k|#define NTYPE(node)             ((node)->u.base.type)
  ------------------
                    NTYPE(qn->target) == NT_CANY)
  ------------------
  |  |   41|  20.6k|#define NT_CANY        3
  ------------------
  |  Branch (718:7): [True: 6.81k, False: 13.8k]
  ------------------
  719|  6.81k|    return 1;
  720|  16.7k|  else
  721|  16.7k|    return 0;
  722|  23.5k|}
regcomp.c:compile_tree_n_times:
  414|  41.1k|{
  415|  41.1k|  int i, r;
  416|       |
  417|  65.6k|  for (i = 0; i < n; i++) {
  ------------------
  |  Branch (417:15): [True: 24.4k, False: 41.1k]
  ------------------
  418|  24.4k|    r = compile_tree(node, reg);
  419|  24.4k|    if (r) return r;
  ------------------
  |  Branch (419:9): [True: 0, False: 24.4k]
  ------------------
  420|  24.4k|  }
  421|  41.1k|  return 0;
  422|  41.1k|}
regcomp.c:compile_tree_empty_check:
  367|  15.2k|{
  368|  15.2k|  int r;
  369|  15.2k|  int saved_num_null_check = reg->num_null_check;
  370|       |
  371|  15.2k|  if (empty_info != 0) {
  ------------------
  |  Branch (371:7): [True: 0, False: 15.2k]
  ------------------
  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.2k|  r = compile_tree(node, reg);
  380|  15.2k|  if (r) return r;
  ------------------
  |  Branch (380:7): [True: 0, False: 15.2k]
  ------------------
  381|       |
  382|  15.2k|  if (empty_info != 0) {
  ------------------
  |  Branch (382:7): [True: 0, False: 15.2k]
  ------------------
  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.2k|  return r;
  394|  15.2k|}
regcomp.c:compile_enclose_node:
 1308|  26.4k|{
 1309|  26.4k|  int r, len;
 1310|       |
 1311|  26.4k|  if (node->type == ENCLOSE_OPTION)
  ------------------
  |  |   95|  26.4k|#define ENCLOSE_OPTION           (1<<1)
  ------------------
  |  Branch (1311:7): [True: 1.42k, False: 25.0k]
  ------------------
 1312|  1.42k|    return compile_option_node(node, reg);
 1313|       |
 1314|  25.0k|  switch (node->type) {
 1315|  7.37k|  case ENCLOSE_MEMORY:
  ------------------
  |  |   94|  7.37k|#define ENCLOSE_MEMORY           (1<<0)
  ------------------
  |  Branch (1315:3): [True: 7.37k, False: 17.6k]
  ------------------
 1316|  7.37k|#ifdef USE_SUBEXP_CALL
 1317|  7.37k|    if (IS_ENCLOSE_CALLED(node)) {
  ------------------
  |  |  147|  7.37k|#define IS_ENCLOSE_CALLED(en)          (((en)->state & NST_CALLED)        != 0)
  |  |  ------------------
  |  |  |  |  136|  7.37k|#define NST_CALLED                (1<<8)
  |  |  ------------------
  |  |  |  Branch (147:40): [True: 0, False: 7.37k]
  |  |  ------------------
  ------------------
 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.37k|#endif
 1337|  7.37k|    if (BIT_STATUS_AT(reg->bt_mem_start, node->regnum))
  ------------------
  |  |  371|  7.37k|  ((n) < (int )BIT_STATUS_BITS_NUM  ?  ((stats) & ((BitStatusType )1 << n)) : ((stats) & 1))
  |  |  ------------------
  |  |  |  |  367|  7.37k|#define BIT_STATUS_BITS_NUM          (sizeof(BitStatusType) * 8)
  |  |  ------------------
  |  |  |  Branch (371:3): [True: 0, False: 7.37k]
  |  |  |  Branch (371:4): [True: 7.37k, False: 0]
  |  |  ------------------
  ------------------
 1338|      0|      r = add_opcode(reg, OP_MEMORY_START_PUSH);
 1339|  7.37k|    else
 1340|  7.37k|      r = add_opcode(reg, OP_MEMORY_START);
 1341|  7.37k|    if (r) return r;
  ------------------
  |  Branch (1341:9): [True: 0, False: 7.37k]
  ------------------
 1342|  7.37k|    r = add_mem_num(reg, node->regnum);
 1343|  7.37k|    if (r) return r;
  ------------------
  |  Branch (1343:9): [True: 0, False: 7.37k]
  ------------------
 1344|  7.37k|    r = compile_tree(node->target, reg);
 1345|  7.37k|    if (r) return r;
  ------------------
  |  Branch (1345:9): [True: 0, False: 7.37k]
  ------------------
 1346|  7.37k|#ifdef USE_SUBEXP_CALL
 1347|  7.37k|    if (IS_ENCLOSE_CALLED(node)) {
  ------------------
  |  |  147|  7.37k|#define IS_ENCLOSE_CALLED(en)          (((en)->state & NST_CALLED)        != 0)
  |  |  ------------------
  |  |  |  |  136|  7.37k|#define NST_CALLED                (1<<8)
  |  |  ------------------
  |  |  |  Branch (147:40): [True: 0, False: 7.37k]
  |  |  ------------------
  ------------------
 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.37k|    else if (IS_ENCLOSE_RECURSION(node)) {
  ------------------
  |  |  149|  7.37k|#define IS_ENCLOSE_RECURSION(en)       (((en)->state & NST_RECURSION)     != 0)
  |  |  ------------------
  |  |  |  |  135|  7.37k|#define NST_RECURSION             (1<<7)
  |  |  ------------------
  |  |  |  Branch (149:40): [True: 0, False: 7.37k]
  |  |  ------------------
  ------------------
 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.37k|    else
 1369|  7.37k|#endif
 1370|  7.37k|    {
 1371|  7.37k|      if (BIT_STATUS_AT(reg->bt_mem_end, node->regnum))
  ------------------
  |  |  371|  7.37k|  ((n) < (int )BIT_STATUS_BITS_NUM  ?  ((stats) & ((BitStatusType )1 << n)) : ((stats) & 1))
  |  |  ------------------
  |  |  |  |  367|  7.37k|#define BIT_STATUS_BITS_NUM          (sizeof(BitStatusType) * 8)
  |  |  ------------------
  |  |  |  Branch (371:3): [True: 0, False: 7.37k]
  |  |  |  Branch (371:4): [True: 7.37k, False: 0]
  |  |  ------------------
  ------------------
 1372|      0|	r = add_opcode(reg, OP_MEMORY_END_PUSH);
 1373|  7.37k|      else
 1374|  7.37k|	r = add_opcode(reg, OP_MEMORY_END);
 1375|  7.37k|      if (r) return r;
  ------------------
  |  Branch (1375:11): [True: 0, False: 7.37k]
  ------------------
 1376|  7.37k|      r = add_mem_num(reg, node->regnum);
 1377|  7.37k|    }
 1378|  7.37k|    break;
 1379|       |
 1380|  17.6k|  case ENCLOSE_STOP_BACKTRACK:
  ------------------
  |  |   96|  17.6k|#define ENCLOSE_STOP_BACKTRACK   (1<<2)
  ------------------
  |  Branch (1380:3): [True: 17.6k, False: 7.37k]
  ------------------
 1381|  17.6k|    if (IS_ENCLOSE_STOP_BT_SIMPLE_REPEAT(node)) {
  ------------------
  |  |  156|  17.6k|    (((en)->state & NST_STOP_BT_SIMPLE_REPEAT) != 0)
  |  |  ------------------
  |  |  |  |  134|  17.6k|#define NST_STOP_BT_SIMPLE_REPEAT (1<<6)
  |  |  ------------------
  |  |  |  Branch (156:5): [True: 17.6k, False: 0]
  |  |  ------------------
  ------------------
 1382|  17.6k|      QtfrNode* qn = NQTFR(node->target);
  ------------------
  |  |   80|  17.6k|#define NQTFR(node)        (&((node)->u.qtfr))
  ------------------
 1383|  17.6k|      r = compile_tree_n_times(qn->target, qn->lower, reg);
 1384|  17.6k|      if (r) return r;
  ------------------
  |  Branch (1384:11): [True: 0, False: 17.6k]
  ------------------
 1385|       |
 1386|  17.6k|      len = compile_length_tree(qn->target, reg);
 1387|  17.6k|      if (len < 0) return len;
  ------------------
  |  Branch (1387:11): [True: 0, False: 17.6k]
  ------------------
 1388|       |
 1389|  17.6k|      r = add_opcode_rel_addr(reg, OP_PUSH, len + SIZE_OP_POP + SIZE_OP_JUMP);
  ------------------
  |  |  722|  17.6k|#define SIZE_OP_POP                     SIZE_OPCODE
  |  |  ------------------
  |  |  |  |  688|  17.6k|#define SIZE_OPCODE           1
  |  |  ------------------
  ------------------
                    r = add_opcode_rel_addr(reg, OP_PUSH, len + SIZE_OP_POP + SIZE_OP_JUMP);
  ------------------
  |  |  720|  17.6k|#define SIZE_OP_JUMP                   (SIZE_OPCODE + SIZE_RELADDR)
  |  |  ------------------
  |  |  |  |  688|  17.6k|#define SIZE_OPCODE           1
  |  |  ------------------
  |  |               #define SIZE_OP_JUMP                   (SIZE_OPCODE + SIZE_RELADDR)
  |  |  ------------------
  |  |  |  |  689|  17.6k|#define SIZE_RELADDR          (int )sizeof(RelAddrType)
  |  |  ------------------
  ------------------
 1390|  17.6k|      if (r) return r;
  ------------------
  |  Branch (1390:11): [True: 0, False: 17.6k]
  ------------------
 1391|  17.6k|      r = compile_tree(qn->target, reg);
 1392|  17.6k|      if (r) return r;
  ------------------
  |  Branch (1392:11): [True: 0, False: 17.6k]
  ------------------
 1393|  17.6k|      r = add_opcode(reg, OP_POP);
 1394|  17.6k|      if (r) return r;
  ------------------
  |  Branch (1394:11): [True: 0, False: 17.6k]
  ------------------
 1395|  17.6k|      r = add_opcode_rel_addr(reg, OP_JUMP,
 1396|  17.6k|	 -((int )SIZE_OP_PUSH + len + (int )SIZE_OP_POP + (int )SIZE_OP_JUMP));
  ------------------
  |  |  721|  17.6k|#define SIZE_OP_PUSH                   (SIZE_OPCODE + SIZE_RELADDR)
  |  |  ------------------
  |  |  |  |  688|  17.6k|#define SIZE_OPCODE           1
  |  |  ------------------
  |  |               #define SIZE_OP_PUSH                   (SIZE_OPCODE + SIZE_RELADDR)
  |  |  ------------------
  |  |  |  |  689|  17.6k|#define SIZE_RELADDR          (int )sizeof(RelAddrType)
  |  |  ------------------
  ------------------
              	 -((int )SIZE_OP_PUSH + len + (int )SIZE_OP_POP + (int )SIZE_OP_JUMP));
  ------------------
  |  |  722|  17.6k|#define SIZE_OP_POP                     SIZE_OPCODE
  |  |  ------------------
  |  |  |  |  688|  17.6k|#define SIZE_OPCODE           1
  |  |  ------------------
  ------------------
              	 -((int )SIZE_OP_PUSH + len + (int )SIZE_OP_POP + (int )SIZE_OP_JUMP));
  ------------------
  |  |  720|  17.6k|#define SIZE_OP_JUMP                   (SIZE_OPCODE + SIZE_RELADDR)
  |  |  ------------------
  |  |  |  |  688|  17.6k|#define SIZE_OPCODE           1
  |  |  ------------------
  |  |               #define SIZE_OP_JUMP                   (SIZE_OPCODE + SIZE_RELADDR)
  |  |  ------------------
  |  |  |  |  689|  17.6k|#define SIZE_RELADDR          (int )sizeof(RelAddrType)
  |  |  ------------------
  ------------------
 1397|  17.6k|    }
 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|  17.6k|    break;
 1406|       |
 1407|  17.6k|  case ENCLOSE_CONDITION:
  ------------------
  |  |   97|      0|#define ENCLOSE_CONDITION        (1<<3)
  ------------------
  |  Branch (1407:3): [True: 0, False: 25.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: 25.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: 25.0k]
  ------------------
 1454|      0|    return ONIGERR_TYPE_BUG;
  ------------------
  |  |  633|      0|#define ONIGERR_TYPE_BUG                                       -6
  ------------------
 1455|      0|    break;
 1456|  25.0k|  }
 1457|       |
 1458|  25.0k|  return r;
 1459|  25.0k|}
regcomp.c:compile_option_node:
 1187|  1.42k|{
 1188|  1.42k|  int r;
 1189|  1.42k|  OnigOptionType prev = reg->options;
 1190|       |
 1191|  1.42k|  if (IS_DYNAMIC_OPTION(prev ^ node->option)) {
  ------------------
  |  |  416|  1.42k|#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.42k|  reg->options = node->option;
 1201|  1.42k|  r = compile_tree(node->target, reg);
 1202|  1.42k|  reg->options = prev;
 1203|       |
 1204|  1.42k|  if (IS_DYNAMIC_OPTION(prev ^ node->option)) {
  ------------------
  |  |  416|  1.42k|#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.42k|  return r;
 1209|  1.42k|}
regcomp.c:compile_anchor_node:
 1496|  40.1k|{
 1497|  40.1k|  int r, len;
 1498|       |
 1499|  40.1k|  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: 40.1k]
  ------------------
 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: 40.1k]
  ------------------
 1502|  27.6k|  case ANCHOR_BEGIN_LINE:     r = add_opcode(reg, OP_BEGIN_LINE);     break;
  ------------------
  |  |  541|  27.6k|#define ANCHOR_BEGIN_LINE       (1<<1)
  ------------------
  |  Branch (1502:3): [True: 27.6k, False: 12.5k]
  ------------------
 1503|  11.1k|  case ANCHOR_END_LINE:       r = add_opcode(reg, OP_END_LINE);       break;
  ------------------
  |  |  545|  11.1k|#define ANCHOR_END_LINE         (1<<5)
  ------------------
  |  Branch (1503:3): [True: 11.1k, False: 28.9k]
  ------------------
 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: 40.1k]
  ------------------
 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: 40.1k]
  ------------------
 1506|       |
 1507|  1.38k|  case ANCHOR_WORD_BOUND:
  ------------------
  |  |  547|  1.38k|#define ANCHOR_WORD_BOUND       (1<<6)
  ------------------
  |  Branch (1507:3): [True: 1.38k, False: 38.8k]
  ------------------
 1508|  1.38k|    if (node->ascii_range)    r = add_opcode(reg, OP_ASCII_WORD_BOUND);
  ------------------
  |  Branch (1508:9): [True: 0, False: 1.38k]
  ------------------
 1509|  1.38k|    else                      r = add_opcode(reg, OP_WORD_BOUND);
 1510|  1.38k|    break;
 1511|      0|  case ANCHOR_NOT_WORD_BOUND:
  ------------------
  |  |  548|      0|#define ANCHOR_NOT_WORD_BOUND   (1<<7)
  ------------------
  |  Branch (1511:3): [True: 0, False: 40.1k]
  ------------------
 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: 40.1k]
  ------------------
 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: 40.1k]
  ------------------
 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: 40.1k]
  ------------------
 1526|       |
 1527|      0|  case ANCHOR_PREC_READ:
  ------------------
  |  |  551|      0|#define ANCHOR_PREC_READ        (1<<10)
  ------------------
  |  Branch (1527:3): [True: 0, False: 40.1k]
  ------------------
 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: 40.1k]
  ------------------
 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: 40.1k]
  ------------------
 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: 40.1k]
  ------------------
 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: 40.1k]
  ------------------
 1584|      0|    return ONIGERR_TYPE_BUG;
  ------------------
  |  |  633|      0|#define ONIGERR_TYPE_BUG                                       -6
  ------------------
 1585|      0|    break;
 1586|  40.1k|  }
 1587|       |
 1588|  40.1k|  return r;
 1589|  40.1k|}
regcomp.c:add_opcode:
  205|   324k|{
  206|   324k|  BBUF_ADD1(reg, opcode);
  ------------------
  |  |  505|   324k|#define BBUF_ADD1(buf,byte)         BBUF_WRITE1((buf),(buf)->used,(byte))
  |  |  ------------------
  |  |  |  |  497|   324k|#define BBUF_WRITE1(buf,pos,byte) do{\
  |  |  |  |  498|   324k|  int used = (pos) + 1;\
  |  |  |  |  499|   324k|  if ((buf)->alloc < (unsigned int )used) BBUF_EXPAND((buf),used);\
  |  |  |  |  ------------------
  |  |  |  |  |  |  470|  4.04k|#define BBUF_EXPAND(buf,low) do{\
  |  |  |  |  |  |  471|  4.04k|  UChar *tmp;\
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   76|  4.04k|# define UChar OnigUChar
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  472|  4.04k|  do { (buf)->alloc *= 2; } while ((buf)->alloc < (unsigned int )low);\
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (472:36): [True: 0, False: 4.04k]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  473|  4.04k|  tmp = (UChar* )xrealloc((buf)->p, (buf)->alloc);\
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  143|  4.04k|# define xrealloc    realloc
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  474|  4.04k|  if (IS_NULL(tmp)) return(ONIGERR_MEMORY);\
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  311|  4.04k|#define IS_NULL(p)                    (((void*)(p)) == (void*)0)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (311:39): [True: 0, False: 4.04k]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |                 if (IS_NULL(tmp)) return(ONIGERR_MEMORY);\
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  632|      0|#define ONIGERR_MEMORY                                         -5
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  475|  4.04k|  (buf)->p = tmp;\
  |  |  |  |  |  |  476|  4.04k|} while (0)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (476:10): [Folded - Ignored]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (499:7): [True: 4.04k, False: 320k]
  |  |  |  |  ------------------
  |  |  |  |  500|   324k|  (buf)->p[(pos)] = (UChar )(byte);\
  |  |  |  |  501|   324k|  if ((buf)->used < (unsigned int )used) (buf)->used = used;\
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (501:7): [True: 324k, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  502|   324k|} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (502:10): [Folded - Ignored]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  207|   324k|  return 0;
  208|   324k|}

onigenc_init:
   37|      1|{
   38|      1|  return 0;
   39|      1|}
onigenc_mbclen:
   56|  2.40M|{
   57|  2.40M|  int ret = ONIGENC_PRECISE_MBC_ENC_LEN(enc, p, e);
  ------------------
  |  |  356|  2.40M|#define ONIGENC_PRECISE_MBC_ENC_LEN(enc,p,e)   (enc)->precise_mbc_enc_len(p,e,enc)
  ------------------
   58|  2.40M|  if (ONIGENC_MBCLEN_CHARFOUND_P(ret)) {
  ------------------
  |  |  346|  2.40M|#define ONIGENC_MBCLEN_CHARFOUND_P(r)           (0 < (r))
  |  |  ------------------
  |  |  |  Branch (346:49): [True: 2.40M, False: 0]
  |  |  ------------------
  ------------------
   59|  2.40M|    ret = ONIGENC_MBCLEN_CHARFOUND_LEN(ret);
  ------------------
  |  |  347|  2.40M|#define ONIGENC_MBCLEN_CHARFOUND_LEN(r)         (r)
  ------------------
   60|  2.40M|    if (ret > (int)(e - p)) ret = (int)(e - p); // just for case
  ------------------
  |  Branch (60:9): [True: 0, False: 2.40M]
  ------------------
   61|  2.40M|    return ret;
   62|  2.40M|  }
   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.40M|}
onigenc_always_true_is_allowed_reverse_match:
  677|  15.2k|{
  678|  15.2k|  return TRUE;
  ------------------
  |  |   73|  15.2k|# define TRUE    1
  ------------------
  679|  15.2k|}

onig_strcpy:
  260|   523k|{
  261|   523k|  ptrdiff_t len = end - src;
  262|   523k|  if (len > 0) {
  ------------------
  |  Branch (262:7): [True: 523k, False: 0]
  ------------------
  263|   523k|    xmemcpy(dest, src, len);
  ------------------
  |  |  215|   523k|#define xmemcpy     memcpy
  ------------------
  264|   523k|    dest[len] = (UChar )0;
  265|   523k|  }
  266|   523k|}
onig_st_init_strend_table_with_size:
  407|  1.48k|{
  408|  1.48k|  static const struct st_hash_type hashType = {
  409|  1.48k|    str_end_cmp,
  410|  1.48k|    str_end_hash,
  411|  1.48k|  };
  412|       |
  413|  1.48k|  return (hash_table_type* )
  414|  1.48k|           onig_st_init_table_with_size(&hashType, size);
  415|  1.48k|}
onig_st_lookup_strend:
  420|  4.44k|{
  421|  4.44k|  st_str_end_key key;
  422|       |
  423|  4.44k|  key.s   = (UChar* )str_key;
  424|  4.44k|  key.end = (UChar* )end_key;
  425|       |
  426|  4.44k|  return onig_st_lookup(table, (st_data_t )(&key), value);
  427|  4.44k|}
onig_st_insert_strend:
  432|  5.92k|{
  433|  5.92k|  st_str_end_key* key;
  434|  5.92k|  int result;
  435|       |
  436|  5.92k|  key = (st_str_end_key* )xmalloc(sizeof(st_str_end_key));
  ------------------
  |  |  142|  5.92k|# define xmalloc     malloc
  ------------------
  437|  5.92k|  key->s   = (UChar* )str_key;
  438|  5.92k|  key->end = (UChar* )end_key;
  439|  5.92k|  result = onig_st_insert(table, (st_data_t )key, value);
  440|  5.92k|  if (result) {
  ------------------
  |  Branch (440:7): [True: 0, False: 5.92k]
  ------------------
  441|      0|    xfree(key);
  ------------------
  |  |  145|      0|# define xfree       free
  ------------------
  442|      0|  }
  443|  5.92k|  return result;
  444|  5.92k|}
onig_names_free:
  526|  31.7k|{
  527|  31.7k|  int r;
  528|  31.7k|  NameTable* t;
  529|       |
  530|  31.7k|  r = names_clear(reg);
  531|  31.7k|  if (r) return r;
  ------------------
  |  Branch (531:7): [True: 0, False: 31.7k]
  ------------------
  532|       |
  533|  31.7k|  t = (NameTable* )reg->name_table;
  534|  31.7k|  if (IS_NOT_NULL(t)) onig_st_free_table(t);
  ------------------
  |  |  312|  31.7k|#define IS_NOT_NULL(p)                (((void*)(p)) != (void*)0)
  |  |  ------------------
  |  |  |  Branch (312:39): [True: 1.48k, False: 30.3k]
  |  |  ------------------
  ------------------
  535|  31.7k|  reg->name_table = (void* )NULL;
  536|  31.7k|  return 0;
  537|  31.7k|}
onig_node_free:
 1063|   277k|{
 1064|   434k| start:
 1065|   434k|  if (IS_NULL(node)) return ;
  ------------------
  |  |  311|   434k|#define IS_NULL(p)                    (((void*)(p)) == (void*)0)
  |  |  ------------------
  |  |  |  Branch (311:39): [True: 62.5k, False: 372k]
  |  |  ------------------
  ------------------
 1066|       |
 1067|   372k|  switch (NTYPE(node)) {
  ------------------
  |  |   69|   372k|#define NTYPE(node)             ((node)->u.base.type)
  |  |  ------------------
  |  |  |  Branch (69:33): [True: 13.9k, False: 358k]
  |  |  ------------------
  ------------------
 1068|  60.2k|  case NT_STR:
  ------------------
  |  |   38|  60.2k|#define NT_STR         0
  ------------------
  |  Branch (1068:3): [True: 60.2k, False: 311k]
  ------------------
 1069|  60.2k|    if (NSTR(node)->capa != 0 &&
  ------------------
  |  |   76|  60.2k|#define NSTR(node)         (&((node)->u.str))
  ------------------
  |  Branch (1069:9): [True: 5.59k, False: 54.6k]
  ------------------
 1070|  60.2k|	IS_NOT_NULL(NSTR(node)->s) && NSTR(node)->s != NSTR(node)->buf) {
  ------------------
  |  |  312|  65.8k|#define IS_NOT_NULL(p)                (((void*)(p)) != (void*)0)
  |  |  ------------------
  |  |  |  Branch (312:39): [True: 5.59k, False: 0]
  |  |  ------------------
  ------------------
              	IS_NOT_NULL(NSTR(node)->s) && NSTR(node)->s != NSTR(node)->buf) {
  ------------------
  |  |   76|  5.59k|#define NSTR(node)         (&((node)->u.str))
  ------------------
              	IS_NOT_NULL(NSTR(node)->s) && NSTR(node)->s != NSTR(node)->buf) {
  ------------------
  |  |   76|  5.59k|#define NSTR(node)         (&((node)->u.str))
  ------------------
  |  Branch (1070:32): [True: 5.59k, False: 0]
  ------------------
 1071|  5.59k|      xfree(NSTR(node)->s);
  ------------------
  |  |  145|  5.59k|# define xfree       free
  ------------------
                    xfree(NSTR(node)->s);
  ------------------
  |  |   76|  5.59k|#define NSTR(node)         (&((node)->u.str))
  ------------------
 1072|  5.59k|    }
 1073|  60.2k|    break;
 1074|       |
 1075|   137k|  case NT_LIST:
  ------------------
  |  |   46|   137k|#define NT_LIST        8
  ------------------
  |  Branch (1075:3): [True: 137k, False: 235k]
  ------------------
 1076|   157k|  case NT_ALT:
  ------------------
  |  |   47|   157k|#define NT_ALT         9
  ------------------
  |  Branch (1076:3): [True: 20.0k, False: 352k]
  ------------------
 1077|   157k|    onig_node_free(NCAR(node));
  ------------------
  |  |   86|   157k|#define NCAR(node)         (NCONS(node)->car)
  |  |  ------------------
  |  |  |  |   83|   157k|#define NCONS(node)        (&((node)->u.cons))
  |  |  ------------------
  ------------------
 1078|   157k|    {
 1079|   157k|      Node* next_node = NCDR(node);
  ------------------
  |  |   87|   157k|#define NCDR(node)         (NCONS(node)->cdr)
  |  |  ------------------
  |  |  |  |   83|   157k|#define NCONS(node)        (&((node)->u.cons))
  |  |  ------------------
  ------------------
 1080|       |
 1081|   157k|      xfree(node);
  ------------------
  |  |  145|   157k|# define xfree       free
  ------------------
 1082|   157k|      node = next_node;
 1083|   157k|      goto start;
 1084|   137k|    }
 1085|      0|    break;
 1086|       |
 1087|  32.9k|  case NT_CCLASS:
  ------------------
  |  |   39|  32.9k|#define NT_CCLASS      1
  ------------------
  |  Branch (1087:3): [True: 32.9k, False: 339k]
  ------------------
 1088|  32.9k|    {
 1089|  32.9k|      CClassNode* cc = NCCLASS(node);
  ------------------
  |  |   77|  32.9k|#define NCCLASS(node)      (&((node)->u.cclass))
  ------------------
 1090|       |
 1091|  32.9k|      if (cc->mbuf)
  ------------------
  |  Branch (1091:11): [True: 0, False: 32.9k]
  ------------------
 1092|      0|	bbuf_free(cc->mbuf);
 1093|  32.9k|    }
 1094|  32.9k|    break;
 1095|       |
 1096|  41.1k|  case NT_QTFR:
  ------------------
  |  |   43|  41.1k|#define NT_QTFR        5
  ------------------
  |  Branch (1096:3): [True: 41.1k, False: 331k]
  ------------------
 1097|  41.1k|    if (NQTFR(node)->target)
  ------------------
  |  |   80|  41.1k|#define NQTFR(node)        (&((node)->u.qtfr))
  ------------------
  |  Branch (1097:9): [True: 41.1k, False: 0]
  ------------------
 1098|  41.1k|      onig_node_free(NQTFR(node)->target);
  ------------------
  |  |   80|  41.1k|#define NQTFR(node)        (&((node)->u.qtfr))
  ------------------
 1099|  41.1k|    break;
 1100|       |
 1101|  26.4k|  case NT_ENCLOSE:
  ------------------
  |  |   44|  26.4k|#define NT_ENCLOSE     6
  ------------------
  |  Branch (1101:3): [True: 26.4k, False: 345k]
  ------------------
 1102|  26.4k|    if (NENCLOSE(node)->target)
  ------------------
  |  |   81|  26.4k|#define NENCLOSE(node)     (&((node)->u.enclose))
  ------------------
  |  Branch (1102:9): [True: 26.4k, False: 0]
  ------------------
 1103|  26.4k|      onig_node_free(NENCLOSE(node)->target);
  ------------------
  |  |   81|  26.4k|#define NENCLOSE(node)     (&((node)->u.enclose))
  ------------------
 1104|  26.4k|    break;
 1105|       |
 1106|      0|  case NT_BREF:
  ------------------
  |  |   42|      0|#define NT_BREF        4
  ------------------
  |  Branch (1106:3): [True: 0, False: 372k]
  ------------------
 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|  40.1k|  case NT_ANCHOR:
  ------------------
  |  |   45|  40.1k|#define NT_ANCHOR      7
  ------------------
  |  Branch (1111:3): [True: 40.1k, False: 332k]
  ------------------
 1112|  40.1k|    if (NANCHOR(node)->target)
  ------------------
  |  |   82|  40.1k|#define NANCHOR(node)      (&((node)->u.anchor))
  ------------------
  |  Branch (1112:9): [True: 0, False: 40.1k]
  ------------------
 1113|      0|      onig_node_free(NANCHOR(node)->target);
  ------------------
  |  |   82|      0|#define NANCHOR(node)      (&((node)->u.anchor))
  ------------------
 1114|  40.1k|    break;
 1115|   372k|  }
 1116|       |
 1117|   214k|  xfree(node);
  ------------------
  |  |  145|   214k|# define xfree       free
  ------------------
 1118|   214k|}
onig_node_new_alt:
 1211|  20.0k|{
 1212|  20.0k|  Node* node = node_new();
 1213|  20.0k|  CHECK_NULL_RETURN(node);
  ------------------
  |  |  313|  20.0k|#define CHECK_NULL_RETURN(p)          if (IS_NULL(p)) return NULL
  |  |  ------------------
  |  |  |  |  311|  20.0k|#define IS_NULL(p)                    (((void*)(p)) == (void*)0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (311:39): [True: 0, False: 20.0k]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1214|       |
 1215|  20.0k|  SET_NTYPE(node, NT_ALT);
  ------------------
  |  |   71|  20.0k|    do { \
  |  |   72|  20.0k|	int value = ntype; \
  |  |   73|  20.0k|	memcpy(&((node)->u.base.type), &value, sizeof(int)); \
  |  |   74|  20.0k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (74:14): [Folded - Ignored]
  |  |  ------------------
  ------------------
 1216|  20.0k|  NCAR(node)  = left;
  ------------------
  |  |   86|  20.0k|#define NCAR(node)         (NCONS(node)->car)
  |  |  ------------------
  |  |  |  |   83|  20.0k|#define NCONS(node)        (&((node)->u.cons))
  |  |  ------------------
  ------------------
 1217|  20.0k|  NCDR(node) = right;
  ------------------
  |  |   87|  20.0k|#define NCDR(node)         (NCONS(node)->cdr)
  |  |  ------------------
  |  |  |  |   83|  20.0k|#define NCONS(node)        (&((node)->u.cons))
  |  |  ------------------
  ------------------
 1218|  20.0k|  return node;
 1219|  20.0k|}
onig_node_new_anchor:
 1223|  40.1k|{
 1224|  40.1k|  Node* node = node_new();
 1225|  40.1k|  CHECK_NULL_RETURN(node);
  ------------------
  |  |  313|  40.1k|#define CHECK_NULL_RETURN(p)          if (IS_NULL(p)) return NULL
  |  |  ------------------
  |  |  |  |  311|  40.1k|#define IS_NULL(p)                    (((void*)(p)) == (void*)0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (311:39): [True: 0, False: 40.1k]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1226|       |
 1227|  40.1k|  SET_NTYPE(node, NT_ANCHOR);
  ------------------
  |  |   71|  40.1k|    do { \
  |  |   72|  40.1k|	int value = ntype; \
  |  |   73|  40.1k|	memcpy(&((node)->u.base.type), &value, sizeof(int)); \
  |  |   74|  40.1k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (74:14): [Folded - Ignored]
  |  |  ------------------
  ------------------
 1228|  40.1k|  NANCHOR(node)->type     = type;
  ------------------
  |  |   82|  40.1k|#define NANCHOR(node)      (&((node)->u.anchor))
  ------------------
 1229|  40.1k|  NANCHOR(node)->target   = NULL;
  ------------------
  |  |   82|  40.1k|#define NANCHOR(node)      (&((node)->u.anchor))
  ------------------
 1230|  40.1k|  NANCHOR(node)->char_len = -1;
  ------------------
  |  |   82|  40.1k|#define NANCHOR(node)      (&((node)->u.anchor))
  ------------------
 1231|  40.1k|  NANCHOR(node)->ascii_range = 0;
  ------------------
  |  |   82|  40.1k|#define NANCHOR(node)      (&((node)->u.anchor))
  ------------------
 1232|  40.1k|  return node;
 1233|  40.1k|}
onig_node_new_enclose:
 1348|  17.6k|{
 1349|  17.6k|  return node_new_enclose(type);
 1350|  17.6k|}
onig_node_str_cat:
 1377|   519k|{
 1378|   519k|  ptrdiff_t addlen = end - s;
 1379|       |
 1380|   519k|  if (addlen > 0) {
  ------------------
  |  Branch (1380:7): [True: 517k, False: 1.42k]
  ------------------
 1381|   517k|    ptrdiff_t len  = NSTR(node)->end - NSTR(node)->s;
  ------------------
  |  |   76|   517k|#define NSTR(node)         (&((node)->u.str))
  ------------------
                  ptrdiff_t len  = NSTR(node)->end - NSTR(node)->s;
  ------------------
  |  |   76|   517k|#define NSTR(node)         (&((node)->u.str))
  ------------------
 1382|       |
 1383|   517k|    if (NSTR(node)->capa > 0 || (len + addlen > NODE_STR_BUF_SIZE - 1)) {
  ------------------
  |  |   76|   517k|#define NSTR(node)         (&((node)->u.str))
  ------------------
                  if (NSTR(node)->capa > 0 || (len + addlen > NODE_STR_BUF_SIZE - 1)) {
  ------------------
  |  |  101|   438k|#define NODE_STR_BUF_SIZE       24  /* sizeof(CClassNode) - sizeof(int)*4 */
  ------------------
  |  Branch (1383:9): [True: 78.7k, False: 438k]
  |  Branch (1383:33): [True: 5.59k, False: 433k]
  ------------------
 1384|  84.3k|      UChar* p;
  ------------------
  |  |   76|  84.3k|# define UChar OnigUChar
  ------------------
 1385|  84.3k|      ptrdiff_t capa = len + addlen + NODE_STR_MARGIN;
  ------------------
  |  |  100|  84.3k|#define NODE_STR_MARGIN         16
  ------------------
 1386|       |
 1387|  84.3k|      if (capa <= NSTR(node)->capa) {
  ------------------
  |  |   76|  84.3k|#define NSTR(node)         (&((node)->u.str))
  ------------------
  |  Branch (1387:11): [True: 0, False: 84.3k]
  ------------------
 1388|      0|	onig_strcpy(NSTR(node)->s + len, s, end);
  ------------------
  |  |   76|      0|#define NSTR(node)         (&((node)->u.str))
  ------------------
 1389|      0|      }
 1390|  84.3k|      else {
 1391|  84.3k|	if (NSTR(node)->s == NSTR(node)->buf)
  ------------------
  |  |   76|  84.3k|#define NSTR(node)         (&((node)->u.str))
  ------------------
              	if (NSTR(node)->s == NSTR(node)->buf)
  ------------------
  |  |   76|  84.3k|#define NSTR(node)         (&((node)->u.str))
  ------------------
  |  Branch (1391:6): [True: 5.59k, False: 78.7k]
  ------------------
 1392|  5.59k|	  p = strcat_capa_from_static(NSTR(node)->s, NSTR(node)->end,
  ------------------
  |  |   76|  5.59k|#define NSTR(node)         (&((node)->u.str))
  ------------------
              	  p = strcat_capa_from_static(NSTR(node)->s, NSTR(node)->end,
  ------------------
  |  |   76|  5.59k|#define NSTR(node)         (&((node)->u.str))
  ------------------
 1393|  5.59k|				      s, end, capa);
 1394|  78.7k|	else
 1395|  78.7k|	  p = strcat_capa(NSTR(node)->s, NSTR(node)->end, s, end, capa);
  ------------------
  |  |   76|  78.7k|#define NSTR(node)         (&((node)->u.str))
  ------------------
              	  p = strcat_capa(NSTR(node)->s, NSTR(node)->end, s, end, capa);
  ------------------
  |  |   76|  78.7k|#define NSTR(node)         (&((node)->u.str))
  ------------------
 1396|       |
 1397|  84.3k|	CHECK_NULL_RETURN_MEMERR(p);
  ------------------
  |  |  314|  84.3k|#define CHECK_NULL_RETURN_MEMERR(p)   if (IS_NULL(p)) return ONIGERR_MEMORY
  |  |  ------------------
  |  |  |  |  311|  84.3k|#define IS_NULL(p)                    (((void*)(p)) == (void*)0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (311:39): [True: 0, False: 84.3k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |               #define CHECK_NULL_RETURN_MEMERR(p)   if (IS_NULL(p)) return ONIGERR_MEMORY
  |  |  ------------------
  |  |  |  |  632|      0|#define ONIGERR_MEMORY                                         -5
  |  |  ------------------
  ------------------
 1398|  84.3k|	NSTR(node)->s    = p;
  ------------------
  |  |   76|  84.3k|#define NSTR(node)         (&((node)->u.str))
  ------------------
 1399|  84.3k|	NSTR(node)->capa = (int )capa;
  ------------------
  |  |   76|  84.3k|#define NSTR(node)         (&((node)->u.str))
  ------------------
 1400|  84.3k|      }
 1401|  84.3k|    }
 1402|   433k|    else {
 1403|   433k|      onig_strcpy(NSTR(node)->s + len, s, end);
  ------------------
  |  |   76|   433k|#define NSTR(node)         (&((node)->u.str))
  ------------------
 1404|   433k|    }
 1405|   517k|    NSTR(node)->end = NSTR(node)->s + len + addlen;
  ------------------
  |  |   76|   517k|#define NSTR(node)         (&((node)->u.str))
  ------------------
                  NSTR(node)->end = NSTR(node)->s + len + addlen;
  ------------------
  |  |   76|   517k|#define NSTR(node)         (&((node)->u.str))
  ------------------
 1406|   517k|  }
 1407|       |
 1408|   519k|  return 0;
 1409|   519k|}
onig_parse_make_tree:
 6633|  31.7k|{
 6634|  31.7k|  int r;
 6635|  31.7k|  UChar* p;
  ------------------
  |  |   76|  31.7k|# define UChar OnigUChar
  ------------------
 6636|       |
 6637|  31.7k|#ifdef USE_NAMED_GROUP
 6638|  31.7k|  names_clear(reg);
 6639|  31.7k|#endif
 6640|       |
 6641|  31.7k|  scan_env_clear(env);
 6642|  31.7k|  env->option         = reg->options;
 6643|  31.7k|  env->case_fold_flag = reg->case_fold_flag;
 6644|  31.7k|  env->enc            = reg->enc;
 6645|  31.7k|  env->syntax         = reg->syntax;
 6646|  31.7k|  env->pattern        = (UChar* )pattern;
 6647|  31.7k|  env->pattern_end    = (UChar* )end;
 6648|  31.7k|  env->reg            = reg;
 6649|       |
 6650|  31.7k|  *root = NULL;
 6651|  31.7k|  p = (UChar* )pattern;
 6652|  31.7k|  r = parse_regexp(root, &p, (UChar* )end, env);
 6653|  31.7k|  reg->num_mem = env->num_mem;
 6654|  31.7k|  return r;
 6655|  31.7k|}
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.8k|  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|  63.5k|{
  516|  63.5k|  NameTable* t = (NameTable* )reg->name_table;
  517|       |
  518|  63.5k|  if (IS_NOT_NULL(t)) {
  ------------------
  |  |  312|  63.5k|#define IS_NOT_NULL(p)                (((void*)(p)) != (void*)0)
  |  |  ------------------
  |  |  |  Branch (312:39): [True: 1.48k, False: 62.1k]
  |  |  ------------------
  ------------------
  519|  1.48k|    onig_st_foreach(t, i_free_name_entry, 0);
  520|  1.48k|  }
  521|  63.5k|  return 0;
  522|  63.5k|}
regparse.c:i_free_name_entry:
  505|  5.92k|{
  506|  5.92k|  xfree(e->name);
  ------------------
  |  |  145|  5.92k|# define xfree       free
  ------------------
  507|  5.92k|  if (IS_NOT_NULL(e->back_refs)) xfree(e->back_refs);
  ------------------
  |  |  312|  5.92k|#define IS_NOT_NULL(p)                (((void*)(p)) != (void*)0)
  |  |  ------------------
  |  |  |  Branch (312:39): [True: 0, False: 5.92k]
  |  |  ------------------
  ------------------
                if (IS_NOT_NULL(e->back_refs)) xfree(e->back_refs);
  ------------------
  |  |  145|      0|# define xfree       free
  ------------------
  508|  5.92k|  xfree(key);
  ------------------
  |  |  145|  5.92k|# define xfree       free
  ------------------
  509|  5.92k|  xfree(e);
  ------------------
  |  |  145|  5.92k|# define xfree       free
  ------------------
  510|  5.92k|  return ST_DELETE;
  511|  5.92k|}
regparse.c:name_find:
  541|  5.92k|{
  542|  5.92k|  NameEntry* e;
  543|  5.92k|  NameTable* t = (NameTable* )reg->name_table;
  544|       |
  545|  5.92k|  e = (NameEntry* )NULL;
  546|  5.92k|  if (IS_NOT_NULL(t)) {
  ------------------
  |  |  312|  5.92k|#define IS_NOT_NULL(p)                (((void*)(p)) != (void*)0)
  |  |  ------------------
  |  |  |  Branch (312:39): [True: 4.44k, False: 1.48k]
  |  |  ------------------
  ------------------
  547|  4.44k|    onig_st_lookup_strend(t, name, name_end, (HashDataType* )((void* )(&e)));
  548|  4.44k|  }
  549|  5.92k|  return e;
  550|  5.92k|}
regparse.c:bbuf_free:
  135|  34.8k|{
  136|  34.8k|  if (IS_NOT_NULL(bbuf)) {
  ------------------
  |  |  312|  34.8k|#define IS_NOT_NULL(p)                (((void*)(p)) != (void*)0)
  |  |  ------------------
  |  |  |  Branch (312:39): [True: 17.4k, False: 17.4k]
  |  |  ------------------
  ------------------
  137|  17.4k|    if (IS_NOT_NULL(bbuf->p)) xfree(bbuf->p);
  ------------------
  |  |  312|  17.4k|#define IS_NOT_NULL(p)                (((void*)(p)) != (void*)0)
  |  |  ------------------
  |  |  |  Branch (312:39): [True: 17.4k, False: 0]
  |  |  ------------------
  ------------------
                  if (IS_NOT_NULL(bbuf->p)) xfree(bbuf->p);
  ------------------
  |  |  145|  17.4k|# define xfree       free
  ------------------
  138|  17.4k|    xfree(bbuf);
  ------------------
  |  |  145|  17.4k|# define xfree       free
  ------------------
  139|  17.4k|  }
  140|  34.8k|}
regparse.c:node_new_list:
 1175|   137k|{
 1176|   137k|  Node* node = node_new();
 1177|   137k|  CHECK_NULL_RETURN(node);
  ------------------
  |  |  313|   137k|#define CHECK_NULL_RETURN(p)          if (IS_NULL(p)) return NULL
  |  |  ------------------
  |  |  |  |  311|   137k|#define IS_NULL(p)                    (((void*)(p)) == (void*)0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (311:39): [True: 0, False: 137k]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1178|       |
 1179|   137k|  SET_NTYPE(node, NT_LIST);
  ------------------
  |  |   71|   137k|    do { \
  |  |   72|   137k|	int value = ntype; \
  |  |   73|   137k|	memcpy(&((node)->u.base.type), &value, sizeof(int)); \
  |  |   74|   137k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (74:14): [Folded - Ignored]
  |  |  ------------------
  ------------------
 1180|   137k|  NCAR(node)  = left;
  ------------------
  |  |   86|   137k|#define NCAR(node)         (NCONS(node)->car)
  |  |  ------------------
  |  |  |  |   83|   137k|#define NCONS(node)        (&((node)->u.cons))
  |  |  ------------------
  ------------------
 1181|   137k|  NCDR(node) = right;
  ------------------
  |  |   87|   137k|#define NCDR(node)         (NCONS(node)->cdr)
  |  |  ------------------
  |  |  |  |   83|   137k|#define NCONS(node)        (&((node)->u.cons))
  |  |  ------------------
  ------------------
 1182|   137k|  return node;
 1183|   137k|}
regparse.c:node_new:
 1122|   372k|{
 1123|   372k|  Node* node;
 1124|       |
 1125|   372k|  node = (Node* )xmalloc(sizeof(Node));
  ------------------
  |  |  142|   372k|# define xmalloc     malloc
  ------------------
 1126|       |  /* xmemset(node, 0, sizeof(Node)); */
 1127|   372k|  return node;
 1128|   372k|}
regparse.c:node_new_enclose:
 1331|  26.4k|{
 1332|  26.4k|  Node* node = node_new();
 1333|  26.4k|  CHECK_NULL_RETURN(node);
  ------------------
  |  |  313|  26.4k|#define CHECK_NULL_RETURN(p)          if (IS_NULL(p)) return NULL
  |  |  ------------------
  |  |  |  |  311|  26.4k|#define IS_NULL(p)                    (((void*)(p)) == (void*)0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (311:39): [True: 0, False: 26.4k]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1334|       |
 1335|  26.4k|  SET_NTYPE(node, NT_ENCLOSE);
  ------------------
  |  |   71|  26.4k|    do { \
  |  |   72|  26.4k|	int value = ntype; \
  |  |   73|  26.4k|	memcpy(&((node)->u.base.type), &value, sizeof(int)); \
  |  |   74|  26.4k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (74:14): [Folded - Ignored]
  |  |  ------------------
  ------------------
 1336|  26.4k|  NENCLOSE(node)->type      = type;
  ------------------
  |  |   81|  26.4k|#define NENCLOSE(node)     (&((node)->u.enclose))
  ------------------
 1337|  26.4k|  NENCLOSE(node)->state     =  0;
  ------------------
  |  |   81|  26.4k|#define NENCLOSE(node)     (&((node)->u.enclose))
  ------------------
 1338|  26.4k|  NENCLOSE(node)->regnum    =  0;
  ------------------
  |  |   81|  26.4k|#define NENCLOSE(node)     (&((node)->u.enclose))
  ------------------
 1339|  26.4k|  NENCLOSE(node)->option    =  0;
  ------------------
  |  |   81|  26.4k|#define NENCLOSE(node)     (&((node)->u.enclose))
  ------------------
 1340|  26.4k|  NENCLOSE(node)->target    = NULL;
  ------------------
  |  |   81|  26.4k|#define NENCLOSE(node)     (&((node)->u.enclose))
  ------------------
 1341|  26.4k|  NENCLOSE(node)->call_addr = -1;
  ------------------
  |  |   81|  26.4k|#define NENCLOSE(node)     (&((node)->u.enclose))
  ------------------
 1342|  26.4k|  NENCLOSE(node)->opt_count =  0;
  ------------------
  |  |   81|  26.4k|#define NENCLOSE(node)     (&((node)->u.enclose))
  ------------------
 1343|  26.4k|  return node;
 1344|  26.4k|}
regparse.c:strcat_capa_from_static:
  342|  5.59k|{
  343|  5.59k|  UChar* r;
  ------------------
  |  |   76|  5.59k|# define UChar OnigUChar
  ------------------
  344|       |
  345|  5.59k|  r = (UChar* )xmalloc(capa + 1);
  ------------------
  |  |  142|  5.59k|# define xmalloc     malloc
  ------------------
  346|  5.59k|  CHECK_NULL_RETURN(r);
  ------------------
  |  |  313|  5.59k|#define CHECK_NULL_RETURN(p)          if (IS_NULL(p)) return NULL
  |  |  ------------------
  |  |  |  |  311|  5.59k|#define IS_NULL(p)                    (((void*)(p)) == (void*)0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (311:39): [True: 0, False: 5.59k]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  347|  5.59k|  onig_strcpy(r, dest, dest_end);
  348|  5.59k|  onig_strcpy(r + (dest_end - dest), src, src_end);
  349|  5.59k|  return r;
  350|  5.59k|}
regparse.c:strcat_capa:
  325|  78.7k|{
  326|  78.7k|  UChar* r;
  ------------------
  |  |   76|  78.7k|# define UChar OnigUChar
  ------------------
  327|       |
  328|  78.7k|  if (dest)
  ------------------
  |  Branch (328:7): [True: 78.7k, False: 0]
  ------------------
  329|  78.7k|    r = (UChar* )xrealloc(dest, capa + 1);
  ------------------
  |  |  143|  78.7k|# define xrealloc    realloc
  ------------------
  330|      0|  else
  331|      0|    r = (UChar* )xmalloc(capa + 1);
  ------------------
  |  |  142|      0|# define xmalloc     malloc
  ------------------
  332|       |
  333|  78.7k|  CHECK_NULL_RETURN(r);
  ------------------
  |  |  313|  78.7k|#define CHECK_NULL_RETURN(p)          if (IS_NULL(p)) return NULL
  |  |  ------------------
  |  |  |  |  311|  78.7k|#define IS_NULL(p)                    (((void*)(p)) == (void*)0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (311:39): [True: 0, False: 78.7k]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  334|  78.7k|  onig_strcpy(r + (dest_end - dest), src, src_end);
  335|  78.7k|  return r;
  336|  78.7k|}
regparse.c:node_new_str:
 1464|  60.2k|{
 1465|  60.2k|  Node* node = node_new();
 1466|  60.2k|  CHECK_NULL_RETURN(node);
  ------------------
  |  |  313|  60.2k|#define CHECK_NULL_RETURN(p)          if (IS_NULL(p)) return NULL
  |  |  ------------------
  |  |  |  |  311|  60.2k|#define IS_NULL(p)                    (((void*)(p)) == (void*)0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (311:39): [True: 0, False: 60.2k]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1467|       |
 1468|  60.2k|  SET_NTYPE(node, NT_STR);
  ------------------
  |  |   71|  60.2k|    do { \
  |  |   72|  60.2k|	int value = ntype; \
  |  |   73|  60.2k|	memcpy(&((node)->u.base.type), &value, sizeof(int)); \
  |  |   74|  60.2k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (74:14): [Folded - Ignored]
  |  |  ------------------
  ------------------
 1469|  60.2k|  NSTR(node)->capa = 0;
  ------------------
  |  |   76|  60.2k|#define NSTR(node)         (&((node)->u.str))
  ------------------
 1470|  60.2k|  NSTR(node)->flag = 0;
  ------------------
  |  |   76|  60.2k|#define NSTR(node)         (&((node)->u.str))
  ------------------
 1471|  60.2k|  NSTR(node)->s    = NSTR(node)->buf;
  ------------------
  |  |   76|  60.2k|#define NSTR(node)         (&((node)->u.str))
  ------------------
                NSTR(node)->s    = NSTR(node)->buf;
  ------------------
  |  |   76|  60.2k|#define NSTR(node)         (&((node)->u.str))
  ------------------
 1472|  60.2k|  NSTR(node)->end  = NSTR(node)->buf;
  ------------------
  |  |   76|  60.2k|#define NSTR(node)         (&((node)->u.str))
  ------------------
                NSTR(node)->end  = NSTR(node)->buf;
  ------------------
  |  |   76|  60.2k|#define NSTR(node)         (&((node)->u.str))
  ------------------
 1473|  60.2k|  if (onig_node_str_cat(node, s, end)) {
  ------------------
  |  Branch (1473:7): [True: 0, False: 60.2k]
  ------------------
 1474|      0|    onig_node_free(node);
 1475|      0|    return NULL;
 1476|      0|  }
 1477|  60.2k|  return node;
 1478|  60.2k|}
regparse.c:scan_env_clear:
  984|  31.7k|{
  985|  31.7k|  int i;
  986|       |
  987|  31.7k|  BIT_STATUS_CLEAR(env->capture_history);
  ------------------
  |  |  368|  31.7k|#define BIT_STATUS_CLEAR(stats)      (stats) = 0
  ------------------
  988|  31.7k|  BIT_STATUS_CLEAR(env->bt_mem_start);
  ------------------
  |  |  368|  31.7k|#define BIT_STATUS_CLEAR(stats)      (stats) = 0
  ------------------
  989|  31.7k|  BIT_STATUS_CLEAR(env->bt_mem_end);
  ------------------
  |  |  368|  31.7k|#define BIT_STATUS_CLEAR(stats)      (stats) = 0
  ------------------
  990|  31.7k|  BIT_STATUS_CLEAR(env->backrefed_mem);
  ------------------
  |  |  368|  31.7k|#define BIT_STATUS_CLEAR(stats)      (stats) = 0
  ------------------
  991|  31.7k|  env->error      = (UChar* )NULL;
  992|  31.7k|  env->error_end  = (UChar* )NULL;
  993|  31.7k|  env->num_call   = 0;
  994|  31.7k|  env->num_mem    = 0;
  995|  31.7k|#ifdef USE_NAMED_GROUP
  996|  31.7k|  env->num_named  = 0;
  997|  31.7k|#endif
  998|  31.7k|  env->mem_alloc         = 0;
  999|  31.7k|  env->mem_nodes_dynamic = (Node** )NULL;
 1000|       |
 1001|   286k|  for (i = 0; i < SCANENV_MEMNODES_SIZE; i++)
  ------------------
  |  |  285|   286k|#define SCANENV_MEMNODES_SIZE               8
  ------------------
  |  Branch (1001:15): [True: 254k, False: 31.7k]
  ------------------
 1002|   254k|    env->mem_nodes_static[i] = NULL_NODE;
  ------------------
  |  |  283|   254k|#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|  31.7k|  env->parse_depth         = 0;
 1011|  31.7k|  env->warnings_flag       = 0;
 1012|  31.7k|}
regparse.c:parse_regexp:
 6601|  31.7k|{
 6602|  31.7k|  int r;
 6603|  31.7k|  OnigToken tok;
 6604|       |
 6605|  31.7k|  r = fetch_token(&tok, src, end, env);
 6606|  31.7k|  if (r < 0) return r;
  ------------------
  |  Branch (6606:7): [True: 0, False: 31.7k]
  ------------------
 6607|  31.7k|  r = parse_subexp(top, &tok, TK_EOT, src, end, env);
 6608|  31.7k|  if (r < 0) return r;
  ------------------
  |  Branch (6608:7): [True: 0, False: 31.7k]
  ------------------
 6609|       |
 6610|  31.7k|#ifdef USE_SUBEXP_CALL
 6611|  31.7k|  if (env->num_call > 0) {
  ------------------
  |  Branch (6611:7): [True: 0, False: 31.7k]
  ------------------
 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|  31.7k|#endif
 6627|  31.7k|  return 0;
 6628|  31.7k|}
regparse.c:fetch_token:
 3306|   723k|{
 3307|   723k|  int r, num;
 3308|   723k|  OnigCodePoint c;
 3309|   723k|  OnigEncoding enc = env->enc;
 3310|   723k|  const OnigSyntaxType* syn = env->syntax;
 3311|   723k|  UChar* prev;
  ------------------
  |  |   76|   723k|# define UChar OnigUChar
  ------------------
 3312|   723k|  UChar* p = *src;
  ------------------
  |  |   76|   723k|# define UChar OnigUChar
  ------------------
 3313|   723k|  PFETCH_READY;
  ------------------
  |  |  295|   723k|# define PFETCH_READY  UChar* pfetch_prev = NULL; (void)pfetch_prev
  |  |  ------------------
  |  |  |  |   76|   723k|# define UChar OnigUChar
  |  |  ------------------
  ------------------
 3314|       |
 3315|   723k| start:
 3316|   723k|  if (PEND) {
  ------------------
  |  |  299|   723k|#define PEND         (p < end ?  0 : 1)
  |  |  ------------------
  |  |  |  Branch (299:22): [True: 31.7k, False: 691k]
  |  |  |  Branch (299:23): [True: 691k, False: 31.7k]
  |  |  ------------------
  ------------------
 3317|  31.7k|    tok->type = TK_EOT;
 3318|  31.7k|    return tok->type;
 3319|  31.7k|  }
 3320|       |
 3321|   691k|  tok->type  = TK_STRING;
 3322|   691k|  tok->base  = 0;
 3323|   691k|  tok->backp = p;
 3324|       |
 3325|   691k|  PFETCH(c);
  ------------------
  |  |  305|   691k|#define PFETCH(c)  do { \
  |  |  306|   691k|  c = ((enc->max_enc_len == 1) ? *p : ONIGENC_MBC_TO_CODE(enc, p, end)); \
  |  |  ------------------
  |  |  |  |  369|   691k|#define ONIGENC_MBC_TO_CODE(enc,p,end)         (enc)->mbc_to_code((p),(end),enc)
  |  |  ------------------
  |  |  |  Branch (306:8): [True: 0, False: 691k]
  |  |  ------------------
  |  |  307|   691k|  pfetch_prev = p; \
  |  |  308|   691k|  p += enclen(enc, p, end); \
  |  |  ------------------
  |  |  |  |   93|   691k|#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|   691k|#define ONIGENC_MBC_ENC_LEN(enc,p,e)          onigenc_mbclen(p,e,enc)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (93:26): [True: 0, False: 691k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  309|   691k|} while (0)
  |  |  ------------------
  |  |  |  Branch (309:10): [Folded - Ignored]
  |  |  ------------------
  ------------------
 3326|   691k|	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: 691k]
  ------------------
 3327|   691k|  if (IS_MC_ESC_CODE(c, syn)) {
  ------------------
  |  |  769|   691k|  ((code) == MC_ESC(syn) && \
  |  |  ------------------
  |  |  |  |  761|  1.38M|#define MC_ESC(syn)               (syn)->meta_char_table.esc
  |  |  ------------------
  |  |  |  Branch (769:4): [True: 24.2k, False: 667k]
  |  |  ------------------
  |  |  770|   691k|   !IS_SYNTAX_OP2((syn), ONIG_SYN_OP2_INEFFECTIVE_ESCAPE))
  |  |  ------------------
  |  |  |  |  331|  24.2k|#define IS_SYNTAX_OP2(syn, opm)   (((syn)->op2 & (opm)) != 0)
  |  |  ------------------
  |  |  |  Branch (770:4): [True: 24.2k, False: 0]
  |  |  ------------------
  ------------------
 3328|  24.2k|    if (PEND) return ONIGERR_END_PATTERN_AT_ESCAPE;
  ------------------
  |  |  299|  24.2k|#define PEND         (p < end ?  0 : 1)
  |  |  ------------------
  |  |  |  Branch (299:22): [True: 0, False: 24.2k]
  |  |  |  Branch (299:23): [True: 24.2k, False: 0]
  |  |  ------------------
  ------------------
                  if (PEND) return ONIGERR_END_PATTERN_AT_ESCAPE;
  ------------------
  |  |  649|      0|#define ONIGERR_END_PATTERN_AT_ESCAPE                        -104
  ------------------
 3329|       |
 3330|  24.2k|    tok->backp = p;
 3331|  24.2k|    PFETCH(c);
  ------------------
  |  |  305|  24.2k|#define PFETCH(c)  do { \
  |  |  306|  24.2k|  c = ((enc->max_enc_len == 1) ? *p : ONIGENC_MBC_TO_CODE(enc, p, end)); \
  |  |  ------------------
  |  |  |  |  369|  24.2k|#define ONIGENC_MBC_TO_CODE(enc,p,end)         (enc)->mbc_to_code((p),(end),enc)
  |  |  ------------------
  |  |  |  Branch (306:8): [True: 0, False: 24.2k]
  |  |  ------------------
  |  |  307|  24.2k|  pfetch_prev = p; \
  |  |  308|  24.2k|  p += enclen(enc, p, end); \
  |  |  ------------------
  |  |  |  |   93|  24.2k|#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.2k|#define ONIGENC_MBC_ENC_LEN(enc,p,e)          onigenc_mbclen(p,e,enc)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (93:26): [True: 0, False: 24.2k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  309|  24.2k|} while (0)
  |  |  ------------------
  |  |  |  Branch (309:10): [Folded - Ignored]
  |  |  ------------------
  ------------------
 3332|       |
 3333|  24.2k|    tok->u.c = c;
 3334|  24.2k|    tok->escaped = 1;
 3335|  24.2k|    switch (c) {
 3336|      0|    case '*':
  ------------------
  |  Branch (3336:5): [True: 0, False: 24.2k]
  ------------------
 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: 24.2k]
  ------------------
 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: 24.2k]
  ------------------
 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|  41.1k|    greedy_check:
 3358|  41.1k|      if (!PEND && PPEEK_IS('?') &&
  ------------------
  |  |  299|  82.3k|#define PEND         (p < end ?  0 : 1)
  |  |  ------------------
  |  |  |  Branch (299:23): [True: 37.0k, False: 4.11k]
  |  |  ------------------
  ------------------
                    if (!PEND && PPEEK_IS('?') &&
  ------------------
  |  |  320|  78.2k|#define PPEEK_IS(c)  (PPEEK == (OnigCodePoint )c)
  |  |  ------------------
  |  |  |  |  319|  37.0k|#define PPEEK        (p < end ? ONIGENC_MBC_TO_CODE(enc, p, end) : PEND_VALUE)
  |  |  |  |  ------------------
  |  |  |  |  |  |  369|  37.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: 37.0k, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  |  Branch (320:22): [True: 1.48k, False: 35.5k]
  |  |  ------------------
  ------------------
  |  Branch (3358:11): [True: 37.0k, False: 4.11k]
  ------------------
 3359|  41.1k|	  IS_SYNTAX_OP(syn, ONIG_SYN_OP_QMARK_NON_GREEDY)) {
  ------------------
  |  |  330|  1.48k|#define IS_SYNTAX_OP(syn, opm)    (((syn)->op  & (opm)) != 0)
  |  |  ------------------
  |  |  |  Branch (330:35): [True: 1.48k, False: 0]
  |  |  ------------------
  ------------------
 3360|  1.48k|	PFETCH(c);
  ------------------
  |  |  305|  1.48k|#define PFETCH(c)  do { \
  |  |  306|  1.48k|  c = ((enc->max_enc_len == 1) ? *p : ONIGENC_MBC_TO_CODE(enc, p, end)); \
  |  |  ------------------
  |  |  |  |  369|  1.48k|#define ONIGENC_MBC_TO_CODE(enc,p,end)         (enc)->mbc_to_code((p),(end),enc)
  |  |  ------------------
  |  |  |  Branch (306:8): [True: 0, False: 1.48k]
  |  |  ------------------
  |  |  307|  1.48k|  pfetch_prev = p; \
  |  |  308|  1.48k|  p += enclen(enc, p, end); \
  |  |  ------------------
  |  |  |  |   93|  1.48k|#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.48k|#define ONIGENC_MBC_ENC_LEN(enc,p,e)          onigenc_mbclen(p,e,enc)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (93:26): [True: 0, False: 1.48k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  309|  1.48k|} while (0)
  |  |  ------------------
  |  |  |  Branch (309:10): [Folded - Ignored]
  |  |  ------------------
  ------------------
 3361|  1.48k|	tok->u.repeat.greedy     = 0;
 3362|  1.48k|	tok->u.repeat.possessive = 0;
 3363|  1.48k|      }
 3364|  39.7k|      else {
 3365|  39.7k|      possessive_check:
 3366|  39.7k|	if (!PEND && PPEEK_IS('+') &&
  ------------------
  |  |  299|  79.4k|#define PEND         (p < end ?  0 : 1)
  |  |  ------------------
  |  |  |  Branch (299:23): [True: 35.5k, False: 4.11k]
  |  |  ------------------
  ------------------
              	if (!PEND && PPEEK_IS('+') &&
  ------------------
  |  |  320|  75.3k|#define PPEEK_IS(c)  (PPEEK == (OnigCodePoint )c)
  |  |  ------------------
  |  |  |  |  319|  35.5k|#define PPEEK        (p < end ? ONIGENC_MBC_TO_CODE(enc, p, end) : PEND_VALUE)
  |  |  |  |  ------------------
  |  |  |  |  |  |  369|  35.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: 35.5k, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  |  Branch (320:22): [True: 0, False: 35.5k]
  |  |  ------------------
  ------------------
  |  Branch (3366:6): [True: 35.5k, False: 4.11k]
  ------------------
 3367|  39.7k|	    ((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|  39.7k|	else {
 3376|  39.7k|	  tok->u.repeat.greedy     = 1;
 3377|  39.7k|	  tok->u.repeat.possessive = 0;
 3378|  39.7k|	}
 3379|  39.7k|      }
 3380|  41.1k|      break;
 3381|       |
 3382|  41.1k|    case '{':
  ------------------
  |  Branch (3382:5): [True: 0, False: 24.2k]
  ------------------
 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: 24.2k]
  ------------------
 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.67k|    case '(':
  ------------------
  |  Branch (3401:5): [True: 2.67k, False: 21.5k]
  ------------------
 3402|  2.67k|      if (! IS_SYNTAX_OP(syn, ONIG_SYN_OP_ESC_LPAREN_SUBEXP)) break;
  ------------------
  |  |  330|  2.67k|#define IS_SYNTAX_OP(syn, opm)    (((syn)->op  & (opm)) != 0)
  ------------------
  |  Branch (3402:11): [True: 2.67k, False: 0]
  ------------------
 3403|      0|      tok->type = TK_SUBEXP_OPEN;
 3404|      0|      break;
 3405|       |
 3406|  1.32k|    case ')':
  ------------------
  |  Branch (3406:5): [True: 1.32k, False: 22.9k]
  ------------------
 3407|  1.32k|      if (! IS_SYNTAX_OP(syn, ONIG_SYN_OP_ESC_LPAREN_SUBEXP)) break;
  ------------------
  |  |  330|  1.32k|#define IS_SYNTAX_OP(syn, opm)    (((syn)->op  & (opm)) != 0)
  ------------------
  |  Branch (3407:11): [True: 1.32k, False: 0]
  ------------------
 3408|      0|      tok->type = TK_SUBEXP_CLOSE;
 3409|      0|      break;
 3410|       |
 3411|      0|    case 'w':
  ------------------
  |  Branch (3411:5): [True: 0, False: 24.2k]
  ------------------
 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: 24.2k]
  ------------------
 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.38k|    case 'b':
  ------------------
  |  Branch (3425:5): [True: 1.38k, False: 22.8k]
  ------------------
 3426|  1.38k|      if (! IS_SYNTAX_OP(syn, ONIG_SYN_OP_ESC_B_WORD_BOUND)) break;
  ------------------
  |  |  330|  1.38k|#define IS_SYNTAX_OP(syn, opm)    (((syn)->op  & (opm)) != 0)
  ------------------
  |  Branch (3426:11): [True: 0, False: 1.38k]
  ------------------
 3427|  1.38k|      tok->type = TK_ANCHOR;
 3428|  1.38k|      tok->u.anchor.subtype = ANCHOR_WORD_BOUND;
  ------------------
  |  |  547|  1.38k|#define ANCHOR_WORD_BOUND       (1<<6)
  ------------------
 3429|  1.38k|      tok->u.anchor.ascii_range = IS_ASCII_RANGE(env->option)
  ------------------
  |  |  406|  2.76k|#define IS_ASCII_RANGE(option)    ((option) & ONIG_OPTION_ASCII_RANGE)
  |  |  ------------------
  |  |  |  |  470|  1.38k|#define ONIG_OPTION_ASCII_RANGE          (ONIG_OPTION_NOTEOS << 1)
  |  |  |  |  ------------------
  |  |  |  |  |  |  468|  1.38k|#define ONIG_OPTION_NOTEOS               (ONIG_OPTION_NOTBOS << 1)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  467|  1.38k|#define ONIG_OPTION_NOTBOS               (ONIG_OPTION_NOTEOL << 1)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  466|  1.38k|#define ONIG_OPTION_NOTEOL               (ONIG_OPTION_NOTBOL << 1)
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  465|  1.38k|#define ONIG_OPTION_NOTBOL               (ONIG_OPTION_CAPTURE_GROUP << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  463|  1.38k|#define ONIG_OPTION_CAPTURE_GROUP        (ONIG_OPTION_DONT_CAPTURE_GROUP << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  462|  1.38k|#define ONIG_OPTION_DONT_CAPTURE_GROUP   (ONIG_OPTION_NEGATE_SINGLELINE  << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  461|  1.38k|#define ONIG_OPTION_NEGATE_SINGLELINE    (ONIG_OPTION_FIND_NOT_EMPTY     << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  460|  1.38k|#define ONIG_OPTION_FIND_NOT_EMPTY       (ONIG_OPTION_FIND_LONGEST       << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  459|  1.38k|#define ONIG_OPTION_FIND_LONGEST         (ONIG_OPTION_SINGLELINE         << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  458|  1.38k|#define ONIG_OPTION_SINGLELINE           (ONIG_OPTION_MULTILINE          << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  456|  1.38k|#define ONIG_OPTION_MULTILINE            (ONIG_OPTION_EXTEND             << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  455|  1.38k|#define ONIG_OPTION_EXTEND               (ONIG_OPTION_IGNORECASE         << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  454|  1.38k|#define ONIG_OPTION_IGNORECASE           1U
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  |  Branch (406:35): [True: 1.38k, False: 0]
  |  |  ------------------
  ------------------
 3430|  1.38k|		&& ! IS_WORD_BOUND_ALL_RANGE(env->option);
  ------------------
  |  |  408|  2.76k|#define IS_WORD_BOUND_ALL_RANGE(option)     ((option) & ONIG_OPTION_WORD_BOUND_ALL_RANGE)
  |  |  ------------------
  |  |  |  |  472|  1.38k|#define ONIG_OPTION_WORD_BOUND_ALL_RANGE    (ONIG_OPTION_POSIX_BRACKET_ALL_RANGE << 1)
  |  |  |  |  ------------------
  |  |  |  |  |  |  471|  1.38k|#define ONIG_OPTION_POSIX_BRACKET_ALL_RANGE (ONIG_OPTION_ASCII_RANGE << 1)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  470|  1.38k|#define ONIG_OPTION_ASCII_RANGE          (ONIG_OPTION_NOTEOS << 1)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  468|  1.38k|#define ONIG_OPTION_NOTEOS               (ONIG_OPTION_NOTBOS << 1)
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  467|  1.38k|#define ONIG_OPTION_NOTBOS               (ONIG_OPTION_NOTEOL << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  466|  1.38k|#define ONIG_OPTION_NOTEOL               (ONIG_OPTION_NOTBOL << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  465|  1.38k|#define ONIG_OPTION_NOTBOL               (ONIG_OPTION_CAPTURE_GROUP << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  463|  1.38k|#define ONIG_OPTION_CAPTURE_GROUP        (ONIG_OPTION_DONT_CAPTURE_GROUP << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  462|  1.38k|#define ONIG_OPTION_DONT_CAPTURE_GROUP   (ONIG_OPTION_NEGATE_SINGLELINE  << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  461|  1.38k|#define ONIG_OPTION_NEGATE_SINGLELINE    (ONIG_OPTION_FIND_NOT_EMPTY     << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  460|  1.38k|#define ONIG_OPTION_FIND_NOT_EMPTY       (ONIG_OPTION_FIND_LONGEST       << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  459|  1.38k|#define ONIG_OPTION_FIND_LONGEST         (ONIG_OPTION_SINGLELINE         << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  458|  1.38k|#define ONIG_OPTION_SINGLELINE           (ONIG_OPTION_MULTILINE          << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  456|  1.38k|#define ONIG_OPTION_MULTILINE            (ONIG_OPTION_EXTEND             << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  455|  1.38k|#define ONIG_OPTION_EXTEND               (ONIG_OPTION_IGNORECASE         << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  454|  1.38k|#define ONIG_OPTION_IGNORECASE           1U
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  |  Branch (3430:6): [True: 0, False: 1.38k]
  ------------------
 3431|  1.38k|      break;
 3432|       |
 3433|      0|    case 'B':
  ------------------
  |  Branch (3433:5): [True: 0, False: 24.2k]
  ------------------
 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: 24.2k]
  ------------------
 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: 24.2k]
  ------------------
 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|  6.67k|    case 's':
  ------------------
  |  Branch (3457:5): [True: 6.67k, False: 17.5k]
  ------------------
 3458|  6.67k|      if (! IS_SYNTAX_OP(syn, ONIG_SYN_OP_ESC_S_WHITE_SPACE)) break;
  ------------------
  |  |  330|  6.67k|#define IS_SYNTAX_OP(syn, opm)    (((syn)->op  & (opm)) != 0)
  ------------------
  |  Branch (3458:11): [True: 0, False: 6.67k]
  ------------------
 3459|  6.67k|      tok->type = TK_CHAR_TYPE;
 3460|  6.67k|      tok->u.prop.ctype = ONIGENC_CTYPE_SPACE;
  ------------------
  |  |  303|  6.67k|#define ONIGENC_CTYPE_SPACE     9
  ------------------
 3461|  6.67k|      tok->u.prop.not   = 0;
 3462|  6.67k|      break;
 3463|       |
 3464|      0|    case 'S':
  ------------------
  |  Branch (3464:5): [True: 0, False: 24.2k]
  ------------------
 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.43k|    case 'd':
  ------------------
  |  Branch (3471:5): [True: 5.43k, False: 18.7k]
  ------------------
 3472|  5.43k|      if (! IS_SYNTAX_OP(syn, ONIG_SYN_OP_ESC_D_DIGIT)) break;
  ------------------
  |  |  330|  5.43k|#define IS_SYNTAX_OP(syn, opm)    (((syn)->op  & (opm)) != 0)
  ------------------
  |  Branch (3472:11): [True: 0, False: 5.43k]
  ------------------
 3473|  5.43k|      tok->type = TK_CHAR_TYPE;
 3474|  5.43k|      tok->u.prop.ctype = ONIGENC_CTYPE_DIGIT;
  ------------------
  |  |  298|  5.43k|#define ONIGENC_CTYPE_DIGIT     4
  ------------------
 3475|  5.43k|      tok->u.prop.not   = 0;
 3476|  5.43k|      break;
 3477|       |
 3478|      0|    case 'D':
  ------------------
  |  Branch (3478:5): [True: 0, False: 24.2k]
  ------------------
 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: 24.2k]
  ------------------
 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: 24.2k]
  ------------------
 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: 24.2k]
  ------------------
 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: 24.2k]
  ------------------
 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: 24.2k]
  ------------------
 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: 24.2k]
  ------------------
 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: 24.2k]
  ------------------
 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: 24.2k]
  ------------------
 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: 24.2k]
  ------------------
 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: 24.2k]
  ------------------
 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: 24.2k]
  ------------------
 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: 24.2k]
  |  Branch (3613:15): [True: 0, False: 24.2k]
  |  Branch (3613:25): [True: 0, False: 24.2k]
  |  Branch (3613:35): [True: 0, False: 24.2k]
  ------------------
 3614|      0|    case '5': case '6': case '7': case '8': case '9':
  ------------------
  |  Branch (3614:5): [True: 0, False: 24.2k]
  |  Branch (3614:15): [True: 0, False: 24.2k]
  |  Branch (3614:25): [True: 0, False: 24.2k]
  |  Branch (3614:35): [True: 0, False: 24.2k]
  |  Branch (3614:45): [True: 0, False: 24.2k]
  ------------------
 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: 24.2k]
  ------------------
 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: 24.2k]
  ------------------
 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: 24.2k]
  ------------------
 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: 24.2k]
  ------------------
 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: 24.2k]
  ------------------
 3743|      0|    case 'P':
  ------------------
  |  Branch (3743:5): [True: 0, False: 24.2k]
  ------------------
 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: 24.2k]
  ------------------
 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: 24.2k]
  ------------------
 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: 24.2k]
  ------------------
 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|  6.73k|    default:
  ------------------
  |  Branch (3782:5): [True: 6.73k, False: 17.4k]
  ------------------
 3783|  6.73k|      {
 3784|  6.73k|	OnigCodePoint c2;
 3785|       |
 3786|  6.73k|	PUNFETCH;
  ------------------
  |  |  300|  6.73k|#define PUNFETCH     p = pfetch_prev
  ------------------
 3787|  6.73k|	num = fetch_escaped_value(&p, end, env, &c2);
 3788|  6.73k|	if (num < 0) return num;
  ------------------
  |  Branch (3788:6): [True: 0, False: 6.73k]
  ------------------
 3789|       |	/* set_raw: */
 3790|  6.73k|	if ((OnigCodePoint )tok->u.c != c2) {
  ------------------
  |  Branch (3790:6): [True: 0, False: 6.73k]
  ------------------
 3791|      0|	  tok->type = TK_CODE_POINT;
 3792|      0|	  tok->u.code = (OnigCodePoint )c2;
 3793|      0|	}
 3794|  6.73k|	else { /* string */
 3795|  6.73k|	  p = tok->backp + enclen(enc, tok->backp, end);
  ------------------
  |  |   93|  6.73k|#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|  6.73k|#define ONIGENC_MBC_ENC_LEN(enc,p,e)          onigenc_mbclen(p,e,enc)
  |  |  ------------------
  |  |  |  Branch (93:26): [True: 0, False: 6.73k]
  |  |  ------------------
  ------------------
 3796|  6.73k|	}
 3797|  6.73k|      }
 3798|      0|      break;
 3799|  24.2k|    }
 3800|  24.2k|  }
 3801|   667k|  else {
 3802|   667k|    tok->u.c = c;
 3803|   667k|    tok->escaped = 0;
 3804|       |
 3805|   667k|#ifdef USE_VARIABLE_META_CHARS
 3806|   667k|    if ((c != ONIG_INEFFECTIVE_META_CHAR) &&
  ------------------
  |  |  622|   667k|#define ONIG_INEFFECTIVE_META_CHAR          0
  ------------------
  |  Branch (3806:9): [True: 667k, False: 0]
  ------------------
 3807|   667k|	IS_SYNTAX_OP(syn, ONIG_SYN_OP_VARIABLE_META_CHARACTERS)) {
  ------------------
  |  |  330|   667k|#define IS_SYNTAX_OP(syn, opm)    (((syn)->op  & (opm)) != 0)
  |  |  ------------------
  |  |  |  Branch (330:35): [True: 0, False: 667k]
  |  |  ------------------
  ------------------
 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|   667k|#endif
 3822|       |
 3823|   667k|    switch (c) {
 3824|  13.9k|    case '.':
  ------------------
  |  Branch (3824:5): [True: 13.9k, False: 653k]
  ------------------
 3825|  13.9k|      if (! IS_SYNTAX_OP(syn, ONIG_SYN_OP_DOT_ANYCHAR)) break;
  ------------------
  |  |  330|  13.9k|#define IS_SYNTAX_OP(syn, opm)    (((syn)->op  & (opm)) != 0)
  ------------------
  |  Branch (3825:11): [True: 0, False: 13.9k]
  ------------------
 3826|  13.9k|#ifdef USE_VARIABLE_META_CHARS
 3827|  13.9k|    any_char:
 3828|  13.9k|#endif
 3829|  13.9k|      tok->type = TK_ANYCHAR;
 3830|  13.9k|      break;
 3831|       |
 3832|  15.3k|    case '*':
  ------------------
  |  Branch (3832:5): [True: 15.3k, False: 652k]
  ------------------
 3833|  15.3k|      if (! IS_SYNTAX_OP(syn, ONIG_SYN_OP_ASTERISK_ZERO_INF)) break;
  ------------------
  |  |  330|  15.3k|#define IS_SYNTAX_OP(syn, opm)    (((syn)->op  & (opm)) != 0)
  ------------------
  |  Branch (3833:11): [True: 0, False: 15.3k]
  ------------------
 3834|  15.3k|#ifdef USE_VARIABLE_META_CHARS
 3835|  15.3k|    anytime:
 3836|  15.3k|#endif
 3837|  15.3k|      tok->type = TK_OP_REPEAT;
 3838|  15.3k|      tok->u.repeat.lower = 0;
 3839|  15.3k|      tok->u.repeat.upper = REPEAT_INFINITE;
  ------------------
  |  |  421|  15.3k|#define REPEAT_INFINITE         -1
  ------------------
 3840|  15.3k|      goto greedy_check;
 3841|      0|      break;
 3842|       |
 3843|  24.4k|    case '+':
  ------------------
  |  Branch (3843:5): [True: 24.4k, False: 643k]
  ------------------
 3844|  24.4k|      if (! IS_SYNTAX_OP(syn, ONIG_SYN_OP_PLUS_ONE_INF)) break;
  ------------------
  |  |  330|  24.4k|#define IS_SYNTAX_OP(syn, opm)    (((syn)->op  & (opm)) != 0)
  ------------------
  |  Branch (3844:11): [True: 0, False: 24.4k]
  ------------------
 3845|  24.4k|#ifdef USE_VARIABLE_META_CHARS
 3846|  24.4k|    one_or_more_time:
 3847|  24.4k|#endif
 3848|  24.4k|      tok->type = TK_OP_REPEAT;
 3849|  24.4k|      tok->u.repeat.lower = 1;
 3850|  24.4k|      tok->u.repeat.upper = REPEAT_INFINITE;
  ------------------
  |  |  421|  24.4k|#define REPEAT_INFINITE         -1
  ------------------
 3851|  24.4k|      goto greedy_check;
 3852|      0|      break;
 3853|       |
 3854|  1.43k|    case '?':
  ------------------
  |  Branch (3854:5): [True: 1.43k, False: 666k]
  ------------------
 3855|  1.43k|      if (! IS_SYNTAX_OP(syn, ONIG_SYN_OP_QMARK_ZERO_ONE)) break;
  ------------------
  |  |  330|  1.43k|#define IS_SYNTAX_OP(syn, opm)    (((syn)->op  & (opm)) != 0)
  ------------------
  |  Branch (3855:11): [True: 0, False: 1.43k]
  ------------------
 3856|  1.43k|#ifdef USE_VARIABLE_META_CHARS
 3857|  1.43k|    zero_or_one_time:
 3858|  1.43k|#endif
 3859|  1.43k|      tok->type = TK_OP_REPEAT;
 3860|  1.43k|      tok->u.repeat.lower = 0;
 3861|  1.43k|      tok->u.repeat.upper = 1;
 3862|  1.43k|      goto greedy_check;
 3863|      0|      break;
 3864|       |
 3865|      0|    case '{':
  ------------------
  |  Branch (3865:5): [True: 0, False: 667k]
  ------------------
 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.5k|    case '|':
  ------------------
  |  Branch (3879:5): [True: 11.5k, False: 656k]
  ------------------
 3880|  11.5k|      if (! IS_SYNTAX_OP(syn, ONIG_SYN_OP_VBAR_ALT)) break;
  ------------------
  |  |  330|  11.5k|#define IS_SYNTAX_OP(syn, opm)    (((syn)->op  & (opm)) != 0)
  ------------------
  |  Branch (3880:11): [True: 0, False: 11.5k]
  ------------------
 3881|  11.5k|      tok->type = TK_ALT;
 3882|  11.5k|      break;
 3883|       |
 3884|  17.1k|    case '(':
  ------------------
  |  Branch (3884:5): [True: 17.1k, False: 650k]
  ------------------
 3885|  17.1k|      if (PPEEK_IS('?') &&
  ------------------
  |  |  320|  34.3k|#define PPEEK_IS(c)  (PPEEK == (OnigCodePoint )c)
  |  |  ------------------
  |  |  |  |  319|  17.1k|#define PPEEK        (p < end ? ONIGENC_MBC_TO_CODE(enc, p, end) : PEND_VALUE)
  |  |  |  |  ------------------
  |  |  |  |  |  |  369|  17.1k|#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.1k, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  |  Branch (320:22): [True: 15.7k, False: 1.45k]
  |  |  ------------------
  ------------------
 3886|  17.1k|	  IS_SYNTAX_OP2(syn, ONIG_SYN_OP2_QMARK_GROUP_EFFECT)) {
  ------------------
  |  |  331|  15.7k|#define IS_SYNTAX_OP2(syn, opm)   (((syn)->op2 & (opm)) != 0)
  |  |  ------------------
  |  |  |  Branch (331:35): [True: 15.7k, False: 0]
  |  |  ------------------
  ------------------
 3887|  15.7k|	PINC;
  ------------------
  |  |  301|  15.7k|#define PINC       do { \
  |  |  302|  15.7k|  pfetch_prev = p; \
  |  |  303|  15.7k|  p += enclen(enc, p, end); \
  |  |  ------------------
  |  |  |  |   93|  15.7k|#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|  15.7k|#define ONIGENC_MBC_ENC_LEN(enc,p,e)          onigenc_mbclen(p,e,enc)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (93:26): [True: 0, False: 15.7k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  304|  15.7k|} while (0)
  |  |  ------------------
  |  |  |  Branch (304:10): [Folded - Ignored]
  |  |  ------------------
  ------------------
 3888|  15.7k|	if (PPEEK_IS('#')) {
  ------------------
  |  |  320|  15.7k|#define PPEEK_IS(c)  (PPEEK == (OnigCodePoint )c)
  |  |  ------------------
  |  |  |  |  319|  15.7k|#define PPEEK        (p < end ? ONIGENC_MBC_TO_CODE(enc, p, end) : PEND_VALUE)
  |  |  |  |  ------------------
  |  |  |  |  |  |  369|  15.7k|#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: 15.7k, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  |  Branch (320:22): [True: 0, False: 15.7k]
  |  |  ------------------
  ------------------
 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|  15.7k|#ifdef USE_PERL_SUBEXP_CALL
 3903|       |	/* (?&name), (?n), (?R), (?0), (?+n), (?-n) */
 3904|  15.7k|	c = PPEEK;
  ------------------
  |  |  319|  15.7k|#define PPEEK        (p < end ? ONIGENC_MBC_TO_CODE(enc, p, end) : PEND_VALUE)
  |  |  ------------------
  |  |  |  |  369|  15.7k|#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: 15.7k, False: 0]
  |  |  ------------------
  ------------------
 3905|  15.7k|	if ((c == '&' || c == 'R' || ONIGENC_IS_CODE_DIGIT(enc, c)) &&
  ------------------
  |  |  400|  15.7k|        ONIGENC_IS_CODE_CTYPE(enc,code,ONIGENC_CTYPE_DIGIT)
  |  |  ------------------
  |  |  |  |  375|  15.7k|#define ONIGENC_IS_CODE_CTYPE(enc,code,ctype)  (enc)->is_code_ctype(code,ctype,enc)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (375:48): [True: 0, False: 15.7k]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  |  Branch (3905:7): [True: 0, False: 15.7k]
  |  Branch (3905:19): [True: 0, False: 15.7k]
  ------------------
 3906|  15.7k|	    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|  15.7k|	else if ((c == '-' || c == '+') &&
  ------------------
  |  Branch (3941:12): [True: 0, False: 15.7k]
  |  Branch (3941:24): [True: 0, False: 15.7k]
  ------------------
 3942|  15.7k|	    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|  15.7k|#endif /* USE_PERL_SUBEXP_CALL */
 3967|  15.7k|#ifdef USE_CAPITAL_P_NAMED_GROUP
 3968|  15.7k|	if (PPEEK_IS('P') &&
  ------------------
  |  |  320|  31.4k|#define PPEEK_IS(c)  (PPEEK == (OnigCodePoint )c)
  |  |  ------------------
  |  |  |  |  319|  15.7k|#define PPEEK        (p < end ? ONIGENC_MBC_TO_CODE(enc, p, end) : PEND_VALUE)
  |  |  |  |  ------------------
  |  |  |  |  |  |  369|  15.7k|#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: 15.7k, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  |  Branch (320:22): [True: 0, False: 15.7k]
  |  |  ------------------
  ------------------
 3969|  15.7k|	    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|  15.7k|#endif /* USE_CAPITAL_P_NAMED_GROUP */
 3997|  15.7k|	PUNFETCH;
  ------------------
  |  |  300|  15.7k|#define PUNFETCH     p = pfetch_prev
  ------------------
 3998|  15.7k|      }
 3999|       |
 4000|  17.1k|      if (! IS_SYNTAX_OP(syn, ONIG_SYN_OP_LPAREN_SUBEXP)) break;
  ------------------
  |  |  330|  17.1k|#define IS_SYNTAX_OP(syn, opm)    (((syn)->op  & (opm)) != 0)
  ------------------
  |  Branch (4000:11): [True: 0, False: 17.1k]
  ------------------
 4001|  17.1k|      tok->type = TK_SUBEXP_OPEN;
 4002|  17.1k|      break;
 4003|       |
 4004|  17.1k|    case ')':
  ------------------
  |  Branch (4004:5): [True: 17.1k, False: 650k]
  ------------------
 4005|  17.1k|      if (! IS_SYNTAX_OP(syn, ONIG_SYN_OP_LPAREN_SUBEXP)) break;
  ------------------
  |  |  330|  17.1k|#define IS_SYNTAX_OP(syn, opm)    (((syn)->op  & (opm)) != 0)
  ------------------
  |  Branch (4005:11): [True: 0, False: 17.1k]
  ------------------
 4006|  17.1k|      tok->type = TK_SUBEXP_CLOSE;
 4007|  17.1k|      break;
 4008|       |
 4009|  27.6k|    case '^':
  ------------------
  |  Branch (4009:5): [True: 27.6k, False: 639k]
  ------------------
 4010|  27.6k|      if (! IS_SYNTAX_OP(syn, ONIG_SYN_OP_LINE_ANCHOR)) break;
  ------------------
  |  |  330|  27.6k|#define IS_SYNTAX_OP(syn, opm)    (((syn)->op  & (opm)) != 0)
  ------------------
  |  Branch (4010:11): [True: 0, False: 27.6k]
  ------------------
 4011|  27.6k|      tok->type = TK_ANCHOR;
 4012|  27.6k|      tok->u.anchor.subtype = (IS_SINGLELINE(env->option)
  ------------------
  |  |  394|  27.6k|#define IS_SINGLELINE(option)     ((option) & ONIG_OPTION_SINGLELINE)
  |  |  ------------------
  |  |  |  |  458|  27.6k|#define ONIG_OPTION_SINGLELINE           (ONIG_OPTION_MULTILINE          << 1)
  |  |  |  |  ------------------
  |  |  |  |  |  |  456|  27.6k|#define ONIG_OPTION_MULTILINE            (ONIG_OPTION_EXTEND             << 1)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  455|  27.6k|#define ONIG_OPTION_EXTEND               (ONIG_OPTION_IGNORECASE         << 1)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  454|  27.6k|#define ONIG_OPTION_IGNORECASE           1U
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  |  Branch (394:35): [True: 0, False: 27.6k]
  |  |  ------------------
  ------------------
 4013|  27.6k|			       ? ANCHOR_BEGIN_BUF : ANCHOR_BEGIN_LINE);
  ------------------
  |  |  540|      0|#define ANCHOR_BEGIN_BUF        (1<<0)
  ------------------
              			       ? ANCHOR_BEGIN_BUF : ANCHOR_BEGIN_LINE);
  ------------------
  |  |  541|  27.6k|#define ANCHOR_BEGIN_LINE       (1<<1)
  ------------------
 4014|  27.6k|      break;
 4015|       |
 4016|  11.1k|    case '$':
  ------------------
  |  Branch (4016:5): [True: 11.1k, False: 656k]
  ------------------
 4017|  11.1k|      if (! IS_SYNTAX_OP(syn, ONIG_SYN_OP_LINE_ANCHOR)) break;
  ------------------
  |  |  330|  11.1k|#define IS_SYNTAX_OP(syn, opm)    (((syn)->op  & (opm)) != 0)
  ------------------
  |  Branch (4017:11): [True: 0, False: 11.1k]
  ------------------
 4018|  11.1k|      tok->type = TK_ANCHOR;
 4019|  11.1k|      tok->u.anchor.subtype = (IS_SINGLELINE(env->option)
  ------------------
  |  |  394|  11.1k|#define IS_SINGLELINE(option)     ((option) & ONIG_OPTION_SINGLELINE)
  |  |  ------------------
  |  |  |  |  458|  11.1k|#define ONIG_OPTION_SINGLELINE           (ONIG_OPTION_MULTILINE          << 1)
  |  |  |  |  ------------------
  |  |  |  |  |  |  456|  11.1k|#define ONIG_OPTION_MULTILINE            (ONIG_OPTION_EXTEND             << 1)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  455|  11.1k|#define ONIG_OPTION_EXTEND               (ONIG_OPTION_IGNORECASE         << 1)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  454|  11.1k|#define ONIG_OPTION_IGNORECASE           1U
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  |  Branch (394:35): [True: 0, False: 11.1k]
  |  |  ------------------
  ------------------
 4020|  11.1k|			       ? 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.1k|#define ANCHOR_END_LINE         (1<<5)
  ------------------
 4021|  11.1k|      break;
 4022|       |
 4023|  20.8k|    case '[':
  ------------------
  |  Branch (4023:5): [True: 20.8k, False: 646k]
  ------------------
 4024|  20.8k|      if (! IS_SYNTAX_OP(syn, ONIG_SYN_OP_BRACKET_CC)) break;
  ------------------
  |  |  330|  20.8k|#define IS_SYNTAX_OP(syn, opm)    (((syn)->op  & (opm)) != 0)
  ------------------
  |  Branch (4024:11): [True: 0, False: 20.8k]
  ------------------
 4025|  20.8k|      tok->type = TK_CC_OPEN;
 4026|  20.8k|      break;
 4027|       |
 4028|      0|    case ']':
  ------------------
  |  Branch (4028:5): [True: 0, False: 667k]
  ------------------
 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: 667k]
  ------------------
 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|  66.2k|    case ' ': case '\t': case '\n': case '\r': case '\f':
  ------------------
  |  Branch (4045:5): [True: 66.2k, False: 601k]
  |  Branch (4045:15): [True: 0, False: 667k]
  |  Branch (4045:26): [True: 0, False: 667k]
  |  Branch (4045:37): [True: 0, False: 667k]
  |  Branch (4045:48): [True: 0, False: 667k]
  ------------------
 4046|  66.2k|      if (IS_EXTEND(env->option))
  ------------------
  |  |  397|  66.2k|#define IS_EXTEND(option)         ((option) & ONIG_OPTION_EXTEND)
  |  |  ------------------
  |  |  |  |  455|  66.2k|#define ONIG_OPTION_EXTEND               (ONIG_OPTION_IGNORECASE         << 1)
  |  |  |  |  ------------------
  |  |  |  |  |  |  454|  66.2k|#define ONIG_OPTION_IGNORECASE           1U
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  |  Branch (397:35): [True: 0, False: 66.2k]
  |  |  ------------------
  ------------------
 4047|      0|	goto start;
 4048|  66.2k|      break;
 4049|       |
 4050|   440k|    default:
  ------------------
  |  Branch (4050:5): [True: 440k, False: 226k]
  ------------------
 4051|       |      /* string */
 4052|   440k|      break;
 4053|   667k|    }
 4054|   667k|  }
 4055|       |
 4056|   691k|#ifdef USE_VARIABLE_META_CHARS
 4057|   691k| out:
 4058|   691k|#endif
 4059|   691k|  *src = p;
 4060|   691k|  return tok->type;
 4061|   691k|}
regparse.c:get_name_end_code_point:
 2495|  5.92k|{
 2496|  5.92k|  switch (start) {
 2497|  5.92k|  case '<':  return (OnigCodePoint )'>'; break;
  ------------------
  |  Branch (2497:3): [True: 5.92k, False: 0]
  ------------------
 2498|      0|  case '\'': return (OnigCodePoint )'\''; break;
  ------------------
  |  Branch (2498:3): [True: 0, False: 5.92k]
  ------------------
 2499|      0|  case '(':  return (OnigCodePoint )')'; break;
  ------------------
  |  Branch (2499:3): [True: 0, False: 5.92k]
  ------------------
 2500|      0|  case '{':  return (OnigCodePoint )'}'; break;
  ------------------
  |  Branch (2500:3): [True: 0, False: 5.92k]
  ------------------
 2501|      0|  default:
  ------------------
  |  Branch (2501:3): [True: 0, False: 5.92k]
  ------------------
 2502|      0|    break;
 2503|  5.92k|  }
 2504|       |
 2505|      0|  return (OnigCodePoint )0;
 2506|  5.92k|}
regparse.c:fetch_name:
 2644|  5.92k|{
 2645|  5.92k|  int r, is_num, sign;
 2646|  5.92k|  OnigCodePoint end_code;
 2647|  5.92k|  OnigCodePoint c = 0;
 2648|  5.92k|  OnigEncoding enc = env->enc;
 2649|  5.92k|  UChar *name_end;
  ------------------
  |  |   76|  5.92k|# define UChar OnigUChar
  ------------------
 2650|  5.92k|  UChar *pnum_head;
  ------------------
  |  |   76|  5.92k|# define UChar OnigUChar
  ------------------
 2651|  5.92k|  UChar *p = *src;
  ------------------
  |  |   76|  5.92k|# define UChar OnigUChar
  ------------------
 2652|       |
 2653|  5.92k|  *rback_num = 0;
 2654|       |
 2655|  5.92k|  end_code = get_name_end_code_point(start_code);
 2656|       |
 2657|  5.92k|  name_end = end;
 2658|  5.92k|  pnum_head = *src;
 2659|  5.92k|  r = 0;
 2660|  5.92k|  is_num = 0;
 2661|  5.92k|  sign = 1;
 2662|  5.92k|  if (PEND) {
  ------------------
  |  |  299|  5.92k|#define PEND         (p < end ?  0 : 1)
  |  |  ------------------
  |  |  |  Branch (299:22): [True: 0, False: 5.92k]
  |  |  |  Branch (299:23): [True: 5.92k, False: 0]
  |  |  ------------------
  ------------------
 2663|      0|    return ONIGERR_EMPTY_GROUP_NAME;
  ------------------
  |  |  682|      0|#define ONIGERR_EMPTY_GROUP_NAME                             -214
  ------------------
 2664|      0|  }
 2665|  5.92k|  else {
 2666|  5.92k|    PFETCH_S(c);
  ------------------
  |  |  314|  5.92k|#define PFETCH_S(c) do { \
  |  |  315|  5.92k|  c = ((enc->max_enc_len == 1) ? *p : ONIGENC_MBC_TO_CODE(enc, p, end)); \
  |  |  ------------------
  |  |  |  |  369|  5.92k|#define ONIGENC_MBC_TO_CODE(enc,p,end)         (enc)->mbc_to_code((p),(end),enc)
  |  |  ------------------
  |  |  |  Branch (315:8): [True: 0, False: 5.92k]
  |  |  ------------------
  |  |  316|  5.92k|  p += enclen(enc, p, end); \
  |  |  ------------------
  |  |  |  |   93|  5.92k|#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.92k|#define ONIGENC_MBC_ENC_LEN(enc,p,e)          onigenc_mbclen(p,e,enc)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (93:26): [True: 0, False: 5.92k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  317|  5.92k|} while (0)
  |  |  ------------------
  |  |  |  Branch (317:10): [Folded - Ignored]
  |  |  ------------------
  ------------------
 2667|  5.92k|    if (c == end_code)
  ------------------
  |  Branch (2667:9): [True: 0, False: 5.92k]
  ------------------
 2668|      0|      return ONIGERR_EMPTY_GROUP_NAME;
  ------------------
  |  |  682|      0|#define ONIGERR_EMPTY_GROUP_NAME                             -214
  ------------------
 2669|       |
 2670|  5.92k|    if (ONIGENC_IS_CODE_DIGIT(enc, c)) {
  ------------------
  |  |  400|  5.92k|        ONIGENC_IS_CODE_CTYPE(enc,code,ONIGENC_CTYPE_DIGIT)
  |  |  ------------------
  |  |  |  |  375|  5.92k|#define ONIGENC_IS_CODE_CTYPE(enc,code,ctype)  (enc)->is_code_ctype(code,ctype,enc)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (375:48): [True: 0, False: 5.92k]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 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.92k|    else if (c == '-') {
  ------------------
  |  Branch (2678:14): [True: 0, False: 5.92k]
  ------------------
 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.92k|    else if (!ONIGENC_IS_CODE_NAME(enc, c)) {
  ------------------
  |  | 2512|  5.92k|#  define ONIGENC_IS_CODE_NAME(enc, c)  ONIGENC_IS_CODE_WORD(enc, c)
  |  |  ------------------
  |  |  |  |  404|  5.92k|        ONIGENC_IS_CODE_CTYPE(enc,code,ONIGENC_CTYPE_WORD)
  |  |  |  |  ------------------
  |  |  |  |  |  |  375|  5.92k|#define ONIGENC_IS_CODE_CTYPE(enc,code,ctype)  (enc)->is_code_ctype(code,ctype,enc)
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  |  Branch (2689:14): [True: 0, False: 5.92k]
  ------------------
 2690|      0|      r = ONIGERR_INVALID_CHAR_IN_GROUP_NAME;
  ------------------
  |  |  684|      0|#define ONIGERR_INVALID_CHAR_IN_GROUP_NAME                   -216
  ------------------
 2691|      0|    }
 2692|  5.92k|  }
 2693|       |
 2694|  5.92k|  if (r == 0) {
  ------------------
  |  Branch (2694:7): [True: 5.92k, False: 0]
  ------------------
 2695|  22.2k|    while (!PEND) {
  ------------------
  |  |  299|  22.2k|#define PEND         (p < end ?  0 : 1)
  |  |  ------------------
  |  |  |  Branch (299:23): [True: 22.2k, False: 0]
  |  |  ------------------
  ------------------
  |  Branch (2695:12): [True: 22.2k, False: 0]
  ------------------
 2696|  22.2k|      name_end = p;
 2697|  22.2k|      PFETCH_S(c);
  ------------------
  |  |  314|  22.2k|#define PFETCH_S(c) do { \
  |  |  315|  22.2k|  c = ((enc->max_enc_len == 1) ? *p : ONIGENC_MBC_TO_CODE(enc, p, end)); \
  |  |  ------------------
  |  |  |  |  369|  22.2k|#define ONIGENC_MBC_TO_CODE(enc,p,end)         (enc)->mbc_to_code((p),(end),enc)
  |  |  ------------------
  |  |  |  Branch (315:8): [True: 0, False: 22.2k]
  |  |  ------------------
  |  |  316|  22.2k|  p += enclen(enc, p, end); \
  |  |  ------------------
  |  |  |  |   93|  22.2k|#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.2k|#define ONIGENC_MBC_ENC_LEN(enc,p,e)          onigenc_mbclen(p,e,enc)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (93:26): [True: 0, False: 22.2k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  317|  22.2k|} while (0)
  |  |  ------------------
  |  |  |  Branch (317:10): [Folded - Ignored]
  |  |  ------------------
  ------------------
 2698|  22.2k|      if (c == end_code || c == ')') {
  ------------------
  |  Branch (2698:11): [True: 5.92k, False: 16.2k]
  |  Branch (2698:28): [True: 0, False: 16.2k]
  ------------------
 2699|  5.92k|	if (is_num == 2) {
  ------------------
  |  Branch (2699:6): [True: 0, False: 5.92k]
  ------------------
 2700|      0|	  r = ONIGERR_INVALID_GROUP_NAME;
  ------------------
  |  |  683|      0|#define ONIGERR_INVALID_GROUP_NAME                           -215
  ------------------
 2701|      0|	  goto teardown;
 2702|      0|	}
 2703|  5.92k|	break;
 2704|  5.92k|      }
 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.92k|    if (c != end_code) {
  ------------------
  |  Branch (2726:9): [True: 0, False: 5.92k]
  ------------------
 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.92k|    if (is_num != 0) {
  ------------------
  |  Branch (2732:9): [True: 0, False: 5.92k]
  ------------------
 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.92k|    *rname_end = name_end;
 2744|  5.92k|    *src = p;
 2745|  5.92k|    return 0;
 2746|  5.92k|  }
 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.92k|}
regparse.c:fetch_escaped_value:
 2422|  25.1k|{
 2423|  25.1k|  int v;
 2424|  25.1k|  OnigCodePoint c;
 2425|  25.1k|  OnigEncoding enc = env->enc;
 2426|  25.1k|  UChar* p = *src;
  ------------------
  |  |   76|  25.1k|# define UChar OnigUChar
  ------------------
 2427|       |
 2428|  25.1k|  if (PEND) return ONIGERR_END_PATTERN_AT_ESCAPE;
  ------------------
  |  |  299|  25.1k|#define PEND         (p < end ?  0 : 1)
  |  |  ------------------
  |  |  |  Branch (299:22): [True: 0, False: 25.1k]
  |  |  |  Branch (299:23): [True: 25.1k, False: 0]
  |  |  ------------------
  ------------------
                if (PEND) return ONIGERR_END_PATTERN_AT_ESCAPE;
  ------------------
  |  |  649|      0|#define ONIGERR_END_PATTERN_AT_ESCAPE                        -104
  ------------------
 2429|       |
 2430|  25.1k|  PFETCH_S(c);
  ------------------
  |  |  314|  25.1k|#define PFETCH_S(c) do { \
  |  |  315|  25.1k|  c = ((enc->max_enc_len == 1) ? *p : ONIGENC_MBC_TO_CODE(enc, p, end)); \
  |  |  ------------------
  |  |  |  |  369|  25.1k|#define ONIGENC_MBC_TO_CODE(enc,p,end)         (enc)->mbc_to_code((p),(end),enc)
  |  |  ------------------
  |  |  |  Branch (315:8): [True: 0, False: 25.1k]
  |  |  ------------------
  |  |  316|  25.1k|  p += enclen(enc, p, end); \
  |  |  ------------------
  |  |  |  |   93|  25.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|  25.1k|#define ONIGENC_MBC_ENC_LEN(enc,p,e)          onigenc_mbclen(p,e,enc)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (93:26): [True: 0, False: 25.1k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  317|  25.1k|} while (0)
  |  |  ------------------
  |  |  |  Branch (317:10): [Folded - Ignored]
  |  |  ------------------
  ------------------
 2431|  25.1k|  switch (c) {
 2432|      0|  case 'M':
  ------------------
  |  Branch (2432:3): [True: 0, False: 25.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: 25.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: 25.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|  25.1k|  default:
  ------------------
  |  Branch (2478:3): [True: 25.1k, False: 0]
  ------------------
 2479|  25.1k|    {
 2480|  25.1k|    backslash:
 2481|  25.1k|      c = conv_backslash_value(c, env);
 2482|  25.1k|    }
 2483|  25.1k|    break;
 2484|  25.1k|  }
 2485|       |
 2486|  25.1k|  *src = p;
 2487|  25.1k|  *val = c;
 2488|  25.1k|  return 0;
 2489|  25.1k|}
regparse.c:conv_backslash_value:
 2097|  25.1k|{
 2098|  25.1k|  if (IS_SYNTAX_OP(env->syntax, ONIG_SYN_OP_ESC_CONTROL_CHARS)) {
  ------------------
  |  |  330|  25.1k|#define IS_SYNTAX_OP(syn, opm)    (((syn)->op  & (opm)) != 0)
  |  |  ------------------
  |  |  |  Branch (330:35): [True: 25.1k, False: 0]
  |  |  ------------------
  ------------------
 2099|  25.1k|    switch (c) {
 2100|  2.90k|    case 'n': return '\n';
  ------------------
  |  Branch (2100:5): [True: 2.90k, False: 22.2k]
  ------------------
 2101|  11.2k|    case 't': return '\t';
  ------------------
  |  Branch (2101:5): [True: 11.2k, False: 13.8k]
  ------------------
 2102|  2.90k|    case 'r': return '\r';
  ------------------
  |  Branch (2102:5): [True: 2.90k, False: 22.2k]
  ------------------
 2103|      0|    case 'f': return '\f';
  ------------------
  |  Branch (2103:5): [True: 0, False: 25.1k]
  ------------------
 2104|      0|    case 'a': return '\007';
  ------------------
  |  Branch (2104:5): [True: 0, False: 25.1k]
  ------------------
 2105|      0|    case 'b': return '\010';
  ------------------
  |  Branch (2105:5): [True: 0, False: 25.1k]
  ------------------
 2106|      0|    case 'e': return '\033';
  ------------------
  |  Branch (2106:5): [True: 0, False: 25.1k]
  ------------------
 2107|      0|    case 'v':
  ------------------
  |  Branch (2107:5): [True: 0, False: 25.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.09k|    default:
  ------------------
  |  Branch (2112:5): [True: 8.09k, False: 17.0k]
  ------------------
 2113|  8.09k|      if (('a' <= c && c <= 'z') || ('A' <= c && c <= 'Z'))
  ------------------
  |  Branch (2113:12): [True: 0, False: 8.09k]
  |  Branch (2113:24): [True: 0, False: 0]
  |  Branch (2113:38): [True: 5.42k, False: 2.66k]
  |  Branch (2113:50): [True: 0, False: 5.42k]
  ------------------
 2114|      0|	  UNKNOWN_ESC_WARN(env, c);
 2115|  8.09k|      break;
 2116|  25.1k|    }
 2117|  25.1k|  }
 2118|  8.09k|  return c;
 2119|  25.1k|}
regparse.c:parse_subexp:
 6550|  48.9k|{
 6551|  48.9k|  int r;
 6552|  48.9k|  Node *node, **headp;
 6553|       |
 6554|  48.9k|  *top = NULL;
 6555|  48.9k|  env->parse_depth++;
 6556|  48.9k|  if (env->parse_depth > ParseDepthLimit)
  ------------------
  |  Branch (6556:7): [True: 0, False: 48.9k]
  ------------------
 6557|      0|    return ONIGERR_PARSE_DEPTH_LIMIT_OVER;
  ------------------
  |  |  639|      0|#define ONIGERR_PARSE_DEPTH_LIMIT_OVER                        -16
  ------------------
 6558|  48.9k|  r = parse_branch(&node, tok, term, src, end, env);
 6559|  48.9k|  if (r < 0) {
  ------------------
  |  Branch (6559:7): [True: 0, False: 48.9k]
  ------------------
 6560|      0|    onig_node_free(node);
 6561|      0|    return r;
 6562|      0|  }
 6563|       |
 6564|  48.9k|  if (r == term) {
  ------------------
  |  Branch (6564:7): [True: 40.3k, False: 8.59k]
  ------------------
 6565|  40.3k|    *top = node;
 6566|  40.3k|  }
 6567|  8.59k|  else if (r == TK_ALT) {
  ------------------
  |  Branch (6567:12): [True: 8.59k, False: 0]
  ------------------
 6568|  8.59k|    *top  = onig_node_new_alt(node, NULL);
 6569|  8.59k|    headp = &(NCDR(*top));
  ------------------
  |  |   87|  8.59k|#define NCDR(node)         (NCONS(node)->cdr)
  |  |  ------------------
  |  |  |  |   83|  8.59k|#define NCONS(node)        (&((node)->u.cons))
  |  |  ------------------
  ------------------
 6570|  20.0k|    while (r == TK_ALT) {
  ------------------
  |  Branch (6570:12): [True: 11.5k, False: 8.59k]
  ------------------
 6571|  11.5k|      r = fetch_token(tok, src, end, env);
 6572|  11.5k|      if (r < 0) return r;
  ------------------
  |  Branch (6572:11): [True: 0, False: 11.5k]
  ------------------
 6573|  11.5k|      r = parse_branch(&node, tok, term, src, end, env);
 6574|  11.5k|      if (r < 0) {
  ------------------
  |  Branch (6574:11): [True: 0, False: 11.5k]
  ------------------
 6575|      0|	onig_node_free(node);
 6576|      0|	return r;
 6577|      0|      }
 6578|       |
 6579|  11.5k|      *headp = onig_node_new_alt(node, NULL);
 6580|  11.5k|      headp = &(NCDR(*headp));
  ------------------
  |  |   87|  11.5k|#define NCDR(node)         (NCONS(node)->cdr)
  |  |  ------------------
  |  |  |  |   83|  11.5k|#define NCONS(node)        (&((node)->u.cons))
  |  |  ------------------
  ------------------
 6581|  11.5k|    }
 6582|       |
 6583|  8.59k|    if (tok->type != (enum TokenSyms )term)
  ------------------
  |  Branch (6583:9): [True: 0, False: 8.59k]
  ------------------
 6584|      0|      goto err;
 6585|  8.59k|  }
 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|  48.9k|  env->parse_depth--;
 6596|  48.9k|  return r;
 6597|  48.9k|}
regparse.c:parse_branch:
 6507|  60.4k|{
 6508|  60.4k|  int r;
 6509|  60.4k|  Node *node, **headp;
 6510|       |
 6511|  60.4k|  *top = NULL;
 6512|  60.4k|  r = parse_exp(&node, tok, term, src, end, env);
 6513|  60.4k|  if (r < 0) {
  ------------------
  |  Branch (6513:7): [True: 0, False: 60.4k]
  ------------------
 6514|      0|    onig_node_free(node);
 6515|      0|    return r;
 6516|      0|  }
 6517|       |
 6518|  60.4k|  if (r == TK_EOT || r == term || r == TK_ALT) {
  ------------------
  |  Branch (6518:7): [True: 2.69k, False: 57.7k]
  |  Branch (6518:22): [True: 14.5k, False: 43.2k]
  |  Branch (6518:35): [True: 10.1k, False: 33.1k]
  ------------------
 6519|  27.3k|    *top = node;
 6520|  27.3k|  }
 6521|  33.1k|  else {
 6522|  33.1k|    *top  = node_new_list(node, NULL);
 6523|  33.1k|    headp = &(NCDR(*top));
  ------------------
  |  |   87|  33.1k|#define NCDR(node)         (NCONS(node)->cdr)
  |  |  ------------------
  |  |  |  |   83|  33.1k|#define NCONS(node)        (&((node)->u.cons))
  |  |  ------------------
  ------------------
 6524|   137k|    while (r != TK_EOT && r != term && r != TK_ALT) {
  ------------------
  |  Branch (6524:12): [True: 108k, False: 29.0k]
  |  Branch (6524:27): [True: 105k, False: 2.66k]
  |  Branch (6524:40): [True: 104k, False: 1.35k]
  ------------------
 6525|   104k|      r = parse_exp(&node, tok, term, src, end, env);
 6526|   104k|      if (r < 0) {
  ------------------
  |  Branch (6526:11): [True: 0, False: 104k]
  ------------------
 6527|      0|	onig_node_free(node);
 6528|      0|	return r;
 6529|      0|      }
 6530|       |
 6531|   104k|      if (NTYPE(node) == NT_LIST) {
  ------------------
  |  |   69|   104k|#define NTYPE(node)             ((node)->u.base.type)
  ------------------
                    if (NTYPE(node) == NT_LIST) {
  ------------------
  |  |   46|   104k|#define NT_LIST        8
  ------------------
  |  Branch (6531:11): [True: 0, False: 104k]
  ------------------
 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|   104k|      else {
 6537|   104k|	*headp = node_new_list(node, NULL);
 6538|   104k|	headp = &(NCDR(*headp));
  ------------------
  |  |   87|   104k|#define NCDR(node)         (NCONS(node)->cdr)
  |  |  ------------------
  |  |  |  |   83|   104k|#define NCONS(node)        (&((node)->u.cons))
  |  |  ------------------
  ------------------
 6539|   104k|      }
 6540|   104k|    }
 6541|  33.1k|  }
 6542|       |
 6543|  60.4k|  return r;
 6544|  60.4k|}
regparse.c:parse_exp:
 6129|   164k|{
 6130|   164k|  int r, len, group = 0;
 6131|   164k|  Node* qn;
 6132|   164k|  Node** targetp;
 6133|   164k|  unsigned int parse_depth;
 6134|       |
 6135|   164k|  *np = NULL;
 6136|   164k|  if (tok->type == (enum TokenSyms )term)
  ------------------
  |  Branch (6136:7): [True: 1.42k, False: 163k]
  ------------------
 6137|  1.42k|    goto end_of_token;
 6138|       |
 6139|   163k|  parse_depth = env->parse_depth;
 6140|       |
 6141|   163k|  switch (tok->type) {
 6142|      0|  case TK_ALT:
  ------------------
  |  Branch (6142:3): [True: 0, False: 163k]
  ------------------
 6143|      0|  case TK_EOT:
  ------------------
  |  Branch (6143:3): [True: 0, False: 163k]
  ------------------
 6144|  1.42k|  end_of_token:
 6145|  1.42k|    *np = node_new_empty();
 6146|  1.42k|    return tok->type;
 6147|      0|    break;
 6148|       |
 6149|  17.1k|  case TK_SUBEXP_OPEN:
  ------------------
  |  Branch (6149:3): [True: 17.1k, False: 145k]
  ------------------
 6150|  17.1k|    r = parse_enclose(np, tok, TK_SUBEXP_CLOSE, src, end, env);
 6151|  17.1k|    if (r < 0) return r;
  ------------------
  |  Branch (6151:9): [True: 0, False: 17.1k]
  ------------------
 6152|  17.1k|    if (r == 1) group = 1;
  ------------------
  |  Branch (6152:9): [True: 8.38k, False: 8.80k]
  ------------------
 6153|  8.80k|    else if (r == 2) { /* option only */
  ------------------
  |  Branch (6153:14): [True: 0, False: 8.80k]
  ------------------
 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.1k|    break;
 6173|       |
 6174|  17.1k|  case TK_SUBEXP_CLOSE:
  ------------------
  |  Branch (6174:3): [True: 0, False: 163k]
  ------------------
 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: 163k]
  ------------------
 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: 163k]
  ------------------
 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: 163k]
  ------------------
 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|  58.8k|  case TK_STRING:
  ------------------
  |  Branch (6197:3): [True: 58.8k, False: 104k]
  ------------------
 6198|  58.8k|  tk_byte:
 6199|  58.8k|    {
 6200|  58.8k|      *np = node_new_str(tok->backp, *src);
 6201|  58.8k|      CHECK_NULL_RETURN_MEMERR(*np);
  ------------------
  |  |  314|  58.8k|#define CHECK_NULL_RETURN_MEMERR(p)   if (IS_NULL(p)) return ONIGERR_MEMORY
  |  |  ------------------
  |  |  |  |  311|  58.8k|#define IS_NULL(p)                    (((void*)(p)) == (void*)0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (311:39): [True: 0, False: 58.8k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |               #define CHECK_NULL_RETURN_MEMERR(p)   if (IS_NULL(p)) return ONIGERR_MEMORY
  |  |  ------------------
  |  |  |  |  632|      0|#define ONIGERR_MEMORY                                         -5
  |  |  ------------------
  ------------------
 6202|       |
 6203|  58.8k|    string_loop:
 6204|   517k|      while (1) {
  ------------------
  |  Branch (6204:14): [Folded - Ignored]
  ------------------
 6205|   517k|	r = fetch_token(tok, src, end, env);
 6206|   517k|	if (r < 0) return r;
  ------------------
  |  Branch (6206:6): [True: 0, False: 517k]
  ------------------
 6207|   517k|	if (r == TK_STRING) {
  ------------------
  |  Branch (6207:6): [True: 458k, False: 58.8k]
  ------------------
 6208|   458k|	  r = onig_node_str_cat(*np, tok->backp, *src);
 6209|   458k|	}
 6210|  58.8k|#ifndef NUMBERED_CHAR_IS_NOT_CASE_AMBIG
 6211|  58.8k|	else if (r == TK_CODE_POINT) {
  ------------------
  |  Branch (6211:11): [True: 0, False: 58.8k]
  ------------------
 6212|      0|	  r = node_str_cat_codepoint(*np, env->enc, tok->u.code);
 6213|      0|	}
 6214|  58.8k|#endif
 6215|  58.8k|	else {
 6216|  58.8k|	  break;
 6217|  58.8k|	}
 6218|   458k|	if (r < 0) return r;
  ------------------
  |  Branch (6218:6): [True: 0, False: 458k]
  ------------------
 6219|   458k|      }
 6220|       |
 6221|  58.8k|    string_end:
 6222|  58.8k|      targetp = np;
 6223|  58.8k|      goto repeat;
 6224|  58.8k|    }
 6225|      0|    break;
 6226|       |
 6227|      0|  case TK_RAW_BYTE:
  ------------------
  |  Branch (6227:3): [True: 0, False: 163k]
  ------------------
 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: 163k]
  ------------------
 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: 163k]
  ------------------
 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.1k|  case TK_CHAR_TYPE:
  ------------------
  |  Branch (6300:3): [True: 12.1k, False: 150k]
  ------------------
 6301|  12.1k|    {
 6302|  12.1k|      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.1k]
  ------------------
 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|  6.67k|      case ONIGENC_CTYPE_SPACE:
  ------------------
  |  |  303|  6.67k|#define ONIGENC_CTYPE_SPACE     9
  ------------------
  |  Branch (6309:7): [True: 6.67k, False: 5.43k]
  ------------------
 6310|  12.1k|      case ONIGENC_CTYPE_DIGIT:
  ------------------
  |  |  298|  12.1k|#define ONIGENC_CTYPE_DIGIT     4
  ------------------
  |  Branch (6310:7): [True: 5.43k, False: 6.67k]
  ------------------
 6311|  12.1k|      case ONIGENC_CTYPE_XDIGIT:
  ------------------
  |  |  305|  12.1k|#define ONIGENC_CTYPE_XDIGIT   11
  ------------------
  |  Branch (6311:7): [True: 0, False: 12.1k]
  ------------------
 6312|  12.1k|	{
 6313|  12.1k|	  CClassNode* cc;
 6314|       |
 6315|  12.1k|	  *np = node_new_cclass();
 6316|  12.1k|	  CHECK_NULL_RETURN_MEMERR(*np);
  ------------------
  |  |  314|  12.1k|#define CHECK_NULL_RETURN_MEMERR(p)   if (IS_NULL(p)) return ONIGERR_MEMORY
  |  |  ------------------
  |  |  |  |  311|  12.1k|#define IS_NULL(p)                    (((void*)(p)) == (void*)0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (311:39): [True: 0, False: 12.1k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |               #define CHECK_NULL_RETURN_MEMERR(p)   if (IS_NULL(p)) return ONIGERR_MEMORY
  |  |  ------------------
  |  |  |  |  632|      0|#define ONIGERR_MEMORY                                         -5
  |  |  ------------------
  ------------------
 6317|  12.1k|	  cc = NCCLASS(*np);
  ------------------
  |  |   77|  12.1k|#define NCCLASS(node)      (&((node)->u.cclass))
  ------------------
 6318|  12.1k|	  r = add_ctype_to_cc(cc, tok->u.prop.ctype, 0,
 6319|  12.1k|	      IS_ASCII_RANGE(env->option), env);
  ------------------
  |  |  406|  12.1k|#define IS_ASCII_RANGE(option)    ((option) & ONIG_OPTION_ASCII_RANGE)
  |  |  ------------------
  |  |  |  |  470|  12.1k|#define ONIG_OPTION_ASCII_RANGE          (ONIG_OPTION_NOTEOS << 1)
  |  |  |  |  ------------------
  |  |  |  |  |  |  468|  12.1k|#define ONIG_OPTION_NOTEOS               (ONIG_OPTION_NOTBOS << 1)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  467|  12.1k|#define ONIG_OPTION_NOTBOS               (ONIG_OPTION_NOTEOL << 1)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  466|  12.1k|#define ONIG_OPTION_NOTEOL               (ONIG_OPTION_NOTBOL << 1)
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  465|  12.1k|#define ONIG_OPTION_NOTBOL               (ONIG_OPTION_CAPTURE_GROUP << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  463|  12.1k|#define ONIG_OPTION_CAPTURE_GROUP        (ONIG_OPTION_DONT_CAPTURE_GROUP << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  462|  12.1k|#define ONIG_OPTION_DONT_CAPTURE_GROUP   (ONIG_OPTION_NEGATE_SINGLELINE  << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  461|  12.1k|#define ONIG_OPTION_NEGATE_SINGLELINE    (ONIG_OPTION_FIND_NOT_EMPTY     << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  460|  12.1k|#define ONIG_OPTION_FIND_NOT_EMPTY       (ONIG_OPTION_FIND_LONGEST       << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  459|  12.1k|#define ONIG_OPTION_FIND_LONGEST         (ONIG_OPTION_SINGLELINE         << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  458|  12.1k|#define ONIG_OPTION_SINGLELINE           (ONIG_OPTION_MULTILINE          << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  456|  12.1k|#define ONIG_OPTION_MULTILINE            (ONIG_OPTION_EXTEND             << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  455|  12.1k|#define ONIG_OPTION_EXTEND               (ONIG_OPTION_IGNORECASE         << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  454|  12.1k|#define ONIG_OPTION_IGNORECASE           1U
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 6320|  12.1k|	  if (r != 0) return r;
  ------------------
  |  Branch (6320:8): [True: 0, False: 12.1k]
  ------------------
 6321|  12.1k|	  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.1k]
  ------------------
 6322|  12.1k|	}
 6323|      0|	break;
 6324|       |
 6325|      0|      default:
  ------------------
  |  Branch (6325:7): [True: 0, False: 12.1k]
  ------------------
 6326|      0|	return ONIGERR_PARSER_BUG;
  ------------------
  |  |  634|      0|#define ONIGERR_PARSER_BUG                                    -11
  ------------------
 6327|      0|	break;
 6328|  12.1k|      }
 6329|  12.1k|    }
 6330|  12.1k|    break;
 6331|       |
 6332|  12.1k|  case TK_CHAR_PROPERTY:
  ------------------
  |  Branch (6332:3): [True: 0, False: 163k]
  ------------------
 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|  20.8k|  case TK_CC_OPEN:
  ------------------
  |  Branch (6337:3): [True: 20.8k, False: 142k]
  ------------------
 6338|  20.8k|    {
 6339|  20.8k|      Node *asc_node;
 6340|  20.8k|      CClassNode* cc;
 6341|  20.8k|      OnigCodePoint code;
 6342|       |
 6343|  20.8k|      r = parse_char_class(np, &asc_node, tok, src, end, env);
 6344|  20.8k|      if (r != 0) {
  ------------------
  |  Branch (6344:11): [True: 0, False: 20.8k]
  ------------------
 6345|      0|	onig_node_free(asc_node);
 6346|      0|	return r;
 6347|      0|      }
 6348|       |
 6349|  20.8k|      cc = NCCLASS(*np);
  ------------------
  |  |   77|  20.8k|#define NCCLASS(node)      (&((node)->u.cclass))
  ------------------
 6350|  20.8k|      if (is_onechar_cclass(cc, &code)) {
  ------------------
  |  Branch (6350:11): [True: 0, False: 20.8k]
  ------------------
 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|  20.8k|      if (IS_IGNORECASE(env->option)) {
  ------------------
  |  |  396|  20.8k|#define IS_IGNORECASE(option)     ((option) & ONIG_OPTION_IGNORECASE)
  |  |  ------------------
  |  |  |  |  454|  20.8k|#define ONIG_OPTION_IGNORECASE           1U
  |  |  ------------------
  |  |  |  Branch (396:35): [True: 0, False: 20.8k]
  |  |  ------------------
  ------------------
 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|  20.8k|      onig_node_free(asc_node);
 6367|  20.8k|    }
 6368|      0|    break;
 6369|       |
 6370|  13.9k|  case TK_ANYCHAR:
  ------------------
  |  Branch (6370:3): [True: 13.9k, False: 149k]
  ------------------
 6371|  13.9k|    *np = node_new_anychar();
 6372|  13.9k|    CHECK_NULL_RETURN_MEMERR(*np);
  ------------------
  |  |  314|  13.9k|#define CHECK_NULL_RETURN_MEMERR(p)   if (IS_NULL(p)) return ONIGERR_MEMORY
  |  |  ------------------
  |  |  |  |  311|  13.9k|#define IS_NULL(p)                    (((void*)(p)) == (void*)0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (311:39): [True: 0, False: 13.9k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |               #define CHECK_NULL_RETURN_MEMERR(p)   if (IS_NULL(p)) return ONIGERR_MEMORY
  |  |  ------------------
  |  |  |  |  632|      0|#define ONIGERR_MEMORY                                         -5
  |  |  ------------------
  ------------------
 6373|  13.9k|    break;
 6374|       |
 6375|  13.9k|  case TK_ANYCHAR_ANYTIME:
  ------------------
  |  Branch (6375:3): [True: 0, False: 163k]
  ------------------
 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: 163k]
  ------------------
 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: 163k]
  ------------------
 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|  40.1k|  case TK_ANCHOR:
  ------------------
  |  Branch (6415:3): [True: 40.1k, False: 122k]
  ------------------
 6416|  40.1k|    *np = onig_node_new_anchor(tok->u.anchor.subtype);
 6417|  40.1k|    CHECK_NULL_RETURN_MEMERR(*np);
  ------------------
  |  |  314|  40.1k|#define CHECK_NULL_RETURN_MEMERR(p)   if (IS_NULL(p)) return ONIGERR_MEMORY
  |  |  ------------------
  |  |  |  |  311|  40.1k|#define IS_NULL(p)                    (((void*)(p)) == (void*)0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (311:39): [True: 0, False: 40.1k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |               #define CHECK_NULL_RETURN_MEMERR(p)   if (IS_NULL(p)) return ONIGERR_MEMORY
  |  |  ------------------
  |  |  |  |  632|      0|#define ONIGERR_MEMORY                                         -5
  |  |  ------------------
  ------------------
 6418|  40.1k|    NANCHOR(*np)->ascii_range = tok->u.anchor.ascii_range;
  ------------------
  |  |   82|  40.1k|#define NANCHOR(node)      (&((node)->u.anchor))
  ------------------
 6419|  40.1k|    break;
 6420|       |
 6421|      0|  case TK_OP_REPEAT:
  ------------------
  |  Branch (6421:3): [True: 0, False: 163k]
  ------------------
 6422|      0|  case TK_INTERVAL:
  ------------------
  |  Branch (6422:3): [True: 0, False: 163k]
  ------------------
 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: 163k]
  ------------------
 6435|      0|    return ONIGERR_PARSER_BUG;
  ------------------
  |  |  634|      0|#define ONIGERR_PARSER_BUG                                    -11
  ------------------
 6436|      0|    break;
 6437|   163k|  }
 6438|       |
 6439|   104k|  {
 6440|   104k|    targetp = np;
 6441|       |
 6442|   145k|  re_entry:
 6443|   145k|    r = fetch_token(tok, src, end, env);
 6444|   145k|    if (r < 0) return r;
  ------------------
  |  Branch (6444:9): [True: 0, False: 145k]
  ------------------
 6445|       |
 6446|   204k|  repeat:
 6447|   204k|    if (r == TK_OP_REPEAT || r == TK_INTERVAL) {
  ------------------
  |  Branch (6447:9): [True: 41.1k, False: 163k]
  |  Branch (6447:30): [True: 0, False: 163k]
  ------------------
 6448|  41.1k|      if (is_invalid_quantifier_target(*targetp))
  ------------------
  |  | 2122|  41.1k|# 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|  41.1k|      parse_depth++;
 6452|  41.1k|      if (parse_depth > ParseDepthLimit)
  ------------------
  |  Branch (6452:11): [True: 0, False: 41.1k]
  ------------------
 6453|      0|	return ONIGERR_PARSE_DEPTH_LIMIT_OVER;
  ------------------
  |  |  639|      0|#define ONIGERR_PARSE_DEPTH_LIMIT_OVER                        -16
  ------------------
 6454|       |
 6455|  41.1k|      qn = node_new_quantifier(tok->u.repeat.lower, tok->u.repeat.upper,
 6456|  41.1k|			       (r == TK_INTERVAL ? 1 : 0));
  ------------------
  |  Branch (6456:12): [True: 0, False: 41.1k]
  ------------------
 6457|  41.1k|      CHECK_NULL_RETURN_MEMERR(qn);
  ------------------
  |  |  314|  41.1k|#define CHECK_NULL_RETURN_MEMERR(p)   if (IS_NULL(p)) return ONIGERR_MEMORY
  |  |  ------------------
  |  |  |  |  311|  41.1k|#define IS_NULL(p)                    (((void*)(p)) == (void*)0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (311:39): [True: 0, False: 41.1k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |               #define CHECK_NULL_RETURN_MEMERR(p)   if (IS_NULL(p)) return ONIGERR_MEMORY
  |  |  ------------------
  |  |  |  |  632|      0|#define ONIGERR_MEMORY                                         -5
  |  |  ------------------
  ------------------
 6458|  41.1k|      NQTFR(qn)->greedy = tok->u.repeat.greedy;
  ------------------
  |  |   80|  41.1k|#define NQTFR(node)        (&((node)->u.qtfr))
  ------------------
 6459|  41.1k|      r = set_quantifier(qn, *targetp, group, env);
 6460|  41.1k|      if (r < 0) {
  ------------------
  |  Branch (6460:11): [True: 0, False: 41.1k]
  ------------------
 6461|      0|	onig_node_free(qn);
 6462|      0|	return r;
 6463|      0|      }
 6464|       |
 6465|  41.1k|      if (tok->u.repeat.possessive != 0) {
  ------------------
  |  Branch (6465:11): [True: 0, False: 41.1k]
  ------------------
 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|  41.1k|      if (r == 0) {
  ------------------
  |  Branch (6476:11): [True: 41.1k, False: 0]
  ------------------
 6477|  41.1k|	*targetp = qn;
 6478|  41.1k|      }
 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|  41.1k|      goto re_entry;
 6498|  41.1k|    }
 6499|   204k|  }
 6500|       |
 6501|   163k|  return r;
 6502|   204k|}
regparse.c:node_new_empty:
 1497|  1.42k|{
 1498|  1.42k|  return node_new_str(NULL, NULL);
 1499|  1.42k|}
regparse.c:parse_enclose:
 4965|  17.1k|{
 4966|  17.1k|  int r = 0, num;
 4967|  17.1k|  Node *target, *work1 = NULL, *work2 = NULL;
 4968|  17.1k|  OnigOptionType option;
 4969|  17.1k|  OnigCodePoint c;
 4970|  17.1k|  OnigEncoding enc = env->enc;
 4971|       |
 4972|  17.1k|#ifdef USE_NAMED_GROUP
 4973|  17.1k|  int list_capture;
 4974|  17.1k|#endif
 4975|       |
 4976|  17.1k|  UChar* p = *src;
  ------------------
  |  |   76|  17.1k|# define UChar OnigUChar
  ------------------
 4977|  17.1k|  PFETCH_READY;
  ------------------
  |  |  295|  17.1k|# define PFETCH_READY  UChar* pfetch_prev = NULL; (void)pfetch_prev
  |  |  ------------------
  |  |  |  |   76|  17.1k|# define UChar OnigUChar
  |  |  ------------------
  ------------------
 4978|       |
 4979|  17.1k|  *np = NULL;
 4980|  17.1k|  if (PEND) return ONIGERR_END_PATTERN_WITH_UNMATCHED_PARENTHESIS;
  ------------------
  |  |  299|  17.1k|#define PEND         (p < end ?  0 : 1)
  |  |  ------------------
  |  |  |  Branch (299:22): [True: 0, False: 17.1k]
  |  |  |  Branch (299:23): [True: 17.1k, False: 0]
  |  |  ------------------
  ------------------
                if (PEND) return ONIGERR_END_PATTERN_WITH_UNMATCHED_PARENTHESIS;
  ------------------
  |  |  661|      0|#define ONIGERR_END_PATTERN_WITH_UNMATCHED_PARENTHESIS       -117
  ------------------
 4981|       |
 4982|  17.1k|  option = env->option;
 4983|  17.1k|  if (PPEEK_IS('?') &&
  ------------------
  |  |  320|  34.3k|#define PPEEK_IS(c)  (PPEEK == (OnigCodePoint )c)
  |  |  ------------------
  |  |  |  |  319|  17.1k|#define PPEEK        (p < end ? ONIGENC_MBC_TO_CODE(enc, p, end) : PEND_VALUE)
  |  |  |  |  ------------------
  |  |  |  |  |  |  369|  17.1k|#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.1k, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  |  Branch (320:22): [True: 15.7k, False: 1.45k]
  |  |  ------------------
  ------------------
 4984|  17.1k|      IS_SYNTAX_OP2(env->syntax, ONIG_SYN_OP2_QMARK_GROUP_EFFECT)) {
  ------------------
  |  |  331|  15.7k|#define IS_SYNTAX_OP2(syn, opm)   (((syn)->op2 & (opm)) != 0)
  |  |  ------------------
  |  |  |  Branch (331:35): [True: 15.7k, False: 0]
  |  |  ------------------
  ------------------
 4985|  15.7k|    PINC;
  ------------------
  |  |  301|  15.7k|#define PINC       do { \
  |  |  302|  15.7k|  pfetch_prev = p; \
  |  |  303|  15.7k|  p += enclen(enc, p, end); \
  |  |  ------------------
  |  |  |  |   93|  15.7k|#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|  15.7k|#define ONIGENC_MBC_ENC_LEN(enc,p,e)          onigenc_mbclen(p,e,enc)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (93:26): [True: 0, False: 15.7k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  304|  15.7k|} while (0)
  |  |  ------------------
  |  |  |  Branch (304:10): [Folded - Ignored]
  |  |  ------------------
  ------------------
 4986|  15.7k|    if (PEND) return ONIGERR_END_PATTERN_IN_GROUP;
  ------------------
  |  |  299|  15.7k|#define PEND         (p < end ?  0 : 1)
  |  |  ------------------
  |  |  |  Branch (299:22): [True: 0, False: 15.7k]
  |  |  |  Branch (299:23): [True: 15.7k, False: 0]
  |  |  ------------------
  ------------------
                  if (PEND) return ONIGERR_END_PATTERN_IN_GROUP;
  ------------------
  |  |  662|      0|#define ONIGERR_END_PATTERN_IN_GROUP                         -118
  ------------------
 4987|       |
 4988|  15.7k|    PFETCH(c);
  ------------------
  |  |  305|  15.7k|#define PFETCH(c)  do { \
  |  |  306|  15.7k|  c = ((enc->max_enc_len == 1) ? *p : ONIGENC_MBC_TO_CODE(enc, p, end)); \
  |  |  ------------------
  |  |  |  |  369|  15.7k|#define ONIGENC_MBC_TO_CODE(enc,p,end)         (enc)->mbc_to_code((p),(end),enc)
  |  |  ------------------
  |  |  |  Branch (306:8): [True: 0, False: 15.7k]
  |  |  ------------------
  |  |  307|  15.7k|  pfetch_prev = p; \
  |  |  308|  15.7k|  p += enclen(enc, p, end); \
  |  |  ------------------
  |  |  |  |   93|  15.7k|#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|  15.7k|#define ONIGENC_MBC_ENC_LEN(enc,p,e)          onigenc_mbclen(p,e,enc)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (93:26): [True: 0, False: 15.7k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  309|  15.7k|} while (0)
  |  |  ------------------
  |  |  |  Branch (309:10): [Folded - Ignored]
  |  |  ------------------
  ------------------
 4989|  15.7k|    switch (c) {
 4990|  8.38k|    case ':':   /* (?:...) grouping only */
  ------------------
  |  Branch (4990:5): [True: 8.38k, False: 7.34k]
  ------------------
 4991|  8.38k|    group:
 4992|  8.38k|      r = fetch_token(tok, &p, end, env);
 4993|  8.38k|      if (r < 0) return r;
  ------------------
  |  Branch (4993:11): [True: 0, False: 8.38k]
  ------------------
 4994|  8.38k|      r = parse_subexp(np, tok, term, &p, end, env);
 4995|  8.38k|      if (r < 0) return r;
  ------------------
  |  Branch (4995:11): [True: 0, False: 8.38k]
  ------------------
 4996|  8.38k|      *src = p;
 4997|  8.38k|      return 1; /* group */
 4998|      0|      break;
 4999|       |
 5000|      0|    case '=':
  ------------------
  |  Branch (5000:5): [True: 0, False: 15.7k]
  ------------------
 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: 15.7k]
  ------------------
 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: 15.7k]
  ------------------
 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: 15.7k]
  ------------------
 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: 15.7k]
  ------------------
 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: 15.7k]
  ------------------
 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.92k|    case '<':   /* look behind (?<=...), (?<!...) */
  ------------------
  |  Branch (5039:5): [True: 5.92k, False: 9.80k]
  ------------------
 5040|  5.92k|      if (PEND) return ONIGERR_END_PATTERN_WITH_UNMATCHED_PARENTHESIS;
  ------------------
  |  |  299|  5.92k|#define PEND         (p < end ?  0 : 1)
  |  |  ------------------
  |  |  |  Branch (299:22): [True: 0, False: 5.92k]
  |  |  |  Branch (299:23): [True: 5.92k, False: 0]
  |  |  ------------------
  ------------------
                    if (PEND) return ONIGERR_END_PATTERN_WITH_UNMATCHED_PARENTHESIS;
  ------------------
  |  |  661|      0|#define ONIGERR_END_PATTERN_WITH_UNMATCHED_PARENTHESIS       -117
  ------------------
 5041|  5.92k|      PFETCH(c);
  ------------------
  |  |  305|  5.92k|#define PFETCH(c)  do { \
  |  |  306|  5.92k|  c = ((enc->max_enc_len == 1) ? *p : ONIGENC_MBC_TO_CODE(enc, p, end)); \
  |  |  ------------------
  |  |  |  |  369|  5.92k|#define ONIGENC_MBC_TO_CODE(enc,p,end)         (enc)->mbc_to_code((p),(end),enc)
  |  |  ------------------
  |  |  |  Branch (306:8): [True: 0, False: 5.92k]
  |  |  ------------------
  |  |  307|  5.92k|  pfetch_prev = p; \
  |  |  308|  5.92k|  p += enclen(enc, p, end); \
  |  |  ------------------
  |  |  |  |   93|  5.92k|#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.92k|#define ONIGENC_MBC_ENC_LEN(enc,p,e)          onigenc_mbclen(p,e,enc)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (93:26): [True: 0, False: 5.92k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  309|  5.92k|} while (0)
  |  |  ------------------
  |  |  |  Branch (309:10): [Folded - Ignored]
  |  |  ------------------
  ------------------
 5042|  5.92k|      if (c == '=')
  ------------------
  |  Branch (5042:11): [True: 0, False: 5.92k]
  ------------------
 5043|      0|	*np = onig_node_new_anchor(ANCHOR_LOOK_BEHIND);
  ------------------
  |  |  553|      0|#define ANCHOR_LOOK_BEHIND      (1<<12)
  ------------------
 5044|  5.92k|      else if (c == '!')
  ------------------
  |  Branch (5044:16): [True: 0, False: 5.92k]
  ------------------
 5045|      0|	*np = onig_node_new_anchor(ANCHOR_LOOK_BEHIND_NOT);
  ------------------
  |  |  554|      0|#define ANCHOR_LOOK_BEHIND_NOT  (1<<13)
  ------------------
 5046|  5.92k|#ifdef USE_NAMED_GROUP
 5047|  5.92k|      else {    /* (?<name>...) */
 5048|  5.92k|	if (IS_SYNTAX_OP2(env->syntax, ONIG_SYN_OP2_QMARK_LT_NAMED_GROUP)) {
  ------------------
  |  |  331|  5.92k|#define IS_SYNTAX_OP2(syn, opm)   (((syn)->op2 & (opm)) != 0)
  |  |  ------------------
  |  |  |  Branch (331:35): [True: 5.92k, False: 0]
  |  |  ------------------
  ------------------
 5049|  5.92k|	  UChar *name;
  ------------------
  |  |   76|  5.92k|# define UChar OnigUChar
  ------------------
 5050|  5.92k|	  UChar *name_end;
  ------------------
  |  |   76|  5.92k|# define UChar OnigUChar
  ------------------
 5051|       |
 5052|  5.92k|	  PUNFETCH;
  ------------------
  |  |  300|  5.92k|#define PUNFETCH     p = pfetch_prev
  ------------------
 5053|  5.92k|	  c = '<';
 5054|       |
 5055|  5.92k|	named_group1:
 5056|  5.92k|	  list_capture = 0;
 5057|       |
 5058|  5.92k|# ifdef USE_CAPTURE_HISTORY
 5059|  5.92k|	named_group2:
 5060|  5.92k|# endif
 5061|  5.92k|	  name = p;
 5062|  5.92k|	  r = fetch_name((OnigCodePoint )c, &p, end, &name_end, env, &num, 0);
 5063|  5.92k|	  if (r < 0) return r;
  ------------------
  |  Branch (5063:8): [True: 0, False: 5.92k]
  ------------------
 5064|       |
 5065|  5.92k|	  num = scan_env_add_mem_entry(env);
 5066|  5.92k|	  if (num < 0) return num;
  ------------------
  |  Branch (5066:8): [True: 0, False: 5.92k]
  ------------------
 5067|  5.92k|	  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.92k]
  |  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.92k|	  r = name_add(env->reg, name, name_end, num, env);
 5071|  5.92k|	  if (r != 0) return r;
  ------------------
  |  Branch (5071:8): [True: 0, False: 5.92k]
  ------------------
 5072|  5.92k|	  *np = node_new_enclose_memory(env->option, 1);
 5073|  5.92k|	  CHECK_NULL_RETURN_MEMERR(*np);
  ------------------
  |  |  314|  5.92k|#define CHECK_NULL_RETURN_MEMERR(p)   if (IS_NULL(p)) return ONIGERR_MEMORY
  |  |  ------------------
  |  |  |  |  311|  5.92k|#define IS_NULL(p)                    (((void*)(p)) == (void*)0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (311:39): [True: 0, False: 5.92k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |               #define CHECK_NULL_RETURN_MEMERR(p)   if (IS_NULL(p)) return ONIGERR_MEMORY
  |  |  ------------------
  |  |  |  |  632|      0|#define ONIGERR_MEMORY                                         -5
  |  |  ------------------
  ------------------
 5074|  5.92k|	  NENCLOSE(*np)->regnum = num;
  ------------------
  |  |   81|  5.92k|#define NENCLOSE(node)     (&((node)->u.enclose))
  ------------------
 5075|  5.92k|	  if (list_capture != 0)
  ------------------
  |  Branch (5075:8): [True: 0, False: 5.92k]
  ------------------
 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.92k|	  env->num_named++;
 5078|  5.92k|	}
 5079|      0|	else {
 5080|      0|	  return ONIGERR_UNDEFINED_GROUP_OPTION;
  ------------------
  |  |  663|      0|#define ONIGERR_UNDEFINED_GROUP_OPTION                       -119
  ------------------
 5081|      0|	}
 5082|  5.92k|      }
 5083|       |#else
 5084|       |      else {
 5085|       |	return ONIGERR_UNDEFINED_GROUP_OPTION;
 5086|       |      }
 5087|       |#endif
 5088|  5.92k|      break;
 5089|       |
 5090|  5.92k|#ifdef USE_CAPTURE_HISTORY
 5091|  5.92k|    case '@':
  ------------------
  |  Branch (5091:5): [True: 0, False: 15.7k]
  ------------------
 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: 15.7k]
  ------------------
 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: 15.7k]
  ------------------
 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.42k|    case '-': case 'i': case 'm': case 's': case 'x':
  ------------------
  |  Branch (5215:5): [True: 0, False: 15.7k]
  |  Branch (5215:15): [True: 0, False: 15.7k]
  |  Branch (5215:25): [True: 0, False: 15.7k]
  |  Branch (5215:35): [True: 0, False: 15.7k]
  |  Branch (5215:45): [True: 1.42k, False: 14.3k]
  ------------------
 5216|  1.42k|    case 'a': case 'd': case 'l': case 'u':
  ------------------
  |  Branch (5216:5): [True: 0, False: 15.7k]
  |  Branch (5216:15): [True: 0, False: 15.7k]
  |  Branch (5216:25): [True: 0, False: 15.7k]
  |  Branch (5216:35): [True: 0, False: 15.7k]
  ------------------
 5217|  1.42k|      {
 5218|  1.42k|	int neg = 0;
 5219|       |
 5220|  2.84k|	while (1) {
  ------------------
  |  Branch (5220:9): [Folded - Ignored]
  ------------------
 5221|  2.84k|	  switch (c) {
 5222|  1.42k|	  case ':':
  ------------------
  |  Branch (5222:4): [True: 1.42k, False: 1.42k]
  ------------------
 5223|  1.42k|	  case ')':
  ------------------
  |  Branch (5223:4): [True: 0, False: 2.84k]
  ------------------
 5224|  1.42k|	  break;
 5225|       |
 5226|      0|	  case '-':  neg = 1; break;
  ------------------
  |  Branch (5226:4): [True: 0, False: 2.84k]
  ------------------
 5227|  1.42k|	  case 'x':  ONOFF(option, ONIG_OPTION_EXTEND,     neg); break;
  ------------------
  |  |  160|  1.42k|#define ONOFF(v,f,negative)    (negative) ? ((v) &= ~(f)) : ((v) |= (f))
  |  |  ------------------
  |  |  |  Branch (160:32): [True: 0, False: 1.42k]
  |  |  ------------------
  ------------------
  |  Branch (5227:4): [True: 1.42k, False: 1.42k]
  ------------------
 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.84k]
  ------------------
 5229|      0|	  case 's':
  ------------------
  |  Branch (5229:4): [True: 0, False: 2.84k]
  ------------------
 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.84k]
  ------------------
 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.84k]
  ------------------
 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.84k]
  ------------------
 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.84k]
  ------------------
 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.84k]
  ------------------
 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.84k]
  ------------------
 5301|      0|	    return ONIGERR_UNDEFINED_GROUP_OPTION;
  ------------------
  |  |  663|      0|#define ONIGERR_UNDEFINED_GROUP_OPTION                       -119
  ------------------
 5302|  2.84k|	  }
 5303|       |
 5304|  2.84k|	  if (c == ')') {
  ------------------
  |  Branch (5304:8): [True: 0, False: 2.84k]
  ------------------
 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.84k|	  else if (c == ':') {
  ------------------
  |  Branch (5310:13): [True: 1.42k, False: 1.42k]
  ------------------
 5311|  1.42k|	    OnigOptionType prev = env->option;
 5312|       |
 5313|  1.42k|	    env->option = option;
 5314|  1.42k|	    r = fetch_token(tok, &p, end, env);
 5315|  1.42k|	    if (r < 0) {
  ------------------
  |  Branch (5315:10): [True: 0, False: 1.42k]
  ------------------
 5316|      0|	      env->option = prev;
 5317|      0|	      return r;
 5318|      0|	    }
 5319|  1.42k|	    r = parse_subexp(&target, tok, term, &p, end, env);
 5320|  1.42k|	    env->option = prev;
 5321|  1.42k|	    if (r < 0) return r;
  ------------------
  |  Branch (5321:10): [True: 0, False: 1.42k]
  ------------------
 5322|  1.42k|	    *np = node_new_option(option);
 5323|  1.42k|	    CHECK_NULL_RETURN_MEMERR(*np);
  ------------------
  |  |  314|  1.42k|#define CHECK_NULL_RETURN_MEMERR(p)   if (IS_NULL(p)) return ONIGERR_MEMORY
  |  |  ------------------
  |  |  |  |  311|  1.42k|#define IS_NULL(p)                    (((void*)(p)) == (void*)0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (311:39): [True: 0, False: 1.42k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |               #define CHECK_NULL_RETURN_MEMERR(p)   if (IS_NULL(p)) return ONIGERR_MEMORY
  |  |  ------------------
  |  |  |  |  632|      0|#define ONIGERR_MEMORY                                         -5
  |  |  ------------------
  ------------------
 5324|  1.42k|	    NENCLOSE(*np)->target = target;
  ------------------
  |  |   81|  1.42k|#define NENCLOSE(node)     (&((node)->u.enclose))
  ------------------
 5325|  1.42k|	    *src = p;
 5326|  1.42k|	    return 0;
 5327|  1.42k|	  }
 5328|       |
 5329|  1.42k|	  if (PEND) return ONIGERR_END_PATTERN_IN_GROUP;
  ------------------
  |  |  299|  1.42k|#define PEND         (p < end ?  0 : 1)
  |  |  ------------------
  |  |  |  Branch (299:22): [True: 0, False: 1.42k]
  |  |  |  Branch (299:23): [True: 1.42k, False: 0]
  |  |  ------------------
  ------------------
              	  if (PEND) return ONIGERR_END_PATTERN_IN_GROUP;
  ------------------
  |  |  662|      0|#define ONIGERR_END_PATTERN_IN_GROUP                         -118
  ------------------
 5330|  1.42k|	  PFETCH(c);
  ------------------
  |  |  305|  1.42k|#define PFETCH(c)  do { \
  |  |  306|  1.42k|  c = ((enc->max_enc_len == 1) ? *p : ONIGENC_MBC_TO_CODE(enc, p, end)); \
  |  |  ------------------
  |  |  |  |  369|  1.42k|#define ONIGENC_MBC_TO_CODE(enc,p,end)         (enc)->mbc_to_code((p),(end),enc)
  |  |  ------------------
  |  |  |  Branch (306:8): [True: 0, False: 1.42k]
  |  |  ------------------
  |  |  307|  1.42k|  pfetch_prev = p; \
  |  |  308|  1.42k|  p += enclen(enc, p, end); \
  |  |  ------------------
  |  |  |  |   93|  1.42k|#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.42k|#define ONIGENC_MBC_ENC_LEN(enc,p,e)          onigenc_mbclen(p,e,enc)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (93:26): [True: 0, False: 1.42k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  309|  1.42k|} while (0)
  |  |  ------------------
  |  |  |  Branch (309:10): [Folded - Ignored]
  |  |  ------------------
  ------------------
 5331|  1.42k|	}
 5332|  1.42k|      }
 5333|      0|      break;
 5334|       |
 5335|      0|    default:
  ------------------
  |  Branch (5335:5): [True: 0, False: 15.7k]
  ------------------
 5336|      0|      return ONIGERR_UNDEFINED_GROUP_OPTION;
  ------------------
  |  |  663|      0|#define ONIGERR_UNDEFINED_GROUP_OPTION                       -119
  ------------------
 5337|  15.7k|    }
 5338|  15.7k|  }
 5339|  1.45k|  else {
 5340|  1.45k|    if (ONIG_IS_OPTION_ON(env->option, ONIG_OPTION_DONT_CAPTURE_GROUP))
  ------------------
  |  |  479|  1.45k|#define ONIG_IS_OPTION_ON(options,option)   ((options) & (option))
  |  |  ------------------
  |  |  |  Branch (479:45): [True: 0, False: 1.45k]
  |  |  ------------------
  ------------------
 5341|      0|      goto group;
 5342|       |
 5343|  1.45k|    *np = node_new_enclose_memory(env->option, 0);
 5344|  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
  |  |  ------------------
  ------------------
 5345|  1.45k|    num = scan_env_add_mem_entry(env);
 5346|  1.45k|    if (num < 0) return num;
  ------------------
  |  Branch (5346:9): [True: 0, False: 1.45k]
  ------------------
 5347|  1.45k|    NENCLOSE(*np)->regnum = num;
  ------------------
  |  |   81|  1.45k|#define NENCLOSE(node)     (&((node)->u.enclose))
  ------------------
 5348|  1.45k|  }
 5349|       |
 5350|  7.37k|  CHECK_NULL_RETURN_MEMERR(*np);
  ------------------
  |  |  314|  7.37k|#define CHECK_NULL_RETURN_MEMERR(p)   if (IS_NULL(p)) return ONIGERR_MEMORY
  |  |  ------------------
  |  |  |  |  311|  7.37k|#define IS_NULL(p)                    (((void*)(p)) == (void*)0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (311:39): [True: 0, False: 7.37k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |               #define CHECK_NULL_RETURN_MEMERR(p)   if (IS_NULL(p)) return ONIGERR_MEMORY
  |  |  ------------------
  |  |  |  |  632|      0|#define ONIGERR_MEMORY                                         -5
  |  |  ------------------
  ------------------
 5351|  7.37k|  r = fetch_token(tok, &p, end, env);
 5352|  7.37k|  if (r < 0) return r;
  ------------------
  |  Branch (5352:7): [True: 0, False: 7.37k]
  ------------------
 5353|  7.37k|  r = parse_subexp(&target, tok, term, &p, end, env);
 5354|  7.37k|  if (r < 0) {
  ------------------
  |  Branch (5354:7): [True: 0, False: 7.37k]
  ------------------
 5355|      0|    onig_node_free(target);
 5356|      0|    return r;
 5357|      0|  }
 5358|       |
 5359|  7.37k|  if (NTYPE(*np) == NT_ANCHOR)
  ------------------
  |  |   69|  7.37k|#define NTYPE(node)             ((node)->u.base.type)
  ------------------
                if (NTYPE(*np) == NT_ANCHOR)
  ------------------
  |  |   45|  7.37k|#define NT_ANCHOR      7
  ------------------
  |  Branch (5359:7): [True: 0, False: 7.37k]
  ------------------
 5360|      0|    NANCHOR(*np)->target = target;
  ------------------
  |  |   82|      0|#define NANCHOR(node)      (&((node)->u.anchor))
  ------------------
 5361|  7.37k|  else {
 5362|  7.37k|    NENCLOSE(*np)->target = target;
  ------------------
  |  |   81|  7.37k|#define NENCLOSE(node)     (&((node)->u.enclose))
  ------------------
 5363|  7.37k|    if (NENCLOSE(*np)->type == ENCLOSE_MEMORY) {
  ------------------
  |  |   81|  7.37k|#define NENCLOSE(node)     (&((node)->u.enclose))
  ------------------
                  if (NENCLOSE(*np)->type == ENCLOSE_MEMORY) {
  ------------------
  |  |   94|  7.37k|#define ENCLOSE_MEMORY           (1<<0)
  ------------------
  |  Branch (5363:9): [True: 7.37k, False: 0]
  ------------------
 5364|       |      /* Don't move this to previous of parse_subexp() */
 5365|  7.37k|      r = scan_env_set_mem_node(env, NENCLOSE(*np)->regnum, *np);
  ------------------
  |  |   81|  7.37k|#define NENCLOSE(node)     (&((node)->u.enclose))
  ------------------
 5366|  7.37k|      if (r != 0) return r;
  ------------------
  |  Branch (5366:11): [True: 0, False: 7.37k]
  ------------------
 5367|  7.37k|    }
 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.37k|  }
 5381|       |
 5382|  7.37k|  *src = p;
 5383|  7.37k|  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.37k|}
regparse.c:scan_env_add_mem_entry:
 1016|  7.37k|{
 1017|  7.37k|  int i, need, alloc;
 1018|  7.37k|  Node** p;
 1019|       |
 1020|  7.37k|  need = env->num_mem + 1;
 1021|  7.37k|  if (need > ONIG_MAX_CAPTURE_GROUP_NUM)
  ------------------
  |  |  441|  7.37k|#define ONIG_MAX_CAPTURE_GROUP_NUM         32767
  ------------------
  |  Branch (1021:7): [True: 0, False: 7.37k]
  ------------------
 1022|      0|    return ONIGERR_TOO_MANY_CAPTURE_GROUPS;
  ------------------
  |  |  679|      0|#define ONIGERR_TOO_MANY_CAPTURE_GROUPS                      -210
  ------------------
 1023|  7.37k|  if (need >= SCANENV_MEMNODES_SIZE) {
  ------------------
  |  |  285|  7.37k|#define SCANENV_MEMNODES_SIZE               8
  ------------------
  |  Branch (1023:7): [True: 0, False: 7.37k]
  ------------------
 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.37k|  env->num_mem++;
 1047|  7.37k|  return env->num_mem;
 1048|  7.37k|}
regparse.c:name_add:
  773|  5.92k|{
  774|  5.92k|  int alloc;
  775|  5.92k|  NameEntry* e;
  776|  5.92k|  NameTable* t = (NameTable* )reg->name_table;
  777|       |
  778|  5.92k|  if (name_end - name <= 0)
  ------------------
  |  Branch (778:7): [True: 0, False: 5.92k]
  ------------------
  779|      0|    return ONIGERR_EMPTY_GROUP_NAME;
  ------------------
  |  |  682|      0|#define ONIGERR_EMPTY_GROUP_NAME                             -214
  ------------------
  780|       |
  781|  5.92k|  e = name_find(reg, name, name_end);
  782|  5.92k|  if (IS_NULL(e)) {
  ------------------
  |  |  311|  5.92k|#define IS_NULL(p)                    (((void*)(p)) == (void*)0)
  |  |  ------------------
  |  |  |  Branch (311:39): [True: 5.92k, False: 0]
  |  |  ------------------
  ------------------
  783|  5.92k|# ifdef USE_ST_LIBRARY
  784|  5.92k|    if (IS_NULL(t)) {
  ------------------
  |  |  311|  5.92k|#define IS_NULL(p)                    (((void*)(p)) == (void*)0)
  |  |  ------------------
  |  |  |  Branch (311:39): [True: 1.48k, False: 4.44k]
  |  |  ------------------
  ------------------
  785|  1.48k|      t = onig_st_init_strend_table_with_size(5);
  786|  1.48k|      reg->name_table = (void* )t;
  787|  1.48k|    }
  788|  5.92k|    e = (NameEntry* )xmalloc(sizeof(NameEntry));
  ------------------
  |  |  142|  5.92k|# define xmalloc     malloc
  ------------------
  789|  5.92k|    CHECK_NULL_RETURN_MEMERR(e);
  ------------------
  |  |  314|  5.92k|#define CHECK_NULL_RETURN_MEMERR(p)   if (IS_NULL(p)) return ONIGERR_MEMORY
  |  |  ------------------
  |  |  |  |  311|  5.92k|#define IS_NULL(p)                    (((void*)(p)) == (void*)0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (311:39): [True: 0, False: 5.92k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |               #define CHECK_NULL_RETURN_MEMERR(p)   if (IS_NULL(p)) return ONIGERR_MEMORY
  |  |  ------------------
  |  |  |  |  632|      0|#define ONIGERR_MEMORY                                         -5
  |  |  ------------------
  ------------------
  790|       |
  791|  5.92k|    e->name = strdup_with_null(reg->enc, name, name_end);
  792|  5.92k|    if (IS_NULL(e->name)) {
  ------------------
  |  |  311|  5.92k|#define IS_NULL(p)                    (((void*)(p)) == (void*)0)
  |  |  ------------------
  |  |  |  Branch (311:39): [True: 0, False: 5.92k]
  |  |  ------------------
  ------------------
  793|      0|      xfree(e);
  ------------------
  |  |  145|      0|# define xfree       free
  ------------------
  794|      0|      return ONIGERR_MEMORY;
  ------------------
  |  |  632|      0|#define ONIGERR_MEMORY                                         -5
  ------------------
  795|      0|    }
  796|  5.92k|    onig_st_insert_strend(t, e->name, (e->name + (name_end - name)),
  797|  5.92k|                          (HashDataType )e);
  798|       |
  799|  5.92k|    e->name_len   = name_end - name;
  800|  5.92k|    e->back_num   = 0;
  801|  5.92k|    e->back_alloc = 0;
  802|  5.92k|    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.92k|  }
  849|       |
  850|  5.92k|  if (e->back_num >= 1 &&
  ------------------
  |  Branch (850:7): [True: 0, False: 5.92k]
  ------------------
  851|  5.92k|      ! 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.92k|  e->back_num++;
  858|  5.92k|  if (e->back_num == 1) {
  ------------------
  |  Branch (858:7): [True: 5.92k, False: 0]
  ------------------
  859|  5.92k|    e->back_ref1 = backref;
  860|  5.92k|  }
  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.92k|  return 0;
  884|  5.92k|}
regparse.c:strdup_with_null:
  271|  5.92k|{
  272|  5.92k|  ptrdiff_t slen;
  273|  5.92k|  int term_len, i;
  274|  5.92k|  UChar *r;
  ------------------
  |  |   76|  5.92k|# define UChar OnigUChar
  ------------------
  275|       |
  276|  5.92k|  slen = end - s;
  277|  5.92k|  term_len = ONIGENC_MBC_MINLEN(enc);
  ------------------
  |  |  367|  5.92k|#define ONIGENC_MBC_MINLEN(enc)               ((enc)->min_enc_len)
  ------------------
  278|       |
  279|  5.92k|  r = (UChar* )xmalloc(slen + term_len);
  ------------------
  |  |  142|  5.92k|# define xmalloc     malloc
  ------------------
  280|  5.92k|  CHECK_NULL_RETURN(r);
  ------------------
  |  |  313|  5.92k|#define CHECK_NULL_RETURN(p)          if (IS_NULL(p)) return NULL
  |  |  ------------------
  |  |  |  |  311|  5.92k|#define IS_NULL(p)                    (((void*)(p)) == (void*)0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (311:39): [True: 0, False: 5.92k]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  281|  5.92k|  xmemcpy(r, s, slen);
  ------------------
  |  |  215|  5.92k|#define xmemcpy     memcpy
  ------------------
  282|       |
  283|  11.8k|  for (i = 0; i < term_len; i++)
  ------------------
  |  Branch (283:15): [True: 5.92k, False: 5.92k]
  ------------------
  284|  5.92k|    r[slen + i] = (UChar )0;
  285|       |
  286|  5.92k|  return r;
  287|  5.92k|}
regparse.c:node_new_option:
 1368|  1.42k|{
 1369|  1.42k|  Node* node = node_new_enclose(ENCLOSE_OPTION);
  ------------------
  |  |   95|  1.42k|#define ENCLOSE_OPTION           (1<<1)
  ------------------
 1370|  1.42k|  CHECK_NULL_RETURN(node);
  ------------------
  |  |  313|  1.42k|#define CHECK_NULL_RETURN(p)          if (IS_NULL(p)) return NULL
  |  |  ------------------
  |  |  |  |  311|  1.42k|#define IS_NULL(p)                    (((void*)(p)) == (void*)0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (311:39): [True: 0, False: 1.42k]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1371|  1.42k|  NENCLOSE(node)->option = option;
  ------------------
  |  |   81|  1.42k|#define NENCLOSE(node)     (&((node)->u.enclose))
  ------------------
 1372|  1.42k|  return node;
 1373|  1.42k|}
regparse.c:add_code_range_to_buf0:
 1672|   438k|{
 1673|   438k|  int r, inc_n, pos;
 1674|   438k|  OnigCodePoint low, high, bound, x;
 1675|   438k|  OnigCodePoint n, *data;
 1676|   438k|  BBuf* bbuf;
 1677|       |
 1678|   438k|  if (from > to) {
  ------------------
  |  Branch (1678:7): [True: 0, False: 438k]
  ------------------
 1679|      0|    n = from; from = to; to = n;
 1680|      0|  }
 1681|       |
 1682|   438k|  if (IS_NULL(*pbuf)) {
  ------------------
  |  |  311|   438k|#define IS_NULL(p)                    (((void*)(p)) == (void*)0)
  |  |  ------------------
  |  |  |  Branch (311:39): [True: 17.4k, False: 420k]
  |  |  ------------------
  ------------------
 1683|  17.4k|    r = new_code_range(pbuf);
 1684|  17.4k|    if (r) return r;
  ------------------
  |  Branch (1684:9): [True: 0, False: 17.4k]
  ------------------
 1685|  17.4k|    bbuf = *pbuf;
 1686|  17.4k|    n = 0;
 1687|  17.4k|  }
 1688|   420k|  else {
 1689|   420k|    bbuf = *pbuf;
 1690|   420k|    GET_CODE_POINT(n, bbuf->p);
  ------------------
  |  |  710|   420k|#define GET_CODE_POINT(code,p)   code = *((OnigCodePoint* )(p))
  ------------------
 1691|   420k|  }
 1692|   438k|  data = (OnigCodePoint* )(bbuf->p);
 1693|   438k|  data++;
 1694|       |
 1695|   438k|  bound = (from == 0) ? 0 : n;
  ------------------
  |  Branch (1695:11): [True: 0, False: 438k]
  ------------------
 1696|  1.99M|  for (low = 0; low < bound; ) {
  ------------------
  |  Branch (1696:17): [True: 1.55M, False: 438k]
  ------------------
 1697|  1.55M|    x = (low + bound) >> 1;
 1698|  1.55M|    if (from - 1 > data[x*2 + 1])
  ------------------
  |  Branch (1698:9): [True: 1.55M, False: 0]
  ------------------
 1699|  1.55M|      low = x + 1;
 1700|      0|    else
 1701|      0|      bound = x;
 1702|  1.55M|  }
 1703|       |
 1704|   438k|  high = (to == ONIG_LAST_CODE_POINT) ? n : low;
  ------------------
  |  |  317|   438k|#define ONIG_LAST_CODE_POINT    (~((OnigCodePoint )0))
  ------------------
  |  Branch (1704:10): [True: 0, False: 438k]
  ------------------
 1705|   438k|  for (bound = n; high < bound; ) {
  ------------------
  |  Branch (1705:19): [True: 0, False: 438k]
  ------------------
 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|   438k|  inc_n = low + 1 - high;
 1717|   438k|  if (n + inc_n > ONIG_MAX_MULTI_BYTE_RANGES_NUM)
  ------------------
  |  |  444|   438k|#define ONIG_MAX_MULTI_BYTE_RANGES_NUM     10000
  ------------------
  |  Branch (1717:7): [True: 0, False: 438k]
  ------------------
 1718|      0|    return ONIGERR_TOO_MANY_MULTI_BYTE_RANGES;
  ------------------
  |  |  674|      0|#define ONIGERR_TOO_MANY_MULTI_BYTE_RANGES                   -205
  ------------------
 1719|       |
 1720|   438k|  if (inc_n != 1) {
  ------------------
  |  Branch (1720:7): [True: 0, False: 438k]
  ------------------
 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|   438k|  if (inc_n != 0) {
  ------------------
  |  Branch (1730:7): [True: 438k, False: 0]
  ------------------
 1731|   438k|    int from_pos = SIZE_CODE_POINT * (1 + high * 2);
  ------------------
  |  |  696|   438k|#define SIZE_CODE_POINT       (int )sizeof(OnigCodePoint)
  ------------------
 1732|   438k|    int to_pos   = SIZE_CODE_POINT * (1 + (low + 1) * 2);
  ------------------
  |  |  696|   438k|#define SIZE_CODE_POINT       (int )sizeof(OnigCodePoint)
  ------------------
 1733|       |
 1734|   438k|    if (inc_n > 0) {
  ------------------
  |  Branch (1734:9): [True: 438k, False: 0]
  ------------------
 1735|   438k|      if (high < n) {
  ------------------
  |  Branch (1735:11): [True: 0, False: 438k]
  ------------------
 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|   438k|    }
 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|   438k|  }
 1744|       |
 1745|   438k|  pos = SIZE_CODE_POINT * (1 + low * 2);
  ------------------
  |  |  696|   438k|#define SIZE_CODE_POINT       (int )sizeof(OnigCodePoint)
  ------------------
 1746|   438k|  BBUF_ENSURE_SIZE(bbuf, pos + SIZE_CODE_POINT * 2);
  ------------------
  |  |  478|   438k|#define BBUF_ENSURE_SIZE(buf,size) do{\
  |  |  479|   438k|  unsigned int new_alloc = (buf)->alloc;\
  |  |  480|   489k|  while (new_alloc < (unsigned int )(size)) { new_alloc *= 2; }\
  |  |  ------------------
  |  |  |  Branch (480:10): [True: 51.1k, False: 438k]
  |  |  ------------------
  |  |  481|   438k|  if ((buf)->alloc != new_alloc) {\
  |  |  ------------------
  |  |  |  Branch (481:7): [True: 51.1k, False: 387k]
  |  |  ------------------
  |  |  482|  51.1k|    UChar *tmp;\
  |  |  ------------------
  |  |  |  |   76|  51.1k|# define UChar OnigUChar
  |  |  ------------------
  |  |  483|  51.1k|    tmp = (UChar* )xrealloc((buf)->p, new_alloc);\
  |  |  ------------------
  |  |  |  |  143|  51.1k|# define xrealloc    realloc
  |  |  ------------------
  |  |  484|  51.1k|    if (IS_NULL(tmp)) return(ONIGERR_MEMORY);\
  |  |  ------------------
  |  |  |  |  311|  51.1k|#define IS_NULL(p)                    (((void*)(p)) == (void*)0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (311:39): [True: 0, False: 51.1k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |                   if (IS_NULL(tmp)) return(ONIGERR_MEMORY);\
  |  |  ------------------
  |  |  |  |  632|      0|#define ONIGERR_MEMORY                                         -5
  |  |  ------------------
  |  |  485|  51.1k|    (buf)->p = tmp;\
  |  |  486|  51.1k|    (buf)->alloc = new_alloc;\
  |  |  487|  51.1k|  }\
  |  |  488|   438k|} while (0)
  |  |  ------------------
  |  |  |  Branch (488:10): [Folded - Ignored]
  |  |  ------------------
  ------------------
 1747|   438k|  BBUF_WRITE_CODE_POINT(bbuf, pos, from);
  ------------------
  |  | 1645|   438k|    BBUF_WRITE(bbuf, pos, &(code), SIZE_CODE_POINT)
  |  |  ------------------
  |  |  |  |  490|   438k|#define BBUF_WRITE(buf,pos,bytes,n) do{\
  |  |  |  |  491|   438k|  int used = (pos) + (int )(n);\
  |  |  |  |  492|   438k|  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: 438k]
  |  |  |  |  ------------------
  |  |  |  |  493|   438k|  xmemcpy((buf)->p + (pos), (bytes), (n));\
  |  |  |  |  ------------------
  |  |  |  |  |  |  215|   438k|#define xmemcpy     memcpy
  |  |  |  |  ------------------
  |  |  |  |  494|   438k|  if ((buf)->used < (unsigned int )used) (buf)->used = used;\
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (494:7): [True: 438k, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  495|   438k|} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (495:10): [Folded - Ignored]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1748|   438k|  BBUF_WRITE_CODE_POINT(bbuf, pos + SIZE_CODE_POINT, to);
  ------------------
  |  | 1645|   438k|    BBUF_WRITE(bbuf, pos, &(code), SIZE_CODE_POINT)
  |  |  ------------------
  |  |  |  |  490|   438k|#define BBUF_WRITE(buf,pos,bytes,n) do{\
  |  |  |  |  491|   438k|  int used = (pos) + (int )(n);\
  |  |  |  |  492|   438k|  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: 438k]
  |  |  |  |  ------------------
  |  |  |  |  493|   438k|  xmemcpy((buf)->p + (pos), (bytes), (n));\
  |  |  |  |  ------------------
  |  |  |  |  |  |  215|   438k|#define xmemcpy     memcpy
  |  |  |  |  ------------------
  |  |  |  |  494|   438k|  if ((buf)->used < (unsigned int )used) (buf)->used = used;\
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (494:7): [True: 438k, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  495|   438k|} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (495:10): [Folded - Ignored]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1749|   438k|  n += inc_n;
 1750|   438k|  BBUF_WRITE_CODE_POINT(bbuf, 0, n);
  ------------------
  |  | 1645|   438k|    BBUF_WRITE(bbuf, pos, &(code), SIZE_CODE_POINT)
  |  |  ------------------
  |  |  |  |  490|   438k|#define BBUF_WRITE(buf,pos,bytes,n) do{\
  |  |  |  |  491|   438k|  int used = (pos) + (int )(n);\
  |  |  |  |  492|   438k|  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: 438k]
  |  |  |  |  ------------------
  |  |  |  |  493|   438k|  xmemcpy((buf)->p + (pos), (bytes), (n));\
  |  |  |  |  ------------------
  |  |  |  |  |  |  215|   438k|#define xmemcpy     memcpy
  |  |  |  |  ------------------
  |  |  |  |  494|   438k|  if ((buf)->used < (unsigned int )used) (buf)->used = used;\
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (494:7): [True: 0, False: 438k]
  |  |  |  |  ------------------
  |  |  |  |  495|   438k|} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (495:10): [Folded - Ignored]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1751|       |
 1752|   438k|  return 0;
 1753|   438k|}
regparse.c:new_code_range:
 1653|  17.4k|{
 1654|  17.4k|#define INIT_MULTI_BYTE_RANGE_SIZE  (SIZE_CODE_POINT * 5)
 1655|  17.4k|  int r;
 1656|  17.4k|  OnigCodePoint n;
 1657|  17.4k|  BBuf* bbuf;
 1658|       |
 1659|  17.4k|  bbuf = *pbuf = (BBuf* )xmalloc(sizeof(BBuf));
  ------------------
  |  |  142|  17.4k|# define xmalloc     malloc
  ------------------
 1660|  17.4k|  CHECK_NULL_RETURN_MEMERR(*pbuf);
  ------------------
  |  |  314|  17.4k|#define CHECK_NULL_RETURN_MEMERR(p)   if (IS_NULL(p)) return ONIGERR_MEMORY
  |  |  ------------------
  |  |  |  |  311|  17.4k|#define IS_NULL(p)                    (((void*)(p)) == (void*)0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (311:39): [True: 0, False: 17.4k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |               #define CHECK_NULL_RETURN_MEMERR(p)   if (IS_NULL(p)) return ONIGERR_MEMORY
  |  |  ------------------
  |  |  |  |  632|      0|#define ONIGERR_MEMORY                                         -5
  |  |  ------------------
  ------------------
 1661|  17.4k|  r = BBUF_INIT(*pbuf, INIT_MULTI_BYTE_RANGE_SIZE);
  ------------------
  |  |  460|  17.4k|#define BBUF_INIT(buf,size)    onig_bbuf_init((BBuf* )(buf), (size))
  ------------------
 1662|  17.4k|  if (r) return r;
  ------------------
  |  Branch (1662:7): [True: 0, False: 17.4k]
  ------------------
 1663|       |
 1664|  17.4k|  n = 0;
 1665|  17.4k|  BBUF_WRITE_CODE_POINT(bbuf, 0, n);
  ------------------
  |  | 1645|  17.4k|    BBUF_WRITE(bbuf, pos, &(code), SIZE_CODE_POINT)
  |  |  ------------------
  |  |  |  |  490|  17.4k|#define BBUF_WRITE(buf,pos,bytes,n) do{\
  |  |  |  |  491|  17.4k|  int used = (pos) + (int )(n);\
  |  |  |  |  492|  17.4k|  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: 17.4k]
  |  |  |  |  ------------------
  |  |  |  |  493|  17.4k|  xmemcpy((buf)->p + (pos), (bytes), (n));\
  |  |  |  |  ------------------
  |  |  |  |  |  |  215|  17.4k|#define xmemcpy     memcpy
  |  |  |  |  ------------------
  |  |  |  |  494|  17.4k|  if ((buf)->used < (unsigned int )used) (buf)->used = used;\
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (494:7): [True: 17.4k, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  495|  17.4k|} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (495:10): [Folded - Ignored]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1666|  17.4k|  return 0;
 1667|  17.4k|}
regparse.c:bitset_set_range:
  193|  17.4k|{
  194|  17.4k|  int i;
  195|  2.24M|  for (i = from; i <= to && i < SINGLE_BYTE_SIZE; i++) {
  ------------------
  |  |  426|  2.23M|#define SINGLE_BYTE_SIZE   (1 << BITS_PER_BYTE)
  |  |  ------------------
  |  |  |  |  425|  2.23M|#define BITS_PER_BYTE      8
  |  |  ------------------
  ------------------
  |  Branch (195:18): [True: 2.23M, False: 17.4k]
  |  Branch (195:29): [True: 2.23M, False: 0]
  ------------------
  196|  2.23M|    BITSET_SET_BIT_CHKDUP(bs, i);
  ------------------
  |  |  176|  2.23M|#define BITSET_SET_BIT_CHKDUP(bs, pos) do { \
  |  |  177|  2.23M|  if (BITSET_AT(bs, pos)) CC_DUP_WARN(env, pos, pos); \
  |  |  ------------------
  |  |  |  |  448|  2.23M|#define BITSET_AT(bs, pos)         (BS_ROOM(bs,pos) & BS_BIT(pos))
  |  |  |  |  ------------------
  |  |  |  |  |  |  445|  2.23M|#define BS_ROOM(bs,pos)            (bs)[(int )(pos) / BITS_IN_ROOM]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  427|  2.23M|#define BITS_IN_ROOM       ((int )sizeof(Bits) * BITS_PER_BYTE)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  425|  2.23M|#define BITS_PER_BYTE      8
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |               #define BITSET_AT(bs, pos)         (BS_ROOM(bs,pos) & BS_BIT(pos))
  |  |  |  |  ------------------
  |  |  |  |  |  |  446|  2.23M|#define BS_BIT(pos)                (1U << ((int )(pos) % BITS_IN_ROOM))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  427|  2.23M|#define BITS_IN_ROOM       ((int )sizeof(Bits) * BITS_PER_BYTE)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  425|  2.23M|#define BITS_PER_BYTE      8
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (448:36): [True: 0, False: 2.23M]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  178|  2.23M|  BS_ROOM(bs, pos) |= BS_BIT(pos); \
  |  |  ------------------
  |  |  |  |  445|  2.23M|#define BS_ROOM(bs,pos)            (bs)[(int )(pos) / BITS_IN_ROOM]
  |  |  |  |  ------------------
  |  |  |  |  |  |  427|  2.23M|#define BITS_IN_ROOM       ((int )sizeof(Bits) * BITS_PER_BYTE)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  425|  2.23M|#define BITS_PER_BYTE      8
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |                 BS_ROOM(bs, pos) |= BS_BIT(pos); \
  |  |  ------------------
  |  |  |  |  446|  2.23M|#define BS_BIT(pos)                (1U << ((int )(pos) % BITS_IN_ROOM))
  |  |  |  |  ------------------
  |  |  |  |  |  |  427|  2.23M|#define BITS_IN_ROOM       ((int )sizeof(Bits) * BITS_PER_BYTE)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  425|  2.23M|#define BITS_PER_BYTE      8
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  179|  2.23M|} while (0)
  |  |  ------------------
  |  |  |  Branch (179:10): [Folded - Ignored]
  |  |  ------------------
  ------------------
  197|  2.23M|  }
  198|  17.4k|}
regparse.c:add_code_range_to_buf:
 1757|   438k|{
 1758|   438k|  return add_code_range_to_buf0(pbuf, env, from, to, 1);
 1759|   438k|}
regparse.c:node_new_cclass:
 1141|  32.9k|{
 1142|  32.9k|  Node* node = node_new();
 1143|  32.9k|  CHECK_NULL_RETURN(node);
  ------------------
  |  |  313|  32.9k|#define CHECK_NULL_RETURN(p)          if (IS_NULL(p)) return NULL
  |  |  ------------------
  |  |  |  |  311|  32.9k|#define IS_NULL(p)                    (((void*)(p)) == (void*)0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (311:39): [True: 0, False: 32.9k]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1144|       |
 1145|  32.9k|  SET_NTYPE(node, NT_CCLASS);
  ------------------
  |  |   71|  32.9k|    do { \
  |  |   72|  32.9k|	int value = ntype; \
  |  |   73|  32.9k|	memcpy(&((node)->u.base.type), &value, sizeof(int)); \
  |  |   74|  32.9k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (74:14): [Folded - Ignored]
  |  |  ------------------
  ------------------
 1146|  32.9k|  initialize_cclass(NCCLASS(node));
  ------------------
  |  |   77|  32.9k|#define NCCLASS(node)      (&((node)->u.cclass))
  ------------------
 1147|  32.9k|  return node;
 1148|  32.9k|}
regparse.c:initialize_cclass:
 1132|  67.7k|{
 1133|  67.7k|  BITSET_CLEAR(cc->bs);
  ------------------
  |  |  440|  67.7k|#define BITSET_CLEAR(bs) do {\
  |  |  441|  67.7k|  int i;\
  |  |  442|   610k|  for (i = 0; i < BITSET_SIZE; i++) { (bs)[i] = 0; }	\
  |  |  ------------------
  |  |  |  |  428|   610k|#define BITSET_SIZE        (SINGLE_BYTE_SIZE / BITS_IN_ROOM)
  |  |  |  |  ------------------
  |  |  |  |  |  |  426|   610k|#define SINGLE_BYTE_SIZE   (1 << BITS_PER_BYTE)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  425|   610k|#define BITS_PER_BYTE      8
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |               #define BITSET_SIZE        (SINGLE_BYTE_SIZE / BITS_IN_ROOM)
  |  |  |  |  ------------------
  |  |  |  |  |  |  427|   610k|#define BITS_IN_ROOM       ((int )sizeof(Bits) * BITS_PER_BYTE)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  425|   610k|#define BITS_PER_BYTE      8
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  |  Branch (442:15): [True: 542k, False: 67.7k]
  |  |  ------------------
  |  |  443|  67.7k|} while (0)
  |  |  ------------------
  |  |  |  Branch (443:10): [Folded - Ignored]
  |  |  ------------------
  ------------------
 1134|       |  /* cc->base.flags = 0; */
 1135|  67.7k|  cc->flags = 0;
 1136|  67.7k|  cc->mbuf  = NULL;
 1137|  67.7k|}
regparse.c:add_ctype_to_cc:
 4138|  17.4k|{
 4139|  17.4k|  int maxcode;
 4140|  17.4k|  int c, r;
 4141|  17.4k|  const OnigCodePoint *ranges;
 4142|  17.4k|  OnigCodePoint sb_out;
 4143|  17.4k|  OnigEncoding enc = env->enc;
 4144|       |
 4145|  17.4k|  r = ONIGENC_GET_CTYPE_CODE_RANGE(enc, ctype, &sb_out, &ranges);
  ------------------
  |  |  407|  17.4k|        (enc)->get_ctype_code_range(ctype,sbout,ranges,enc)
  ------------------
 4146|  17.4k|  if (r == 0) {
  ------------------
  |  Branch (4146:7): [True: 17.4k, False: 0]
  ------------------
 4147|  17.4k|    if (ascii_range) {
  ------------------
  |  Branch (4147:9): [True: 17.4k, False: 0]
  ------------------
 4148|  17.4k|      CClassNode ccwork;
 4149|  17.4k|      initialize_cclass(&ccwork);
 4150|  17.4k|      r = add_ctype_to_cc_by_range(&ccwork, ctype, not, env, sb_out,
 4151|  17.4k|				   ranges);
 4152|  17.4k|      if (r == 0) {
  ------------------
  |  Branch (4152:11): [True: 17.4k, False: 0]
  ------------------
 4153|  17.4k|	if (not) {
  ------------------
  |  Branch (4153:6): [True: 0, False: 17.4k]
  ------------------
 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|  17.4k|	else {
 4157|  17.4k|	  CClassNode ccascii;
 4158|  17.4k|	  initialize_cclass(&ccascii);
 4159|  17.4k|	  if (ONIGENC_MBC_MINLEN(env->enc) > 1) {
  ------------------
  |  |  367|  17.4k|#define ONIGENC_MBC_MINLEN(enc)               ((enc)->min_enc_len)
  ------------------
  |  Branch (4159:8): [True: 0, False: 17.4k]
  ------------------
 4160|      0|	    r = add_code_range(&(ccascii.mbuf), env, 0x00, 0x7F);
 4161|      0|	  }
 4162|  17.4k|	  else {
 4163|  17.4k|	    bitset_set_range(env, ccascii.bs, 0x00, 0x7F);
 4164|  17.4k|	    r = 0;
 4165|  17.4k|	  }
 4166|  17.4k|	  if (r == 0) {
  ------------------
  |  Branch (4166:8): [True: 17.4k, False: 0]
  ------------------
 4167|  17.4k|	    r = and_cclass(&ccwork, &ccascii, env);
 4168|  17.4k|	  }
 4169|  17.4k|	  if (IS_NOT_NULL(ccascii.mbuf)) bbuf_free(ccascii.mbuf);
  ------------------
  |  |  312|  17.4k|#define IS_NOT_NULL(p)                (((void*)(p)) != (void*)0)
  |  |  ------------------
  |  |  |  Branch (312:39): [True: 0, False: 17.4k]
  |  |  ------------------
  ------------------
 4170|  17.4k|	}
 4171|  17.4k|	if (r == 0) {
  ------------------
  |  Branch (4171:6): [True: 17.4k, False: 0]
  ------------------
 4172|  17.4k|	  r = or_cclass(cc, &ccwork, env);
 4173|  17.4k|	}
 4174|  17.4k|	if (IS_NOT_NULL(ccwork.mbuf)) bbuf_free(ccwork.mbuf);
  ------------------
  |  |  312|  17.4k|#define IS_NOT_NULL(p)                (((void*)(p)) != (void*)0)
  |  |  ------------------
  |  |  |  Branch (312:39): [True: 0, False: 17.4k]
  |  |  ------------------
  ------------------
 4175|  17.4k|      }
 4176|  17.4k|    }
 4177|      0|    else {
 4178|      0|      r = add_ctype_to_cc_by_range(cc, ctype, not, env, sb_out, ranges);
 4179|      0|    }
 4180|  17.4k|    return r;
 4181|  17.4k|  }
 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|  17.4k|{
 4068|  17.4k|  int i, r;
 4069|  17.4k|  OnigCodePoint j;
 4070|       |
 4071|  17.4k|  int n = ONIGENC_CODE_RANGE_NUM(mbr);
  ------------------
  |  |  139|  17.4k|#define ONIGENC_CODE_RANGE_NUM(range)     ((int )range[0])
  ------------------
 4072|       |
 4073|  17.4k|  if (not == 0) {
  ------------------
  |  Branch (4073:7): [True: 17.4k, False: 0]
  ------------------
 4074|  46.8k|    for (i = 0; i < n; i++) {
  ------------------
  |  Branch (4074:17): [True: 46.8k, False: 0]
  ------------------
 4075|  46.8k|      for (j = ONIGENC_CODE_RANGE_FROM(mbr, i);
  ------------------
  |  |  140|  46.8k|#define ONIGENC_CODE_RANGE_FROM(range,i)  range[((i)*2) + 1]
  ------------------
 4076|   173k|	  j <= ONIGENC_CODE_RANGE_TO(mbr, i); j++) {
  ------------------
  |  |  141|   173k|#define ONIGENC_CODE_RANGE_TO(range,i)    range[((i)*2) + 2]
  ------------------
  |  Branch (4076:4): [True: 143k, False: 29.4k]
  ------------------
 4077|   143k|	if (j >= sb_out) {
  ------------------
  |  Branch (4077:6): [True: 17.4k, False: 126k]
  ------------------
 4078|  17.4k|	  if (j > ONIGENC_CODE_RANGE_FROM(mbr, i)) {
  ------------------
  |  |  140|  17.4k|#define ONIGENC_CODE_RANGE_FROM(range,i)  range[((i)*2) + 1]
  ------------------
  |  Branch (4078:8): [True: 0, False: 17.4k]
  ------------------
 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|  17.4k|	  goto sb_end;
 4086|  17.4k|	}
 4087|   126k|	BITSET_SET_BIT_CHKDUP(cc->bs, j);
  ------------------
  |  |  176|   126k|#define BITSET_SET_BIT_CHKDUP(bs, pos) do { \
  |  |  177|   126k|  if (BITSET_AT(bs, pos)) CC_DUP_WARN(env, pos, pos); \
  |  |  ------------------
  |  |  |  |  448|   126k|#define BITSET_AT(bs, pos)         (BS_ROOM(bs,pos) & BS_BIT(pos))
  |  |  |  |  ------------------
  |  |  |  |  |  |  445|   126k|#define BS_ROOM(bs,pos)            (bs)[(int )(pos) / BITS_IN_ROOM]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  427|   126k|#define BITS_IN_ROOM       ((int )sizeof(Bits) * BITS_PER_BYTE)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  425|   126k|#define BITS_PER_BYTE      8
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |               #define BITSET_AT(bs, pos)         (BS_ROOM(bs,pos) & BS_BIT(pos))
  |  |  |  |  ------------------
  |  |  |  |  |  |  446|   126k|#define BS_BIT(pos)                (1U << ((int )(pos) % BITS_IN_ROOM))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  427|   126k|#define BITS_IN_ROOM       ((int )sizeof(Bits) * BITS_PER_BYTE)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  425|   126k|#define BITS_PER_BYTE      8
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (448:36): [True: 0, False: 126k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  178|   126k|  BS_ROOM(bs, pos) |= BS_BIT(pos); \
  |  |  ------------------
  |  |  |  |  445|   126k|#define BS_ROOM(bs,pos)            (bs)[(int )(pos) / BITS_IN_ROOM]
  |  |  |  |  ------------------
  |  |  |  |  |  |  427|   126k|#define BITS_IN_ROOM       ((int )sizeof(Bits) * BITS_PER_BYTE)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  425|   126k|#define BITS_PER_BYTE      8
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |                 BS_ROOM(bs, pos) |= BS_BIT(pos); \
  |  |  ------------------
  |  |  |  |  446|   126k|#define BS_BIT(pos)                (1U << ((int )(pos) % BITS_IN_ROOM))
  |  |  |  |  ------------------
  |  |  |  |  |  |  427|   126k|#define BITS_IN_ROOM       ((int )sizeof(Bits) * BITS_PER_BYTE)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  425|   126k|#define BITS_PER_BYTE      8
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  179|   126k|} while (0)
  |  |  ------------------
  |  |  |  Branch (179:10): [Folded - Ignored]
  |  |  ------------------
  ------------------
 4088|   126k|      }
 4089|  46.8k|    }
 4090|       |
 4091|  17.4k|  sb_end:
 4092|   455k|    for ( ; i < n; i++) {
  ------------------
  |  Branch (4092:13): [True: 438k, False: 17.4k]
  ------------------
 4093|   438k|      r = add_code_range_to_buf(&(cc->mbuf), env,
 4094|   438k|                                ONIGENC_CODE_RANGE_FROM(mbr, i),
  ------------------
  |  |  140|   438k|#define ONIGENC_CODE_RANGE_FROM(range,i)  range[((i)*2) + 1]
  ------------------
 4095|   438k|                                ONIGENC_CODE_RANGE_TO(mbr, i));
  ------------------
  |  |  141|   438k|#define ONIGENC_CODE_RANGE_TO(range,i)    range[((i)*2) + 2]
  ------------------
 4096|   438k|      if (r != 0) return r;
  ------------------
  |  Branch (4096:11): [True: 0, False: 438k]
  ------------------
 4097|   438k|    }
 4098|  17.4k|  }
 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|  17.4k|  return 0;
 4134|  17.4k|}
regparse.c:and_cclass:
 1978|  17.4k|{
 1979|  17.4k|  OnigEncoding enc = env->enc;
 1980|  17.4k|  int r, not1, not2;
 1981|  17.4k|  BBuf *buf1, *buf2, *pbuf = 0;
 1982|  17.4k|  BitSetRef bsr1, bsr2;
 1983|  17.4k|  BitSet bs1, bs2;
 1984|       |
 1985|  17.4k|  not1 = IS_NCCLASS_NOT(dest);
  ------------------
  |  |  809|  17.4k|#define IS_NCCLASS_NOT(nd)      IS_NCCLASS_FLAG_ON(nd, FLAG_NCCLASS_NOT)
  |  |  ------------------
  |  |  |  |  802|  17.4k|#define IS_NCCLASS_FLAG_ON(cc,flag) ((NCCLASS_FLAGS(cc) & (flag)) != 0)
  |  |  |  |  ------------------
  |  |  |  |  |  |  799|  17.4k|#define NCCLASS_FLAGS(cc)           ((cc)->flags)
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1986|  17.4k|  bsr1 = dest->bs;
 1987|  17.4k|  buf1 = dest->mbuf;
 1988|  17.4k|  not2 = IS_NCCLASS_NOT(cc);
  ------------------
  |  |  809|  17.4k|#define IS_NCCLASS_NOT(nd)      IS_NCCLASS_FLAG_ON(nd, FLAG_NCCLASS_NOT)
  |  |  ------------------
  |  |  |  |  802|  17.4k|#define IS_NCCLASS_FLAG_ON(cc,flag) ((NCCLASS_FLAGS(cc) & (flag)) != 0)
  |  |  |  |  ------------------
  |  |  |  |  |  |  799|  17.4k|#define NCCLASS_FLAGS(cc)           ((cc)->flags)
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1989|  17.4k|  bsr2 = cc->bs;
 1990|  17.4k|  buf2 = cc->mbuf;
 1991|       |
 1992|  17.4k|  if (not1 != 0) {
  ------------------
  |  Branch (1992:7): [True: 0, False: 17.4k]
  ------------------
 1993|      0|    bitset_invert_to(bsr1, bs1);
 1994|      0|    bsr1 = bs1;
 1995|      0|  }
 1996|  17.4k|  if (not2 != 0) {
  ------------------
  |  Branch (1996:7): [True: 0, False: 17.4k]
  ------------------
 1997|      0|    bitset_invert_to(bsr2, bs2);
 1998|      0|    bsr2 = bs2;
 1999|      0|  }
 2000|  17.4k|  bitset_and(bsr1, bsr2);
 2001|  17.4k|  if (bsr1 != dest->bs) {
  ------------------
  |  Branch (2001:7): [True: 0, False: 17.4k]
  ------------------
 2002|      0|    bitset_copy(dest->bs, bsr1);
 2003|      0|    bsr1 = dest->bs;
 2004|      0|  }
 2005|  17.4k|  if (not1 != 0) {
  ------------------
  |  Branch (2005:7): [True: 0, False: 17.4k]
  ------------------
 2006|      0|    bitset_invert(dest->bs);
 2007|      0|  }
 2008|       |
 2009|  17.4k|  if (! ONIGENC_IS_SINGLEBYTE(enc)) {
  ------------------
  |  |  318|  17.4k|#define ONIGENC_IS_SINGLEBYTE(enc)     (ONIGENC_MBC_MAXLEN(enc) == 1)
  |  |  ------------------
  |  |  |  |  365|  17.4k|#define ONIGENC_MBC_MAXLEN(enc)               ((enc)->max_enc_len)
  |  |  ------------------
  ------------------
  |  Branch (2009:7): [True: 17.4k, False: 0]
  ------------------
 2010|  17.4k|    if (not1 != 0 && not2 != 0) {
  ------------------
  |  Branch (2010:9): [True: 0, False: 17.4k]
  |  Branch (2010:22): [True: 0, False: 0]
  ------------------
 2011|      0|      r = or_code_range_buf(enc, buf1, 0, buf2, 0, &pbuf, env);
 2012|      0|    }
 2013|  17.4k|    else {
 2014|  17.4k|      r = and_code_range_buf(buf1, not1, buf2, not2, &pbuf, env);
 2015|  17.4k|      if (r == 0 && not1 != 0) {
  ------------------
  |  Branch (2015:11): [True: 17.4k, False: 0]
  |  Branch (2015:21): [True: 0, False: 17.4k]
  ------------------
 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|  17.4k|    }
 2022|  17.4k|    if (r != 0) {
  ------------------
  |  Branch (2022:9): [True: 0, False: 17.4k]
  ------------------
 2023|      0|      bbuf_free(pbuf);
 2024|      0|      return r;
 2025|      0|    }
 2026|       |
 2027|  17.4k|    dest->mbuf = pbuf;
 2028|  17.4k|    bbuf_free(buf1);
 2029|  17.4k|    return r;
 2030|  17.4k|  }
 2031|      0|  return 0;
 2032|  17.4k|}
regparse.c:bitset_and:
  225|  17.4k|{
  226|  17.4k|  int i;
  227|   156k|  for (i = 0; i < BITSET_SIZE; i++) { dest[i] &= bs[i]; }
  ------------------
  |  |  428|   156k|#define BITSET_SIZE        (SINGLE_BYTE_SIZE / BITS_IN_ROOM)
  |  |  ------------------
  |  |  |  |  426|   156k|#define SINGLE_BYTE_SIZE   (1 << BITS_PER_BYTE)
  |  |  |  |  ------------------
  |  |  |  |  |  |  425|   156k|#define BITS_PER_BYTE      8
  |  |  |  |  ------------------
  |  |  ------------------
  |  |               #define BITSET_SIZE        (SINGLE_BYTE_SIZE / BITS_IN_ROOM)
  |  |  ------------------
  |  |  |  |  427|   156k|#define BITS_IN_ROOM       ((int )sizeof(Bits) * BITS_PER_BYTE)
  |  |  |  |  ------------------
  |  |  |  |  |  |  425|   156k|#define BITS_PER_BYTE      8
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  |  Branch (227:15): [True: 139k, False: 17.4k]
  ------------------
  228|  17.4k|}
regparse.c:or_code_range_buf:
 1825|  17.4k|{
 1826|  17.4k|  int r;
 1827|  17.4k|  OnigCodePoint i, n1, *data1;
 1828|  17.4k|  OnigCodePoint from, to;
 1829|       |
 1830|  17.4k|  *pbuf = (BBuf* )NULL;
 1831|  17.4k|  if (IS_NULL(bbuf1) && IS_NULL(bbuf2)) {
  ------------------
  |  |  311|  34.8k|#define IS_NULL(p)                    (((void*)(p)) == (void*)0)
  |  |  ------------------
  |  |  |  Branch (311:39): [True: 17.4k, False: 0]
  |  |  ------------------
  ------------------
                if (IS_NULL(bbuf1) && IS_NULL(bbuf2)) {
  ------------------
  |  |  311|  17.4k|#define IS_NULL(p)                    (((void*)(p)) == (void*)0)
  |  |  ------------------
  |  |  |  Branch (311:39): [True: 17.4k, False: 0]
  |  |  ------------------
  ------------------
 1832|  17.4k|    if (not1 != 0 || not2 != 0)
  ------------------
  |  Branch (1832:9): [True: 0, False: 17.4k]
  |  Branch (1832:22): [True: 0, False: 17.4k]
  ------------------
 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|  17.4k|    return 0;
 1835|  17.4k|  }
 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|  17.4k|{
 1922|  17.4k|  int r;
 1923|  17.4k|  OnigCodePoint i, j, n1, n2, *data1, *data2;
 1924|  17.4k|  OnigCodePoint from, to, from1, to1, from2, to2;
 1925|       |
 1926|  17.4k|  *pbuf = (BBuf* )NULL;
 1927|  17.4k|  if (IS_NULL(bbuf1)) {
  ------------------
  |  |  311|  17.4k|#define IS_NULL(p)                    (((void*)(p)) == (void*)0)
  |  |  ------------------
  |  |  |  Branch (311:39): [True: 0, False: 17.4k]
  |  |  ------------------
  ------------------
 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|  17.4k|  else if (IS_NULL(bbuf2)) {
  ------------------
  |  |  311|  17.4k|#define IS_NULL(p)                    (((void*)(p)) == (void*)0)
  |  |  ------------------
  |  |  |  Branch (311:39): [True: 17.4k, False: 0]
  |  |  ------------------
  ------------------
 1933|  17.4k|    if (not2 != 0)
  ------------------
  |  Branch (1933:9): [True: 0, False: 17.4k]
  ------------------
 1934|      0|      return bbuf_clone(pbuf, bbuf1);
 1935|  17.4k|    return 0;
 1936|  17.4k|  }
 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|  17.4k|{
 2037|  17.4k|  OnigEncoding enc = env->enc;
 2038|  17.4k|  int r, not1, not2;
 2039|  17.4k|  BBuf *buf1, *buf2, *pbuf = 0;
 2040|  17.4k|  BitSetRef bsr1, bsr2;
 2041|  17.4k|  BitSet bs1, bs2;
 2042|       |
 2043|  17.4k|  not1 = IS_NCCLASS_NOT(dest);
  ------------------
  |  |  809|  17.4k|#define IS_NCCLASS_NOT(nd)      IS_NCCLASS_FLAG_ON(nd, FLAG_NCCLASS_NOT)
  |  |  ------------------
  |  |  |  |  802|  17.4k|#define IS_NCCLASS_FLAG_ON(cc,flag) ((NCCLASS_FLAGS(cc) & (flag)) != 0)
  |  |  |  |  ------------------
  |  |  |  |  |  |  799|  17.4k|#define NCCLASS_FLAGS(cc)           ((cc)->flags)
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2044|  17.4k|  bsr1 = dest->bs;
 2045|  17.4k|  buf1 = dest->mbuf;
 2046|  17.4k|  not2 = IS_NCCLASS_NOT(cc);
  ------------------
  |  |  809|  17.4k|#define IS_NCCLASS_NOT(nd)      IS_NCCLASS_FLAG_ON(nd, FLAG_NCCLASS_NOT)
  |  |  ------------------
  |  |  |  |  802|  17.4k|#define IS_NCCLASS_FLAG_ON(cc,flag) ((NCCLASS_FLAGS(cc) & (flag)) != 0)
  |  |  |  |  ------------------
  |  |  |  |  |  |  799|  17.4k|#define NCCLASS_FLAGS(cc)           ((cc)->flags)
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2047|  17.4k|  bsr2 = cc->bs;
 2048|  17.4k|  buf2 = cc->mbuf;
 2049|       |
 2050|  17.4k|  if (not1 != 0) {
  ------------------
  |  Branch (2050:7): [True: 0, False: 17.4k]
  ------------------
 2051|      0|    bitset_invert_to(bsr1, bs1);
 2052|      0|    bsr1 = bs1;
 2053|      0|  }
 2054|  17.4k|  if (not2 != 0) {
  ------------------
  |  Branch (2054:7): [True: 0, False: 17.4k]
  ------------------
 2055|      0|    bitset_invert_to(bsr2, bs2);
 2056|      0|    bsr2 = bs2;
 2057|      0|  }
 2058|  17.4k|  bitset_or(bsr1, bsr2);
 2059|  17.4k|  if (bsr1 != dest->bs) {
  ------------------
  |  Branch (2059:7): [True: 0, False: 17.4k]
  ------------------
 2060|      0|    bitset_copy(dest->bs, bsr1);
 2061|      0|    bsr1 = dest->bs;
 2062|      0|  }
 2063|  17.4k|  if (not1 != 0) {
  ------------------
  |  Branch (2063:7): [True: 0, False: 17.4k]
  ------------------
 2064|      0|    bitset_invert(dest->bs);
 2065|      0|  }
 2066|       |
 2067|  17.4k|  if (! ONIGENC_IS_SINGLEBYTE(enc)) {
  ------------------
  |  |  318|  17.4k|#define ONIGENC_IS_SINGLEBYTE(enc)     (ONIGENC_MBC_MAXLEN(enc) == 1)
  |  |  ------------------
  |  |  |  |  365|  17.4k|#define ONIGENC_MBC_MAXLEN(enc)               ((enc)->max_enc_len)
  |  |  ------------------
  ------------------
  |  Branch (2067:7): [True: 17.4k, False: 0]
  ------------------
 2068|  17.4k|    if (not1 != 0 && not2 != 0) {
  ------------------
  |  Branch (2068:9): [True: 0, False: 17.4k]
  |  Branch (2068:22): [True: 0, False: 0]
  ------------------
 2069|      0|      r = and_code_range_buf(buf1, 0, buf2, 0, &pbuf, env);
 2070|      0|    }
 2071|  17.4k|    else {
 2072|  17.4k|      r = or_code_range_buf(enc, buf1, not1, buf2, not2, &pbuf, env);
 2073|  17.4k|      if (r == 0 && not1 != 0) {
  ------------------
  |  Branch (2073:11): [True: 17.4k, False: 0]
  |  Branch (2073:21): [True: 0, False: 17.4k]
  ------------------
 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|  17.4k|    }
 2080|  17.4k|    if (r != 0) {
  ------------------
  |  Branch (2080:9): [True: 0, False: 17.4k]
  ------------------
 2081|      0|      bbuf_free(pbuf);
 2082|      0|      return r;
 2083|      0|    }
 2084|       |
 2085|  17.4k|    dest->mbuf = pbuf;
 2086|  17.4k|    bbuf_free(buf1);
 2087|  17.4k|    return r;
 2088|  17.4k|  }
 2089|      0|  else
 2090|      0|    return 0;
 2091|  17.4k|}
regparse.c:bitset_or:
  232|  17.4k|{
  233|  17.4k|  int i;
  234|   156k|  for (i = 0; i < BITSET_SIZE; i++) { dest[i] |= bs[i]; }
  ------------------
  |  |  428|   156k|#define BITSET_SIZE        (SINGLE_BYTE_SIZE / BITS_IN_ROOM)
  |  |  ------------------
  |  |  |  |  426|   156k|#define SINGLE_BYTE_SIZE   (1 << BITS_PER_BYTE)
  |  |  |  |  ------------------
  |  |  |  |  |  |  425|   156k|#define BITS_PER_BYTE      8
  |  |  |  |  ------------------
  |  |  ------------------
  |  |               #define BITSET_SIZE        (SINGLE_BYTE_SIZE / BITS_IN_ROOM)
  |  |  ------------------
  |  |  |  |  427|   156k|#define BITS_IN_ROOM       ((int )sizeof(Bits) * BITS_PER_BYTE)
  |  |  |  |  ------------------
  |  |  |  |  |  |  425|   156k|#define BITS_PER_BYTE      8
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  |  Branch (234:15): [True: 139k, False: 17.4k]
  ------------------
  235|  17.4k|}
regparse.c:parse_char_class:
 4562|  20.8k|{
 4563|  20.8k|  int r, neg, len, fetched, and_start;
 4564|  20.8k|  OnigCodePoint v, vs;
 4565|  20.8k|  UChar *p;
  ------------------
  |  |   76|  20.8k|# define UChar OnigUChar
  ------------------
 4566|  20.8k|  Node* node;
 4567|  20.8k|  Node* asc_node;
 4568|  20.8k|  CClassNode *cc, *prev_cc;
 4569|  20.8k|  CClassNode *asc_cc, *asc_prev_cc;
 4570|  20.8k|  CClassNode work_cc, asc_work_cc;
 4571|       |
 4572|  20.8k|  enum CCSTATE state;
 4573|  20.8k|  enum CCVALTYPE val_type, in_type;
 4574|  20.8k|  int val_israw, in_israw;
 4575|       |
 4576|  20.8k|  *np = *asc_np = NULL_NODE;
  ------------------
  |  |  283|  20.8k|#define NULL_NODE  ((Node* )0)
  ------------------
 4577|  20.8k|  env->parse_depth++;
 4578|  20.8k|  if (env->parse_depth > ParseDepthLimit)
  ------------------
  |  Branch (4578:7): [True: 0, False: 20.8k]
  ------------------
 4579|      0|    return ONIGERR_PARSE_DEPTH_LIMIT_OVER;
  ------------------
  |  |  639|      0|#define ONIGERR_PARSE_DEPTH_LIMIT_OVER                        -16
  ------------------
 4580|  20.8k|  prev_cc = asc_prev_cc = (CClassNode* )NULL;
 4581|  20.8k|  r = fetch_token_in_cc(tok, src, end, env);
 4582|  20.8k|  if (r == TK_CHAR && tok->u.c == '^' && tok->escaped == 0) {
  ------------------
  |  Branch (4582:7): [True: 9.45k, False: 11.3k]
  |  Branch (4582:23): [True: 7.99k, False: 1.45k]
  |  Branch (4582:42): [True: 7.99k, False: 0]
  ------------------
 4583|  7.99k|    neg = 1;
 4584|  7.99k|    r = fetch_token_in_cc(tok, src, end, env);
 4585|  7.99k|  }
 4586|  12.8k|  else {
 4587|  12.8k|    neg = 0;
 4588|  12.8k|  }
 4589|       |
 4590|  20.8k|  if (r < 0) return r;
  ------------------
  |  Branch (4590:7): [True: 0, False: 20.8k]
  ------------------
 4591|  20.8k|  if (r == TK_CC_CLOSE) {
  ------------------
  |  Branch (4591:7): [True: 0, False: 20.8k]
  ------------------
 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|  20.8k|  *np = node = node_new_cclass();
 4601|  20.8k|  CHECK_NULL_RETURN_MEMERR(node);
  ------------------
  |  |  314|  20.8k|#define CHECK_NULL_RETURN_MEMERR(p)   if (IS_NULL(p)) return ONIGERR_MEMORY
  |  |  ------------------
  |  |  |  |  311|  20.8k|#define IS_NULL(p)                    (((void*)(p)) == (void*)0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (311:39): [True: 0, False: 20.8k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |               #define CHECK_NULL_RETURN_MEMERR(p)   if (IS_NULL(p)) return ONIGERR_MEMORY
  |  |  ------------------
  |  |  |  |  632|      0|#define ONIGERR_MEMORY                                         -5
  |  |  ------------------
  ------------------
 4602|  20.8k|  cc = NCCLASS(node);
  ------------------
  |  |   77|  20.8k|#define NCCLASS(node)      (&((node)->u.cclass))
  ------------------
 4603|       |
 4604|  20.8k|  if (IS_IGNORECASE(env->option)) {
  ------------------
  |  |  396|  20.8k|#define IS_IGNORECASE(option)     ((option) & ONIG_OPTION_IGNORECASE)
  |  |  ------------------
  |  |  |  |  454|  20.8k|#define ONIG_OPTION_IGNORECASE           1U
  |  |  ------------------
  |  |  |  Branch (396:35): [True: 0, False: 20.8k]
  |  |  ------------------
  ------------------
 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|  20.8k|  else {
 4610|  20.8k|    asc_node = NULL_NODE;
  ------------------
  |  |  283|  20.8k|#define NULL_NODE  ((Node* )0)
  ------------------
 4611|  20.8k|    asc_cc = NULL;
 4612|  20.8k|  }
 4613|       |
 4614|  20.8k|  and_start = 0;
 4615|  20.8k|  state = CCS_START;
 4616|  20.8k|  p = *src;
 4617|  75.7k|  while (r != TK_CC_CLOSE) {
  ------------------
  |  Branch (4617:10): [True: 54.9k, False: 20.8k]
  ------------------
 4618|  54.9k|    fetched = 0;
 4619|  54.9k|    switch (r) {
 4620|  32.6k|    case TK_CHAR:
  ------------------
  |  Branch (4620:5): [True: 32.6k, False: 22.3k]
  ------------------
 4621|  32.6k|      if ((tok->u.code >= SINGLE_BYTE_SIZE) ||
  ------------------
  |  |  426|  32.6k|#define SINGLE_BYTE_SIZE   (1 << BITS_PER_BYTE)
  |  |  ------------------
  |  |  |  |  425|  32.6k|#define BITS_PER_BYTE      8
  |  |  ------------------
  ------------------
  |  Branch (4621:11): [True: 0, False: 32.6k]
  ------------------
 4622|  32.6k|	  (len = ONIGENC_CODE_TO_MBCLEN(env->enc, tok->u.c)) > 1) {
  ------------------
  |  |  370|  32.6k|#define ONIGENC_CODE_TO_MBCLEN(enc,code)       (enc)->code_to_mbclen(code,enc)
  ------------------
  |  Branch (4622:4): [True: 0, False: 32.6k]
  ------------------
 4623|      0|	in_type = CCV_CODE_POINT;
 4624|      0|      }
 4625|  32.6k|      else if (len < 0) {
  ------------------
  |  Branch (4625:16): [True: 0, False: 32.6k]
  ------------------
 4626|      0|	r = len;
 4627|      0|	goto err;
 4628|      0|      }
 4629|  32.6k|      else {
 4630|  32.6k|      sb_char:
 4631|  32.6k|	in_type = CCV_SB;
 4632|  32.6k|      }
 4633|  32.6k|      v = (OnigCodePoint )tok->u.c;
 4634|  32.6k|      in_israw = 0;
 4635|  32.6k|      goto val_entry2;
 4636|      0|      break;
 4637|       |
 4638|      0|    case TK_RAW_BYTE:
  ------------------
  |  Branch (4638:5): [True: 0, False: 54.9k]
  ------------------
 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.0k|    case TK_CODE_POINT:
  ------------------
  |  Branch (4702:5): [True: 17.0k, False: 37.9k]
  ------------------
 4703|  17.0k|      v = tok->u.code;
 4704|  17.0k|      in_israw = 1;
 4705|  17.0k|    val_entry:
 4706|  17.0k|      len = ONIGENC_CODE_TO_MBCLEN(env->enc, v);
  ------------------
  |  |  370|  17.0k|#define ONIGENC_CODE_TO_MBCLEN(enc,code)       (enc)->code_to_mbclen(code,enc)
  ------------------
 4707|  17.0k|      if (len < 0) {
  ------------------
  |  Branch (4707:11): [True: 0, False: 17.0k]
  ------------------
 4708|      0|	r = len;
 4709|      0|	goto err;
 4710|      0|      }
 4711|  17.0k|      in_type = (len == 1 ? CCV_SB : CCV_CODE_POINT);
  ------------------
  |  Branch (4711:18): [True: 17.0k, False: 0]
  ------------------
 4712|  49.6k|    val_entry2:
 4713|  49.6k|      r = next_state_val(cc, asc_cc, &vs, v, &val_israw, in_israw, in_type, &val_type,
 4714|  49.6k|			 &state, env);
 4715|  49.6k|      if (r != 0) goto err;
  ------------------
  |  Branch (4715:11): [True: 0, False: 49.6k]
  ------------------
 4716|  49.6k|      break;
 4717|       |
 4718|  49.6k|    case TK_POSIX_BRACKET_OPEN:
  ------------------
  |  Branch (4718:5): [True: 0, False: 54.9k]
  ------------------
 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.32k|    case TK_CHAR_TYPE:
  ------------------
  |  Branch (4731:5): [True: 5.32k, False: 49.6k]
  ------------------
 4732|  5.32k|      r = add_ctype_to_cc(cc, tok->u.prop.ctype, tok->u.prop.not,
 4733|  5.32k|			  IS_ASCII_RANGE(env->option), env);
  ------------------
  |  |  406|  5.32k|#define IS_ASCII_RANGE(option)    ((option) & ONIG_OPTION_ASCII_RANGE)
  |  |  ------------------
  |  |  |  |  470|  5.32k|#define ONIG_OPTION_ASCII_RANGE          (ONIG_OPTION_NOTEOS << 1)
  |  |  |  |  ------------------
  |  |  |  |  |  |  468|  5.32k|#define ONIG_OPTION_NOTEOS               (ONIG_OPTION_NOTBOS << 1)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  467|  5.32k|#define ONIG_OPTION_NOTBOS               (ONIG_OPTION_NOTEOL << 1)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  466|  5.32k|#define ONIG_OPTION_NOTEOL               (ONIG_OPTION_NOTBOL << 1)
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  465|  5.32k|#define ONIG_OPTION_NOTBOL               (ONIG_OPTION_CAPTURE_GROUP << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  463|  5.32k|#define ONIG_OPTION_CAPTURE_GROUP        (ONIG_OPTION_DONT_CAPTURE_GROUP << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  462|  5.32k|#define ONIG_OPTION_DONT_CAPTURE_GROUP   (ONIG_OPTION_NEGATE_SINGLELINE  << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  461|  5.32k|#define ONIG_OPTION_NEGATE_SINGLELINE    (ONIG_OPTION_FIND_NOT_EMPTY     << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  460|  5.32k|#define ONIG_OPTION_FIND_NOT_EMPTY       (ONIG_OPTION_FIND_LONGEST       << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  459|  5.32k|#define ONIG_OPTION_FIND_LONGEST         (ONIG_OPTION_SINGLELINE         << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  458|  5.32k|#define ONIG_OPTION_SINGLELINE           (ONIG_OPTION_MULTILINE          << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  456|  5.32k|#define ONIG_OPTION_MULTILINE            (ONIG_OPTION_EXTEND             << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  455|  5.32k|#define ONIG_OPTION_EXTEND               (ONIG_OPTION_IGNORECASE         << 1)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  454|  5.32k|#define ONIG_OPTION_IGNORECASE           1U
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 4734|  5.32k|      if (r != 0) return r;
  ------------------
  |  Branch (4734:11): [True: 0, False: 5.32k]
  ------------------
 4735|  5.32k|      if (IS_NOT_NULL(asc_cc)) {
  ------------------
  |  |  312|  5.32k|#define IS_NOT_NULL(p)                (((void*)(p)) != (void*)0)
  |  |  ------------------
  |  |  |  Branch (312:39): [True: 0, False: 5.32k]
  |  |  ------------------
  ------------------
 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.32k|    next_class:
 4743|  5.32k|      r = next_state_class(cc, asc_cc, &vs, &val_type, &state, env);
 4744|  5.32k|      if (r != 0) goto err;
  ------------------
  |  Branch (4744:11): [True: 0, False: 5.32k]
  ------------------
 4745|  5.32k|      break;
 4746|       |
 4747|  5.32k|    case TK_CHAR_PROPERTY:
  ------------------
  |  Branch (4747:5): [True: 0, False: 54.9k]
  ------------------
 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: 54.9k]
  ------------------
 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: 54.9k]
  ------------------
 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: 54.9k]
  ------------------
 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: 54.9k]
  ------------------
 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: 54.9k]
  ------------------
 4884|      0|      r = ONIGERR_PARSER_BUG;
  ------------------
  |  |  634|      0|#define ONIGERR_PARSER_BUG                                    -11
  ------------------
 4885|      0|      goto err;
 4886|      0|      break;
 4887|  54.9k|    }
 4888|       |
 4889|  54.9k|    if (fetched)
  ------------------
  |  Branch (4889:9): [True: 0, False: 54.9k]
  ------------------
 4890|      0|      r = tok->type;
 4891|  54.9k|    else {
 4892|  54.9k|      r = fetch_token_in_cc(tok, &p, end, env);
 4893|  54.9k|      if (r < 0) goto err;
  ------------------
  |  Branch (4893:11): [True: 0, False: 54.9k]
  ------------------
 4894|  54.9k|    }
 4895|  54.9k|  }
 4896|       |
 4897|  20.8k|  if (state == CCS_VALUE) {
  ------------------
  |  Branch (4897:7): [True: 20.8k, False: 0]
  ------------------
 4898|  20.8k|    r = next_state_val(cc, asc_cc, &vs, 0, &val_israw, 0, val_type,
 4899|  20.8k|		       &val_type, &state, env);
 4900|  20.8k|    if (r != 0) goto err;
  ------------------
  |  Branch (4900:9): [True: 0, False: 20.8k]
  ------------------
 4901|  20.8k|  }
 4902|       |
 4903|  20.8k|  if (IS_NOT_NULL(prev_cc)) {
  ------------------
  |  |  312|  20.8k|#define IS_NOT_NULL(p)                (((void*)(p)) != (void*)0)
  |  |  ------------------
  |  |  |  Branch (312:39): [True: 0, False: 20.8k]
  |  |  ------------------
  ------------------
 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|  20.8k|  if (neg != 0) {
  ------------------
  |  Branch (4916:7): [True: 7.99k, False: 12.8k]
  ------------------
 4917|  7.99k|    NCCLASS_SET_NOT(cc);
  ------------------
  |  |  807|  7.99k|#define NCCLASS_SET_NOT(nd)     NCCLASS_FLAG_SET(nd, FLAG_NCCLASS_NOT)
  |  |  ------------------
  |  |  |  |  800|  7.99k|#define NCCLASS_FLAG_SET(cc,flag)    (NCCLASS_FLAGS(cc) |= (flag))
  |  |  |  |  ------------------
  |  |  |  |  |  |  799|  7.99k|#define NCCLASS_FLAGS(cc)           ((cc)->flags)
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 4918|  7.99k|    if (IS_NOT_NULL(asc_cc))
  ------------------
  |  |  312|  7.99k|#define IS_NOT_NULL(p)                (((void*)(p)) != (void*)0)
  |  |  ------------------
  |  |  |  Branch (312:39): [True: 0, False: 7.99k]
  |  |  ------------------
  ------------------
 4919|  7.99k|      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|  7.99k|  }
 4921|  12.8k|  else {
 4922|  12.8k|    NCCLASS_CLEAR_NOT(cc);
  ------------------
  |  |  808|  12.8k|#define NCCLASS_CLEAR_NOT(nd)   NCCLASS_FLAG_CLEAR(nd, FLAG_NCCLASS_NOT)
  |  |  ------------------
  |  |  |  |  801|  12.8k|#define NCCLASS_FLAG_CLEAR(cc,flag)  (NCCLASS_FLAGS(cc) &= ~(flag))
  |  |  |  |  ------------------
  |  |  |  |  |  |  799|  12.8k|#define NCCLASS_FLAGS(cc)           ((cc)->flags)
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 4923|  12.8k|    if (IS_NOT_NULL(asc_cc))
  ------------------
  |  |  312|  12.8k|#define IS_NOT_NULL(p)                (((void*)(p)) != (void*)0)
  |  |  ------------------
  |  |  |  Branch (312:39): [True: 0, False: 12.8k]
  |  |  ------------------
  ------------------
 4924|  12.8k|      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|  12.8k|  }
 4926|  20.8k|  if (IS_NCCLASS_NOT(cc) &&
  ------------------
  |  |  809|  20.8k|#define IS_NCCLASS_NOT(nd)      IS_NCCLASS_FLAG_ON(nd, FLAG_NCCLASS_NOT)
  |  |  ------------------
  |  |  |  |  802|  41.6k|#define IS_NCCLASS_FLAG_ON(cc,flag) ((NCCLASS_FLAGS(cc) & (flag)) != 0)
  |  |  |  |  ------------------
  |  |  |  |  |  |  799|  20.8k|#define NCCLASS_FLAGS(cc)           ((cc)->flags)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (802:37): [True: 7.99k, False: 12.8k]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 4927|  20.8k|      IS_SYNTAX_BV(env->syntax, ONIG_SYN_NOT_NEWLINE_IN_NEGATIVE_CC)) {
  ------------------
  |  |  332|  7.99k|#define IS_SYNTAX_BV(syn, bvm)    (((syn)->behavior & (bvm)) != 0)
  |  |  ------------------
  |  |  |  Branch (332:35): [True: 0, False: 7.99k]
  |  |  ------------------
  ------------------
 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|  20.8k|  *src = p;
 4948|  20.8k|  env->parse_depth--;
 4949|  20.8k|  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|  20.8k|}
regparse.c:fetch_token_in_cc:
 2980|  83.7k|{
 2981|  83.7k|  int num;
 2982|  83.7k|  OnigCodePoint c, c2;
 2983|  83.7k|  const OnigSyntaxType* syn = env->syntax;
 2984|  83.7k|  OnigEncoding enc = env->enc;
 2985|  83.7k|  UChar* prev;
  ------------------
  |  |   76|  83.7k|# define UChar OnigUChar
  ------------------
 2986|  83.7k|  UChar* p = *src;
  ------------------
  |  |   76|  83.7k|# define UChar OnigUChar
  ------------------
 2987|  83.7k|  PFETCH_READY;
  ------------------
  |  |  295|  83.7k|# define PFETCH_READY  UChar* pfetch_prev = NULL; (void)pfetch_prev
  |  |  ------------------
  |  |  |  |   76|  83.7k|# define UChar OnigUChar
  |  |  ------------------
  ------------------
 2988|       |
 2989|  83.7k|  if (PEND) {
  ------------------
  |  |  299|  83.7k|#define PEND         (p < end ?  0 : 1)
  |  |  ------------------
  |  |  |  Branch (299:22): [True: 0, False: 83.7k]
  |  |  |  Branch (299:23): [True: 83.7k, False: 0]
  |  |  ------------------
  ------------------
 2990|      0|    tok->type = TK_EOT;
 2991|      0|    return tok->type;
 2992|      0|  }
 2993|       |
 2994|  83.7k|  PFETCH(c);
  ------------------
  |  |  305|  83.7k|#define PFETCH(c)  do { \
  |  |  306|  83.7k|  c = ((enc->max_enc_len == 1) ? *p : ONIGENC_MBC_TO_CODE(enc, p, end)); \
  |  |  ------------------
  |  |  |  |  369|  83.7k|#define ONIGENC_MBC_TO_CODE(enc,p,end)         (enc)->mbc_to_code((p),(end),enc)
  |  |  ------------------
  |  |  |  Branch (306:8): [True: 0, False: 83.7k]
  |  |  ------------------
  |  |  307|  83.7k|  pfetch_prev = p; \
  |  |  308|  83.7k|  p += enclen(enc, p, end); \
  |  |  ------------------
  |  |  |  |   93|  83.7k|#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|  83.7k|#define ONIGENC_MBC_ENC_LEN(enc,p,e)          onigenc_mbclen(p,e,enc)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (93:26): [True: 0, False: 83.7k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  309|  83.7k|} while (0)
  |  |  ------------------
  |  |  |  Branch (309:10): [Folded - Ignored]
  |  |  ------------------
  ------------------
 2995|  83.7k|  tok->type = TK_CHAR;
 2996|  83.7k|  tok->base = 0;
 2997|  83.7k|  tok->u.c  = c;
 2998|  83.7k|  tok->escaped = 0;
 2999|       |
 3000|  83.7k|  if (c == ']') {
  ------------------
  |  Branch (3000:7): [True: 20.8k, False: 62.9k]
  ------------------
 3001|  20.8k|    tok->type = TK_CC_CLOSE;
 3002|  20.8k|  }
 3003|  62.9k|  else if (c == '-') {
  ------------------
  |  Branch (3003:12): [True: 0, False: 62.9k]
  ------------------
 3004|      0|    tok->type = TK_CC_RANGE;
 3005|      0|  }
 3006|  62.9k|  else if (c == MC_ESC(syn)) {
  ------------------
  |  |  761|  62.9k|#define MC_ESC(syn)               (syn)->meta_char_table.esc
  ------------------
  |  Branch (3006:12): [True: 23.7k, False: 39.2k]
  ------------------
 3007|  23.7k|    if (! IS_SYNTAX_BV(syn, ONIG_SYN_BACKSLASH_ESCAPE_IN_CC))
  ------------------
  |  |  332|  23.7k|#define IS_SYNTAX_BV(syn, bvm)    (((syn)->behavior & (bvm)) != 0)
  ------------------
  |  Branch (3007:9): [True: 0, False: 23.7k]
  ------------------
 3008|      0|      goto end;
 3009|       |
 3010|  23.7k|    if (PEND) return ONIGERR_END_PATTERN_AT_ESCAPE;
  ------------------
  |  |  299|  23.7k|#define PEND         (p < end ?  0 : 1)
  |  |  ------------------
  |  |  |  Branch (299:22): [True: 0, False: 23.7k]
  |  |  |  Branch (299:23): [True: 23.7k, False: 0]
  |  |  ------------------
  ------------------
                  if (PEND) return ONIGERR_END_PATTERN_AT_ESCAPE;
  ------------------
  |  |  649|      0|#define ONIGERR_END_PATTERN_AT_ESCAPE                        -104
  ------------------
 3011|       |
 3012|  23.7k|    PFETCH(c);
  ------------------
  |  |  305|  23.7k|#define PFETCH(c)  do { \
  |  |  306|  23.7k|  c = ((enc->max_enc_len == 1) ? *p : ONIGENC_MBC_TO_CODE(enc, p, end)); \
  |  |  ------------------
  |  |  |  |  369|  23.7k|#define ONIGENC_MBC_TO_CODE(enc,p,end)         (enc)->mbc_to_code((p),(end),enc)
  |  |  ------------------
  |  |  |  Branch (306:8): [True: 0, False: 23.7k]
  |  |  ------------------
  |  |  307|  23.7k|  pfetch_prev = p; \
  |  |  308|  23.7k|  p += enclen(enc, p, end); \
  |  |  ------------------
  |  |  |  |   93|  23.7k|#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|  23.7k|#define ONIGENC_MBC_ENC_LEN(enc,p,e)          onigenc_mbclen(p,e,enc)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (93:26): [True: 0, False: 23.7k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  309|  23.7k|} while (0)
  |  |  ------------------
  |  |  |  Branch (309:10): [Folded - Ignored]
  |  |  ------------------
  ------------------
 3013|  23.7k|    tok->escaped = 1;
 3014|  23.7k|    tok->u.c = c;
 3015|  23.7k|    switch (c) {
 3016|      0|    case 'w':
  ------------------
  |  Branch (3016:5): [True: 0, False: 23.7k]
  ------------------
 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: 23.7k]
  ------------------
 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: 23.7k]
  ------------------
 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: 23.7k]
  ------------------
 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.32k|    case 's':
  ------------------
  |  Branch (3036:5): [True: 5.32k, False: 18.3k]
  ------------------
 3037|  5.32k|      tok->type = TK_CHAR_TYPE;
 3038|  5.32k|      tok->u.prop.ctype = ONIGENC_CTYPE_SPACE;
  ------------------
  |  |  303|  5.32k|#define ONIGENC_CTYPE_SPACE     9
  ------------------
 3039|  5.32k|      tok->u.prop.not   = 0;
 3040|  5.32k|      break;
 3041|      0|    case 'S':
  ------------------
  |  Branch (3041:5): [True: 0, False: 23.7k]
  ------------------
 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: 23.7k]
  ------------------
 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: 23.7k]
  ------------------
 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: 23.7k]
  ------------------
 3060|      0|    case 'P':
  ------------------
  |  Branch (3060:5): [True: 0, False: 23.7k]
  ------------------
 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: 23.7k]
  ------------------
 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: 23.7k]
  ------------------
 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: 23.7k]
  ------------------
 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: 23.7k]
  ------------------
 3166|      0|    case '1': case '2': case '3': case '4': case '5': case '6': case '7':
  ------------------
  |  Branch (3166:5): [True: 0, False: 23.7k]
  |  Branch (3166:15): [True: 0, False: 23.7k]
  |  Branch (3166:25): [True: 0, False: 23.7k]
  |  Branch (3166:35): [True: 0, False: 23.7k]
  |  Branch (3166:45): [True: 0, False: 23.7k]
  |  Branch (3166:55): [True: 0, False: 23.7k]
  |  Branch (3166:65): [True: 0, False: 23.7k]
  ------------------
 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.3k|    default:
  ------------------
  |  Branch (3181:5): [True: 18.3k, False: 5.32k]
  ------------------
 3182|  18.3k|      PUNFETCH;
  ------------------
  |  |  300|  18.3k|#define PUNFETCH     p = pfetch_prev
  ------------------
 3183|  18.3k|      num = fetch_escaped_value(&p, end, env, &c2);
 3184|  18.3k|      if (num < 0) return num;
  ------------------
  |  Branch (3184:11): [True: 0, False: 18.3k]
  ------------------
 3185|  18.3k|      if ((OnigCodePoint )tok->u.c != c2) {
  ------------------
  |  Branch (3185:11): [True: 17.0k, False: 1.35k]
  ------------------
 3186|  17.0k|	tok->u.code = (OnigCodePoint )c2;
 3187|  17.0k|	tok->type   = TK_CODE_POINT;
 3188|  17.0k|      }
 3189|  18.3k|      break;
 3190|  23.7k|    }
 3191|  23.7k|  }
 3192|  39.2k|  else if (c == '[') {
  ------------------
  |  Branch (3192:12): [True: 0, False: 39.2k]
  ------------------
 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|  39.2k|  else if (c == '&') {
  ------------------
  |  Branch (3216:12): [True: 0, False: 39.2k]
  ------------------
 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|  83.7k| end:
 3225|  83.7k|  *src = p;
 3226|  83.7k|  return tok->type;
 3227|  83.7k|}
regparse.c:next_state_val:
 4456|  70.4k|{
 4457|  70.4k|  int r;
 4458|       |
 4459|  70.4k|  switch (*state) {
 4460|  54.9k|  case CCS_VALUE:
  ------------------
  |  Branch (4460:3): [True: 54.9k, False: 15.4k]
  ------------------
 4461|  54.9k|    if (*type == CCV_SB) {
  ------------------
  |  Branch (4461:9): [True: 49.6k, False: 5.32k]
  ------------------
 4462|  49.6k|      BITSET_SET_BIT_CHKDUP(cc->bs, (int )(*from));
  ------------------
  |  |  176|  49.6k|#define BITSET_SET_BIT_CHKDUP(bs, pos) do { \
  |  |  177|  49.6k|  if (BITSET_AT(bs, pos)) CC_DUP_WARN(env, pos, pos); \
  |  |  ------------------
  |  |  |  |  448|  49.6k|#define BITSET_AT(bs, pos)         (BS_ROOM(bs,pos) & BS_BIT(pos))
  |  |  |  |  ------------------
  |  |  |  |  |  |  445|  49.6k|#define BS_ROOM(bs,pos)            (bs)[(int )(pos) / BITS_IN_ROOM]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  427|  49.6k|#define BITS_IN_ROOM       ((int )sizeof(Bits) * BITS_PER_BYTE)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  425|  49.6k|#define BITS_PER_BYTE      8
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |               #define BITSET_AT(bs, pos)         (BS_ROOM(bs,pos) & BS_BIT(pos))
  |  |  |  |  ------------------
  |  |  |  |  |  |  446|  49.6k|#define BS_BIT(pos)                (1U << ((int )(pos) % BITS_IN_ROOM))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  427|  49.6k|#define BITS_IN_ROOM       ((int )sizeof(Bits) * BITS_PER_BYTE)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  425|  49.6k|#define BITS_PER_BYTE      8
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (448:36): [True: 0, False: 49.6k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  178|  49.6k|  BS_ROOM(bs, pos) |= BS_BIT(pos); \
  |  |  ------------------
  |  |  |  |  445|  49.6k|#define BS_ROOM(bs,pos)            (bs)[(int )(pos) / BITS_IN_ROOM]
  |  |  |  |  ------------------
  |  |  |  |  |  |  427|  49.6k|#define BITS_IN_ROOM       ((int )sizeof(Bits) * BITS_PER_BYTE)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  425|  49.6k|#define BITS_PER_BYTE      8
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |                 BS_ROOM(bs, pos) |= BS_BIT(pos); \
  |  |  ------------------
  |  |  |  |  446|  49.6k|#define BS_BIT(pos)                (1U << ((int )(pos) % BITS_IN_ROOM))
  |  |  |  |  ------------------
  |  |  |  |  |  |  427|  49.6k|#define BITS_IN_ROOM       ((int )sizeof(Bits) * BITS_PER_BYTE)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  425|  49.6k|#define BITS_PER_BYTE      8
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  179|  49.6k|} while (0)
  |  |  ------------------
  |  |  |  Branch (179:10): [Folded - Ignored]
  |  |  ------------------
  ------------------
 4463|  49.6k|      if (IS_NOT_NULL(asc_cc))
  ------------------
  |  |  312|  49.6k|#define IS_NOT_NULL(p)                (((void*)(p)) != (void*)0)
  |  |  ------------------
  |  |  |  Branch (312:39): [True: 0, False: 49.6k]
  |  |  ------------------
  ------------------
 4464|  49.6k|	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|  49.6k|    }
 4466|  5.32k|    else if (*type == CCV_CODE_POINT) {
  ------------------
  |  Branch (4466:14): [True: 0, False: 5.32k]
  ------------------
 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|  54.9k|    break;
 4475|       |
 4476|  54.9k|  case CCS_RANGE:
  ------------------
  |  Branch (4476:3): [True: 0, False: 70.4k]
  ------------------
 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: 70.4k]
  ------------------
 4522|  15.4k|  case CCS_START:
  ------------------
  |  Branch (4522:3): [True: 15.4k, False: 54.9k]
  ------------------
 4523|  15.4k|    *state = CCS_VALUE;
 4524|  15.4k|    break;
 4525|       |
 4526|      0|  default:
  ------------------
  |  Branch (4526:3): [True: 0, False: 70.4k]
  ------------------
 4527|      0|    break;
 4528|  70.4k|  }
 4529|       |
 4530|  70.4k|  *from_israw = to_israw;
 4531|  70.4k|  *from       = to;
 4532|  70.4k|  *type       = intype;
 4533|  70.4k|  return 0;
 4534|  70.4k|}
regparse.c:next_state_class:
 4423|  5.32k|{
 4424|  5.32k|  int r;
 4425|       |
 4426|  5.32k|  if (*state == CCS_RANGE)
  ------------------
  |  Branch (4426:7): [True: 0, False: 5.32k]
  ------------------
 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.32k|  if (*state == CCS_VALUE && *type != CCV_CLASS) {
  ------------------
  |  Branch (4429:7): [True: 0, False: 5.32k]
  |  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.32k|  *state = CCS_VALUE;
 4446|  5.32k|  *type  = CCV_CLASS;
 4447|  5.32k|  return 0;
 4448|  5.32k|}
regparse.c:is_onechar_cclass:
 6078|  20.8k|{
 6079|  20.8k|  const OnigCodePoint not_found = ONIG_LAST_CODE_POINT;
  ------------------
  |  |  317|  20.8k|#define ONIG_LAST_CODE_POINT    (~((OnigCodePoint )0))
  ------------------
 6080|  20.8k|  OnigCodePoint c = not_found;
 6081|  20.8k|  int i;
 6082|  20.8k|  BBuf *bbuf = cc->mbuf;
 6083|       |
 6084|  20.8k|  if (IS_NCCLASS_NOT(cc)) return 0;
  ------------------
  |  |  809|  20.8k|#define IS_NCCLASS_NOT(nd)      IS_NCCLASS_FLAG_ON(nd, FLAG_NCCLASS_NOT)
  |  |  ------------------
  |  |  |  |  802|  20.8k|#define IS_NCCLASS_FLAG_ON(cc,flag) ((NCCLASS_FLAGS(cc) & (flag)) != 0)
  |  |  |  |  ------------------
  |  |  |  |  |  |  799|  20.8k|#define NCCLASS_FLAGS(cc)           ((cc)->flags)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (802:37): [True: 7.99k, False: 12.8k]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 6085|       |
 6086|       |  /* check bbuf */
 6087|  12.8k|  if (IS_NOT_NULL(bbuf)) {
  ------------------
  |  |  312|  12.8k|#define IS_NOT_NULL(p)                (((void*)(p)) != (void*)0)
  |  |  ------------------
  |  |  |  Branch (312:39): [True: 0, False: 12.8k]
  |  |  ------------------
  ------------------
 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|  22.7k|  for (i = 0; i < BITSET_SIZE; i++) {
  ------------------
  |  |  428|  22.7k|#define BITSET_SIZE        (SINGLE_BYTE_SIZE / BITS_IN_ROOM)
  |  |  ------------------
  |  |  |  |  426|  22.7k|#define SINGLE_BYTE_SIZE   (1 << BITS_PER_BYTE)
  |  |  |  |  ------------------
  |  |  |  |  |  |  425|  22.7k|#define BITS_PER_BYTE      8
  |  |  |  |  ------------------
  |  |  ------------------
  |  |               #define BITSET_SIZE        (SINGLE_BYTE_SIZE / BITS_IN_ROOM)
  |  |  ------------------
  |  |  |  |  427|  22.7k|#define BITS_IN_ROOM       ((int )sizeof(Bits) * BITS_PER_BYTE)
  |  |  |  |  ------------------
  |  |  |  |  |  |  425|  22.7k|#define BITS_PER_BYTE      8
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  |  Branch (6105:15): [True: 22.7k, False: 0]
  ------------------
 6106|  22.7k|    Bits b1 = cc->bs[i];
 6107|  22.7k|    if (b1 != 0) {
  ------------------
  |  Branch (6107:9): [True: 22.7k, False: 0]
  ------------------
 6108|  22.7k|      if (((b1 & (b1 - 1)) == 0) && (c == not_found)) {
  ------------------
  |  Branch (6108:11): [True: 19.8k, False: 2.90k]
  |  Branch (6108:37): [True: 9.90k, False: 9.90k]
  ------------------
 6109|  9.90k|	c = BITS_IN_ROOM * i + countbits(b1 - 1);
  ------------------
  |  |  427|  9.90k|#define BITS_IN_ROOM       ((int )sizeof(Bits) * BITS_PER_BYTE)
  |  |  ------------------
  |  |  |  |  425|  9.90k|#define BITS_PER_BYTE      8
  |  |  ------------------
  ------------------
 6110|  12.8k|      } else {
 6111|  12.8k|	return 0;  /* the character class contains multiple chars */
 6112|  12.8k|      }
 6113|  22.7k|    }
 6114|  22.7k|  }
 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|  9.90k|{
 6069|  9.90k|  bits = (bits & 0x55555555) + ((bits >> 1) & 0x55555555);
 6070|  9.90k|  bits = (bits & 0x33333333) + ((bits >> 2) & 0x33333333);
 6071|  9.90k|  bits = (bits & 0x0f0f0f0f) + ((bits >> 4) & 0x0f0f0f0f);
 6072|  9.90k|  bits = (bits & 0x00ff00ff) + ((bits >> 8) & 0x00ff00ff);
 6073|  9.90k|  return (bits & 0x0000ffff) + ((bits >>16) & 0x0000ffff);
 6074|  9.90k|}
regparse.c:node_new_anychar:
 1165|  13.9k|{
 1166|  13.9k|  Node* node = node_new();
 1167|  13.9k|  CHECK_NULL_RETURN(node);
  ------------------
  |  |  313|  13.9k|#define CHECK_NULL_RETURN(p)          if (IS_NULL(p)) return NULL
  |  |  ------------------
  |  |  |  |  311|  13.9k|#define IS_NULL(p)                    (((void*)(p)) == (void*)0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (311:39): [True: 0, False: 13.9k]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1168|       |
 1169|  13.9k|  SET_NTYPE(node, NT_CANY);
  ------------------
  |  |   71|  13.9k|    do { \
  |  |   72|  13.9k|	int value = ntype; \
  |  |   73|  13.9k|	memcpy(&((node)->u.base.type), &value, sizeof(int)); \
  |  |   74|  13.9k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (74:14): [Folded - Ignored]
  |  |  ------------------
  ------------------
 1170|  13.9k|  return node;
 1171|  13.9k|}
regparse.c:node_new_quantifier:
 1305|  41.1k|{
 1306|  41.1k|  Node* node = node_new();
 1307|  41.1k|  CHECK_NULL_RETURN(node);
  ------------------
  |  |  313|  41.1k|#define CHECK_NULL_RETURN(p)          if (IS_NULL(p)) return NULL
  |  |  ------------------
  |  |  |  |  311|  41.1k|#define IS_NULL(p)                    (((void*)(p)) == (void*)0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (311:39): [True: 0, False: 41.1k]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1308|       |
 1309|  41.1k|  SET_NTYPE(node, NT_QTFR);
  ------------------
  |  |   71|  41.1k|    do { \
  |  |   72|  41.1k|	int value = ntype; \
  |  |   73|  41.1k|	memcpy(&((node)->u.base.type), &value, sizeof(int)); \
  |  |   74|  41.1k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (74:14): [Folded - Ignored]
  |  |  ------------------
  ------------------
 1310|  41.1k|  NQTFR(node)->state  = 0;
  ------------------
  |  |   80|  41.1k|#define NQTFR(node)        (&((node)->u.qtfr))
  ------------------
 1311|  41.1k|  NQTFR(node)->target = NULL;
  ------------------
  |  |   80|  41.1k|#define NQTFR(node)        (&((node)->u.qtfr))
  ------------------
 1312|  41.1k|  NQTFR(node)->lower  = lower;
  ------------------
  |  |   80|  41.1k|#define NQTFR(node)        (&((node)->u.qtfr))
  ------------------
 1313|  41.1k|  NQTFR(node)->upper  = upper;
  ------------------
  |  |   80|  41.1k|#define NQTFR(node)        (&((node)->u.qtfr))
  ------------------
 1314|  41.1k|  NQTFR(node)->greedy = 1;
  ------------------
  |  |   80|  41.1k|#define NQTFR(node)        (&((node)->u.qtfr))
  ------------------
 1315|  41.1k|  NQTFR(node)->target_empty_info = NQ_TARGET_ISNOT_EMPTY;
  ------------------
  |  |   80|  41.1k|#define NQTFR(node)        (&((node)->u.qtfr))
  ------------------
                NQTFR(node)->target_empty_info = NQ_TARGET_ISNOT_EMPTY;
  ------------------
  |  |  122|  41.1k|#define NQ_TARGET_ISNOT_EMPTY     0
  ------------------
 1316|  41.1k|  NQTFR(node)->head_exact        = NULL_NODE;
  ------------------
  |  |   80|  41.1k|#define NQTFR(node)        (&((node)->u.qtfr))
  ------------------
                NQTFR(node)->head_exact        = NULL_NODE;
  ------------------
  |  |  283|  41.1k|#define NULL_NODE  ((Node* )0)
  ------------------
 1317|  41.1k|  NQTFR(node)->next_head_exact   = NULL_NODE;
  ------------------
  |  |   80|  41.1k|#define NQTFR(node)        (&((node)->u.qtfr))
  ------------------
                NQTFR(node)->next_head_exact   = NULL_NODE;
  ------------------
  |  |  283|  41.1k|#define NULL_NODE  ((Node* )0)
  ------------------
 1318|  41.1k|  NQTFR(node)->is_referred       = 0;
  ------------------
  |  |   80|  41.1k|#define NQTFR(node)        (&((node)->u.qtfr))
  ------------------
 1319|  41.1k|  if (by_number != 0)
  ------------------
  |  Branch (1319:7): [True: 0, False: 41.1k]
  ------------------
 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|  41.1k|  return node;
 1327|  41.1k|}
regparse.c:set_quantifier:
 5403|  41.1k|{
 5404|  41.1k|  QtfrNode* qn;
 5405|       |
 5406|  41.1k|  qn = NQTFR(qnode);
  ------------------
  |  |   80|  41.1k|#define NQTFR(node)        (&((node)->u.qtfr))
  ------------------
 5407|  41.1k|  if (qn->lower == 1 && qn->upper == 1) {
  ------------------
  |  Branch (5407:7): [True: 24.4k, False: 16.7k]
  |  Branch (5407:25): [True: 0, False: 24.4k]
  ------------------
 5408|      0|    return 1;
 5409|      0|  }
 5410|       |
 5411|  41.1k|  switch (NTYPE(target)) {
  ------------------
  |  |   69|  41.1k|#define NTYPE(node)             ((node)->u.base.type)
  ------------------
 5412|  1.43k|  case NT_STR:
  ------------------
  |  |   38|  1.43k|#define NT_STR         0
  ------------------
  |  Branch (5412:3): [True: 1.43k, False: 39.7k]
  ------------------
 5413|  1.43k|    if (! group) {
  ------------------
  |  Branch (5413:9): [True: 0, False: 1.43k]
  ------------------
 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.43k|    break;
 5424|       |
 5425|  1.43k|  case NT_QTFR:
  ------------------
  |  |   43|      0|#define NT_QTFR        5
  ------------------
  |  Branch (5425:3): [True: 0, False: 41.1k]
  ------------------
 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|  39.7k|  default:
  ------------------
  |  Branch (5475:3): [True: 39.7k, False: 1.43k]
  ------------------
 5476|  39.7k|    break;
 5477|  41.1k|  }
 5478|       |
 5479|  41.1k|  qn->target = target;
 5480|  41.1k| q_exit:
 5481|  41.1k|  return 0;
 5482|  41.1k|}
regparse.c:node_new_enclose_memory:
 1354|  7.37k|{
 1355|  7.37k|  Node* node = node_new_enclose(ENCLOSE_MEMORY);
  ------------------
  |  |   94|  7.37k|#define ENCLOSE_MEMORY           (1<<0)
  ------------------
 1356|  7.37k|  CHECK_NULL_RETURN(node);
  ------------------
  |  |  313|  7.37k|#define CHECK_NULL_RETURN(p)          if (IS_NULL(p)) return NULL
  |  |  ------------------
  |  |  |  |  311|  7.37k|#define IS_NULL(p)                    (((void*)(p)) == (void*)0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (311:39): [True: 0, False: 7.37k]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1357|  7.37k|  if (is_named != 0)
  ------------------
  |  Branch (1357:7): [True: 5.92k, False: 1.45k]
  ------------------
 1358|  5.92k|    SET_ENCLOSE_STATUS(node, NST_NAMED_GROUP);
  ------------------
  |  |  144|  5.92k|#define SET_ENCLOSE_STATUS(node,f)      (node)->u.enclose.state |=  (f)
  ------------------
 1359|       |
 1360|  7.37k|#ifdef USE_SUBEXP_CALL
 1361|  7.37k|  NENCLOSE(node)->option = option;
  ------------------
  |  |   81|  7.37k|#define NENCLOSE(node)     (&((node)->u.enclose))
  ------------------
 1362|  7.37k|#endif
 1363|  7.37k|  return node;
 1364|  7.37k|}
regparse.c:scan_env_set_mem_node:
 1052|  7.37k|{
 1053|  7.37k|  if (env->num_mem >= num)
  ------------------
  |  Branch (1053:7): [True: 7.37k, False: 0]
  ------------------
 1054|  7.37k|    SCANENV_MEM_NODES(env)[num] = node;
  ------------------
  |  |  287|  7.37k| (IS_NOT_NULL((senv)->mem_nodes_dynamic) ? \
  |  |  ------------------
  |  |  |  |  312|  7.37k|#define IS_NOT_NULL(p)                (((void*)(p)) != (void*)0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (312:39): [True: 0, False: 7.37k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  288|  7.37k|    (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.37k|  return 0;
 1058|  7.37k|}

onig_st_init_table_with_size:
  582|  1.48k|{
  583|  1.48k|    st_table *tab;
  584|  1.48k|    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.48k|    n = get_power2(size);
  600|  1.48k|#ifndef RUBY
  601|  1.48k|    if (n < 0)
  ------------------
  |  Branch (601:9): [True: 0, False: 1.48k]
  ------------------
  602|      0|        return NULL;
  603|  1.48k|#endif
  604|  1.48k|    tab = (st_table *) malloc(sizeof (st_table));
  605|  1.48k|#ifndef RUBY
  606|  1.48k|    if (tab == NULL)
  ------------------
  |  Branch (606:9): [True: 0, False: 1.48k]
  ------------------
  607|      0|        return NULL;
  608|  1.48k|#endif
  609|  1.48k|    tab->type = type;
  610|  1.48k|    tab->entry_power = n;
  611|  1.48k|    tab->bin_power = features[n].bin_power;
  612|  1.48k|    tab->size_ind = features[n].size_ind;
  613|  1.48k|    if (n <= MAX_POWER2_FOR_TABLES_WITHOUT_BINS)
  ------------------
  |  |  343|  1.48k|#define MAX_POWER2_FOR_TABLES_WITHOUT_BINS 4
  ------------------
  |  Branch (613:9): [True: 1.48k, False: 0]
  ------------------
  614|  1.48k|        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.48k|    tab->entries = (st_table_entry *) malloc(get_allocated_entries(tab)
  625|  1.48k|					     * sizeof(st_table_entry));
  626|  1.48k|#ifndef RUBY
  627|  1.48k|    if (tab->entries == NULL) {
  ------------------
  |  Branch (627:9): [True: 0, False: 1.48k]
  ------------------
  628|      0|        st_free_table(tab);
  ------------------
  |  |  193|      0|# define st_free_table                  onig_st_free_table
  ------------------
  629|      0|        return NULL;
  630|      0|    }
  631|  1.48k|#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.48k|    make_tab_empty(tab);
  639|  1.48k|    tab->rebuilds_num = 0;
  640|       |#ifdef ST_DEBUG
  641|       |    st_check(tab);
  642|       |#endif
  643|  1.48k|    return tab;
  644|  1.48k|}
onig_st_free_table:
  716|  1.48k|{
  717|  1.48k|    if (tab->bins != NULL)
  ------------------
  |  Branch (717:9): [True: 0, False: 1.48k]
  ------------------
  718|      0|        free(tab->bins);
  719|  1.48k|    free(tab->entries);
  720|  1.48k|    free(tab);
  721|  1.48k|}
onig_st_lookup:
 1110|  4.44k|{
 1111|  4.44k|    st_index_t bin;
 1112|  4.44k|    st_hash_t hash = do_hash(key, tab);
 1113|       |
 1114|  4.44k| retry:
 1115|  4.44k|    if (tab->bins == NULL) {
  ------------------
  |  Branch (1115:9): [True: 4.44k, False: 0]
  ------------------
 1116|  4.44k|        bin = find_entry(tab, hash, key);
 1117|  4.44k|	if (EXPECT(bin == REBUILT_TABLE_ENTRY_IND, 0))
  ------------------
  |  |  117|  4.44k|#define EXPECT(expr, val) __builtin_expect(expr, val)
  |  |  ------------------
  |  |  |  Branch (117:27): [True: 0, False: 4.44k]
  |  |  ------------------
  ------------------
 1118|      0|	    goto retry;
 1119|  4.44k|	if (bin == UNDEFINED_ENTRY_IND)
  ------------------
  |  |  399|  4.44k|#define UNDEFINED_ENTRY_IND (~(st_index_t) 0)
  ------------------
  |  Branch (1119:6): [True: 4.44k, False: 0]
  ------------------
 1120|  4.44k|	    return 0;
 1121|  4.44k|    }
 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.44k|}
onig_st_insert:
 1182|  5.92k|{
 1183|  5.92k|    st_table_entry *entry;
 1184|  5.92k|    st_index_t bin;
 1185|  5.92k|    st_index_t ind;
 1186|  5.92k|    st_hash_t hash_value;
 1187|  5.92k|    st_index_t bin_ind;
 1188|  5.92k|    int new_p;
 1189|       |
 1190|  5.92k|    hash_value = do_hash(key, tab);
 1191|  5.92k| retry:
 1192|  5.92k|    rebuild_table_if_necessary(tab);
 1193|  5.92k|    if (tab->bins == NULL) {
  ------------------
  |  Branch (1193:9): [True: 5.92k, False: 0]
  ------------------
 1194|  5.92k|        bin = find_entry(tab, hash_value, key);
 1195|  5.92k|	if (EXPECT(bin == REBUILT_TABLE_ENTRY_IND, 0))
  ------------------
  |  |  117|  5.92k|#define EXPECT(expr, val) __builtin_expect(expr, val)
  |  |  ------------------
  |  |  |  Branch (117:27): [True: 0, False: 5.92k]
  |  |  ------------------
  ------------------
 1196|      0|	    goto retry;
 1197|  5.92k|	new_p = bin == UNDEFINED_ENTRY_IND;
  ------------------
  |  |  399|  5.92k|#define UNDEFINED_ENTRY_IND (~(st_index_t) 0)
  ------------------
 1198|  5.92k|	if (new_p)
  ------------------
  |  Branch (1198:6): [True: 5.92k, False: 0]
  ------------------
 1199|  5.92k|	    tab->num_entries++;
 1200|  5.92k|	bin_ind = UNDEFINED_BIN_IND;
  ------------------
  |  |  400|  5.92k|#define UNDEFINED_BIN_IND (~(st_index_t) 0)
  ------------------
 1201|  5.92k|    }
 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.92k|    if (new_p) {
  ------------------
  |  Branch (1210:9): [True: 5.92k, False: 0]
  ------------------
 1211|  5.92k|        st_assert(tab->entries_bound < get_allocated_entries(tab));
  ------------------
  |  |  128|  5.92k|#define st_assert(cond) ((void)(0 && (cond)))
  |  |  ------------------
  |  |  |  Branch (128:33): [Folded - Ignored]
  |  |  |  Branch (128:38): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 1212|  5.92k|	ind = tab->entries_bound++;
 1213|  5.92k|        entry = &tab->entries[ind];
 1214|  5.92k|        entry->hash = hash_value;
 1215|  5.92k|        entry->key = key;
 1216|  5.92k|        entry->record = value;
 1217|  5.92k|	if (bin_ind != UNDEFINED_BIN_IND)
  ------------------
  |  |  400|  5.92k|#define UNDEFINED_BIN_IND (~(st_index_t) 0)
  ------------------
  |  Branch (1217:6): [True: 0, False: 5.92k]
  ------------------
 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.92k|        return 0;
 1223|  5.92k|    }
 1224|      0|    tab->entries[bin].record = value;
 1225|       |#ifdef ST_DEBUG
 1226|       |    st_check(tab);
 1227|       |#endif
 1228|      0|    return 1;
 1229|  5.92k|}
onig_st_foreach:
 1723|  1.48k|{
 1724|  1.48k|    return st_general_foreach(tab, func, NULL, arg, FALSE);
  ------------------
  |  |   77|  1.48k|# define FALSE   0
  ------------------
 1725|  1.48k|}
st.c:get_power2:
  348|  1.48k|{
  349|  1.48k|    unsigned int n;
  350|       |
  351|  5.92k|    for (n = 0; size != 0; n++)
  ------------------
  |  Branch (351:17): [True: 4.44k, False: 1.48k]
  ------------------
  352|  4.44k|        size >>= 1;
  353|  1.48k|    if (n <= MAX_POWER2)
  ------------------
  |  |  210|  1.48k|#define MAX_POWER2 62
  ------------------
  |  Branch (353:9): [True: 1.48k, False: 0]
  ------------------
  354|  1.48k|        return n < MINIMAL_POWER2 ? MINIMAL_POWER2 : n;
  ------------------
  |  |  335|  1.48k|#define MINIMAL_POWER2 2
  ------------------
                      return n < MINIMAL_POWER2 ? MINIMAL_POWER2 : n;
  ------------------
  |  |  335|      0|#define MINIMAL_POWER2 2
  ------------------
  |  Branch (354:16): [True: 0, False: 1.48k]
  ------------------
  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.48k|}
st.c:get_allocated_entries:
  466|  7.40k|{
  467|  7.40k|    return ((st_index_t) 1)<<tab->entry_power;
  468|  7.40k|}
st.c:make_tab_empty:
  487|  1.48k|{
  488|  1.48k|    tab->num_entries = 0;
  489|  1.48k|    tab->entries_start = tab->entries_bound = 0;
  490|  1.48k|    if (tab->bins != NULL)
  ------------------
  |  Branch (490:9): [True: 0, False: 1.48k]
  ------------------
  491|      0|        initialize_bins(tab);
  492|  1.48k|}
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|  34.0k|    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.92k|#define EQUAL(tab,x,y) ((x) == (y) || (*(tab)->type->compare)((x),(y)) == 0)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (180:25): [True: 5.92k, False: 0]
  |  |  |  |  |  |  |  Branch (180:39): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (182:6): [True: 5.92k, 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.92k, False: 17.7k]
  ------------------
  893|  5.92k|	    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.92k|{
 1170|  5.92k|    st_index_t bound = tab->entries_bound;
 1171|       |
 1172|  5.92k|    if (bound == get_allocated_entries(tab))
  ------------------
  |  Branch (1172:9): [True: 0, False: 5.92k]
  ------------------
 1173|      0|        rebuild_table(tab);
 1174|  5.92k|    st_assert(tab->entries_bound < get_allocated_entries(tab));
  ------------------
  |  |  128|  5.92k|#define st_assert(cond) ((void)(0 && (cond)))
  |  |  ------------------
  |  |  |  Branch (128:33): [Folded - Ignored]
  |  |  |  Branch (128:38): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 1175|  5.92k|}
st.c:st_general_foreach:
 1605|  1.48k|{
 1606|  1.48k|    st_index_t bin;
 1607|  1.48k|    st_index_t bin_ind;
 1608|  1.48k|    st_table_entry *entries, *curr_entry_ptr;
 1609|  1.48k|    enum st_retval retval;
 1610|  1.48k|    st_index_t i, rebuilds_num;
 1611|  1.48k|    st_hash_t hash;
 1612|  1.48k|    st_data_t key;
 1613|  1.48k|    int error_p, packed_p = tab->bins == NULL;
 1614|       |
 1615|  1.48k|    st_assert(tab->entries_start <= tab->entries_bound);
  ------------------
  |  |  128|  1.48k|#define st_assert(cond) ((void)(0 && (cond)))
  |  |  ------------------
  |  |  |  Branch (128:33): [Folded - Ignored]
  |  |  |  Branch (128:38): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 1616|  1.48k|    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.40k|    for (i = tab->entries_start; i < tab->entries_bound; i++) {
  ------------------
  |  Branch (1619:34): [True: 5.92k, False: 1.48k]
  ------------------
 1620|  5.92k|        curr_entry_ptr = &entries[i];
 1621|  5.92k|	if (EXPECT(DELETED_ENTRY_P(curr_entry_ptr), 0))
  ------------------
  |  |  117|  5.92k|#define EXPECT(expr, val) __builtin_expect(expr, val)
  |  |  ------------------
  |  |  |  Branch (117:27): [True: 0, False: 5.92k]
  |  |  ------------------
  ------------------
 1622|      0|	    continue;
 1623|  5.92k|	key = curr_entry_ptr->key;
 1624|  5.92k|	rebuilds_num = tab->rebuilds_num;
 1625|  5.92k|	hash = curr_entry_ptr->hash;
 1626|  5.92k|	retval = (*func)(key, curr_entry_ptr->record, arg, 0);
 1627|       |
 1628|  5.92k|        if (retval == ST_REPLACE && replace) {
  ------------------
  |  Branch (1628:13): [True: 0, False: 5.92k]
  |  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.92k|	if (rebuilds_num != tab->rebuilds_num) {
  ------------------
  |  Branch (1636:6): [True: 0, False: 5.92k]
  ------------------
 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.92k|	switch (retval) {
  ------------------
  |  Branch (1663:10): [True: 0, False: 5.92k]
  ------------------
 1664|      0|          case ST_REPLACE:
  ------------------
  |  Branch (1664:11): [True: 0, False: 5.92k]
  ------------------
 1665|      0|            break;
 1666|      0|	  case ST_CONTINUE:
  ------------------
  |  Branch (1666:4): [True: 0, False: 5.92k]
  ------------------
 1667|      0|	    break;
 1668|      0|	  case ST_CHECK:
  ------------------
  |  Branch (1668:4): [True: 0, False: 5.92k]
  ------------------
 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.92k]
  ------------------
 1672|       |#ifdef ST_DEBUG
 1673|       |	    st_check(tab);
 1674|       |#endif
 1675|      0|	    return 0;
 1676|  5.92k|	  case ST_DELETE: {
  ------------------
  |  Branch (1676:4): [True: 5.92k, False: 0]
  ------------------
 1677|  5.92k|	    st_data_t key = curr_entry_ptr->key;
 1678|       |
 1679|  5.92k|	    again:
 1680|  5.92k|	    if (packed_p) {
  ------------------
  |  Branch (1680:10): [True: 5.92k, False: 0]
  ------------------
 1681|  5.92k|		bin = find_entry(tab, hash, key);
 1682|  5.92k|		if (EXPECT(bin == REBUILT_TABLE_ENTRY_IND, 0))
  ------------------
  |  |  117|  5.92k|#define EXPECT(expr, val) __builtin_expect(expr, val)
  |  |  ------------------
  |  |  |  Branch (117:27): [True: 0, False: 5.92k]
  |  |  ------------------
  ------------------
 1683|      0|		    goto again;
 1684|  5.92k|		if (bin == UNDEFINED_ENTRY_IND)
  ------------------
  |  |  399|  5.92k|#define UNDEFINED_ENTRY_IND (~(st_index_t) 0)
  ------------------
  |  Branch (1684:7): [True: 0, False: 5.92k]
  ------------------
 1685|      0|		    break;
 1686|  5.92k|	    }
 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.92k|	    curr_entry_ptr = &entries[bin];
 1697|  5.92k|	    MARK_ENTRY_DELETED(curr_entry_ptr);
  ------------------
  |  |  431|  5.92k|#define MARK_ENTRY_DELETED(e_ptr) ((e_ptr)->hash = RESERVED_HASH_VAL)
  |  |  ------------------
  |  |  |  |  317|  5.92k|#define RESERVED_HASH_VAL (~(st_hash_t) 0)
  |  |  ------------------
  ------------------
 1698|  5.92k|	    tab->num_entries--;
 1699|  5.92k|	    update_range_for_deleted(tab, bin);
 1700|       |#ifdef ST_DEBUG
 1701|       |	    st_check(tab);
 1702|       |#endif
 1703|  5.92k|	    break;
 1704|  5.92k|	  }
 1705|  5.92k|	}
 1706|  5.92k|    }
 1707|       |#ifdef ST_DEBUG
 1708|       |    st_check(tab);
 1709|       |#endif
 1710|  1.48k|    return 0;
 1711|  1.48k|}
st.c:update_range_for_deleted:
 1375|  5.92k|{
 1376|       |    /* Do not update entries_bound here.  Otherwise, we can fill all
 1377|       |       bins by deleted entry value before rebuilding the table.  */
 1378|  5.92k|    if (tab->entries_start == n)
  ------------------
  |  Branch (1378:9): [True: 5.92k, False: 0]
  ------------------
 1379|  5.92k|        tab->entries_start = n + 1;
 1380|  5.92k|}

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

flb_config_init:
  199|  1.53k|{
  200|  1.53k|    int ret;
  201|  1.53k|    struct flb_config *config;
  202|  1.53k|    struct flb_cf *cf;
  203|  1.53k|    struct flb_cf_section *section;
  204|       |
  205|  1.53k|    config = flb_calloc(1, sizeof(struct flb_config));
  206|  1.53k|    if (!config) {
  ------------------
  |  Branch (206:9): [True: 7, False: 1.52k]
  ------------------
  207|      7|        flb_errno();
  ------------------
  |  |  232|      7|#define flb_errno() flb_errno_print(errno, __FLB_FILENAME__, __LINE__)
  ------------------
  208|      7|        return NULL;
  209|      7|    }
  210|       |
  211|  1.52k|    MK_EVENT_ZERO(&config->ch_event);
  212|  1.52k|    MK_EVENT_ZERO(&config->event_flush);
  213|  1.52k|    MK_EVENT_ZERO(&config->event_shutdown);
  214|       |
  215|       |    /* is data ingestion active ? */
  216|  1.52k|    config->is_ingestion_active = FLB_TRUE;
  ------------------
  |  |   26|  1.52k|#define FLB_TRUE   !FLB_FALSE
  |  |  ------------------
  |  |  |  |   25|  1.52k|#define FLB_FALSE  0
  |  |  ------------------
  ------------------
  217|       |
  218|       |    /* Is the engine (event loop) actively running ? */
  219|  1.52k|    config->is_running = FLB_TRUE;
  ------------------
  |  |   26|  1.52k|#define FLB_TRUE   !FLB_FALSE
  |  |  ------------------
  |  |  |  |   25|  1.52k|#define FLB_FALSE  0
  |  |  ------------------
  ------------------
  220|       |
  221|       |    /* Initialize config_format context */
  222|  1.52k|    cf = flb_cf_create();
  223|  1.52k|    if (!cf) {
  ------------------
  |  Branch (223:9): [True: 5, False: 1.52k]
  ------------------
  224|      5|        flb_free(config);
  225|      5|        return NULL;
  226|      5|    }
  227|  1.52k|    config->cf_main = cf;
  228|       |
  229|  1.52k|    section = flb_cf_section_create(cf, "service", 0);
  230|  1.52k|    if (!section) {
  ------------------
  |  Branch (230:9): [True: 4, False: 1.51k]
  ------------------
  231|      4|        flb_cf_destroy(cf);
  232|      4|        flb_free(config);
  233|      4|        return NULL;
  234|      4|    }
  235|       |
  236|       |    /* Flush */
  237|  1.51k|    config->flush        = FLB_CONFIG_FLUSH_SECS;
  ------------------
  |  |   33|  1.51k|#define FLB_CONFIG_FLUSH_SECS   1
  ------------------
  238|  1.51k|    config->daemon       = FLB_FALSE;
  ------------------
  |  |   25|  1.51k|#define FLB_FALSE  0
  ------------------
  239|  1.51k|    config->init_time    = time(NULL);
  240|  1.51k|    config->kernel       = flb_kernel_info();
  241|  1.51k|    config->verbose      = 3;
  242|  1.51k|    config->grace        = 5;
  243|  1.51k|    config->grace_count  = 0;
  244|  1.51k|    config->exit_status_code = 0;
  245|       |
  246|       |    /* json */
  247|  1.51k|    config->convert_nan_to_null = FLB_FALSE;
  ------------------
  |  |   25|  1.51k|#define FLB_FALSE  0
  ------------------
  248|       |
  249|  1.51k|#ifdef FLB_HAVE_HTTP_SERVER
  250|  1.51k|    config->http_ctx                     = NULL;
  251|  1.51k|    config->http_server                  = FLB_FALSE;
  ------------------
  |  |   25|  1.51k|#define FLB_FALSE  0
  ------------------
  252|  1.51k|    config->http_listen                  = flb_strdup(FLB_CONFIG_HTTP_LISTEN);
  ------------------
  |  |   34|  1.51k|#define FLB_CONFIG_HTTP_LISTEN  "0.0.0.0"
  ------------------
  253|  1.51k|    config->http_port                    = flb_strdup(FLB_CONFIG_HTTP_PORT);
  ------------------
  |  |   35|  1.51k|#define FLB_CONFIG_HTTP_PORT    "2020"
  ------------------
  254|  1.51k|    config->health_check                 = FLB_FALSE;
  ------------------
  |  |   25|  1.51k|#define FLB_FALSE  0
  ------------------
  255|  1.51k|    config->hc_errors_count              = HC_ERRORS_COUNT_DEFAULT;
  ------------------
  |  |   36|  1.51k|#define HC_ERRORS_COUNT_DEFAULT 5
  ------------------
  256|  1.51k|    config->hc_retry_failure_count       = HC_RETRY_FAILURE_COUNTS_DEFAULT;
  ------------------
  |  |   37|  1.51k|#define HC_RETRY_FAILURE_COUNTS_DEFAULT 5
  ------------------
  257|  1.51k|    config->health_check_period          = HEALTH_CHECK_PERIOD;
  ------------------
  |  |   38|  1.51k|#define HEALTH_CHECK_PERIOD 60
  ------------------
  258|  1.51k|#endif
  259|       |
  260|  1.51k|    config->http_proxy = getenv("HTTP_PROXY");
  261|  1.51k|    if (flb_str_emptyval(config->http_proxy) == FLB_TRUE) {
  ------------------
  |  |   26|  1.51k|#define FLB_TRUE   !FLB_FALSE
  |  |  ------------------
  |  |  |  |   25|  1.51k|#define FLB_FALSE  0
  |  |  ------------------
  ------------------
  |  Branch (261:9): [True: 0, False: 1.51k]
  ------------------
  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.51k|    config->no_proxy = getenv("NO_PROXY");
  269|  1.51k|    if (flb_str_emptyval(config->no_proxy) == FLB_TRUE || config->http_proxy == NULL) {
  ------------------
  |  |   26|  3.03k|#define FLB_TRUE   !FLB_FALSE
  |  |  ------------------
  |  |  |  |   25|  3.03k|#define FLB_FALSE  0
  |  |  ------------------
  ------------------
  |  Branch (269:9): [True: 0, False: 1.51k]
  |  Branch (269:59): [True: 1.51k, False: 0]
  ------------------
  270|  1.51k|        config->no_proxy = getenv("no_proxy");
  271|  1.51k|        if (flb_str_emptyval(config->no_proxy) == FLB_TRUE || config->http_proxy == NULL) {
  ------------------
  |  |   26|  3.03k|#define FLB_TRUE   !FLB_FALSE
  |  |  ------------------
  |  |  |  |   25|  3.03k|#define FLB_FALSE  0
  |  |  ------------------
  ------------------
  |  Branch (271:13): [True: 0, False: 1.51k]
  |  Branch (271:63): [True: 1.51k, False: 0]
  ------------------
  272|       |            /* NoProxy  should not be set when `NO_PROXY` or `no_proxy` are set to "" or there is no Proxy. */
  273|  1.51k|            config->no_proxy = NULL;
  274|  1.51k|        }
  275|  1.51k|    }
  276|       |
  277|  1.51k|    config->cio          = NULL;
  278|  1.51k|    config->storage_path = NULL;
  279|  1.51k|    config->storage_input_plugin = NULL;
  280|  1.51k|    config->storage_metrics = FLB_TRUE;
  ------------------
  |  |   26|  1.51k|#define FLB_TRUE   !FLB_FALSE
  |  |  ------------------
  |  |  |  |   25|  1.51k|#define FLB_FALSE  0
  |  |  ------------------
  ------------------
  281|       |
  282|  1.51k|    config->sched_cap  = FLB_SCHED_CAP;
  ------------------
  |  |   29|  1.51k|#define FLB_SCHED_CAP            2000
  ------------------
  283|  1.51k|    config->sched_base = FLB_SCHED_BASE;
  ------------------
  |  |   30|  1.51k|#define FLB_SCHED_BASE           5
  ------------------
  284|       |
  285|       |    /* reload */
  286|  1.51k|    config->ensure_thread_safety_on_hot_reloading = FLB_TRUE;
  ------------------
  |  |   26|  1.51k|#define FLB_TRUE   !FLB_FALSE
  |  |  ------------------
  |  |  |  |   25|  1.51k|#define FLB_FALSE  0
  |  |  ------------------
  ------------------
  287|  1.51k|    config->hot_reloaded_count = 0;
  288|  1.51k|    config->shutdown_by_hot_reloading = FLB_FALSE;
  ------------------
  |  |   25|  1.51k|#define FLB_FALSE  0
  ------------------
  289|  1.51k|    config->hot_reloading = FLB_FALSE;
  ------------------
  |  |   25|  1.51k|#define FLB_FALSE  0
  ------------------
  290|       |
  291|  1.51k|#ifdef FLB_HAVE_SQLDB
  292|  1.51k|    mk_list_init(&config->sqldb_list);
  293|  1.51k|#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.51k|    flb_slist_create(&config->external_plugins);
  305|       |
  306|       |    /* Set default coroutines stack size */
  307|  1.51k|    config->coro_stack_size = FLB_CORO_STACK_SIZE_BYTE;
  ------------------
  |  |   77|  1.51k|#define FLB_CORO_STACK_SIZE_BYTE      ((3 * STACK_FACTOR * PTHREAD_STACK_MIN) / 2)
  |  |  ------------------
  |  |  |  |   71|  1.51k|#define STACK_FACTOR 1
  |  |  ------------------
  ------------------
  308|  1.51k|    if (config->coro_stack_size < getpagesize()) {
  ------------------
  |  Branch (308:9): [True: 0, False: 1.51k]
  ------------------
  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.51k|    pthread_mutex_init(&config->collectors_mutex, NULL);
  316|       |
  317|       |    /* Initialize linked lists */
  318|  1.51k|    mk_list_init(&config->processor_plugins);
  319|  1.51k|    mk_list_init(&config->custom_plugins);
  320|  1.51k|    mk_list_init(&config->in_plugins);
  321|  1.51k|    mk_list_init(&config->parser_plugins);
  322|  1.51k|    mk_list_init(&config->filter_plugins);
  323|  1.51k|    mk_list_init(&config->out_plugins);
  324|  1.51k|    mk_list_init(&config->customs);
  325|  1.51k|    mk_list_init(&config->inputs);
  326|  1.51k|    mk_list_init(&config->parsers);
  327|  1.51k|    mk_list_init(&config->filters);
  328|  1.51k|    mk_list_init(&config->outputs);
  329|  1.51k|    mk_list_init(&config->proxies);
  330|  1.51k|    mk_list_init(&config->workers);
  331|  1.51k|    mk_list_init(&config->upstreams);
  332|  1.51k|    mk_list_init(&config->downstreams);
  333|  1.51k|    mk_list_init(&config->cmetrics);
  334|  1.51k|    mk_list_init(&config->cf_parsers_list);
  335|       |
  336|  1.51k|    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.51k|    mk_list_init(&config->multiline_parsers);
  342|       |
  343|       |    /* Environment */
  344|  1.51k|    config->env = flb_env_create();
  345|  1.51k|    if (config->env == NULL) {
  ------------------
  |  Branch (345:9): [True: 5, False: 1.51k]
  ------------------
  346|      5|        flb_error("[config] environment creation failed");
  ------------------
  |  |  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
  |  |  ------------------
  ------------------
  347|      5|        flb_config_exit(config);
  348|      5|        return NULL;
  349|      5|    }
  350|       |
  351|       |    /* Multiline core */
  352|  1.51k|    ret = flb_ml_init(config);
  353|  1.51k|    if (ret == -1) {
  ------------------
  |  Branch (353:9): [True: 202, False: 1.30k]
  ------------------
  354|    202|        flb_error("[config] multiline core initialization failed");
  ------------------
  |  |  170|    202|    if (flb_log_check(FLB_LOG_ERROR))                                \
  |  |  ------------------
  |  |  |  |   40|    202|#define FLB_LOG_ERROR   1
  |  |  ------------------
  |  |  |  Branch (170:9): [True: 202, False: 0]
  |  |  ------------------
  |  |  171|    202|        flb_log_print(FLB_LOG_ERROR, NULL, 0, fmt, ##__VA_ARGS__)
  |  |  ------------------
  |  |  |  |   40|    202|#define FLB_LOG_ERROR   1
  |  |  ------------------
  ------------------
  355|    202|        flb_config_exit(config);
  356|    202|        return NULL;
  357|    202|    }
  358|       |
  359|       |    /* Register static plugins */
  360|  1.30k|    ret = flb_plugins_register(config);
  361|  1.30k|    if (ret == -1) {
  ------------------
  |  Branch (361:9): [True: 137, False: 1.17k]
  ------------------
  362|    137|        flb_error("[config] plugins registration failed");
  ------------------
  |  |  170|    137|    if (flb_log_check(FLB_LOG_ERROR))                                \
  |  |  ------------------
  |  |  |  |   40|    137|#define FLB_LOG_ERROR   1
  |  |  ------------------
  |  |  |  Branch (170:9): [True: 137, False: 0]
  |  |  ------------------
  |  |  171|    137|        flb_log_print(FLB_LOG_ERROR, NULL, 0, fmt, ##__VA_ARGS__)
  |  |  ------------------
  |  |  |  |   40|    137|#define FLB_LOG_ERROR   1
  |  |  ------------------
  ------------------
  363|    137|        flb_config_exit(config);
  364|    137|        return NULL;
  365|    137|    }
  366|       |
  367|       |    /* Create environment for dynamic plugins */
  368|  1.17k|    config->dso_plugins = flb_plugin_create();
  369|       |
  370|       |    /* Ignoring SIGPIPE on Windows (scary) */
  371|  1.17k|#ifndef _WIN32
  372|       |    /* Ignore SIGPIPE */
  373|  1.17k|    signal(SIGPIPE, SIG_IGN);
  374|  1.17k|#endif
  375|       |
  376|       |    /* Prepare worker interface */
  377|  1.17k|    flb_worker_init(config);
  378|       |
  379|  1.17k|#ifdef FLB_HAVE_REGEX
  380|       |    /* Regex support */
  381|  1.17k|    flb_regex_init();
  382|  1.17k|#endif
  383|       |
  384|  1.17k|    return config;
  385|  1.30k|}
flb_config_exit:
  388|  1.51k|{
  389|  1.51k|    struct mk_list *tmp;
  390|  1.51k|    struct mk_list *head;
  391|  1.51k|    struct flb_cf *cf;
  392|       |
  393|  1.51k|    if (config->log) {
  ------------------
  |  Branch (393:9): [True: 0, False: 1.51k]
  ------------------
  394|      0|        flb_log_destroy(config->log, config);
  395|      0|    }
  396|       |
  397|  1.51k|    if (config->log_file) {
  ------------------
  |  Branch (397:9): [True: 0, False: 1.51k]
  ------------------
  398|      0|        flb_free(config->log_file);
  399|      0|    }
  400|       |
  401|  1.51k|    if (config->parsers_file) {
  ------------------
  |  Branch (401:9): [True: 0, False: 1.51k]
  ------------------
  402|      0|        flb_free(config->parsers_file);
  403|      0|    }
  404|       |
  405|  1.51k|    if (config->plugins_file) {
  ------------------
  |  Branch (405:9): [True: 0, False: 1.51k]
  ------------------
  406|      0|        flb_free(config->plugins_file);
  407|      0|    }
  408|       |
  409|  1.51k|    if (config->kernel) {
  ------------------
  |  Branch (409:9): [True: 1.51k, False: 5]
  ------------------
  410|  1.51k|        flb_kernel_destroy(config->kernel);
  411|  1.51k|    }
  412|       |
  413|       |    /* release resources */
  414|  1.51k|    if (config->ch_event.fd) {
  ------------------
  |  Branch (414:9): [True: 1.51k, False: 0]
  ------------------
  415|  1.51k|        mk_event_closesocket(config->ch_event.fd);
  ------------------
  |  |   99|  1.51k|    #define mk_event_closesocket(s) close(s)
  ------------------
  416|  1.51k|    }
  417|       |
  418|       |    /* Pipe */
  419|  1.51k|    if (config->ch_data[0]) {
  ------------------
  |  Branch (419:9): [True: 0, False: 1.51k]
  ------------------
  420|      0|        flb_pipe_destroy(config->ch_data);
  421|      0|    }
  422|       |
  423|       |    /* Channel manager */
  424|  1.51k|    if (config->ch_manager[0] > 0) {
  ------------------
  |  Branch (424:9): [True: 0, False: 1.51k]
  ------------------
  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.51k|    if (config->ch_notif[0] > 0) {
  ------------------
  |  Branch (432:9): [True: 0, False: 1.51k]
  ------------------
  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.51k|    if (config->env) {
  ------------------
  |  Branch (439:9): [True: 1.51k, False: 5]
  ------------------
  440|  1.51k|        flb_env_destroy(config->env);
  441|  1.51k|    }
  442|       |
  443|       |    /* Program name */
  444|  1.51k|    if (config->program_name) {
  ------------------
  |  Branch (444:9): [True: 0, False: 1.51k]
  ------------------
  445|      0|        flb_sds_destroy(config->program_name);
  446|      0|    }
  447|       |
  448|       |    /* Conf path */
  449|  1.51k|    if (config->conf_path) {
  ------------------
  |  Branch (449:9): [True: 0, False: 1.51k]
  ------------------
  450|      0|        flb_free(config->conf_path);
  451|      0|    }
  452|       |
  453|       |    /* conf path file (file system config path) */
  454|  1.51k|    if (config->conf_path_file) {
  ------------------
  |  Branch (454:9): [True: 0, False: 1.51k]
  ------------------
  455|      0|        flb_sds_destroy(config->conf_path_file);
  456|      0|    }
  457|       |
  458|       |    /* Working directory */
  459|  1.51k|    if (config->workdir) {
  ------------------
  |  Branch (459:9): [True: 0, False: 1.51k]
  ------------------
  460|      0|        flb_free(config->workdir);
  461|      0|    }
  462|       |
  463|       |    /* Destroy any DSO context */
  464|  1.51k|    if (config->dso_plugins) {
  ------------------
  |  Branch (464:9): [True: 1.17k, False: 345]
  ------------------
  465|  1.17k|        flb_plugin_destroy(config->dso_plugins);
  466|  1.17k|    }
  467|       |
  468|       |    /* Workers */
  469|  1.51k|    flb_worker_exit(config);
  470|       |
  471|       |    /* Event flush */
  472|  1.51k|    if (config->evl) {
  ------------------
  |  Branch (472:9): [True: 0, False: 1.51k]
  ------------------
  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.51k|    if (config->sched) {
  ------------------
  |  Branch (479:9): [True: 0, False: 1.51k]
  ------------------
  480|      0|        flb_sched_destroy(config->sched);
  481|      0|    }
  482|       |
  483|  1.51k|#ifdef FLB_HAVE_HTTP_SERVER
  484|  1.51k|    if (config->http_listen) {
  ------------------
  |  Branch (484:9): [True: 1.51k, False: 2]
  ------------------
  485|  1.51k|        flb_free(config->http_listen);
  486|  1.51k|    }
  487|       |
  488|  1.51k|    if (config->http_port) {
  ------------------
  |  Branch (488:9): [True: 1.51k, False: 3]
  ------------------
  489|  1.51k|        flb_free(config->http_port);
  490|  1.51k|    }
  491|  1.51k|#endif
  492|       |
  493|  1.51k|#ifdef FLB_HAVE_PARSER
  494|       |    /* parsers */
  495|  1.51k|    flb_parser_exit(config);
  496|  1.51k|#endif
  497|       |
  498|  1.51k|    if (config->dns_mode) {
  ------------------
  |  Branch (498:9): [True: 0, False: 1.51k]
  ------------------
  499|      0|        flb_free(config->dns_mode);
  500|      0|    }
  501|  1.51k|    if (config->dns_resolver) {
  ------------------
  |  Branch (501:9): [True: 0, False: 1.51k]
  ------------------
  502|      0|        flb_free(config->dns_resolver);
  503|      0|    }
  504|       |
  505|  1.51k|    if (config->storage_path) {
  ------------------
  |  Branch (505:9): [True: 0, False: 1.51k]
  ------------------
  506|      0|        flb_free(config->storage_path);
  507|      0|    }
  508|  1.51k|    if (config->storage_sync) {
  ------------------
  |  Branch (508:9): [True: 0, False: 1.51k]
  ------------------
  509|      0|        flb_free(config->storage_sync);
  510|      0|    }
  511|  1.51k|    if (config->storage_bl_mem_limit) {
  ------------------
  |  Branch (511:9): [True: 0, False: 1.51k]
  ------------------
  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.51k|    flb_slist_destroy(&config->external_plugins);
  524|       |
  525|  1.51k|    if (config->evl) {
  ------------------
  |  Branch (525:9): [True: 0, False: 1.51k]
  ------------------
  526|      0|        mk_event_loop_destroy(config->evl);
  527|      0|    }
  528|  1.51k|    if (config->evl_bktq) {
  ------------------
  |  Branch (528:9): [True: 0, False: 1.51k]
  ------------------
  529|      0|        flb_bucket_queue_destroy(config->evl_bktq);
  530|      0|    }
  531|       |
  532|  1.51k|    flb_plugins_unregister(config);
  533|       |
  534|  1.51k|    if (config->cf_main) {
  ------------------
  |  Branch (534:9): [True: 1.51k, False: 0]
  ------------------
  535|  1.51k|        flb_cf_destroy(config->cf_main);
  536|  1.51k|    }
  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.51k|    mk_list_foreach_safe(head, tmp, &config->cf_parsers_list) {
  ------------------
  |  |  207|  1.51k|    for (curr = (head)->next, n = curr->next; curr != (head); curr = n, n = curr->next)
  |  |  ------------------
  |  |  |  Branch (207:47): [True: 0, False: 1.51k]
  |  |  ------------------
  ------------------
  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.51k|    flb_free(config);
  551|  1.51k|}

flb_config_map_create:
  253|  1.16k|{
  254|  1.16k|    int ret;
  255|  1.16k|    flb_sds_t env;
  256|  1.16k|    struct mk_list *tmp;
  257|  1.16k|    struct mk_list *list;
  258|  1.16k|    struct flb_config_map *new = NULL;
  259|  1.16k|    struct flb_config_map *m;
  260|       |
  261|  1.16k|    list = flb_malloc(sizeof(struct mk_list));
  262|  1.16k|    if (!list) {
  ------------------
  |  Branch (262:9): [True: 6, False: 1.16k]
  ------------------
  263|      6|        flb_errno();
  ------------------
  |  |  232|      6|#define flb_errno() flb_errno_print(errno, __FLB_FILENAME__, __LINE__)
  ------------------
  264|      6|        return NULL;
  265|      6|    }
  266|  1.16k|    mk_list_init(list);
  267|       |
  268|       |    /*
  269|       |     * Read every property defined in the config map and create a new dynamic list
  270|       |     * with the same content.
  271|       |     *
  272|       |     * As an additional step, it populate the 'value' field using the given default
  273|       |     * value if any. Note that default values are strings so they are processed
  274|       |     * to fit into the proper data type of 'value'.
  275|       |     */
  276|  1.16k|    m = map;
  277|  9.62k|    while (m && m->name) {
  ------------------
  |  Branch (277:12): [True: 9.62k, False: 0]
  |  Branch (277:17): [True: 8.52k, False: 1.10k]
  ------------------
  278|       |        /* Allocate map node */
  279|  8.52k|        new = flb_calloc(1, sizeof(struct flb_config_map));
  280|  8.52k|        if (!new) {
  ------------------
  |  Branch (280:13): [True: 11, False: 8.51k]
  ------------------
  281|     11|            flb_errno();
  ------------------
  |  |  232|     11|#define flb_errno() flb_errno_print(errno, __FLB_FILENAME__, __LINE__)
  ------------------
  282|     11|            flb_config_map_destroy(list);
  283|     11|            return NULL;
  284|     11|        }
  285|       |
  286|  8.51k|        new->type = m->type;
  287|  8.51k|        new->name = flb_sds_create(m->name);
  288|  8.51k|        if (new->name == NULL) {
  ------------------
  |  Branch (288:13): [True: 7, False: 8.51k]
  ------------------
  289|      7|            flb_free(new);
  290|      7|            flb_config_map_destroy(list);
  291|      7|            return NULL;
  292|      7|        }
  293|       |
  294|       |        /* Translate default value */
  295|  8.51k|        if (m->def_value) {
  ------------------
  |  Branch (295:13): [True: 7.87k, False: 631]
  ------------------
  296|       |            /*
  297|       |             * Before to translate any value, make sure to disable the warning
  298|       |             * about unused variables. This might happen if a default value is an
  299|       |             * environment variable and the user is not using it (which is ok for
  300|       |             * that specific use case).
  301|       |             */
  302|  7.87k|            flb_env_warn_unused(config->env, FLB_FALSE);
  ------------------
  |  |   25|  7.87k|#define FLB_FALSE  0
  ------------------
  303|       |
  304|       |            /* Translate the value */
  305|  7.87k|            env = flb_env_var_translate(config->env, m->def_value);
  306|  7.87k|            if (env == NULL) {
  ------------------
  |  Branch (306:17): [True: 9, False: 7.87k]
  ------------------
  307|      9|                flb_errno();
  ------------------
  |  |  232|      9|#define flb_errno() flb_errno_print(errno, __FLB_FILENAME__, __LINE__)
  ------------------
  308|      9|                flb_sds_destroy(new->name);
  309|      9|                flb_free(new);
  310|      9|                flb_config_map_destroy(list);
  311|      9|                return NULL;
  312|      9|            }
  313|  7.87k|            new->def_value = env;
  314|  7.87k|            flb_env_warn_unused(config->env, FLB_TRUE);
  ------------------
  |  |   26|  7.87k|#define FLB_TRUE   !FLB_FALSE
  |  |  ------------------
  |  |  |  |   25|  7.87k|#define FLB_FALSE  0
  |  |  ------------------
  ------------------
  315|  7.87k|        }
  316|       |
  317|  8.50k|        new->flags = m->flags;
  318|  8.50k|        new->set_property = m->set_property;
  319|  8.50k|        new->offset = m->offset;
  320|  8.50k|        new->value.mult = NULL;
  321|  8.50k|        new->desc = m->desc;
  322|  8.50k|        mk_list_add(&new->_head, list);
  323|       |
  324|  8.50k|        if (new->set_property == FLB_FALSE) {
  ------------------
  |  |   25|  8.50k|#define FLB_FALSE  0
  ------------------
  |  Branch (324:13): [True: 0, False: 8.50k]
  ------------------
  325|      0|            m++;
  326|      0|            continue;
  327|      0|        }
  328|       |
  329|       |        /* If this is a multiple type of entries, initialize the main list */
  330|  8.50k|        if (new->flags & FLB_CONFIG_MAP_MULT) {
  ------------------
  |  |   53|  8.50k|#define FLB_CONFIG_MAP_MULT       1
  ------------------
  |  Branch (330:13): [True: 3.73k, False: 4.76k]
  ------------------
  331|  3.73k|            tmp = flb_malloc(sizeof(struct mk_list));
  332|  3.73k|            if (!tmp) {
  ------------------
  |  Branch (332:17): [True: 7, False: 3.73k]
  ------------------
  333|      7|                flb_errno();
  ------------------
  |  |  232|      7|#define flb_errno() flb_errno_print(errno, __FLB_FILENAME__, __LINE__)
  ------------------
  334|      7|                flb_config_map_destroy(list);
  335|      7|                return NULL;
  336|      7|            }
  337|  3.73k|            mk_list_init(tmp);
  338|  3.73k|            new->value.mult = tmp;
  339|  3.73k|        }
  340|       |
  341|       |        /*
  342|       |         * If there is no default value or the entry will not be set,  just
  343|       |         * continue with the next map entry
  344|       |         */
  345|  8.49k|        if (!m->def_value) {
  ------------------
  |  Branch (345:13): [True: 630, False: 7.86k]
  ------------------
  346|    630|            m++;
  347|    630|            continue;
  348|    630|        }
  349|       |
  350|       |        /* Assign value based on data type and multiple mode if set */
  351|  7.86k|        ret = translate_default_value(new, new->def_value);
  352|  7.86k|        if (ret == -1) {
  ------------------
  |  Branch (352:13): [True: 26, False: 7.83k]
  ------------------
  353|     26|            flb_config_map_destroy(list);
  354|     26|            return NULL;
  355|     26|        }
  356|  7.83k|        m++;
  357|  7.83k|    }
  358|       |
  359|  1.10k|    return list;
  360|  1.16k|}
flb_config_map_destroy:
  377|  1.16k|{
  378|  1.16k|    struct mk_list *tmp;
  379|  1.16k|    struct mk_list *head;
  380|  1.16k|    struct mk_list *v_head;
  381|  1.16k|    struct mk_list *v_tmp;
  382|  1.16k|    struct flb_config_map *map;
  383|  1.16k|    struct flb_config_map_val *entry;
  384|       |
  385|  8.50k|    mk_list_foreach_safe(head, tmp, list) {
  ------------------
  |  |  207|  9.66k|    for (curr = (head)->next, n = curr->next; curr != (head); curr = n, n = curr->next)
  |  |  ------------------
  |  |  |  Branch (207:47): [True: 8.50k, False: 1.16k]
  |  |  ------------------
  ------------------
  386|  8.50k|        map = mk_list_entry(head, struct flb_config_map, _head);
  ------------------
  |  |  214|  8.50k|#define mk_list_entry( ptr, type, member ) container_of( ptr, type, member )
  |  |  ------------------
  |  |  |  |   38|  8.50k|#define container_of(ptr, type, member) ({                      \
  |  |  |  |   39|  8.50k|      const typeof( ((type *)0)->member ) *__mptr = (ptr);      \
  |  |  |  |   40|  8.50k|      (type *)( (char *)__mptr - offsetof(type,member) );})
  |  |  ------------------
  ------------------
  387|  8.50k|        mk_list_del(&map->_head);
  388|       |
  389|  8.50k|        if (map->flags & FLB_CONFIG_MAP_MULT && map->value.mult) {
  ------------------
  |  |   53|  17.0k|#define FLB_CONFIG_MAP_MULT       1
  ------------------
  |  Branch (389:13): [True: 3.73k, False: 4.76k]
  |  Branch (389:49): [True: 3.73k, False: 7]
  ------------------
  390|  3.73k|            mk_list_foreach_safe(v_head, v_tmp, map->value.mult) {
  ------------------
  |  |  207|  6.88k|    for (curr = (head)->next, n = curr->next; curr != (head); curr = n, n = curr->next)
  |  |  ------------------
  |  |  |  Branch (207:47): [True: 3.15k, False: 3.73k]
  |  |  ------------------
  ------------------
  391|  3.15k|                entry = mk_list_entry(v_head, struct flb_config_map_val, _head);
  ------------------
  |  |  214|  3.15k|#define mk_list_entry( ptr, type, member ) container_of( ptr, type, member )
  |  |  ------------------
  |  |  |  |   38|  3.15k|#define container_of(ptr, type, member) ({                      \
  |  |  |  |   39|  3.15k|      const typeof( ((type *)0)->member ) *__mptr = (ptr);      \
  |  |  |  |   40|  3.15k|      (type *)( (char *)__mptr - offsetof(type,member) );})
  |  |  ------------------
  ------------------
  392|  3.15k|                mk_list_del(&entry->_head);
  393|  3.15k|                destroy_map_val(map->type, entry);
  394|  3.15k|                flb_free(entry);
  395|  3.15k|            }
  396|  3.73k|            flb_free(map->value.mult);
  397|  3.73k|        }
  398|  4.76k|        else {
  399|  4.76k|            destroy_map_val(map->type, &map->value);
  400|  4.76k|        }
  401|  8.50k|        if (map->def_value) {
  ------------------
  |  Branch (401:13): [True: 7.87k, False: 631]
  ------------------
  402|  7.87k|            flb_sds_destroy(map->def_value);
  403|  7.87k|        }
  404|  8.50k|        flb_sds_destroy(map->name);
  405|  8.50k|        flb_free(map);
  406|  8.50k|    }
  407|  1.16k|    flb_free(list);
  408|  1.16k|}
property_count:
  412|    163|{
  413|    163|    int count = 0;
  414|    163|    struct mk_list *head;
  415|    163|    struct flb_kv *kv;
  416|       |
  417|    163|    mk_list_foreach(head, properties) {
  ------------------
  |  |  205|    326|#define mk_list_foreach(curr, head) for( curr = (head)->next; curr != (head); curr = curr->next )
  |  |  ------------------
  |  |  |  Branch (205:63): [True: 163, False: 163]
  |  |  ------------------
  ------------------
  418|    163|        kv = mk_list_entry(head, struct flb_kv, _head);
  ------------------
  |  |  214|    163|#define mk_list_entry( ptr, type, member ) container_of( ptr, type, member )
  |  |  ------------------
  |  |  |  |   38|    163|#define container_of(ptr, type, member) ({                      \
  |  |  |  |   39|    163|      const typeof( ((type *)0)->member ) *__mptr = (ptr);      \
  |  |  |  |   40|    163|      (type *)( (char *)__mptr - offsetof(type,member) );})
  |  |  ------------------
  ------------------
  419|    163|        if (flb_sds_len(kv->key) != len) {
  ------------------
  |  Branch (419:13): [True: 0, False: 163]
  ------------------
  420|      0|            continue;
  421|      0|        }
  422|       |
  423|    163|        if (strncmp(kv->key, key, len) == 0) {
  ------------------
  |  Branch (423:13): [True: 163, False: 0]
  ------------------
  424|    163|            count++;
  425|    163|        }
  426|    163|    }
  427|    163|    return count;
  428|    163|}
flb_config_map_properties_check:
  450|    930|{
  451|    930|    int len;
  452|    930|    int found;
  453|    930|    int count = 0;
  454|    930|    int ret;
  455|    930|    flb_sds_t helper;
  456|    930|    struct flb_kv *kv;
  457|    930|    struct mk_list *head;
  458|    930|    struct mk_list *m_head;
  459|    930|    struct flb_config_map *m;
  460|       |
  461|       |    /* Iterate all incoming property list */
  462|    930|    mk_list_foreach(head, in_properties) {
  ------------------
  |  |  205|  1.09k|#define mk_list_foreach(curr, head) for( curr = (head)->next; curr != (head); curr = curr->next )
  |  |  ------------------
  |  |  |  Branch (205:63): [True: 930, False: 166]
  |  |  ------------------
  ------------------
  463|    930|        kv = mk_list_entry(head, struct flb_kv, _head);
  ------------------
  |  |  214|    930|#define mk_list_entry( ptr, type, member ) container_of( ptr, type, member )
  |  |  ------------------
  |  |  |  |   38|    930|#define container_of(ptr, type, member) ({                      \
  |  |  |  |   39|    930|      const typeof( ((type *)0)->member ) *__mptr = (ptr);      \
  |  |  |  |   40|    930|      (type *)( (char *)__mptr - offsetof(type,member) );})
  |  |  ------------------
  ------------------
  464|    930|        found = FLB_FALSE;
  ------------------
  |  |   25|    930|#define FLB_FALSE  0
  ------------------
  465|       |
  466|       |
  467|    930|        ret = is_internal_debug_property(kv->key);
  468|    930|        if (ret == FLB_TRUE) {
  ------------------
  |  |   26|    930|#define FLB_TRUE   !FLB_FALSE
  |  |  ------------------
  |  |  |  |   25|    930|#define FLB_FALSE  0
  |  |  ------------------
  ------------------
  |  Branch (468:13): [True: 0, False: 930]
  ------------------
  469|       |            /* Skip the config map */
  470|      0|            continue;
  471|      0|        }
  472|       |
  473|    930|        if (strcasecmp(kv->key, "active") == 0) {
  ------------------
  |  Branch (473:13): [True: 3, False: 927]
  ------------------
  474|       |            /* Accept 'active' property ... */
  475|      3|            continue;
  476|      3|        }
  477|       |
  478|       |        /* Lookup the key into the provided map */
  479|  6.56k|        mk_list_foreach(m_head, map) {
  ------------------
  |  |  205|  7.32k|#define mk_list_foreach(curr, head) for( curr = (head)->next; curr != (head); curr = curr->next )
  |  |  ------------------
  |  |  |  Branch (205:63): [True: 6.56k, False: 764]
  |  |  ------------------
  ------------------
  480|  6.56k|            m = mk_list_entry(m_head, struct flb_config_map, _head);
  ------------------
  |  |  214|  6.56k|#define mk_list_entry( ptr, type, member ) container_of( ptr, type, member )
  |  |  ------------------
  |  |  |  |   38|  6.56k|#define container_of(ptr, type, member) ({                      \
  |  |  |  |   39|  6.56k|      const typeof( ((type *)0)->member ) *__mptr = (ptr);      \
  |  |  |  |   40|  6.56k|      (type *)( (char *)__mptr - offsetof(type,member) );})
  |  |  ------------------
  ------------------
  481|       |
  482|  6.56k|            len = flb_sds_len(m->name);
  483|  6.56k|            if (m->type != FLB_CONFIG_MAP_STR_PREFIX) {
  ------------------
  |  |   31|  6.56k|#define FLB_CONFIG_MAP_STR_PREFIX  1    /* string that starts with  */
  ------------------
  |  Branch (483:17): [True: 6.56k, False: 0]
  ------------------
  484|  6.56k|                if (len != flb_sds_len(kv->key)) {
  ------------------
  |  Branch (484:21): [True: 5.60k, False: 956]
  ------------------
  485|  5.60k|                    continue;
  486|  5.60k|                }
  487|  6.56k|            }
  488|       |
  489|    956|            if (strncasecmp(kv->key, m->name, len) == 0) {
  ------------------
  |  Branch (489:17): [True: 163, False: 793]
  ------------------
  490|    163|                if (m->type == FLB_CONFIG_MAP_STR_PREFIX) {
  ------------------
  |  |   31|    163|#define FLB_CONFIG_MAP_STR_PREFIX  1    /* string that starts with  */
  ------------------
  |  Branch (490:21): [True: 0, False: 163]
  ------------------
  491|      0|                    if (flb_sds_len(kv->key) <= len) {
  ------------------
  |  Branch (491:25): [True: 0, False: 0]
  ------------------
  492|      0|                        flb_error("[config] incomplete prefixed key '%s'", kv->key);
  ------------------
  |  |  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
  |  |  ------------------
  ------------------
  493|      0|                        found = FLB_FALSE;
  ------------------
  |  |   25|      0|#define FLB_FALSE  0
  ------------------
  494|      0|                        break;
  495|      0|                    }
  496|      0|                }
  497|    163|                else if(m->type == FLB_CONFIG_MAP_DEPRECATED) {
  ------------------
  |  |   37|    163|#define FLB_CONFIG_MAP_DEPRECATED  7    /* for deprecated parameter */
  ------------------
  |  Branch (497:25): [True: 0, False: 163]
  ------------------
  498|      0|                    flb_warn("[config] %s: '%s' is deprecated",
  ------------------
  |  |  179|      0|    if (flb_log_check(FLB_LOG_WARN))                                 \
  |  |  ------------------
  |  |  |  |   41|      0|#define FLB_LOG_WARN    2
  |  |  ------------------
  |  |  |  Branch (179:9): [True: 0, False: 0]
  |  |  ------------------
  |  |  180|      0|        flb_log_print(FLB_LOG_WARN, NULL, 0, fmt, ##__VA_ARGS__)
  |  |  ------------------
  |  |  |  |   41|      0|#define FLB_LOG_WARN    2
  |  |  ------------------
  ------------------
  499|      0|                             context_name, kv->key);
  500|      0|                }
  501|    163|                found = FLB_TRUE;
  ------------------
  |  |   26|    163|#define FLB_TRUE   !FLB_FALSE
  |  |  ------------------
  |  |  |  |   25|    163|#define FLB_FALSE  0
  |  |  ------------------
  ------------------
  502|    163|                break;
  503|    163|            }
  504|    956|        }
  505|       |
  506|    927|        if (found == FLB_FALSE) {
  ------------------
  |  |   25|    927|#define FLB_FALSE  0
  ------------------
  |  Branch (506:13): [True: 764, False: 163]
  ------------------
  507|    764|            helper = helper_map_options(map);
  508|    764|            if (!helper) {
  ------------------
  |  Branch (508:17): [True: 9, False: 755]
  ------------------
  509|      9|                flb_error("[config] %s: unknown configuration property '%s'",
  ------------------
  |  |  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
  |  |  ------------------
  ------------------
  510|      9|                          context_name, kv->key);
  511|      9|            }
  512|    755|            else {
  513|    755|                flb_error("[config] %s: unknown configuration property '%s'. %s",
  ------------------
  |  |  170|    755|    if (flb_log_check(FLB_LOG_ERROR))                                \
  |  |  ------------------
  |  |  |  |   40|    755|#define FLB_LOG_ERROR   1
  |  |  ------------------
  |  |  |  Branch (170:9): [True: 755, False: 0]
  |  |  ------------------
  |  |  171|    755|        flb_log_print(FLB_LOG_ERROR, NULL, 0, fmt, ##__VA_ARGS__)
  |  |  ------------------
  |  |  |  |   40|    755|#define FLB_LOG_ERROR   1
  |  |  ------------------
  ------------------
  514|    755|                          context_name, kv->key, helper);
  515|    755|                flb_sds_destroy(helper);
  516|    755|            }
  517|       |
  518|    764|            return -1;
  519|    764|        }
  520|       |
  521|       |        /* Validate number of times the property is set */
  522|    163|        count = property_count(kv->key, flb_sds_len(kv->key), in_properties);
  523|    163|        if ((m->flags & FLB_CONFIG_MAP_MULT) == 0) {
  ------------------
  |  |   53|    163|#define FLB_CONFIG_MAP_MULT       1
  ------------------
  |  Branch (523:13): [True: 128, False: 35]
  ------------------
  524|    128|            if (count > 1) {
  ------------------
  |  Branch (524:17): [True: 0, False: 128]
  ------------------
  525|      0|                flb_error("[config] %s: configuration property '%s' is set %i times",
  ------------------
  |  |  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
  |  |  ------------------
  ------------------
  526|      0|                          context_name, kv->key, count);
  527|      0|                return -1;
  528|      0|            }
  529|    128|        }
  530|    163|    }
  531|       |
  532|    166|    return 0;
  533|    930|}
flb_config_map_expected_values:
  566|     33|{
  567|     33|    if (type > FLB_CONFIG_MAP_CLIST && type < FLB_CONFIG_MAP_SLIST) {
  ------------------
  |  |   39|     66|#define FLB_CONFIG_MAP_CLIST    30   /* comma separated list of strings */
  ------------------
                  if (type > FLB_CONFIG_MAP_CLIST && type < FLB_CONFIG_MAP_SLIST) {
  ------------------
  |  |   45|     33|#define FLB_CONFIG_MAP_SLIST     40   /* empty space separated list of strings */
  ------------------
  |  Branch (567:9): [True: 33, False: 0]
  |  Branch (567:40): [True: 0, False: 33]
  ------------------
  568|      0|        return type - FLB_CONFIG_MAP_CLIST;
  ------------------
  |  |   39|      0|#define FLB_CONFIG_MAP_CLIST    30   /* comma separated list of strings */
  ------------------
  569|      0|    }
  570|     33|    if (type > FLB_CONFIG_MAP_SLIST && type <= FLB_CONFIG_MAP_SLIST_4) {
  ------------------
  |  |   45|     66|#define FLB_CONFIG_MAP_SLIST     40   /* empty space separated list of strings */
  ------------------
                  if (type > FLB_CONFIG_MAP_SLIST && type <= FLB_CONFIG_MAP_SLIST_4) {
  ------------------
  |  |   49|     33|#define FLB_CONFIG_MAP_SLIST_4   44   /* split up to 4 nodes + remaining data */
  ------------------
  |  Branch (570:9): [True: 33, False: 0]
  |  Branch (570:40): [True: 33, False: 0]
  ------------------
  571|     33|        return type - FLB_CONFIG_MAP_SLIST;
  ------------------
  |  |   45|     33|#define FLB_CONFIG_MAP_SLIST     40   /* empty space separated list of strings */
  ------------------
  572|     33|    }
  573|      0|    return -1;
  574|     33|}
flb_config_map_set:
  582|  1.10k|{
  583|  1.10k|    int ret;
  584|  1.10k|    int len;
  585|  1.10k|    char *base;
  586|  1.10k|    int *m_bool;
  587|  1.10k|    int *m_i_num;
  588|  1.10k|    double *m_d_num;
  589|  1.10k|    size_t *m_s_num;
  590|  1.10k|    flb_sds_t *m_str;
  591|  1.10k|    struct cfl_variant **m_variant;
  592|  1.10k|    struct flb_kv *kv;
  593|  1.10k|    struct mk_list *head;
  594|  1.10k|    struct mk_list *m_head;
  595|  1.10k|    struct mk_list **m_list;
  596|  1.10k|    struct mk_list *list;
  597|  1.10k|    struct flb_config_map *m = NULL;
  598|  1.10k|    struct flb_config_map_val *entry = NULL;
  599|       |
  600|  1.10k|    base = context;
  601|       |
  602|       |    /* Link 'already processed default values' into the caller context */
  603|  8.20k|    mk_list_foreach(m_head, map) {
  ------------------
  |  |  205|  9.31k|#define mk_list_foreach(curr, head) for( curr = (head)->next; curr != (head); curr = curr->next )
  |  |  ------------------
  |  |  |  Branch (205:63): [True: 8.20k, False: 1.10k]
  |  |  ------------------
  ------------------
  604|  8.20k|        m = mk_list_entry(m_head, struct flb_config_map, _head);
  ------------------
  |  |  214|  8.20k|#define mk_list_entry( ptr, type, member ) container_of( ptr, type, member )
  |  |  ------------------
  |  |  |  |   38|  8.20k|#define container_of(ptr, type, member) ({                      \
  |  |  |  |   39|  8.20k|      const typeof( ((type *)0)->member ) *__mptr = (ptr);      \
  |  |  |  |   40|  8.20k|      (type *)( (char *)__mptr - offsetof(type,member) );})
  |  |  ------------------
  ------------------
  605|       |
  606|       |        /*
  607|       |         * If the map type allows multiple entries, the user context is a pointer
  608|       |         * for a linked list. We just point their structure to our pre-processed
  609|       |         * list of entries.
  610|       |         */
  611|  8.20k|        if (m->flags & FLB_CONFIG_MAP_MULT && m->set_property == FLB_TRUE) {
  ------------------
  |  |   53|  16.4k|#define FLB_CONFIG_MAP_MULT       1
  ------------------
                      if (m->flags & FLB_CONFIG_MAP_MULT && m->set_property == FLB_TRUE) {
  ------------------
  |  |   26|  3.59k|#define FLB_TRUE   !FLB_FALSE
  |  |  ------------------
  |  |  |  |   25|  3.59k|#define FLB_FALSE  0
  |  |  ------------------
  ------------------
  |  Branch (611:13): [True: 3.59k, False: 4.61k]
  |  Branch (611:47): [True: 3.59k, False: 0]
  ------------------
  612|  3.59k|            m_list = (struct mk_list **) (base + m->offset);
  613|  3.59k|            *m_list = m->value.mult;
  614|  3.59k|            continue;
  615|  3.59k|        }
  616|       |
  617|       |        /*
  618|       |         * If no default value exists or the map will not write to the user
  619|       |         * context.. skip it.
  620|       |         */
  621|  4.61k|        if (!m->def_value || m->set_property == FLB_FALSE) {
  ------------------
  |  |   25|  4.61k|#define FLB_FALSE  0
  ------------------
  |  Branch (621:13): [True: 0, False: 4.61k]
  |  Branch (621:30): [True: 0, False: 4.61k]
  ------------------
  622|      0|            continue;
  623|      0|        }
  624|       |
  625|       |        /*
  626|       |         * If a property set by the user will override the default value, just
  627|       |         * do not put the default value into the context since it will be replaced
  628|       |         * later.
  629|       |         */
  630|  4.61k|        ret = properties_override_default(properties, m->name);
  631|  4.61k|        if (ret == FLB_TRUE) {
  ------------------
  |  |   26|  4.61k|#define FLB_TRUE   !FLB_FALSE
  |  |  ------------------
  |  |  |  |   25|  4.61k|#define FLB_FALSE  0
  |  |  ------------------
  ------------------
  |  Branch (631:13): [True: 242, False: 4.37k]
  ------------------
  632|    242|            continue;
  633|    242|        }
  634|       |
  635|       |        /* All the following steps are direct writes to the user context */
  636|  4.37k|        if (m->type == FLB_CONFIG_MAP_STR) {
  ------------------
  |  |   30|  4.37k|#define FLB_CONFIG_MAP_STR         0    /* string */
  ------------------
  |  Branch (636:13): [True: 501, False: 3.87k]
  ------------------
  637|    501|            m_str = (char **) (base + m->offset);
  638|    501|            *m_str = m->value.val.str;
  639|    501|        }
  640|  3.87k|        else if (m->type == FLB_CONFIG_MAP_INT) {
  ------------------
  |  |   32|  3.87k|#define FLB_CONFIG_MAP_INT         2    /* integer */
  ------------------
  |  Branch (640:18): [True: 500, False: 3.37k]
  ------------------
  641|    500|            m_i_num = (int *) (base + m->offset);
  642|    500|            *m_i_num = m->value.val.i_num;
  643|    500|        }
  644|  3.37k|        else if (m->type == FLB_CONFIG_MAP_DOUBLE) {
  ------------------
  |  |   34|  3.37k|#define FLB_CONFIG_MAP_DOUBLE      4    /* double */
  ------------------
  |  Branch (644:18): [True: 500, False: 2.87k]
  ------------------
  645|    500|            m_d_num = (double *) (base + m->offset);
  646|    500|            *m_d_num = m->value.val.d_num;
  647|    500|        }
  648|  2.87k|        else if (m->type == FLB_CONFIG_MAP_SIZE) {
  ------------------
  |  |   35|  2.87k|#define FLB_CONFIG_MAP_SIZE        5    /* string size to integer (e.g: 2M) */
  ------------------
  |  Branch (648:18): [True: 432, False: 2.44k]
  ------------------
  649|    432|            m_s_num = (size_t *) (base + m->offset);
  650|    432|            *m_s_num = m->value.val.s_num;
  651|    432|        }
  652|  2.44k|        else if (m->type == FLB_CONFIG_MAP_TIME) {
  ------------------
  |  |   36|  2.44k|#define FLB_CONFIG_MAP_TIME        6    /* string time to integer seconds (e.g: 2H) */
  ------------------
  |  Branch (652:18): [True: 470, False: 1.97k]
  ------------------
  653|    470|            m_i_num = (int *) (base + m->offset);
  654|    470|            *m_i_num = m->value.val.i_num;
  655|    470|        }
  656|  1.97k|        else if (m->type == FLB_CONFIG_MAP_BOOL) {
  ------------------
  |  |   33|  1.97k|#define FLB_CONFIG_MAP_BOOL        3    /* boolean */
  ------------------
  |  Branch (656:18): [True: 986, False: 984]
  ------------------
  657|    986|            m_bool = (int *) (base + m->offset);
  658|    986|            *m_bool = m->value.val.boolean;
  659|    986|        }
  660|    984|        else if (m->type >= FLB_CONFIG_MAP_CLIST ||
  ------------------
  |  |   39|  1.96k|#define FLB_CONFIG_MAP_CLIST    30   /* comma separated list of strings */
  ------------------
  |  Branch (660:18): [True: 984, False: 0]
  ------------------
  661|    984|                 m->type <= FLB_CONFIG_MAP_SLIST_4) {
  ------------------
  |  |   49|      0|#define FLB_CONFIG_MAP_SLIST_4   44   /* split up to 4 nodes + remaining data */
  ------------------
  |  Branch (661:18): [True: 0, False: 0]
  ------------------
  662|    984|            m_list = (struct mk_list **) (base + m->offset);
  663|    984|            *m_list = m->value.val.list;
  664|    984|        }
  665|  4.37k|    }
  666|       |
  667|       |    /*
  668|       |     * Iterate all properties coming from the configuration reader. If a property overrides
  669|       |     * a default value already set in the previous step, just link to the new value.
  670|       |     */
  671|  1.10k|    mk_list_foreach(head, properties) {
  ------------------
  |  |  205|  2.03k|#define mk_list_foreach(curr, head) for( curr = (head)->next; curr != (head); curr = curr->next )
  |  |  ------------------
  |  |  |  Branch (205:63): [True: 1.10k, False: 930]
  |  |  ------------------
  ------------------
  672|  1.10k|        kv = mk_list_entry(head, struct flb_kv, _head);
  ------------------
  |  |  214|  1.10k|#define mk_list_entry( ptr, type, member ) container_of( ptr, type, member )
  |  |  ------------------
  |  |  |  |   38|  1.10k|#define container_of(ptr, type, member) ({                      \
  |  |  |  |   39|  1.10k|      const typeof( ((type *)0)->member ) *__mptr = (ptr);      \
  |  |  |  |   40|  1.10k|      (type *)( (char *)__mptr - offsetof(type,member) );})
  |  |  ------------------
  ------------------
  673|       |
  674|  1.10k|        if (kv->val == NULL) {
  ------------------
  |  Branch (674:13): [True: 88, False: 1.01k]
  ------------------
  675|     88|            continue;
  676|     88|        }
  677|       |
  678|  6.35k|        mk_list_foreach(m_head, map) {
  ------------------
  |  |  205|  7.03k|#define mk_list_foreach(curr, head) for( curr = (head)->next; curr != (head); curr = curr->next )
  |  |  ------------------
  |  |  |  Branch (205:63): [True: 6.35k, False: 680]
  |  |  ------------------
  ------------------
  679|  6.35k|            m = mk_list_entry(m_head, struct flb_config_map, _head);
  ------------------
  |  |  214|  6.35k|#define mk_list_entry( ptr, type, member ) container_of( ptr, type, member )
  |  |  ------------------
  |  |  |  |   38|  6.35k|#define container_of(ptr, type, member) ({                      \
  |  |  |  |   39|  6.35k|      const typeof( ((type *)0)->member ) *__mptr = (ptr);      \
  |  |  |  |   40|  6.35k|      (type *)( (char *)__mptr - offsetof(type,member) );})
  |  |  ------------------
  ------------------
  680|  6.35k|            if (flb_sds_len(kv->key) != flb_sds_len(m->name)) {
  ------------------
  |  Branch (680:17): [True: 5.23k, False: 1.11k]
  ------------------
  681|  5.23k|                m = NULL;
  682|  5.23k|                continue;
  683|  5.23k|            }
  684|       |
  685|  1.11k|            if (strncasecmp(kv->key, m->name, flb_sds_len(m->name)) == 0) {
  ------------------
  |  Branch (685:17): [True: 333, False: 786]
  ------------------
  686|    333|                break;
  687|    333|            }
  688|    786|            m = NULL;
  689|    786|            continue;
  690|       |
  691|  1.11k|        }
  692|       |
  693|  1.01k|        if (!m || m->set_property == FLB_FALSE) {
  ------------------
  |  |   25|    333|#define FLB_FALSE  0
  ------------------
  |  Branch (693:13): [True: 680, False: 333]
  |  Branch (693:19): [True: 0, False: 333]
  ------------------
  694|    680|            continue;
  695|    680|        }
  696|       |
  697|       |        /* Check if the map allows multiple entries */
  698|    333|        if (m->flags & FLB_CONFIG_MAP_MULT) {
  ------------------
  |  |   53|    333|#define FLB_CONFIG_MAP_MULT       1
  ------------------
  |  Branch (698:13): [True: 91, False: 242]
  ------------------
  699|       |            /* Create node */
  700|     91|            entry = flb_calloc(1, sizeof(struct flb_config_map_val));
  701|     91|            if (!entry) {
  ------------------
  |  Branch (701:17): [True: 2, False: 89]
  ------------------
  702|      2|                flb_errno();
  ------------------
  |  |  232|      2|#define flb_errno() flb_errno_print(errno, __FLB_FILENAME__, __LINE__)
  ------------------
  703|      2|                return -1;
  704|      2|            }
  705|       |
  706|       |            /* Populate value */
  707|     89|            if (m->type == FLB_CONFIG_MAP_STR) {
  ------------------
  |  |   30|     89|#define FLB_CONFIG_MAP_STR         0    /* string */
  ------------------
  |  Branch (707:17): [True: 2, False: 87]
  ------------------
  708|      2|                entry->val.str = flb_sds_create(kv->val);
  709|      2|            }
  710|     87|            else if (m->type == FLB_CONFIG_MAP_INT) {
  ------------------
  |  |   32|     87|#define FLB_CONFIG_MAP_INT         2    /* integer */
  ------------------
  |  Branch (710:22): [True: 1, False: 86]
  ------------------
  711|      1|                entry->val.i_num = atoi(kv->val);
  712|      1|            }
  713|     86|            else if (m->type == FLB_CONFIG_MAP_DOUBLE) {
  ------------------
  |  |   34|     86|#define FLB_CONFIG_MAP_DOUBLE      4    /* double */
  ------------------
  |  Branch (713:22): [True: 1, False: 85]
  ------------------
  714|      1|                entry->val.d_num = atof(kv->val);
  715|      1|            }
  716|     85|            else if (m->type == FLB_CONFIG_MAP_SIZE) {
  ------------------
  |  |   35|     85|#define FLB_CONFIG_MAP_SIZE        5    /* string size to integer (e.g: 2M) */
  ------------------
  |  Branch (716:22): [True: 0, False: 85]
  ------------------
  717|      0|                entry->val.s_num = flb_utils_size_to_bytes(kv->val);
  718|      0|            }
  719|     85|            else if (m->type == FLB_CONFIG_MAP_TIME) {
  ------------------
  |  |   36|     85|#define FLB_CONFIG_MAP_TIME        6    /* string time to integer seconds (e.g: 2H) */
  ------------------
  |  Branch (719:22): [True: 0, False: 85]
  ------------------
  720|      0|                entry->val.i_num = flb_utils_time_to_seconds(kv->val);
  721|      0|            }
  722|     85|            else if (m->type == FLB_CONFIG_MAP_BOOL) {
  ------------------
  |  |   33|     85|#define FLB_CONFIG_MAP_BOOL        3    /* boolean */
  ------------------
  |  Branch (722:22): [True: 24, False: 61]
  ------------------
  723|     24|                ret = flb_utils_bool(kv->val);
  724|     24|                if (ret == -1) {
  ------------------
  |  Branch (724:21): [True: 21, False: 3]
  ------------------
  725|     21|                    flb_free(entry);
  726|     21|                    flb_error("[config map] invalid value for boolean property '%s=%s'",
  ------------------
  |  |  170|     21|    if (flb_log_check(FLB_LOG_ERROR))                                \
  |  |  ------------------
  |  |  |  |   40|     21|#define FLB_LOG_ERROR   1
  |  |  ------------------
  |  |  |  Branch (170:9): [True: 21, False: 0]
  |  |  ------------------
  |  |  171|     21|        flb_log_print(FLB_LOG_ERROR, NULL, 0, fmt, ##__VA_ARGS__)
  |  |  ------------------
  |  |  |  |   40|     21|#define FLB_LOG_ERROR   1
  |  |  ------------------
  ------------------
  727|     21|                              m->name, kv->val);
  728|     21|                    return -1;
  729|     21|                }
  730|      3|                entry->val.boolean = ret;
  731|      3|            }
  732|     61|            else if (m->type >= FLB_CONFIG_MAP_CLIST ||
  ------------------
  |  |   39|    122|#define FLB_CONFIG_MAP_CLIST    30   /* comma separated list of strings */
  ------------------
  |  Branch (732:22): [True: 61, False: 0]
  ------------------
  733|     61|                     m->type <= FLB_CONFIG_MAP_SLIST_4) {
  ------------------
  |  |   49|      0|#define FLB_CONFIG_MAP_SLIST_4   44   /* split up to 4 nodes + remaining data */
  ------------------
  |  Branch (733:22): [True: 0, False: 0]
  ------------------
  734|       |
  735|     61|                list = parse_string_map_to_list(m, kv->val);
  736|     61|                if (!list) {
  ------------------
  |  Branch (736:21): [True: 1, False: 60]
  ------------------
  737|      1|                    flb_error("[config map] cannot parse list of values '%s'", kv->val);
  ------------------
  |  |  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
  |  |  ------------------
  ------------------
  738|      1|                    flb_free(entry);
  739|      1|                    return -1;
  740|      1|                }
  741|     60|                entry->val.list = list;
  742|       |
  743|       |                /* Validate the number of entries are the minimum expected */
  744|     60|                len = mk_list_size(list);
  745|     60|                ret = check_list_size(list, m->type);
  746|     60|                if (ret == -1) {
  ------------------
  |  Branch (746:21): [True: 33, False: 27]
  ------------------
  747|     33|                    flb_error("[config map] property '%s' expects %i values "
  ------------------
  |  |  170|     33|    if (flb_log_check(FLB_LOG_ERROR))                                \
  |  |  ------------------
  |  |  |  |   40|     33|#define FLB_LOG_ERROR   1
  |  |  ------------------
  |  |  |  Branch (170:9): [True: 33, False: 0]
  |  |  ------------------
  |  |  171|     33|        flb_log_print(FLB_LOG_ERROR, NULL, 0, fmt, ##__VA_ARGS__)
  |  |  ------------------
  |  |  |  |   40|     33|#define FLB_LOG_ERROR   1
  |  |  ------------------
  ------------------
  748|     33|                              "(only %i were found)",
  749|     33|                              kv->key,
  750|     33|                              flb_config_map_expected_values(m->type), len);
  751|       |                    /*
  752|       |                     * Register the entry anyways, so on exit the resources will
  753|       |                     * be released
  754|       |                     */
  755|     33|                    mk_list_add(&entry->_head, m->value.mult);
  756|     33|                    return -1;
  757|     33|                }
  758|     60|            }
  759|       |
  760|       |            /* Add entry to the map 'mult' list tail */
  761|     34|            mk_list_add(&entry->_head, m->value.mult);
  762|       |
  763|       |            /* Override user context */
  764|     34|            m_list = (struct mk_list **) (base + m->offset);
  765|     34|            *m_list = m->value.mult;
  766|     34|        }
  767|    242|        else if (map != NULL) {
  ------------------
  |  Branch (767:18): [True: 242, False: 0]
  ------------------
  768|       |            /* Direct write to user context */
  769|    242|            if (m->type == FLB_CONFIG_MAP_STR) {
  ------------------
  |  |   30|    242|#define FLB_CONFIG_MAP_STR         0    /* string */
  ------------------
  |  Branch (769:17): [True: 1, False: 241]
  ------------------
  770|      1|                m_str = (char **) (base + m->offset);
  771|      1|                *m_str = kv->val;
  772|      1|            }
  773|    241|            else if (m->type == FLB_CONFIG_MAP_INT) {
  ------------------
  |  |   32|    241|#define FLB_CONFIG_MAP_INT         2    /* integer */
  ------------------
  |  Branch (773:22): [True: 2, False: 239]
  ------------------
  774|      2|                m_i_num = (int *) (base + m->offset);
  775|      2|                *m_i_num = atoi(kv->val);
  776|      2|            }
  777|    239|            else if (m->type == FLB_CONFIG_MAP_DOUBLE) {
  ------------------
  |  |   34|    239|#define FLB_CONFIG_MAP_DOUBLE      4    /* double */
  ------------------
  |  Branch (777:22): [True: 2, False: 237]
  ------------------
  778|      2|                m_d_num = (double *) (base + m->offset);
  779|      2|                *m_d_num = atof(kv->val);
  780|      2|            }
  781|    237|            else if (m->type == FLB_CONFIG_MAP_BOOL) {
  ------------------
  |  |   33|    237|#define FLB_CONFIG_MAP_BOOL        3    /* boolean */
  ------------------
  |  Branch (781:22): [True: 115, False: 122]
  ------------------
  782|    115|                m_bool = (int *) (base + m->offset);
  783|    115|                ret = flb_utils_bool(kv->val);
  784|    115|                if (ret == -1) {
  ------------------
  |  Branch (784:21): [True: 112, False: 3]
  ------------------
  785|    112|                    flb_error("[config map] invalid value for boolean property '%s=%s'",
  ------------------
  |  |  170|    112|    if (flb_log_check(FLB_LOG_ERROR))                                \
  |  |  ------------------
  |  |  |  |   40|    112|#define FLB_LOG_ERROR   1
  |  |  ------------------
  |  |  |  Branch (170:9): [True: 112, False: 0]
  |  |  ------------------
  |  |  171|    112|        flb_log_print(FLB_LOG_ERROR, NULL, 0, fmt, ##__VA_ARGS__)
  |  |  ------------------
  |  |  |  |   40|    112|#define FLB_LOG_ERROR   1
  |  |  ------------------
  ------------------
  786|    112|                              m->name, kv->val);
  787|    112|                    return -1;
  788|    112|                }
  789|      3|                *m_bool = ret;
  790|      3|            }
  791|    122|            else if (m->type == FLB_CONFIG_MAP_SIZE) {
  ------------------
  |  |   35|    122|#define FLB_CONFIG_MAP_SIZE        5    /* string size to integer (e.g: 2M) */
  ------------------
  |  Branch (791:22): [True: 70, False: 52]
  ------------------
  792|     70|                m_s_num = (size_t *) (base + m->offset);
  793|     70|                *m_s_num = flb_utils_size_to_bytes(kv->val);
  794|     70|            }
  795|     52|            else if (m->type == FLB_CONFIG_MAP_TIME) {
  ------------------
  |  |   36|     52|#define FLB_CONFIG_MAP_TIME        6    /* string time to integer seconds (e.g: 2H) */
  ------------------
  |  Branch (795:22): [True: 32, False: 20]
  ------------------
  796|     32|                m_i_num = (int *) (base + m->offset);
  797|     32|                *m_i_num = flb_utils_time_to_seconds(kv->val);
  798|     32|            }
  799|     20|            else if (m->type == FLB_CONFIG_MAP_VARIANT) {
  ------------------
  |  |   51|     20|#define FLB_CONFIG_MAP_VARIANT   50   /* variant that wraps a kvlist or array */
  ------------------
  |  Branch (799:22): [True: 0, False: 20]
  ------------------
  800|      0|                m_variant = (struct cfl_variant **) (base + m->offset);
  801|      0|                *m_variant = (struct cfl_variant *)kv->val;
  802|       |                /* Ownership of the object belongs to the config section, set it
  803|       |                 * to NULL to prevent flb_kv_item_destroy to attempt freeing it */
  804|      0|                kv->val = NULL;
  805|      0|            }
  806|     20|            else if (m->type >= FLB_CONFIG_MAP_CLIST ||
  ------------------
  |  |   39|     40|#define FLB_CONFIG_MAP_CLIST    30   /* comma separated list of strings */
  ------------------
  |  Branch (806:22): [True: 20, False: 0]
  ------------------
  807|     20|                     m->type <= FLB_CONFIG_MAP_SLIST_4) {
  ------------------
  |  |   49|      0|#define FLB_CONFIG_MAP_SLIST_4   44   /* split up to 4 nodes + remaining data */
  ------------------
  |  Branch (807:22): [True: 0, False: 0]
  ------------------
  808|     20|                list = parse_string_map_to_list(m, kv->val);
  809|     20|                if (!list) {
  ------------------
  |  Branch (809:21): [True: 2, False: 18]
  ------------------
  810|      2|                    flb_error("[config map] cannot parse list of values '%s'", kv->val);
  ------------------
  |  |  170|      2|    if (flb_log_check(FLB_LOG_ERROR))                                \
  |  |  ------------------
  |  |  |  |   40|      2|#define FLB_LOG_ERROR   1
  |  |  ------------------
  |  |  |  Branch (170:9): [True: 2, False: 0]
  |  |  ------------------
  |  |  171|      2|        flb_log_print(FLB_LOG_ERROR, NULL, 0, fmt, ##__VA_ARGS__)
  |  |  ------------------
  |  |  |  |   40|      2|#define FLB_LOG_ERROR   1
  |  |  ------------------
  ------------------
  811|      2|                    flb_free(entry);
  812|      2|                    return -1;
  813|      2|                }
  814|       |
  815|     18|                if (m->value.val.list) {
  ------------------
  |  Branch (815:21): [True: 18, False: 0]
  ------------------
  816|     18|                    destroy_map_val(m->type, &m->value);
  817|     18|                }
  818|       |
  819|     18|                m->value.val.list = list;
  820|     18|                m_list = (struct mk_list **) (base + m->offset);
  821|     18|                *m_list = m->value.val.list;
  822|     18|            }
  823|    242|        }
  824|    333|    }
  825|       |
  826|    930|    return 0;
  827|  1.10k|}
flb_config_map.c:translate_default_value:
  108|  7.86k|{
  109|  7.86k|    int ret;
  110|  7.86k|    struct flb_config_map_val *entry = NULL;
  111|  7.86k|    struct mk_list *list = NULL;
  112|       |
  113|       |    /* Prepare contexts if the map allows multiple entries */
  114|  7.86k|    if (map->flags & FLB_CONFIG_MAP_MULT) {
  ------------------
  |  |   53|  7.86k|#define FLB_CONFIG_MAP_MULT       1
  ------------------
  |  Branch (114:9): [True: 3.10k, False: 4.76k]
  ------------------
  115|  3.10k|        entry = flb_calloc(1, sizeof(struct flb_config_map_val));
  116|  3.10k|        if (!entry) {
  ------------------
  |  Branch (116:13): [True: 2, False: 3.10k]
  ------------------
  117|      2|            flb_errno();
  ------------------
  |  |  232|      2|#define flb_errno() flb_errno_print(errno, __FLB_FILENAME__, __LINE__)
  ------------------
  118|       |            /*
  119|       |             * do not worry about 'list' allocation, it will be destroyed by the caller
  120|       |             * when it catches this error
  121|       |             */
  122|      2|            return -1;
  123|      2|        }
  124|  3.10k|    }
  125|  4.76k|    else {
  126|  4.76k|        entry = &map->value;
  127|  4.76k|    }
  128|       |
  129|       |    /* Based on specific data types, populate 'value' */
  130|  7.86k|    if (map->type == FLB_CONFIG_MAP_STR) {
  ------------------
  |  |   30|  7.86k|#define FLB_CONFIG_MAP_STR         0    /* string */
  ------------------
  |  Branch (130:9): [True: 1.14k, False: 6.71k]
  ------------------
  131|       |        /* Duplicate string as a flb_sds_t */
  132|  1.14k|        entry->val.str = flb_sds_create(val);
  133|       |
  134|       |        /* Validate new memory allocation */
  135|  1.14k|        if (!entry->val.str) {
  ------------------
  |  Branch (135:13): [True: 2, False: 1.14k]
  ------------------
  136|      2|            goto error;
  137|      2|        }
  138|  1.14k|    }
  139|  6.71k|    else if (map->type == FLB_CONFIG_MAP_STR_PREFIX) {
  ------------------
  |  |   31|  6.71k|#define FLB_CONFIG_MAP_STR_PREFIX  1    /* string that starts with  */
  ------------------
  |  Branch (139:14): [True: 0, False: 6.71k]
  ------------------
  140|       |        /*
  141|       |         * For prefixed string types we don't process them, just validate
  142|       |         * that no default value has been set.
  143|       |         */
  144|      0|        if (val) {
  ------------------
  |  Branch (144:13): [True: 0, False: 0]
  ------------------
  145|      0|            flb_error("[config map] invalid default value for prefixed string '%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
  |  |  ------------------
  ------------------
  146|      0|                      map->name);
  147|      0|            goto error;
  148|      0|        }
  149|      0|    }
  150|  6.71k|    else if (map->type == FLB_CONFIG_MAP_BOOL) {
  ------------------
  |  |   33|  6.71k|#define FLB_CONFIG_MAP_BOOL        3    /* boolean */
  ------------------
  |  Branch (150:14): [True: 1.15k, False: 5.56k]
  ------------------
  151|  1.15k|        ret = flb_utils_bool(val);
  152|  1.15k|        if (ret == -1) {
  ------------------
  |  Branch (152:13): [True: 0, False: 1.15k]
  ------------------
  153|      0|            flb_error("[config map] invalid default value for boolean '%s=%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
  |  |  ------------------
  ------------------
  154|      0|                      map->name, val);
  155|      0|            goto error;
  156|      0|        }
  157|  1.15k|        entry->val.boolean = flb_utils_bool(val);
  158|  1.15k|    }
  159|  5.56k|    else if (map->type == FLB_CONFIG_MAP_INT) {
  ------------------
  |  |   32|  5.56k|#define FLB_CONFIG_MAP_INT         2    /* integer */
  ------------------
  |  Branch (159:14): [True: 1.14k, False: 4.41k]
  ------------------
  160|  1.14k|        entry->val.i_num = atoi(val);
  161|  1.14k|    }
  162|  4.41k|    else if (map->type == FLB_CONFIG_MAP_DOUBLE) {
  ------------------
  |  |   34|  4.41k|#define FLB_CONFIG_MAP_DOUBLE      4    /* double */
  ------------------
  |  Branch (162:14): [True: 1.14k, False: 3.26k]
  ------------------
  163|  1.14k|        entry->val.d_num = atof(val);
  164|  1.14k|    }
  165|  3.26k|    else if (map->type == FLB_CONFIG_MAP_SIZE) {
  ------------------
  |  |   35|  3.26k|#define FLB_CONFIG_MAP_SIZE        5    /* string size to integer (e.g: 2M) */
  ------------------
  |  Branch (165:14): [True: 515, False: 2.75k]
  ------------------
  166|    515|        entry->val.s_num = flb_utils_size_to_bytes(val);
  167|    515|    }
  168|  2.75k|    else if (map->type == FLB_CONFIG_MAP_TIME) {
  ------------------
  |  |   36|  2.75k|#define FLB_CONFIG_MAP_TIME        6    /* string time to integer seconds (e.g: 2H) */
  ------------------
  |  Branch (168:14): [True: 515, False: 2.23k]
  ------------------
  169|    515|        entry->val.i_num = flb_utils_time_to_seconds(val);
  170|    515|    }
  171|  2.23k|    else if (map->type >= FLB_CONFIG_MAP_CLIST &&
  ------------------
  |  |   39|  4.47k|#define FLB_CONFIG_MAP_CLIST    30   /* comma separated list of strings */
  ------------------
  |  Branch (171:14): [True: 2.23k, False: 0]
  ------------------
  172|  2.23k|             map->type <= FLB_CONFIG_MAP_SLIST_4) {
  ------------------
  |  |   49|  2.23k|#define FLB_CONFIG_MAP_SLIST_4   44   /* split up to 4 nodes + remaining data */
  ------------------
  |  Branch (172:14): [True: 2.23k, False: 0]
  ------------------
  173|       |
  174|  2.23k|        list = parse_string_map_to_list(map, val);
  175|  2.23k|        if (!list) {
  ------------------
  |  Branch (175:13): [True: 22, False: 2.21k]
  ------------------
  176|     22|            flb_error("[config map] cannot parse list of values '%s'", val);
  ------------------
  |  |  170|     22|    if (flb_log_check(FLB_LOG_ERROR))                                \
  |  |  ------------------
  |  |  |  |   40|     22|#define FLB_LOG_ERROR   1
  |  |  ------------------
  |  |  |  Branch (170:9): [True: 22, False: 0]
  |  |  ------------------
  |  |  171|     22|        flb_log_print(FLB_LOG_ERROR, NULL, 0, fmt, ##__VA_ARGS__)
  |  |  ------------------
  |  |  |  |   40|     22|#define FLB_LOG_ERROR   1
  |  |  ------------------
  ------------------
  177|     22|            goto error;
  178|     22|        }
  179|       |
  180|  2.21k|        entry->val.list = list;
  181|  2.21k|        list = NULL;
  182|  2.21k|    }
  183|       |
  184|  7.83k|    if (map->flags & FLB_CONFIG_MAP_MULT) {
  ------------------
  |  |   53|  7.83k|#define FLB_CONFIG_MAP_MULT       1
  ------------------
  |  Branch (184:9): [True: 3.08k, False: 4.75k]
  ------------------
  185|  3.08k|        mk_list_add(&entry->_head, map->value.mult);
  186|  3.08k|    }
  187|       |
  188|  7.83k|    return 0;
  189|       |
  190|     24| error:
  191|     24|    if (map->flags & FLB_CONFIG_MAP_MULT) {
  ------------------
  |  |   53|     24|#define FLB_CONFIG_MAP_MULT       1
  ------------------
  |  Branch (191:9): [True: 14, False: 10]
  ------------------
  192|     14|        flb_free(entry);
  193|     14|    }
  194|     24|    return -1;
  195|  7.86k|}
flb_config_map.c:destroy_map_val:
  363|  7.94k|{
  364|  7.94k|    if (type == FLB_CONFIG_MAP_STR && value->val.str) {
  ------------------
  |  |   30|  15.8k|#define FLB_CONFIG_MAP_STR         0    /* string */
  ------------------
  |  Branch (364:9): [True: 1.14k, False: 6.79k]
  |  Branch (364:39): [True: 1.14k, False: 2]
  ------------------
  365|  1.14k|        flb_sds_destroy(value->val.str);
  366|  1.14k|    }
  367|  6.79k|    else if ((type >= FLB_CONFIG_MAP_CLIST &&
  ------------------
  |  |   39|  13.5k|#define FLB_CONFIG_MAP_CLIST    30   /* comma separated list of strings */
  ------------------
  |  Branch (367:15): [True: 2.30k, False: 4.49k]
  ------------------
  368|  6.79k|              type <= FLB_CONFIG_MAP_SLIST_4) &&
  ------------------
  |  |   49|  2.30k|#define FLB_CONFIG_MAP_SLIST_4   44   /* split up to 4 nodes + remaining data */
  ------------------
  |  Branch (368:15): [True: 2.30k, False: 0]
  ------------------
  369|  6.79k|             value->val.list) {
  ------------------
  |  Branch (369:14): [True: 2.29k, False: 14]
  ------------------
  370|  2.29k|        flb_slist_destroy(value->val.list);
  371|  2.29k|        flb_free(value->val.list);
  372|  2.29k|    }
  373|  7.94k|}
flb_config_map.c:is_internal_debug_property:
  435|    930|{
  436|       |#ifdef FLB_HAVE_HTTP_CLIENT_DEBUG
  437|       |    if (strncmp(prop_name, "_debug.http.", 12) == 0) {
  438|       |        return FLB_TRUE;
  439|       |    }
  440|       |#endif
  441|       |
  442|    930|    return FLB_FALSE;
  ------------------
  |  |   25|    930|#define FLB_FALSE  0
  ------------------
  443|    930|}
flb_config_map.c:helper_map_options:
  198|    764|{
  199|    764|    flb_sds_t buf;
  200|    764|    flb_sds_t tmp;
  201|    764|    struct mk_list *head;
  202|    764|    struct flb_config_map *m;
  203|       |
  204|    764|    buf = flb_sds_create_size(256);
  205|    764|    if (!buf) {
  ------------------
  |  Branch (205:9): [True: 9, False: 755]
  ------------------
  206|      9|        flb_errno();
  ------------------
  |  |  232|      9|#define flb_errno() flb_errno_print(errno, __FLB_FILENAME__, __LINE__)
  ------------------
  207|      9|        return NULL;
  208|      9|    }
  209|       |
  210|    755|    tmp = flb_sds_printf(&buf, "The following properties are allowed: ");
  211|    755|    if (!tmp) {
  ------------------
  |  Branch (211:9): [True: 0, False: 755]
  ------------------
  212|      0|        flb_errno();
  ------------------
  |  |  232|      0|#define flb_errno() flb_errno_print(errno, __FLB_FILENAME__, __LINE__)
  ------------------
  213|      0|        flb_sds_destroy(buf);
  214|      0|        return NULL;
  215|      0|    }
  216|    755|    buf = tmp;
  217|       |
  218|  5.60k|    mk_list_foreach(head, map) {
  ------------------
  |  |  205|  6.35k|#define mk_list_foreach(curr, head) for( curr = (head)->next; curr != (head); curr = curr->next )
  |  |  ------------------
  |  |  |  Branch (205:63): [True: 5.60k, False: 755]
  |  |  ------------------
  ------------------
  219|  5.60k|        m = mk_list_entry(head, struct flb_config_map, _head);
  ------------------
  |  |  214|  5.60k|#define mk_list_entry( ptr, type, member ) container_of( ptr, type, member )
  |  |  ------------------
  |  |  |  |   38|  5.60k|#define container_of(ptr, type, member) ({                      \
  |  |  |  |   39|  5.60k|      const typeof( ((type *)0)->member ) *__mptr = (ptr);      \
  |  |  |  |   40|  5.60k|      (type *)( (char *)__mptr - offsetof(type,member) );})
  |  |  ------------------
  ------------------
  220|  5.60k|        if (head->next != map) {
  ------------------
  |  Branch (220:13): [True: 4.84k, False: 755]
  ------------------
  221|  4.84k|            tmp = flb_sds_printf(&buf, "%s, ", m->name);
  222|  4.84k|        }
  223|    755|        else {
  224|    755|            if (mk_list_size(map) == 1) {
  ------------------
  |  Branch (224:17): [True: 0, False: 755]
  ------------------
  225|      0|                tmp = flb_sds_printf(&buf, "%s.", m->name);
  226|      0|            }
  227|    755|            else {
  228|    755|                tmp = flb_sds_printf(&buf, "and %s.", m->name);
  229|    755|            }
  230|    755|        }
  231|       |
  232|  5.60k|        if (!tmp) {
  ------------------
  |  Branch (232:13): [True: 0, False: 5.60k]
  ------------------
  233|      0|            flb_errno();
  ------------------
  |  |  232|      0|#define flb_errno() flb_errno_print(errno, __FLB_FILENAME__, __LINE__)
  ------------------
  234|      0|            flb_sds_destroy(buf);
  235|      0|            return NULL;
  236|      0|        }
  237|  5.60k|        buf = tmp;
  238|  5.60k|    }
  239|       |
  240|    755|    return buf;
  241|    755|}
flb_config_map.c:properties_override_default:
  540|  4.61k|{
  541|  4.61k|    int len;
  542|  4.61k|    struct mk_list *head;
  543|  4.61k|    struct flb_kv *kv;
  544|       |
  545|  4.61k|    len = strlen(name);
  546|       |
  547|  4.61k|    mk_list_foreach(head, properties) {
  ------------------
  |  |  205|  8.98k|#define mk_list_foreach(curr, head) for( curr = (head)->next; curr != (head); curr = curr->next )
  |  |  ------------------
  |  |  |  Branch (205:63): [True: 4.61k, False: 4.37k]
  |  |  ------------------
  ------------------
  548|  4.61k|        kv = mk_list_entry(head, struct flb_kv, _head);
  ------------------
  |  |  214|  4.61k|#define mk_list_entry( ptr, type, member ) container_of( ptr, type, member )
  |  |  ------------------
  |  |  |  |   38|  4.61k|#define container_of(ptr, type, member) ({                      \
  |  |  |  |   39|  4.61k|      const typeof( ((type *)0)->member ) *__mptr = (ptr);      \
  |  |  |  |   40|  4.61k|      (type *)( (char *)__mptr - offsetof(type,member) );})
  |  |  ------------------
  ------------------
  549|  4.61k|        if (flb_sds_len(kv->key) != len) {
  ------------------
  |  Branch (549:13): [True: 3.69k, False: 924]
  ------------------
  550|  3.69k|            continue;
  551|  3.69k|        }
  552|       |
  553|    924|        if (strcasecmp(kv->key, name) == 0) {
  ------------------
  |  Branch (553:13): [True: 242, False: 682]
  ------------------
  554|    242|            return FLB_TRUE;
  ------------------
  |  |   26|    242|#define FLB_TRUE   !FLB_FALSE
  |  |  ------------------
  |  |  |  |   25|    242|#define FLB_FALSE  0
  |  |  ------------------
  ------------------
  555|    242|        }
  556|    924|    }
  557|       |
  558|  4.37k|    return FLB_FALSE;
  ------------------
  |  |   25|  4.37k|#define FLB_FALSE  0
  ------------------
  559|  4.61k|}
flb_config_map.c:parse_string_map_to_list:
   65|  2.31k|{
   66|  2.31k|    int ret = -1;
   67|  2.31k|    int type;
   68|  2.31k|    int max_split = -1;
   69|  2.31k|    struct mk_list *list;
   70|       |
   71|  2.31k|    type = map->type;
   72|       |
   73|       |    /* Allocate list head */
   74|  2.31k|    list = flb_malloc(sizeof(struct mk_list));
   75|  2.31k|    if (!list) {
  ------------------
  |  Branch (75:9): [True: 1, False: 2.31k]
  ------------------
   76|      1|        flb_errno();
  ------------------
  |  |  232|      1|#define flb_errno() flb_errno_print(errno, __FLB_FILENAME__, __LINE__)
  ------------------
   77|      1|        return NULL;
   78|      1|    }
   79|  2.31k|    mk_list_init(list);
   80|       |
   81|       |    /* Determinate the max split value based on it type */
   82|  2.31k|    if (map->type > FLB_CONFIG_MAP_CLIST && map->type < FLB_CONFIG_MAP_SLIST) {
  ------------------
  |  |   39|  4.63k|#define FLB_CONFIG_MAP_CLIST    30   /* comma separated list of strings */
  ------------------
                  if (map->type > FLB_CONFIG_MAP_CLIST && map->type < FLB_CONFIG_MAP_SLIST) {
  ------------------
  |  |   45|  1.15k|#define FLB_CONFIG_MAP_SLIST     40   /* empty space separated list of strings */
  ------------------
  |  Branch (82:9): [True: 1.15k, False: 1.15k]
  |  Branch (82:45): [True: 0, False: 1.15k]
  ------------------
   83|      0|        type = FLB_CONFIG_MAP_CLIST;
  ------------------
  |  |   39|      0|#define FLB_CONFIG_MAP_CLIST    30   /* comma separated list of strings */
  ------------------
   84|      0|        max_split = (map->type - FLB_CONFIG_MAP_CLIST);
  ------------------
  |  |   39|      0|#define FLB_CONFIG_MAP_CLIST    30   /* comma separated list of strings */
  ------------------
   85|      0|    }
   86|  2.31k|    else if (map->type > FLB_CONFIG_MAP_SLIST) {
  ------------------
  |  |   45|  2.31k|#define FLB_CONFIG_MAP_SLIST     40   /* empty space separated list of strings */
  ------------------
  |  Branch (86:14): [True: 1.15k, False: 1.15k]
  ------------------
   87|  1.15k|        type = FLB_CONFIG_MAP_SLIST;
  ------------------
  |  |   45|  1.15k|#define FLB_CONFIG_MAP_SLIST     40   /* empty space separated list of strings */
  ------------------
   88|  1.15k|        max_split = (map->type - FLB_CONFIG_MAP_SLIST);
  ------------------
  |  |   45|  1.15k|#define FLB_CONFIG_MAP_SLIST     40   /* empty space separated list of strings */
  ------------------
   89|  1.15k|    }
   90|       |
   91|  2.31k|    if (type == FLB_CONFIG_MAP_CLIST) {
  ------------------
  |  |   39|  2.31k|#define FLB_CONFIG_MAP_CLIST    30   /* comma separated list of strings */
  ------------------
  |  Branch (91:9): [True: 1.15k, False: 1.15k]
  ------------------
   92|  1.15k|        ret = flb_slist_split_string(list, str, ',', max_split);
   93|  1.15k|    }
   94|  1.15k|    else if (type == FLB_CONFIG_MAP_SLIST) {
  ------------------
  |  |   45|  1.15k|#define FLB_CONFIG_MAP_SLIST     40   /* empty space separated list of strings */
  ------------------
  |  Branch (94:14): [True: 1.15k, False: 0]
  ------------------
   95|  1.15k|        ret = flb_slist_split_tokens(list, str, max_split);
   96|  1.15k|    }
   97|       |
   98|  2.31k|    if (ret == -1) {
  ------------------
  |  Branch (98:9): [True: 24, False: 2.29k]
  ------------------
   99|     24|        flb_error("[config map] error reading list of options");
  ------------------
  |  |  170|     24|    if (flb_log_check(FLB_LOG_ERROR))                                \
  |  |  ------------------
  |  |  |  |   40|     24|#define FLB_LOG_ERROR   1
  |  |  ------------------
  |  |  |  Branch (170:9): [True: 24, False: 0]
  |  |  ------------------
  |  |  171|     24|        flb_log_print(FLB_LOG_ERROR, NULL, 0, fmt, ##__VA_ARGS__)
  |  |  ------------------
  |  |  |  |   40|     24|#define FLB_LOG_ERROR   1
  |  |  ------------------
  ------------------
  100|     24|        flb_free(list);
  101|     24|        return NULL;
  102|     24|    }
  103|       |
  104|  2.29k|    return list;
  105|  2.31k|}
flb_config_map.c:check_list_size:
   32|     60|{
   33|     60|    int len;
   34|       |
   35|     60|    len = mk_list_size(list);
   36|     60|    if (type == FLB_CONFIG_MAP_SLIST_1 || type == FLB_CONFIG_MAP_CLIST_1) {
  ------------------
  |  |   46|    120|#define FLB_CONFIG_MAP_SLIST_1   41   /* split up to 1 node  + remaining data */
  ------------------
                  if (type == FLB_CONFIG_MAP_SLIST_1 || type == FLB_CONFIG_MAP_CLIST_1) {
  ------------------
  |  |   40|     60|#define FLB_CONFIG_MAP_CLIST_1  31   /* split up to 1 node  + remaining data */
  ------------------
  |  Branch (36:9): [True: 0, False: 60]
  |  Branch (36:43): [True: 0, False: 60]
  ------------------
   37|      0|        if (len < 1) {
  ------------------
  |  Branch (37:13): [True: 0, False: 0]
  ------------------
   38|      0|            return -1;
   39|      0|        }
   40|      0|    }
   41|     60|    else if (type == FLB_CONFIG_MAP_SLIST_2 || type == FLB_CONFIG_MAP_CLIST_2) {
  ------------------
  |  |   47|    120|#define FLB_CONFIG_MAP_SLIST_2   42   /* split up to 2 nodes + remaining data */
  ------------------
                  else if (type == FLB_CONFIG_MAP_SLIST_2 || type == FLB_CONFIG_MAP_CLIST_2) {
  ------------------
  |  |   41|     60|#define FLB_CONFIG_MAP_CLIST_2  32   /* split up to 2 nodes + remaining data */
  ------------------
  |  Branch (41:14): [True: 0, False: 60]
  |  Branch (41:48): [True: 0, False: 60]
  ------------------
   42|      0|        if (len < 2) {
  ------------------
  |  Branch (42:13): [True: 0, False: 0]
  ------------------
   43|      0|            return -1;
   44|      0|        }
   45|      0|    }
   46|     60|    else if (type == FLB_CONFIG_MAP_SLIST_3 || type == FLB_CONFIG_MAP_CLIST_3) {
  ------------------
  |  |   48|    120|#define FLB_CONFIG_MAP_SLIST_3   43   /* split up to 3 nodes + remaining data */
  ------------------
                  else if (type == FLB_CONFIG_MAP_SLIST_3 || type == FLB_CONFIG_MAP_CLIST_3) {
  ------------------
  |  |   42|     60|#define FLB_CONFIG_MAP_CLIST_3  33   /* split up to 3 nodes + remaining data */
  ------------------
  |  Branch (46:14): [True: 0, False: 60]
  |  Branch (46:48): [True: 0, False: 60]
  ------------------
   47|      0|        if (len < 3) {
  ------------------
  |  Branch (47:13): [True: 0, False: 0]
  ------------------
   48|      0|            return -1;
   49|      0|        }
   50|      0|    }
   51|     60|    else if (type == FLB_CONFIG_MAP_SLIST_4 || type == FLB_CONFIG_MAP_CLIST_4) {
  ------------------
  |  |   49|    120|#define FLB_CONFIG_MAP_SLIST_4   44   /* split up to 4 nodes + remaining data */
  ------------------
                  else if (type == FLB_CONFIG_MAP_SLIST_4 || type == FLB_CONFIG_MAP_CLIST_4) {
  ------------------
  |  |   43|     16|#define FLB_CONFIG_MAP_CLIST_4  34   /* split up to 4 nodes + remaining data */
  ------------------
  |  Branch (51:14): [True: 44, False: 16]
  |  Branch (51:48): [True: 0, False: 16]
  ------------------
   52|     44|        if (len < 4) {
  ------------------
  |  Branch (52:13): [True: 33, False: 11]
  ------------------
   53|     33|            return -1;
   54|     33|        }
   55|     44|    }
   56|       |
   57|     27|    return 0;
   58|     60|}

flb_env_create:
   70|  1.51k|{
   71|  1.51k|    struct flb_env *env;
   72|  1.51k|    struct flb_hash_table *ht;
   73|       |
   74|  1.51k|    env = flb_malloc(sizeof(struct flb_env));
   75|  1.51k|    if (!env) {
  ------------------
  |  Branch (75:9): [True: 2, False: 1.51k]
  ------------------
   76|      2|        flb_errno();
  ------------------
  |  |  232|      2|#define flb_errno() flb_errno_print(errno, __FLB_FILENAME__, __LINE__)
  ------------------
   77|      2|        return NULL;
   78|      2|    }
   79|       |
   80|       |    /* Create the hash-table */
   81|  1.51k|    ht = flb_hash_table_create(FLB_HASH_TABLE_EVICT_NONE, FLB_ENV_SIZE, -1);
  ------------------
  |  |   32|  1.51k|#define FLB_HASH_TABLE_EVICT_NONE       0
  ------------------
                  ht = flb_hash_table_create(FLB_HASH_TABLE_EVICT_NONE, FLB_ENV_SIZE, -1);
  ------------------
  |  |   26|  1.51k|#define FLB_ENV_SIZE 64
  ------------------
   82|  1.51k|    if (!ht) {
  ------------------
  |  Branch (82:9): [True: 3, False: 1.51k]
  ------------------
   83|      3|        flb_free(env);
   84|      3|        return NULL;
   85|      3|    }
   86|       |
   87|  1.51k|    env->warn_unused = FLB_TRUE;
  ------------------
  |  |   26|  1.51k|#define FLB_TRUE   !FLB_FALSE
  |  |  ------------------
  |  |  |  |   25|  1.51k|#define FLB_FALSE  0
  |  |  ------------------
  ------------------
   88|  1.51k|    env->ht = ht;
   89|  1.51k|    env_preset(env);
   90|       |
   91|  1.51k|    return env;
   92|  1.51k|}
flb_env_destroy:
   95|  1.51k|{
   96|  1.51k|    flb_hash_table_destroy(env->ht);
   97|  1.51k|    flb_free(env);
   98|  1.51k|}
flb_env_var_translate:
  161|  7.87k|{
  162|  7.87k|    int i;
  163|  7.87k|    int len;
  164|  7.87k|    int v_len;
  165|  7.87k|    int e_len;
  166|  7.87k|    int pre_var;
  167|  7.87k|    int have_var = FLB_FALSE;
  ------------------
  |  |   25|  7.87k|#define FLB_FALSE  0
  ------------------
  168|  7.87k|    const char *env_var = NULL;
  169|  7.87k|    char *v_start = NULL;
  170|  7.87k|    char *v_end = NULL;
  171|  7.87k|    char tmp[4096];
  172|  7.87k|    flb_sds_t buf;
  173|  7.87k|    flb_sds_t s;
  174|       |
  175|  7.87k|    if (!value) {
  ------------------
  |  Branch (175:9): [True: 0, False: 7.87k]
  ------------------
  176|      0|        return NULL;
  177|      0|    }
  178|       |
  179|  7.87k|    len = strlen(value);
  180|  7.87k|    buf = flb_sds_create_size(len);
  181|  7.87k|    if (!buf) {
  ------------------
  |  Branch (181:9): [True: 9, False: 7.87k]
  ------------------
  182|      9|        return NULL;
  183|      9|    }
  184|       |
  185|  7.87k|    for (i = 0; i < len; i++) {
  ------------------
  |  Branch (185:17): [True: 7.87k, False: 0]
  ------------------
  186|  7.87k|        v_start = strstr(value + i, "${");
  187|  7.87k|        if (!v_start) {
  ------------------
  |  Branch (187:13): [True: 7.87k, False: 0]
  ------------------
  188|  7.87k|            break;
  189|  7.87k|        }
  190|       |
  191|      0|        v_end = strstr(value + i, "}");
  192|      0|        if (!v_end) {
  ------------------
  |  Branch (192:13): [True: 0, False: 0]
  ------------------
  193|      0|            break;
  194|      0|        }
  195|       |
  196|      0|        v_start += 2;
  197|      0|        v_len = v_end - v_start;
  198|      0|        if (v_len <= 0 || v_len >= sizeof(tmp)) {
  ------------------
  |  Branch (198:13): [True: 0, False: 0]
  |  Branch (198:27): [True: 0, False: 0]
  ------------------
  199|      0|            break;
  200|      0|        }
  201|       |
  202|       |        /* variable */
  203|      0|        strncpy(tmp, v_start, v_len);
  204|      0|        tmp[v_len] = '\0';
  205|      0|        have_var = FLB_TRUE;
  ------------------
  |  |   26|      0|#define FLB_TRUE   !FLB_FALSE
  |  |  ------------------
  |  |  |  |   25|      0|#define FLB_FALSE  0
  |  |  ------------------
  ------------------
  206|       |
  207|       |        /* Append pre-variable content */
  208|      0|        pre_var = (v_start - 2) - (value + i);
  209|      0|        if (pre_var > 0) {
  ------------------
  |  Branch (209:13): [True: 0, False: 0]
  ------------------
  210|      0|            s = buf_append(buf, value + i, (v_start - 2) - (value + i));
  211|      0|            if (!s) {
  ------------------
  |  Branch (211:17): [True: 0, False: 0]
  ------------------
  212|      0|                flb_sds_destroy(buf);
  213|      0|                return NULL;
  214|      0|            }
  215|      0|            if (s != buf) {
  ------------------
  |  Branch (215:17): [True: 0, False: 0]
  ------------------
  216|      0|                buf = s;
  217|      0|            }
  218|      0|        }
  219|       |
  220|       |        /* Lookup the variable in our env-hash */
  221|      0|        env_var = flb_env_get(env, tmp);
  222|      0|        if (env_var) {
  ------------------
  |  Branch (222:13): [True: 0, False: 0]
  ------------------
  223|      0|            e_len = strlen(env_var);
  224|      0|            s = buf_append(buf, env_var, e_len);
  225|      0|            if (!s) {
  ------------------
  |  Branch (225:17): [True: 0, False: 0]
  ------------------
  226|      0|                flb_sds_destroy(buf);
  227|      0|                return NULL;
  228|      0|            }
  229|      0|            if (s != buf) {
  ------------------
  |  Branch (229:17): [True: 0, False: 0]
  ------------------
  230|      0|                buf = s;
  231|      0|            }
  232|      0|        }
  233|      0|        else if (env->warn_unused == FLB_TRUE) {
  ------------------
  |  |   26|      0|#define FLB_TRUE   !FLB_FALSE
  |  |  ------------------
  |  |  |  |   25|      0|#define FLB_FALSE  0
  |  |  ------------------
  ------------------
  |  Branch (233:18): [True: 0, False: 0]
  ------------------
  234|      0|            flb_warn("[env] variable ${%s} is used but not set", tmp);
  ------------------
  |  |  179|      0|    if (flb_log_check(FLB_LOG_WARN))                                 \
  |  |  ------------------
  |  |  |  |   41|      0|#define FLB_LOG_WARN    2
  |  |  ------------------
  |  |  |  Branch (179:9): [True: 0, False: 0]
  |  |  ------------------
  |  |  180|      0|        flb_log_print(FLB_LOG_WARN, NULL, 0, fmt, ##__VA_ARGS__)
  |  |  ------------------
  |  |  |  |   41|      0|#define FLB_LOG_WARN    2
  |  |  ------------------
  ------------------
  235|      0|        }
  236|      0|        i += (v_start - (value + i)) + v_len;
  237|      0|    }
  238|       |
  239|       |    /* Copy the remaining value into our buffer */
  240|  7.87k|    if (v_end) {
  ------------------
  |  Branch (240:9): [True: 0, False: 7.87k]
  ------------------
  241|      0|        if (have_var == FLB_TRUE && (value + len) - (v_end + 1) > 0) {
  ------------------
  |  |   26|      0|#define FLB_TRUE   !FLB_FALSE
  |  |  ------------------
  |  |  |  |   25|      0|#define FLB_FALSE  0
  |  |  ------------------
  ------------------
  |  Branch (241:13): [True: 0, False: 0]
  |  Branch (241:37): [True: 0, False: 0]
  ------------------
  242|      0|            s = buf_append(buf, v_end + 1, (value + len) - (v_end + 1));
  243|      0|            if (!s) {
  ------------------
  |  Branch (243:17): [True: 0, False: 0]
  ------------------
  244|      0|                flb_sds_destroy(buf);
  245|      0|                return NULL;
  246|      0|            }
  247|      0|            if (s != buf) {
  ------------------
  |  Branch (247:17): [True: 0, False: 0]
  ------------------
  248|      0|                buf = s;
  249|      0|            }
  250|      0|        }
  251|      0|    }
  252|       |
  253|  7.87k|    if (flb_sds_len(buf) == 0) {
  ------------------
  |  Branch (253:9): [True: 7.87k, False: 0]
  ------------------
  254|       |        /*
  255|       |         * If the output length buffer is zero, it could mean:
  256|       |         *
  257|       |         * - just one variable was given and it don't have any value
  258|       |         * - no variables given (keep original value)
  259|       |         *
  260|       |         * In order to avoid problems in the caller, if a variable is null
  261|       |         * and is the only one content available, return a new empty memory
  262|       |         * string.
  263|       |         */
  264|  7.87k|        if (have_var == FLB_TRUE) {
  ------------------
  |  |   26|  7.87k|#define FLB_TRUE   !FLB_FALSE
  |  |  ------------------
  |  |  |  |   25|  7.87k|#define FLB_FALSE  0
  |  |  ------------------
  ------------------
  |  Branch (264:13): [True: 0, False: 7.87k]
  ------------------
  265|      0|            return flb_sds_copy(buf, "", 0);
  266|      0|        }
  267|  7.87k|        else {
  268|  7.87k|            return flb_sds_copy(buf, value, len);
  269|  7.87k|        }
  270|  7.87k|    }
  271|       |
  272|      0|    return buf;
  273|  7.87k|}
flb_env.c:env_preset:
   43|  1.51k|{
   44|  1.51k|    int ret;
   45|  1.51k|    char *buf;
   46|  1.51k|    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.51k|    buf = getenv("HOSTNAME");
   59|  1.51k|    if (!buf) {
  ------------------
  |  Branch (59:9): [True: 0, False: 1.51k]
  ------------------
   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.51k|    return 0;
   67|  1.51k|}

flb_hash_table_create:
  103|  1.51k|{
  104|  1.51k|    int i;
  105|  1.51k|    struct flb_hash_table_chain *tmp;
  106|  1.51k|    struct flb_hash_table *ht;
  107|       |
  108|  1.51k|    if (size <= 0) {
  ------------------
  |  Branch (108:9): [True: 0, False: 1.51k]
  ------------------
  109|      0|        return NULL;
  110|      0|    }
  111|       |
  112|  1.51k|    ht = flb_calloc(1, sizeof(struct flb_hash_table));
  113|  1.51k|    if (!ht) {
  ------------------
  |  Branch (113:9): [True: 1, False: 1.51k]
  ------------------
  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.51k|    mk_list_init(&ht->entries);
  119|  1.51k|    ht->evict_mode = evict_mode;
  120|  1.51k|    ht->max_entries = max_entries;
  121|  1.51k|    ht->size = size;
  122|  1.51k|    ht->total_count = 0;
  123|  1.51k|    ht->cache_ttl = 0;
  124|  1.51k|    ht->case_sensitivity = FLB_TRUE;
  ------------------
  |  |   26|  1.51k|#define FLB_TRUE   !FLB_FALSE
  |  |  ------------------
  |  |  |  |   25|  1.51k|#define FLB_FALSE  0
  |  |  ------------------
  ------------------
  125|  1.51k|    ht->table = flb_calloc(1, sizeof(struct flb_hash_table_chain) * size);
  126|  1.51k|    if (!ht->table) {
  ------------------
  |  Branch (126:9): [True: 2, False: 1.51k]
  ------------------
  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|  98.2k|    for (i = 0; i < size; i++) {
  ------------------
  |  Branch (133:17): [True: 96.7k, False: 1.51k]
  ------------------
  134|  96.7k|        tmp = &ht->table[i];
  135|  96.7k|        tmp->count = 0;
  136|  96.7k|        mk_list_init(&tmp->chains);
  137|  96.7k|    }
  138|       |
  139|  1.51k|    return ht;
  140|  1.51k|}
flb_hash_table_destroy:
  201|  1.51k|{
  202|  1.51k|    int i;
  203|  1.51k|    struct mk_list *tmp;
  204|  1.51k|    struct mk_list *head;
  205|  1.51k|    struct flb_hash_table_entry *entry;
  206|  1.51k|    struct flb_hash_table_chain *table;
  207|       |
  208|  98.2k|    for (i = 0; i < ht->size; i++) {
  ------------------
  |  Branch (208:17): [True: 96.7k, False: 1.51k]
  ------------------
  209|  96.7k|        table = &ht->table[i];
  210|  96.7k|        mk_list_foreach_safe(head, tmp, &table->chains) {
  ------------------
  |  |  207|  96.7k|    for (curr = (head)->next, n = curr->next; curr != (head); curr = n, n = curr->next)
  |  |  ------------------
  |  |  |  Branch (207:47): [True: 0, False: 96.7k]
  |  |  ------------------
  ------------------
  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|  96.7k|    }
  215|       |
  216|  1.51k|    flb_free(ht->table);
  217|  1.51k|    flb_free(ht);
  218|  1.51k|}

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

flb_kv_init:
   26|  1.17k|{
   27|  1.17k|    mk_list_init(list);
   28|  1.17k|}
flb_kv_item_create_len:
   33|  1.17k|{
   34|  1.17k|    struct flb_kv *kv;
   35|       |
   36|  1.17k|    kv = flb_calloc(1, sizeof(struct flb_kv));
   37|  1.17k|    if (!kv) {
  ------------------
  |  Branch (37:9): [True: 1, False: 1.17k]
  ------------------
   38|      1|        flb_errno();
  ------------------
  |  |  232|      1|#define flb_errno() flb_errno_print(errno, __FLB_FILENAME__, __LINE__)
  ------------------
   39|      1|        return NULL;
   40|      1|    }
   41|       |
   42|  1.17k|    kv->key = flb_sds_create_len(k_buf, k_len);
   43|  1.17k|    if (!kv->key) {
  ------------------
  |  Branch (43:9): [True: 2, False: 1.16k]
  ------------------
   44|      2|        flb_free(kv);
   45|      2|        return NULL;
   46|      2|    }
   47|       |
   48|  1.16k|    if (v_len > 0) {
  ------------------
  |  Branch (48:9): [True: 1.06k, False: 105]
  ------------------
   49|  1.06k|        kv->val = flb_sds_create_len(v_buf, v_len);
   50|  1.06k|        if (!kv->val) {
  ------------------
  |  Branch (50:13): [True: 2, False: 1.06k]
  ------------------
   51|      2|            flb_sds_destroy(kv->key);
   52|      2|            flb_free(kv);
   53|      2|            return NULL;
   54|      2|        }
   55|  1.06k|    }
   56|       |
   57|  1.16k|    mk_list_add(&kv->_head, list);
   58|  1.16k|    return kv;
   59|  1.16k|}
flb_kv_item_create:
   63|  1.17k|{
   64|  1.17k|    int k_len;
   65|  1.17k|    int v_len = 0;
   66|       |
   67|  1.17k|    if (!k_buf) {
  ------------------
  |  Branch (67:9): [True: 0, False: 1.17k]
  ------------------
   68|      0|        return NULL;
   69|      0|    }
   70|  1.17k|    k_len = strlen(k_buf);
   71|       |
   72|  1.17k|    if (v_buf) {
  ------------------
  |  Branch (72:9): [True: 1.17k, False: 0]
  ------------------
   73|  1.17k|        v_len = strlen(v_buf);
   74|  1.17k|    }
   75|       |
   76|  1.17k|    return flb_kv_item_create_len(list, k_buf, k_len, v_buf, v_len);
   77|  1.17k|}
flb_kv_item_destroy:
   80|  1.16k|{
   81|  1.16k|    if (kv->key) {
  ------------------
  |  Branch (81:9): [True: 1.16k, False: 0]
  ------------------
   82|  1.16k|        flb_sds_destroy(kv->key);
   83|  1.16k|    }
   84|       |
   85|  1.16k|    if (kv->val) {
  ------------------
  |  Branch (85:9): [True: 1.06k, False: 105]
  ------------------
   86|  1.06k|        flb_sds_destroy(kv->val);
   87|  1.06k|    }
   88|       |
   89|  1.16k|    mk_list_del(&kv->_head);
   90|  1.16k|    flb_free(kv);
   91|  1.16k|}
flb_kv_release:
   94|  4.21k|{
   95|  4.21k|    struct mk_list *tmp;
   96|  4.21k|    struct mk_list *head;
   97|  4.21k|    struct flb_kv *kv;
   98|       |
   99|  4.21k|    mk_list_foreach_safe(head, tmp, list) {
  ------------------
  |  |  207|  5.37k|    for (curr = (head)->next, n = curr->next; curr != (head); curr = n, n = curr->next)
  |  |  ------------------
  |  |  |  Branch (207:47): [True: 1.16k, False: 4.21k]
  |  |  ------------------
  ------------------
  100|  1.16k|        kv = mk_list_entry(head, struct flb_kv, _head);
  ------------------
  |  |  214|  1.16k|#define mk_list_entry( ptr, type, member ) container_of( ptr, type, member )
  |  |  ------------------
  |  |  |  |   38|  1.16k|#define container_of(ptr, type, member) ({                      \
  |  |  |  |   39|  1.16k|      const typeof( ((type *)0)->member ) *__mptr = (ptr);      \
  |  |  |  |   40|  1.16k|      (type *)( (char *)__mptr - offsetof(type,member) );})
  |  |  ------------------
  ------------------
  101|  1.16k|        flb_kv_item_destroy(kv);
  102|  1.16k|    }
  103|  4.21k|}

flb_log_construct:
  501|  2.33k|{
  502|  2.33k|    int body_size;
  503|  2.33k|    int ret;
  504|  2.33k|    int len;
  505|  2.33k|    int total;
  506|  2.33k|    time_t now;
  507|  2.33k|    const char *header_color = NULL;
  508|  2.33k|    const char *header_title = NULL;
  509|  2.33k|    const char *bold_color = ANSI_BOLD;
  ------------------
  |  |   47|  2.33k|#define ANSI_BOLD     "\033[1m"
  ------------------
  510|  2.33k|    const char *reset_color = ANSI_RESET;
  ------------------
  |  |   46|  2.33k|#define ANSI_RESET    "\033[0m"
  ------------------
  511|  2.33k|    struct tm result;
  512|  2.33k|    struct tm *current;
  513|       |
  514|  2.33k|    switch (type) {
  ------------------
  |  Branch (514:13): [True: 0, False: 2.33k]
  ------------------
  515|      0|    case FLB_LOG_HELP:
  ------------------
  |  |   45|      0|#define FLB_LOG_HELP    6  /* unused by log level */
  ------------------
  |  Branch (515:5): [True: 0, False: 2.33k]
  ------------------
  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: 2.33k]
  ------------------
  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: 2.33k]
  ------------------
  524|      0|        header_title = "warn";
  525|      0|        header_color = ANSI_YELLOW;
  ------------------
  |  |   51|      0|#define ANSI_YELLOW   "\033[93m"
  ------------------
  526|      0|        break;
  527|  2.33k|    case FLB_LOG_ERROR:
  ------------------
  |  |   40|  2.33k|#define FLB_LOG_ERROR   1
  ------------------
  |  Branch (527:5): [True: 2.33k, False: 0]
  ------------------
  528|  2.33k|        header_title = "error";
  529|  2.33k|        header_color = ANSI_RED;
  ------------------
  |  |   50|  2.33k|#define ANSI_RED      "\033[91m"
  ------------------
  530|  2.33k|        break;
  531|      0|    case FLB_LOG_DEBUG:
  ------------------
  |  |   43|      0|#define FLB_LOG_DEBUG   4
  ------------------
  |  Branch (531:5): [True: 0, False: 2.33k]
  ------------------
  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: 2.33k]
  ------------------
  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: 2.33k]
  ------------------
  540|      0|        header_title = "trace";
  541|      0|        header_color = ANSI_BLUE;
  ------------------
  |  |   52|      0|#define ANSI_BLUE     "\033[94m"
  ------------------
  542|      0|        break;
  543|  2.33k|    }
  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|  2.33k|    if (!isatty(STDOUT_FILENO)) {
  ------------------
  |  Branch (551:9): [True: 2.33k, False: 0]
  ------------------
  552|  2.33k|        header_color = "";
  553|  2.33k|        bold_color = "";
  554|  2.33k|        reset_color = "";
  555|  2.33k|    }
  556|  2.33k|    #endif // FLB_LOG_NO_CONTROL_CHARS
  557|       |
  558|  2.33k|    now = time(NULL);
  559|  2.33k|    current = localtime_r(&now, &result);
  560|       |
  561|  2.33k|    if (current == NULL) {
  ------------------
  |  Branch (561:9): [True: 0, False: 2.33k]
  ------------------
  562|      0|        return -1;
  563|      0|    }
  564|       |
  565|  2.33k|    len = snprintf(msg->msg, sizeof(msg->msg) - 1,
  566|  2.33k|                   "%s[%s%i/%02i/%02i %02i:%02i:%02i%s]%s [%s%5s%s] ",
  567|       |                   /*      time     */                    /* type */
  568|       |
  569|       |                   /* time variables */
  570|  2.33k|                   bold_color, reset_color,
  571|  2.33k|                   current->tm_year + 1900,
  572|  2.33k|                   current->tm_mon + 1,
  573|  2.33k|                   current->tm_mday,
  574|  2.33k|                   current->tm_hour,
  575|  2.33k|                   current->tm_min,
  576|  2.33k|                   current->tm_sec,
  577|  2.33k|                   bold_color, reset_color,
  578|       |
  579|       |                   /* type format */
  580|  2.33k|                   header_color, header_title, reset_color);
  581|       |
  582|  2.33k|    body_size = (sizeof(msg->msg) - 2) - len;
  583|  2.33k|    total = vsnprintf(msg->msg + len,
  584|  2.33k|                      body_size,
  585|  2.33k|                      fmt, *args);
  586|  2.33k|    if (total < 0) {
  ------------------
  |  Branch (586:9): [True: 0, False: 2.33k]
  ------------------
  587|      0|        return -1;
  588|      0|    }
  589|  2.33k|    ret = total; /* ret means a buffer size need to save log body */
  590|       |
  591|  2.33k|    total = strlen(msg->msg + len) + len;
  592|  2.33k|    msg->msg[total++] = '\n';
  593|  2.33k|    msg->msg[total]   = '\0';
  594|  2.33k|    msg->size = total;
  595|       |
  596|  2.33k|    *ret_len = len;
  597|       |
  598|  2.33k|    if (ret >= body_size) {
  ------------------
  |  Branch (598:9): [True: 128, False: 2.20k]
  ------------------
  599|       |        /* log is truncated */
  600|    128|        return ret - body_size;
  601|    128|    }
  602|       |
  603|  2.20k|    return 0;
  604|  2.33k|}
flb_log_print:
  633|  2.33k|{
  634|  2.33k|    int n;
  635|  2.33k|    int len;
  636|  2.33k|    int ret;
  637|  2.33k|    struct log_message msg = {0};
  638|  2.33k|    va_list args;
  639|       |
  640|  2.33k|    struct flb_worker *w;
  641|       |
  642|  2.33k|    va_start(args, fmt);
  643|  2.33k|    ret = flb_log_construct(&msg, &len, type, file, line, fmt, &args);
  644|  2.33k|    va_end(args);
  645|       |
  646|  2.33k|    if (ret < 0) {
  ------------------
  |  Branch (646:9): [True: 0, False: 2.33k]
  ------------------
  647|      0|        return;
  648|      0|    }
  649|       |
  650|  2.33k|    w = flb_worker_get();
  651|  2.33k|    if (w) {
  ------------------
  |  Branch (651:9): [True: 0, False: 2.33k]
  ------------------
  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|  2.33k|    else {
  659|  2.33k|        fprintf(stderr, "%s", (char *) msg.msg);
  660|  2.33k|    }
  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|  2.33k|}
flb_errno_print:
  674|    556|{
  675|    556|    char buf[256];
  676|       |
  677|    556|    strerror_r(errnum, buf, sizeof(buf) - 1);
  678|    556|    flb_error("[%s:%i errno=%i] %s", file, line, errnum, buf);
  ------------------
  |  |  170|    556|    if (flb_log_check(FLB_LOG_ERROR))                                \
  |  |  ------------------
  |  |  |  |   40|    556|#define FLB_LOG_ERROR   1
  |  |  ------------------
  |  |  |  Branch (170:9): [True: 556, False: 0]
  |  |  ------------------
  |  |  171|    556|        flb_log_print(FLB_LOG_ERROR, NULL, 0, fmt, ##__VA_ARGS__)
  |  |  ------------------
  |  |  |  |   40|    556|#define FLB_LOG_ERROR   1
  |  |  ------------------
  ------------------
  679|    556|    return 0;
  680|    556|}

flb_parser_create:
  161|  2.99k|{
  162|  2.99k|    int ret;
  163|  2.99k|    int len;
  164|  2.99k|    int diff = 0;
  165|  2.99k|    int size;
  166|  2.99k|    int is_epoch = FLB_FALSE;
  ------------------
  |  |   25|  2.99k|#define FLB_FALSE  0
  ------------------
  167|  2.99k|    char *tmp;
  168|  2.99k|    char *timeptr;
  169|  2.99k|    struct mk_list *head;
  170|  2.99k|    struct flb_parser *p;
  171|  2.99k|    struct flb_regex *regex;
  172|       |
  173|       |    /* Iterate current parsers and make sure the new one don't exists */
  174|  2.99k|    mk_list_foreach(head, &config->parsers) {
  ------------------
  |  |  205|  4.48k|#define mk_list_foreach(curr, head) for( curr = (head)->next; curr != (head); curr = curr->next )
  |  |  ------------------
  |  |  |  Branch (205:63): [True: 1.48k, False: 2.99k]
  |  |  ------------------
  ------------------
  175|  1.48k|        p = mk_list_entry(head, struct flb_parser, _head);
  ------------------
  |  |  214|  1.48k|#define mk_list_entry( ptr, type, member ) container_of( ptr, type, member )
  |  |  ------------------
  |  |  |  |   38|  1.48k|#define container_of(ptr, type, member) ({                      \
  |  |  |  |   39|  1.48k|      const typeof( ((type *)0)->member ) *__mptr = (ptr);      \
  |  |  |  |   40|  1.48k|      (type *)( (char *)__mptr - offsetof(type,member) );})
  |  |  ------------------
  ------------------
  176|  1.48k|        if (p->name && strcmp(p->name, name) == 0) {
  ------------------
  |  Branch (176:13): [True: 1.48k, False: 4]
  |  Branch (176:24): [True: 0, False: 1.48k]
  ------------------
  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|  1.48k|    }
  182|       |
  183|       |    /* Allocate context */
  184|  2.99k|    p = flb_calloc(1, sizeof(struct flb_parser));
  185|  2.99k|    if (!p) {
  ------------------
  |  Branch (185:9): [True: 4, False: 2.99k]
  ------------------
  186|      4|        flb_errno();
  ------------------
  |  |  232|      4|#define flb_errno() flb_errno_print(errno, __FLB_FILENAME__, __LINE__)
  ------------------
  187|      4|        return NULL;
  188|      4|    }
  189|  2.99k|    p->decoders = decoders;
  190|  2.99k|    mk_list_add(&p->_head, &config->parsers);
  191|       |
  192|       |    /* Format lookup */
  193|  2.99k|    if (strcasecmp(format, "regex") == 0) {
  ------------------
  |  Branch (193:9): [True: 1.48k, False: 1.50k]
  ------------------
  194|  1.48k|        p->type = FLB_PARSER_REGEX;
  ------------------
  |  |   30|  1.48k|#define FLB_PARSER_REGEX 1
  ------------------
  195|  1.48k|    }
  196|  1.50k|    else if (strcasecmp(format, "json") == 0) {
  ------------------
  |  Branch (196:14): [True: 1.50k, False: 0]
  ------------------
  197|  1.50k|        p->type = FLB_PARSER_JSON;
  ------------------
  |  |   31|  1.50k|#define FLB_PARSER_JSON  2
  ------------------
  198|  1.50k|    }
  199|      0|    else if (strcasecmp(format, "ltsv") == 0) {
  ------------------
  |  Branch (199:14): [True: 0, False: 0]
  ------------------
  200|      0|        p->type = FLB_PARSER_LTSV;
  ------------------
  |  |   32|      0|#define FLB_PARSER_LTSV  3
  ------------------
  201|      0|    }
  202|      0|    else if (strcasecmp(format, "logfmt") == 0) {
  ------------------
  |  Branch (202:14): [True: 0, False: 0]
  ------------------
  203|      0|        p->type = FLB_PARSER_LOGFMT;
  ------------------
  |  |   33|      0|#define FLB_PARSER_LOGFMT 4
  ------------------
  204|      0|    }
  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|  2.99k|    if (p->type == FLB_PARSER_REGEX) {
  ------------------
  |  |   30|  2.99k|#define FLB_PARSER_REGEX 1
  ------------------
  |  Branch (212:9): [True: 1.48k, False: 1.50k]
  ------------------
  213|  1.48k|        if (!p_regex) {
  ------------------
  |  Branch (213:13): [True: 0, False: 1.48k]
  ------------------
  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.48k|        regex = flb_regex_create(p_regex);
  221|  1.48k|        if (!regex) {
  ------------------
  |  Branch (221:13): [True: 4, False: 1.48k]
  ------------------
  222|      4|            flb_error("[parser:%s] Invalid regex pattern %s", name, p_regex);
  ------------------
  |  |  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
  |  |  ------------------
  ------------------
  223|      4|            mk_list_del(&p->_head);
  224|      4|            flb_free(p);
  225|      4|            return NULL;
  226|      4|        }
  227|  1.48k|        p->regex = regex;
  228|  1.48k|        p->skip_empty = skip_empty;
  229|  1.48k|        p->p_regex = flb_strdup(p_regex);
  230|  1.48k|    }
  231|       |
  232|  2.98k|    p->name = flb_strdup(name);
  233|       |
  234|  2.98k|    if (time_fmt) {
  ------------------
  |  Branch (234:9): [True: 2.98k, False: 0]
  ------------------
  235|  2.98k|        p->time_fmt_full = flb_strdup(time_fmt);
  236|  2.98k|        if (!p->time_fmt_full) {
  ------------------
  |  Branch (236:13): [True: 2, False: 2.98k]
  ------------------
  237|      2|            flb_error("[parser:%s] could not duplicate time fmt full", name);
  ------------------
  |  |  170|      2|    if (flb_log_check(FLB_LOG_ERROR))                                \
  |  |  ------------------
  |  |  |  |   40|      2|#define FLB_LOG_ERROR   1
  |  |  ------------------
  |  |  |  Branch (170:9): [True: 2, False: 0]
  |  |  ------------------
  |  |  171|      2|        flb_log_print(FLB_LOG_ERROR, NULL, 0, fmt, ##__VA_ARGS__)
  |  |  ------------------
  |  |  |  |   40|      2|#define FLB_LOG_ERROR   1
  |  |  ------------------
  ------------------
  238|      2|            flb_interim_parser_destroy(p);
  239|      2|            return NULL;
  240|      2|        }
  241|  2.98k|        p->time_fmt = flb_strdup(time_fmt);
  242|  2.98k|        if (!p->time_fmt) {
  ------------------
  |  Branch (242:13): [True: 6, False: 2.98k]
  ------------------
  243|      6|            flb_error("[parser:%s] could not duplicate time fmt", name);
  ------------------
  |  |  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
  |  |  ------------------
  ------------------
  244|      6|            flb_interim_parser_destroy(p);
  245|      6|            return NULL;
  246|      6|        }
  247|       |
  248|       |        /* Check if the format is considering the year */
  249|  2.98k|        if (strstr(p->time_fmt, "%Y") || strstr(p->time_fmt, "%y")) {
  ------------------
  |  Branch (249:13): [True: 2.98k, False: 0]
  |  Branch (249:42): [True: 0, False: 0]
  ------------------
  250|  2.98k|            p->time_with_year = FLB_TRUE;
  ------------------
  |  |   26|  2.98k|#define FLB_TRUE   !FLB_FALSE
  |  |  ------------------
  |  |  |  |   25|  2.98k|#define FLB_FALSE  0
  |  |  ------------------
  ------------------
  251|  2.98k|        }
  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.98k|        if (strstr(p->time_fmt, "%z") || strstr(p->time_fmt, "%Z") ||
  ------------------
  |  Branch (278:13): [True: 1.47k, False: 1.50k]
  |  Branch (278:42): [True: 0, False: 1.50k]
  ------------------
  279|  2.98k|            strstr(p->time_fmt, "%SZ") || strstr(p->time_fmt, "%S.%LZ")) {
  ------------------
  |  Branch (279:13): [True: 0, False: 1.50k]
  |  Branch (279:43): [True: 0, False: 1.50k]
  ------------------
  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.98k|        if (is_epoch == FLB_TRUE || p->time_with_year == FLB_TRUE) {
  ------------------
  |  |   26|  5.96k|#define FLB_TRUE   !FLB_FALSE
  |  |  ------------------
  |  |  |  |   25|  5.96k|#define FLB_FALSE  0
  |  |  ------------------
  ------------------
                      if (is_epoch == FLB_TRUE || p->time_with_year == FLB_TRUE) {
  ------------------
  |  |   26|  2.98k|#define FLB_TRUE   !FLB_FALSE
  |  |  ------------------
  |  |  |  |   25|  2.98k|#define FLB_FALSE  0
  |  |  ------------------
  ------------------
  |  Branch (302:13): [True: 0, False: 2.98k]
  |  Branch (302:37): [True: 2.98k, False: 0]
  ------------------
  303|  2.98k|            timeptr = p->time_fmt;
  304|  2.98k|        }
  305|      0|        else {
  306|      0|            timeptr = p->time_fmt_year;
  307|      0|        }
  308|       |
  309|  2.98k|        tmp = strstr(timeptr, "%L");
  310|  2.98k|        if (tmp) {
  ------------------
  |  Branch (310:13): [True: 2.98k, False: 0]
  ------------------
  311|  2.98k|            tmp[0] = '\0';
  312|  2.98k|            tmp[1] = '\0';
  313|  2.98k|            p->time_frac_secs = (tmp + 2);
  314|  2.98k|        }
  315|       |
  316|       |        /*
  317|       |         * Fall back to the system timezone
  318|       |         * if there is no zone parsed from the log.
  319|       |         */
  320|  2.98k|        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.98k|        if (!p->time_system_timezone && time_offset) {
  ------------------
  |  Branch (326:13): [True: 2.98k, False: 0]
  |  Branch (326:41): [True: 0, False: 2.98k]
  ------------------
  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.98k|    }
  337|       |
  338|  2.98k|    if (time_key) {
  ------------------
  |  Branch (338:9): [True: 2.98k, False: 0]
  ------------------
  339|  2.98k|        p->time_key = flb_strdup(time_key);
  340|  2.98k|    }
  341|       |
  342|  2.98k|    p->time_keep = time_keep;
  343|  2.98k|    p->time_strict = time_strict;
  344|  2.98k|    p->logfmt_no_bare_keys = logfmt_no_bare_keys;
  345|  2.98k|    p->types = types;
  346|  2.98k|    p->types_len = types_len;
  347|  2.98k|    return p;
  348|  2.98k|}
flb_parser_destroy:
  351|  2.98k|{
  352|  2.98k|    int i = 0;
  353|       |
  354|  2.98k|    if (parser->type == FLB_PARSER_REGEX) {
  ------------------
  |  |   30|  2.98k|#define FLB_PARSER_REGEX 1
  ------------------
  |  Branch (354:9): [True: 1.47k, False: 1.50k]
  ------------------
  355|  1.47k|        flb_regex_destroy(parser->regex);
  356|  1.47k|        flb_free(parser->p_regex);
  357|  1.47k|    }
  358|       |
  359|  2.98k|    flb_free(parser->name);
  360|  2.98k|    if (parser->time_fmt) {
  ------------------
  |  Branch (360:9): [True: 2.98k, False: 0]
  ------------------
  361|  2.98k|        flb_free(parser->time_fmt);
  362|  2.98k|        flb_free(parser->time_fmt_full);
  363|  2.98k|    }
  364|  2.98k|    if (parser->time_fmt_year) {
  ------------------
  |  Branch (364:9): [True: 0, False: 2.98k]
  ------------------
  365|      0|        flb_free(parser->time_fmt_year);
  366|      0|    }
  367|  2.98k|    if (parser->time_key) {
  ------------------
  |  Branch (367:9): [True: 2.97k, False: 4]
  ------------------
  368|  2.97k|        flb_free(parser->time_key);
  369|  2.97k|    }
  370|  2.98k|    if (parser->types_len != 0) {
  ------------------
  |  Branch (370:9): [True: 0, False: 2.98k]
  ------------------
  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|  2.98k|    if (parser->decoders) {
  ------------------
  |  Branch (377:9): [True: 0, False: 2.98k]
  ------------------
  378|      0|        flb_parser_decoder_list_destroy(parser->decoders);
  379|      0|    }
  380|       |
  381|  2.98k|    mk_list_del(&parser->_head);
  382|  2.98k|    flb_free(parser);
  383|  2.98k|}
flb_parser_exit:
  386|  1.51k|{
  387|  1.51k|    struct mk_list *tmp;
  388|  1.51k|    struct mk_list *head;
  389|  1.51k|    struct flb_parser *parser;
  390|       |
  391|       |    /* release 'parsers' */
  392|  2.98k|    mk_list_foreach_safe(head, tmp, &config->parsers) {
  ------------------
  |  |  207|  4.49k|    for (curr = (head)->next, n = curr->next; curr != (head); curr = n, n = curr->next)
  |  |  ------------------
  |  |  |  Branch (207:47): [True: 2.98k, False: 1.51k]
  |  |  ------------------
  ------------------
  393|  2.98k|        parser = mk_list_entry(head, struct flb_parser, _head);
  ------------------
  |  |  214|  2.98k|#define mk_list_entry( ptr, type, member ) container_of( ptr, type, member )
  |  |  ------------------
  |  |  |  |   38|  2.98k|#define container_of(ptr, type, member) ({                      \
  |  |  |  |   39|  2.98k|      const typeof( ((type *)0)->member ) *__mptr = (ptr);      \
  |  |  |  |   40|  2.98k|      (type *)( (char *)__mptr - offsetof(type,member) );})
  |  |  ------------------
  ------------------
  394|  2.98k|        flb_parser_destroy(parser);
  395|  2.98k|    }
  396|       |
  397|       |    /* release 'multiline parsers' */
  398|  1.51k|    flb_ml_exit(config);
  399|  1.51k|}
flb_parser.c:flb_interim_parser_destroy:
  124|      8|{
  125|      8|    if (parser->type == FLB_PARSER_REGEX) {
  ------------------
  |  |   30|      8|#define FLB_PARSER_REGEX 1
  ------------------
  |  Branch (125:9): [True: 4, False: 4]
  ------------------
  126|      4|        flb_regex_destroy(parser->regex);
  127|      4|        flb_free(parser->p_regex);
  128|      4|    }
  129|       |
  130|      8|    flb_free(parser->name);
  131|      8|    if (parser->time_fmt) {
  ------------------
  |  Branch (131:9): [True: 0, False: 8]
  ------------------
  132|      0|        flb_free(parser->time_fmt);
  133|      0|    }
  134|      8|    if (parser->time_fmt_year) {
  ------------------
  |  Branch (134:9): [True: 0, False: 8]
  ------------------
  135|      0|        flb_free(parser->time_fmt_year);
  136|      0|    }
  137|      8|    if (parser->time_fmt_full) {
  ------------------
  |  Branch (137:9): [True: 6, False: 2]
  ------------------
  138|      6|        flb_free(parser->time_fmt_full);
  139|      6|    }
  140|      8|    if (parser->time_key) {
  ------------------
  |  Branch (140:9): [True: 0, False: 8]
  ------------------
  141|      0|        flb_free(parser->time_key);
  142|      0|    }
  143|       |
  144|      8|    mk_list_del(&parser->_head);
  145|      8|    flb_free(parser);
  146|      8|}

flb_plugin_create:
  183|  1.17k|{
  184|  1.17k|    struct flb_plugins *ctx;
  185|       |
  186|  1.17k|    ctx = flb_malloc(sizeof(struct flb_plugins));
  187|  1.17k|    if (!ctx) {
  ------------------
  |  Branch (187:9): [True: 1, False: 1.17k]
  ------------------
  188|      1|        flb_errno();
  ------------------
  |  |  232|      1|#define flb_errno() flb_errno_print(errno, __FLB_FILENAME__, __LINE__)
  ------------------
  189|      1|        return NULL;
  190|      1|    }
  191|       |
  192|  1.17k|    mk_list_init(&ctx->input);
  193|  1.17k|    mk_list_init(&ctx->processor);
  194|  1.17k|    mk_list_init(&ctx->filter);
  195|  1.17k|    mk_list_init(&ctx->output);
  196|       |
  197|  1.17k|    return ctx;
  198|  1.17k|}
flb_plugin_destroy:
  467|  1.17k|{
  468|  1.17k|    struct mk_list *tmp;
  469|  1.17k|    struct mk_list *head;
  470|  1.17k|    struct flb_plugin *plugin;
  471|       |
  472|  1.17k|    mk_list_foreach_safe(head, tmp, &ctx->input) {
  ------------------
  |  |  207|  1.17k|    for (curr = (head)->next, n = curr->next; curr != (head); curr = n, n = curr->next)
  |  |  ------------------
  |  |  |  Branch (207:47): [True: 0, False: 1.17k]
  |  |  ------------------
  ------------------
  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.17k|    mk_list_foreach_safe(head, tmp, &ctx->processor) {
  ------------------
  |  |  207|  1.17k|    for (curr = (head)->next, n = curr->next; curr != (head); curr = n, n = curr->next)
  |  |  ------------------
  |  |  |  Branch (207:47): [True: 0, False: 1.17k]
  |  |  ------------------
  ------------------
  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.17k|    mk_list_foreach_safe(head, tmp, &ctx->filter) {
  ------------------
  |  |  207|  1.17k|    for (curr = (head)->next, n = curr->next; curr != (head); curr = n, n = curr->next)
  |  |  ------------------
  |  |  |  Branch (207:47): [True: 0, False: 1.17k]
  |  |  ------------------
  ------------------
  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.17k|    mk_list_foreach_safe(head, tmp, &ctx->output) {
  ------------------
  |  |  207|  1.17k|    for (curr = (head)->next, n = curr->next; curr != (head); curr = n, n = curr->next)
  |  |  ------------------
  |  |  |  Branch (207:47): [True: 0, False: 1.17k]
  |  |  ------------------
  ------------------
  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.17k|    flb_free(ctx);
  493|  1.17k|}

flb_regex_init:
  156|  1.17k|{
  157|  1.17k|    return onig_init();
  158|  1.17k|}
flb_regex_create:
  161|  31.8k|{
  162|  31.8k|    int ret;
  163|  31.8k|    struct flb_regex *r;
  164|       |
  165|       |    /* Create context */
  166|  31.8k|    r = flb_malloc(sizeof(struct flb_regex));
  167|  31.8k|    if (!r) {
  ------------------
  |  Branch (167:9): [True: 22, False: 31.7k]
  ------------------
  168|     22|        flb_errno();
  ------------------
  |  |  232|     22|#define flb_errno() flb_errno_print(errno, __FLB_FILENAME__, __LINE__)
  ------------------
  169|     22|        return NULL;
  170|     22|    }
  171|       |
  172|       |    /* Compile pattern */
  173|  31.7k|    ret = str_to_regex(pattern, (OnigRegex*)&r->regex);
  174|  31.7k|    if (ret == -1) {
  ------------------
  |  Branch (174:9): [True: 0, False: 31.7k]
  ------------------
  175|      0|        flb_free(r);
  176|      0|        return NULL;
  177|      0|    }
  178|       |
  179|  31.7k|    return r;
  180|  31.7k|}
flb_regex_destroy:
  316|  31.7k|{
  317|  31.7k|    onig_free(r->regex);
  318|  31.7k|    flb_free(r);
  319|  31.7k|    return 0;
  320|  31.7k|}
flb_regex.c:str_to_regex:
  117|  31.7k|{
  118|  31.7k|    int ret;
  119|  31.7k|    size_t len;
  120|  31.7k|    const char *start;
  121|  31.7k|    const char *end;
  122|  31.7k|    char *new_end = NULL;
  123|  31.7k|    OnigErrorInfo einfo;
  124|  31.7k|    OnigOptionType option;
  125|       |
  126|  31.7k|    len = strlen(pattern);
  127|  31.7k|    start = pattern;
  128|  31.7k|    end = pattern + len;
  129|       |
  130|  31.7k|    option = check_option(start, end, &new_end);
  131|       |
  132|  31.7k|    if (pattern[0] == '/' && pattern[len - 1] == '/') {
  ------------------
  |  Branch (132:9): [True: 30.3k, False: 1.48k]
  |  Branch (132:30): [True: 30.3k, False: 0]
  ------------------
  133|  30.3k|        start++;
  134|  30.3k|        end--;
  135|  30.3k|    }
  136|       |
  137|  31.7k|    if (new_end != NULL) {
  ------------------
  |  Branch (137:9): [True: 0, False: 31.7k]
  ------------------
  138|       |        /* pattern is /pat/option. new_end indicates a last '/'. */
  139|      0|        start++;
  140|      0|        end = new_end;
  141|      0|    }
  142|       |
  143|  31.7k|    ret = onig_new(reg,
  144|  31.7k|                   (const unsigned char *)start, (const unsigned char *)end,
  145|  31.7k|                   option,
  146|  31.7k|                   ONIG_ENCODING_UTF8, ONIG_SYNTAX_RUBY, &einfo);
  ------------------
  |  |  274|  31.7k|# define ONIG_ENCODING_UTF8         ONIG_ENCODING_UTF_8
  |  |  ------------------
  |  |  |  |  242|  31.7k|# define ONIG_ENCODING_UTF_8        (&OnigEncodingUTF_8)
  |  |  ------------------
  ------------------
                                 ONIG_ENCODING_UTF8, ONIG_SYNTAX_RUBY, &einfo);
  ------------------
  |  |  514|  31.7k|#define ONIG_SYNTAX_RUBY               (&OnigSyntaxRuby)
  ------------------
  147|       |
  148|  31.7k|    if (ret != ONIG_NORMAL) {
  ------------------
  |  |  627|  31.7k|#define ONIG_NORMAL                                            0
  ------------------
  |  Branch (148:9): [True: 0, False: 31.7k]
  ------------------
  149|      0|        return -1;
  150|      0|    }
  151|  31.7k|    return 0;
  152|  31.7k|}
flb_regex.c:check_option:
   61|  31.7k|{
   62|  31.7k|    char *chr = NULL;
   63|  31.7k|    OnigOptionType option = ONIG_OPTION_NONE;
  ------------------
  |  |  453|  31.7k|#define ONIG_OPTION_NONE                 0U
  ------------------
   64|       |
   65|  31.7k|    if (start == NULL || end == NULL || new_end == NULL) {
  ------------------
  |  Branch (65:9): [True: 0, False: 31.7k]
  |  Branch (65:26): [True: 0, False: 31.7k]
  |  Branch (65:41): [True: 0, False: 31.7k]
  ------------------
   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|  31.7k|    else if (start[0] != '/') {
  ------------------
  |  Branch (68:14): [True: 1.48k, False: 30.3k]
  ------------------
   69|  1.48k|        *new_end = NULL;
   70|  1.48k|        return ONIG_OPTION_DEFAULT;
  ------------------
  |  |  450|  1.48k|#define ONIG_OPTION_DEFAULT            ONIG_OPTION_NONE
  |  |  ------------------
  |  |  |  |  453|  1.48k|#define ONIG_OPTION_NONE                 0U
  |  |  ------------------
  ------------------
   71|  1.48k|    }
   72|       |
   73|  30.3k|    chr = strrchr(start, '/');
   74|  30.3k|    if (!chr) {
  ------------------
  |  Branch (74:9): [True: 0, False: 30.3k]
  ------------------
   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|  30.3k|    if (chr == start || chr == end) {
  ------------------
  |  Branch (79:9): [True: 0, False: 30.3k]
  |  Branch (79:25): [True: 0, False: 30.3k]
  ------------------
   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|  30.3k|    *new_end = chr;
   84|       |
   85|  30.3k|    chr++;
   86|  30.3k|    while(chr != end && *chr != '\0') {
  ------------------
  |  Branch (86:11): [True: 0, False: 30.3k]
  |  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|  30.3k|    if (option == ONIG_OPTION_NONE) {
  ------------------
  |  |  453|  30.3k|#define ONIG_OPTION_NONE                 0U
  ------------------
  |  Branch (108:9): [True: 30.3k, False: 0]
  ------------------
  109|  30.3k|        *new_end = NULL;
  110|  30.3k|        option = ONIG_OPTION_DEFAULT;
  ------------------
  |  |  450|  30.3k|#define ONIG_OPTION_DEFAULT            ONIG_OPTION_NONE
  |  |  ------------------
  |  |  |  |  453|  30.3k|#define ONIG_OPTION_NONE                 0U
  |  |  ------------------
  ------------------
  111|  30.3k|    }
  112|       |
  113|  30.3k|    return option;
  114|  30.3k|}

flb_sds_create_len:
   59|   129k|{
   60|   129k|    flb_sds_t s;
   61|   129k|    struct flb_sds *head;
   62|       |
   63|   129k|    s = sds_alloc(len);
   64|   129k|    if (!s) {
  ------------------
  |  Branch (64:9): [True: 159, False: 129k]
  ------------------
   65|    159|        return NULL;
   66|    159|    }
   67|       |
   68|   129k|    if (str) {
  ------------------
  |  Branch (68:9): [True: 129k, False: 0]
  ------------------
   69|   129k|        memcpy(s, str, len);
   70|   129k|        s[len] = '\0';
   71|       |
   72|   129k|        head = FLB_SDS_HEADER(s);
  ------------------
  |  |   46|   129k|#define FLB_SDS_HEADER(s)  ((struct flb_sds *) (s - FLB_SDS_HEADER_SIZE))
  |  |  ------------------
  |  |  |  |   34|   129k|#define FLB_SDS_HEADER_SIZE (sizeof(uint64_t) + sizeof(uint64_t))
  |  |  ------------------
  ------------------
   73|   129k|        head->len = len;
   74|   129k|    }
   75|   129k|    return s;
   76|   129k|}
flb_sds_create:
   79|  58.8k|{
   80|  58.8k|    size_t len;
   81|       |
   82|  58.8k|    if (!str) {
  ------------------
  |  Branch (82:9): [True: 0, False: 58.8k]
  ------------------
   83|      0|        len = 0;
   84|      0|    }
   85|  58.8k|    else {
   86|  58.8k|        len = strlen(str);
   87|  58.8k|    }
   88|       |
   89|  58.8k|    return flb_sds_create_len(str, len);
   90|  58.8k|}
flb_sds_create_size:
   93|  8.64k|{
   94|  8.64k|    return sds_alloc(size);
   95|  8.64k|}
flb_sds_copy:
  261|  7.87k|{
  262|  7.87k|    size_t avail;
  263|  7.87k|    struct flb_sds *head;
  264|  7.87k|    flb_sds_t tmp = NULL;
  265|       |
  266|  7.87k|    avail = flb_sds_alloc(s);
  267|  7.87k|    if (avail < len) {
  ------------------
  |  Branch (267:9): [True: 0, False: 7.87k]
  ------------------
  268|      0|        tmp = flb_sds_increase(s, len);
  269|      0|        if (!tmp) {
  ------------------
  |  Branch (269:13): [True: 0, False: 0]
  ------------------
  270|      0|            return NULL;
  271|      0|        }
  272|      0|        s = tmp;
  273|      0|    }
  274|  7.87k|    memcpy((char *) s, str, len);
  275|       |
  276|  7.87k|    head = FLB_SDS_HEADER(s);
  ------------------
  |  |   46|  7.87k|#define FLB_SDS_HEADER(s)  ((struct flb_sds *) (s - FLB_SDS_HEADER_SIZE))
  |  |  ------------------
  |  |  |  |   34|  7.87k|#define FLB_SDS_HEADER_SIZE (sizeof(uint64_t) + sizeof(uint64_t))
  |  |  ------------------
  ------------------
  277|  7.87k|    head->len = len;
  278|  7.87k|    s[head->len] = '\0';
  279|       |
  280|  7.87k|    return s;
  281|  7.87k|}
flb_sds_printf:
  337|  6.35k|{
  338|  6.35k|    va_list ap;
  339|  6.35k|    int len = strlen(fmt)*2;
  340|  6.35k|    int size;
  341|  6.35k|    flb_sds_t tmp = NULL;
  342|  6.35k|    flb_sds_t s;
  343|  6.35k|    struct flb_sds *head;
  344|       |
  345|  6.35k|    if (len < 64) len = 64;
  ------------------
  |  Branch (345:9): [True: 5.60k, False: 755]
  ------------------
  346|       |
  347|  6.35k|    s = *sds;
  348|  6.35k|    if (flb_sds_avail(s) < len) {
  ------------------
  |  Branch (348:9): [True: 0, False: 6.35k]
  ------------------
  349|      0|        tmp = flb_sds_increase(s, len - flb_sds_avail(s));
  350|      0|        if (!tmp) {
  ------------------
  |  Branch (350:13): [True: 0, False: 0]
  ------------------
  351|      0|            return NULL;
  352|      0|        }
  353|      0|        *sds = s = tmp;
  354|      0|    }
  355|       |
  356|  6.35k|    va_start(ap, fmt);
  357|  6.35k|    size = vsnprintf((char *) (s + flb_sds_len(s)), flb_sds_avail(s), fmt, ap);
  358|  6.35k|    if (size < 0) {
  ------------------
  |  Branch (358:9): [True: 0, False: 6.35k]
  ------------------
  359|      0|        flb_warn("[%s] buggy vsnprintf return %d", __FUNCTION__, size);
  ------------------
  |  |  179|      0|    if (flb_log_check(FLB_LOG_WARN))                                 \
  |  |  ------------------
  |  |  |  |   41|      0|#define FLB_LOG_WARN    2
  |  |  ------------------
  |  |  |  Branch (179:9): [True: 0, False: 0]
  |  |  ------------------
  |  |  180|      0|        flb_log_print(FLB_LOG_WARN, NULL, 0, fmt, ##__VA_ARGS__)
  |  |  ------------------
  |  |  |  |   41|      0|#define FLB_LOG_WARN    2
  |  |  ------------------
  ------------------
  360|      0|        va_end(ap);
  361|      0|        return NULL;
  362|      0|    }
  363|  6.35k|    va_end(ap);
  364|       |
  365|  6.35k|    if (size >= flb_sds_avail(s)) {
  ------------------
  |  Branch (365:9): [True: 0, False: 6.35k]
  ------------------
  366|      0|        tmp = flb_sds_increase(s, size - flb_sds_avail(s) + 1);
  367|      0|        if (!tmp) {
  ------------------
  |  Branch (367:13): [True: 0, False: 0]
  ------------------
  368|      0|            return NULL;
  369|      0|        }
  370|      0|        *sds = s = tmp;
  371|       |
  372|      0|        va_start(ap, fmt);
  373|      0|        size = vsnprintf((char *) (s + flb_sds_len(s)), flb_sds_avail(s), fmt, ap);
  374|      0|        if (size > flb_sds_avail(s)) {
  ------------------
  |  Branch (374:13): [True: 0, False: 0]
  ------------------
  375|      0|            flb_warn("[%s] vsnprintf is insatiable ", __FUNCTION__);
  ------------------
  |  |  179|      0|    if (flb_log_check(FLB_LOG_WARN))                                 \
  |  |  ------------------
  |  |  |  |   41|      0|#define FLB_LOG_WARN    2
  |  |  ------------------
  |  |  |  Branch (179:9): [True: 0, False: 0]
  |  |  ------------------
  |  |  180|      0|        flb_log_print(FLB_LOG_WARN, NULL, 0, fmt, ##__VA_ARGS__)
  |  |  ------------------
  |  |  |  |   41|      0|#define FLB_LOG_WARN    2
  |  |  ------------------
  ------------------
  376|      0|            va_end(ap);
  377|      0|            return NULL;
  378|      0|        }
  379|      0|        va_end(ap);
  380|      0|    }
  381|       |
  382|  6.35k|    head = FLB_SDS_HEADER(s);
  ------------------
  |  |   46|  6.35k|#define FLB_SDS_HEADER(s)  ((struct flb_sds *) (s - FLB_SDS_HEADER_SIZE))
  |  |  ------------------
  |  |  |  |   34|  6.35k|#define FLB_SDS_HEADER_SIZE (sizeof(uint64_t) + sizeof(uint64_t))
  |  |  ------------------
  ------------------
  383|  6.35k|    head->len += size;
  384|  6.35k|    s[head->len] = '\0';
  385|       |
  386|  6.35k|    return s;
  387|  6.35k|}
flb_sds_destroy:
  390|   137k|{
  391|   137k|    struct flb_sds *head;
  392|       |
  393|   137k|    if (!s) {
  ------------------
  |  Branch (393:9): [True: 0, False: 137k]
  ------------------
  394|      0|        return;
  395|      0|    }
  396|       |
  397|   137k|    head = FLB_SDS_HEADER(s);
  ------------------
  |  |   46|   137k|#define FLB_SDS_HEADER(s)  ((struct flb_sds *) (s - FLB_SDS_HEADER_SIZE))
  |  |  ------------------
  |  |  |  |   34|   137k|#define FLB_SDS_HEADER_SIZE (sizeof(uint64_t) + sizeof(uint64_t))
  |  |  ------------------
  ------------------
  398|   137k|    flb_free(head);
  399|   137k|}
flb_sds.c:sds_alloc:
   37|   138k|{
   38|   138k|    void *buf;
   39|   138k|    flb_sds_t s;
   40|   138k|    struct flb_sds *head;
   41|       |
   42|   138k|    buf = flb_malloc(FLB_SDS_HEADER_SIZE + size + 1);
  ------------------
  |  |   34|   138k|#define FLB_SDS_HEADER_SIZE (sizeof(uint64_t) + sizeof(uint64_t))
  ------------------
   43|   138k|    if (!buf) {
  ------------------
  |  Branch (43:9): [True: 177, False: 137k]
  ------------------
   44|    177|        flb_errno();
  ------------------
  |  |  232|    177|#define flb_errno() flb_errno_print(errno, __FLB_FILENAME__, __LINE__)
  ------------------
   45|    177|        return NULL;
   46|    177|    }
   47|       |
   48|   137k|    head = buf;
   49|   137k|    head->len = 0;
   50|   137k|    head->alloc = size;
   51|       |
   52|   137k|    s = head->buf;
   53|   137k|    *s = '\0';
   54|       |
   55|   137k|    return s;
   56|   138k|}

flb_slist_create:
   28|  31.8k|{
   29|  31.8k|    mk_list_init(list);
   30|  31.8k|    return 0;
   31|  31.8k|}
flb_slist_add_n:
   35|  62.4k|{
   36|  62.4k|    struct flb_slist_entry *e;
   37|       |
   38|  62.4k|    e = flb_malloc(sizeof(struct flb_slist_entry));
   39|  62.4k|    if (!e) {
  ------------------
  |  Branch (39:9): [True: 52, False: 62.4k]
  ------------------
   40|     52|        flb_errno();
  ------------------
  |  |  232|     52|#define flb_errno() flb_errno_print(errno, __FLB_FILENAME__, __LINE__)
  ------------------
   41|     52|        return -1;
   42|     52|    }
   43|       |
   44|  62.4k|    e->str = flb_sds_create_len(str, len);
   45|  62.4k|    if (!e->str) {
  ------------------
  |  Branch (45:9): [True: 30, False: 62.3k]
  ------------------
   46|     30|        flb_free(e);
   47|     30|        return -1;
   48|     30|    }
   49|       |
   50|  62.3k|    mk_list_add(&e->_head, head);
   51|  62.3k|    return 0;
   52|  62.4k|}
flb_slist_add_sds:
   55|  4.44k|{
   56|  4.44k|    struct flb_slist_entry *e;
   57|       |
   58|  4.44k|    e = flb_malloc(sizeof(struct flb_slist_entry));
   59|  4.44k|    if (!e) {
  ------------------
  |  Branch (59:9): [True: 26, False: 4.41k]
  ------------------
   60|     26|        flb_errno();
  ------------------
  |  |  232|     26|#define flb_errno() flb_errno_print(errno, __FLB_FILENAME__, __LINE__)
  ------------------
   61|     26|        return -1;
   62|     26|    }
   63|       |
   64|  4.41k|    e->str = str;
   65|  4.41k|    mk_list_add(&e->_head, head);
   66|  4.41k|    return 0;
   67|  4.44k|}
flb_slist_add:
   71|  1.07k|{
   72|  1.07k|    int len;
   73|       |
   74|  1.07k|    if (!str) {
  ------------------
  |  Branch (74:9): [True: 0, False: 1.07k]
  ------------------
   75|      0|        return -1;
   76|      0|    }
   77|       |
   78|  1.07k|    len = strlen(str);
   79|  1.07k|    if (len <= 0) {
  ------------------
  |  Branch (79:9): [True: 0, False: 1.07k]
  ------------------
   80|      0|        return -1;
   81|      0|    }
   82|       |
   83|  1.07k|    return flb_slist_add_n(head, str, len);
   84|  1.07k|}
flb_slist_split_tokens:
  183|  1.15k|{
  184|  1.15k|    int count = 0;
  185|  1.15k|    char *p;
  186|  1.15k|    char *buf;
  187|  1.15k|    flb_sds_t tmp = NULL;
  188|       |
  189|  1.15k|    buf = (char *) str;
  190|  4.49k|    while ((tmp = token_retrieve(&buf))) {
  ------------------
  |  Branch (190:12): [True: 4.44k, False: 51]
  ------------------
  191|  4.44k|        flb_slist_add_sds(list, tmp);
  192|  4.44k|        if (!buf) {
  ------------------
  |  Branch (192:13): [True: 31, False: 4.40k]
  ------------------
  193|     31|            break;
  194|     31|        }
  195|  4.40k|        count++;
  196|       |
  197|       |        /* Append remaining string if we use a maximum number of tokens */
  198|  4.40k|        if (count >= max_split && max_split > 0) {
  ------------------
  |  Branch (198:13): [True: 1.07k, False: 3.33k]
  |  Branch (198:35): [True: 1.07k, False: 0]
  ------------------
  199|  1.07k|            p = buf;
  200|  1.07k|            while (*p == ' ') {
  ------------------
  |  Branch (200:20): [True: 0, False: 1.07k]
  ------------------
  201|      0|                p++;
  202|      0|            }
  203|       |
  204|  1.07k|            if (*p) {
  ------------------
  |  Branch (204:17): [True: 1.07k, False: 3]
  ------------------
  205|  1.07k|                flb_slist_add(list, p);
  206|  1.07k|            }
  207|  1.07k|            break;
  208|  1.07k|        }
  209|  4.40k|    }
  210|       |
  211|  1.15k|    return 0;
  212|  1.15k|}
flb_slist_split_string:
  220|  31.5k|{
  221|  31.5k|    int i = 0;
  222|  31.5k|    int ret;
  223|  31.5k|    int count = 0;
  224|  31.5k|    int val_len;
  225|  31.5k|    int len;
  226|  31.5k|    int end;
  227|  31.5k|    char *p_init;
  228|  31.5k|    char *p_end;
  229|       |
  230|  31.5k|    if (!str) {
  ------------------
  |  Branch (230:9): [True: 0, False: 31.5k]
  ------------------
  231|      0|        return -1;
  232|      0|    }
  233|       |
  234|  31.5k|    len = strlen(str);
  235|  96.2k|    while (i < len) {
  ------------------
  |  Branch (235:12): [True: 64.8k, False: 31.4k]
  ------------------
  236|  64.8k|        end = mk_string_char_search(str + i, separator, len - i);
  237|  64.8k|        if (end < 0) {
  ------------------
  |  Branch (237:13): [True: 31.4k, False: 33.3k]
  ------------------
  238|  31.4k|            end = len - i;
  239|  31.4k|        }
  240|  33.3k|        else if ((end + i) == i) {
  ------------------
  |  Branch (240:18): [True: 1.16k, False: 32.1k]
  ------------------
  241|  1.16k|            i++;
  242|  1.16k|            continue;
  243|  1.16k|        }
  244|       |
  245|  63.6k|        p_init = (char *) str + i;
  246|  63.6k|        p_end = p_init + end - 1;
  247|       |
  248|       |        /* Skip empty spaces */
  249|  95.7k|        while (*p_init == ' ') {
  ------------------
  |  Branch (249:16): [True: 32.0k, False: 63.6k]
  ------------------
  250|  32.0k|            p_init++;
  251|  32.0k|        }
  252|       |
  253|  79.4k|        while (*p_end == ' ' && p_end >= p_init) {
  ------------------
  |  Branch (253:16): [True: 18.0k, False: 61.3k]
  |  Branch (253:33): [True: 15.8k, False: 2.25k]
  ------------------
  254|  15.8k|            p_end--;
  255|  15.8k|        }
  256|       |
  257|  63.6k|        if (p_init > p_end) {
  ------------------
  |  Branch (257:13): [True: 2.25k, False: 61.3k]
  ------------------
  258|  2.25k|            goto next;
  259|  2.25k|        }
  260|       |
  261|  61.3k|        if (p_init == p_end) {
  ------------------
  |  Branch (261:13): [True: 10.2k, False: 51.1k]
  ------------------
  262|  10.2k|            if (*p_init == ' ') {
  ------------------
  |  Branch (262:17): [True: 0, False: 10.2k]
  ------------------
  263|      0|                goto next;
  264|      0|            }
  265|  10.2k|            val_len = 1;
  266|  10.2k|        }
  267|  51.1k|        else {
  268|  51.1k|            val_len = (p_end - p_init) + 1;
  269|  51.1k|        }
  270|       |
  271|  61.3k|        if (val_len == 0) {
  ------------------
  |  Branch (271:13): [True: 0, False: 61.3k]
  ------------------
  272|      0|            goto next;
  273|      0|        }
  274|       |
  275|  61.3k|        ret = flb_slist_add_n(list, p_init, val_len);
  276|  61.3k|        if (ret == -1) {
  ------------------
  |  Branch (276:13): [True: 78, False: 61.3k]
  ------------------
  277|     78|            return -1;
  278|     78|        }
  279|  61.3k|        count++;
  280|       |
  281|       |        /* Append remaining string as a new node ? */
  282|  61.3k|        if (count >= max_split && max_split > 0) {
  ------------------
  |  Branch (282:13): [True: 61.3k, False: 0]
  |  Branch (282:35): [True: 0, False: 61.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|  63.5k|    next:
  304|  63.5k|        i += end + 1;
  305|  63.5k|    }
  306|       |
  307|  31.4k|    return count;
  308|  31.5k|}
flb_slist_destroy:
  323|  34.1k|{
  324|  34.1k|    struct mk_list *tmp;
  325|  34.1k|    struct mk_list *head;
  326|  34.1k|    struct flb_slist_entry *e;
  327|       |
  328|  66.5k|    mk_list_foreach_safe(head, tmp, list) {
  ------------------
  |  |  207|   100k|    for (curr = (head)->next, n = curr->next; curr != (head); curr = n, n = curr->next)
  |  |  ------------------
  |  |  |  Branch (207:47): [True: 66.5k, False: 34.1k]
  |  |  ------------------
  ------------------
  329|  66.5k|        e = mk_list_entry(head, struct flb_slist_entry, _head);
  ------------------
  |  |  214|  66.5k|#define mk_list_entry( ptr, type, member ) container_of( ptr, type, member )
  |  |  ------------------
  |  |  |  |   38|  66.5k|#define container_of(ptr, type, member) ({                      \
  |  |  |  |   39|  66.5k|      const typeof( ((type *)0)->member ) *__mptr = (ptr);      \
  |  |  |  |   40|  66.5k|      (type *)( (char *)__mptr - offsetof(type,member) );})
  |  |  ------------------
  ------------------
  330|  66.5k|        flb_sds_destroy(e->str);
  331|  66.5k|        mk_list_del(&e->_head);
  332|  66.5k|        flb_free(e);
  333|  66.5k|    }
  334|  34.1k|}
flb_slist.c:token_retrieve:
  108|  4.49k|{
  109|  4.49k|    int len;
  110|  4.49k|    int quoted = FLB_FALSE;
  ------------------
  |  |   25|  4.49k|#define FLB_FALSE  0
  ------------------
  111|  4.49k|    char *p;
  112|  4.49k|    char *start;
  113|  4.49k|    char *prev;
  114|  4.49k|    flb_sds_t out = NULL;
  115|       |
  116|  4.49k|    if (!*str) {
  ------------------
  |  Branch (116:9): [True: 0, False: 4.49k]
  ------------------
  117|      0|        return NULL;
  118|      0|    }
  119|       |
  120|  4.49k|    p = *str;
  121|       |
  122|       |    /* Skip empty spaces */
  123|  4.52k|    while (*p == ' ') {
  ------------------
  |  Branch (123:12): [True: 38, False: 4.49k]
  ------------------
  124|     38|        p++;
  125|     38|    }
  126|  4.49k|    start = p;
  127|       |
  128|  4.49k|    if (*p == '"') {
  ------------------
  |  Branch (128:9): [True: 67, False: 4.42k]
  ------------------
  129|     67|        quoted = FLB_TRUE;
  ------------------
  |  |   26|     67|#define FLB_TRUE   !FLB_FALSE
  |  |  ------------------
  |  |  |  |   25|     67|#define FLB_FALSE  0
  |  |  ------------------
  ------------------
  130|     67|        p++;
  131|     67|        start = p;
  132|     89|        while (1) {
  ------------------
  |  Branch (132:16): [Folded - Ignored]
  ------------------
  133|    336|            while (*p && *p != '"') {
  ------------------
  |  Branch (133:20): [True: 328, False: 8]
  |  Branch (133:26): [True: 247, False: 81]
  ------------------
  134|    247|                p++;
  135|    247|            }
  136|       |
  137|     89|            if (!*p) {
  ------------------
  |  Branch (137:17): [True: 8, False: 81]
  ------------------
  138|      8|                goto exit;
  139|      8|            }
  140|       |
  141|     81|            prev = p - 1;
  142|     81|            if (*prev == '\\') {
  ------------------
  |  Branch (142:17): [True: 22, False: 59]
  ------------------
  143|     22|                p++;
  144|     22|                continue;
  145|     22|            }
  146|     59|            goto exit;
  147|     81|        }
  148|     67|    }
  149|       |
  150|  10.0k|    while (*p && *p != ' ') {
  ------------------
  |  Branch (150:12): [True: 10.0k, False: 37]
  |  Branch (150:18): [True: 5.66k, False: 4.38k]
  ------------------
  151|  5.66k|        p++;
  152|  5.66k|    }
  153|       |
  154|  4.49k| exit:
  155|  4.49k|    if (*p) {
  ------------------
  |  Branch (155:9): [True: 4.44k, False: 45]
  ------------------
  156|  4.44k|        out = flb_sds_create_len(start, p - start);
  157|  4.44k|        if (!out) {
  ------------------
  |  Branch (157:13): [True: 37, False: 4.40k]
  ------------------
  158|     37|            *str = NULL;
  159|     37|            return NULL;
  160|     37|        }
  161|  4.40k|        if (quoted == FLB_TRUE) {
  ------------------
  |  |   26|  4.40k|#define FLB_TRUE   !FLB_FALSE
  |  |  ------------------
  |  |  |  |   25|  4.40k|#define FLB_FALSE  0
  |  |  ------------------
  ------------------
  |  Branch (161:13): [True: 59, False: 4.35k]
  ------------------
  162|     59|            len = token_unescape(out);
  163|     59|            flb_sds_len_set(out, len);
  164|     59|        }
  165|  4.40k|        p++;
  166|       |
  167|  17.2k|        while (*p && *p == ' ') {
  ------------------
  |  Branch (167:16): [True: 17.2k, False: 14]
  |  Branch (167:22): [True: 12.8k, False: 4.39k]
  ------------------
  168|  12.8k|            p++;
  169|  12.8k|        }
  170|  4.40k|        *str = p;
  171|  4.40k|    }
  172|     45|    else {
  173|     45|        if (p > start) {
  ------------------
  |  Branch (173:13): [True: 31, False: 14]
  ------------------
  174|     31|            out = flb_sds_create(start);
  175|     31|        }
  176|     45|        *str = NULL;
  177|     45|    }
  178|       |
  179|  4.45k|    return out;
  180|  4.49k|}
flb_slist.c:token_unescape:
   87|     59|{
   88|     59|    char *in = token;
   89|     59|    char *out = token;
   90|       |
   91|    272|    while (*in) {
  ------------------
  |  Branch (91:12): [True: 213, False: 59]
  ------------------
   92|    213|        if ((in[0] == '\\') && (in[1] == '"')) {
  ------------------
  |  Branch (92:13): [True: 65, False: 148]
  |  Branch (92:32): [True: 20, False: 45]
  ------------------
   93|     20|            *out = in[1];
   94|     20|            out++;
   95|     20|            in += 2;
   96|     20|        }
   97|    193|        else {
   98|    193|            *out = *in;
   99|    193|            out++;
  100|    193|            in++;
  101|    193|        }
  102|    213|    }
  103|     59|    *out = 0;
  104|     59|    return out - token;
  105|     59|}

flb_utils_size_to_bytes:
  528|    585|{
  529|    585|    int i;
  530|    585|    int len;
  531|    585|    int plen = 0;
  532|    585|    double val;
  533|    585|    char c;
  534|    585|    char tmp[3] = {0};
  535|    585|    int64_t KB = 1000;
  536|    585|    int64_t MB = 1000 * KB;
  537|    585|    int64_t GB = 1000 * MB;
  538|       |
  539|    585|    if (!size) {
  ------------------
  |  Branch (539:9): [True: 0, False: 585]
  ------------------
  540|      0|        return -1;
  541|      0|    }
  542|       |
  543|    585|    if (strcasecmp(size, "false") == 0) {
  ------------------
  |  Branch (543:9): [True: 1, False: 584]
  ------------------
  544|      1|        return 0;
  545|      1|    }
  546|       |
  547|    584|    len = strlen(size);
  548|    584|    val = atof(size);
  549|       |
  550|    584|    if (len == 0) {
  ------------------
  |  Branch (550:9): [True: 0, False: 584]
  ------------------
  551|      0|        return -1;
  552|      0|    }
  553|       |
  554|  1.37k|    for (i = len - 1; i > 0; i--) {
  ------------------
  |  Branch (554:23): [True: 818, False: 555]
  ------------------
  555|    818|        if (isdigit(size[i])) {
  556|     29|            break;
  557|     29|        }
  558|    789|        else {
  559|    789|            plen++;
  560|    789|        }
  561|    818|    }
  562|       |
  563|    584|    if (plen == 0) {
  ------------------
  |  Branch (563:9): [True: 2, False: 582]
  ------------------
  564|      2|        return (int64_t)val;
  565|      2|    }
  566|    582|    else if (plen > 2) {
  ------------------
  |  Branch (566:14): [True: 22, False: 560]
  ------------------
  567|     22|        return -1;
  568|     22|    }
  569|       |
  570|  1.13k|    for (i = 0; i < plen; i++) {
  ------------------
  |  Branch (570:17): [True: 578, False: 560]
  ------------------
  571|    578|        c = size[(len - plen) + i];
  572|    578|        tmp[i] = toupper(c);
  573|    578|    }
  574|       |
  575|    560|    if (plen == 2) {
  ------------------
  |  Branch (575:9): [True: 18, False: 542]
  ------------------
  576|     18|        if (tmp[1] != 'B') {
  ------------------
  |  Branch (576:13): [True: 15, False: 3]
  ------------------
  577|     15|            return -1;
  578|     15|        }
  579|     18|    }
  580|       |
  581|    545|    if (tmp[0] == 'K') {
  ------------------
  |  Branch (581:9): [True: 3, False: 542]
  ------------------
  582|       |        /* set upper bound (2**64/KB)/2 to avoid overflows */
  583|      3|        if (val >= 9223372036854775.0 || val <= -9223372036854774.0)
  ------------------
  |  Branch (583:13): [True: 1, False: 2]
  |  Branch (583:42): [True: 1, False: 1]
  ------------------
  584|      2|        {
  585|      2|            return -1;
  586|      2|        }
  587|      1|        return (int64_t)(val * KB);
  588|      3|    }
  589|    542|    else if (tmp[0] == 'M') {
  ------------------
  |  Branch (589:14): [True: 518, False: 24]
  ------------------
  590|       |        /* set upper bound (2**64/MB)/2 to avoid overflows */
  591|    518|        if (val >= 9223372036854 || val <= -9223372036853) {
  ------------------
  |  Branch (591:13): [True: 1, False: 517]
  |  Branch (591:37): [True: 1, False: 516]
  ------------------
  592|      2|            return -1;
  593|      2|        }
  594|    516|        return (int64_t)(val * MB);
  595|    518|    }
  596|     24|    else if (tmp[0] == 'G') {
  ------------------
  |  Branch (596:14): [True: 3, False: 21]
  ------------------
  597|       |        /* set upper bound (2**64/GB)/2 to avoid overflows */
  598|      3|        if (val >= 9223372036 || val <= -9223372035) {
  ------------------
  |  Branch (598:13): [True: 1, False: 2]
  |  Branch (598:34): [True: 1, False: 1]
  ------------------
  599|      2|            return -1;
  600|      2|        }
  601|      1|        return (int64_t)(val * GB);
  602|      3|    }
  603|     21|    else {
  604|     21|        return -1;
  605|     21|    }
  606|       |
  607|      0|    return (int64_t)val;
  608|    545|}
flb_utils_time_to_seconds:
  647|    547|{
  648|    547|    int len;
  649|    547|    size_t val;
  650|       |
  651|    547|    len = strlen(time);
  652|    547|    if (len == 0) {
  ------------------
  |  Branch (652:9): [True: 0, False: 547]
  ------------------
  653|      0|        return 0;
  654|      0|    }
  655|    547|    val = atoi(time);
  656|       |
  657|       |    /* String time to seconds */
  658|    547|    if (time[len - 1] == 'D' || time[len - 1] == 'd') {
  ------------------
  |  Branch (658:9): [True: 1, False: 546]
  |  Branch (658:33): [True: 1, False: 545]
  ------------------
  659|      2|        val *= 86400;
  660|      2|    }
  661|    547|    if (time[len - 1] == 'H' || time[len - 1] == 'h') {
  ------------------
  |  Branch (661:9): [True: 516, False: 31]
  |  Branch (661:33): [True: 1, False: 30]
  ------------------
  662|    517|        val *= 3600;
  663|    517|    }
  664|     30|    else if (time[len - 1] == 'M' || time[len - 1] == 'm') {
  ------------------
  |  Branch (664:14): [True: 1, False: 29]
  |  Branch (664:38): [True: 1, False: 28]
  ------------------
  665|      2|        val *= 60;
  666|      2|    }
  667|       |
  668|    547|    return val;
  669|    547|}
flb_utils_bool:
  672|  2.45k|{
  673|  2.45k|    if (strcasecmp(val, "true") == 0 ||
  ------------------
  |  Branch (673:9): [True: 2.31k, False: 138]
  ------------------
  674|  2.45k|        strcasecmp(val, "on") == 0 ||
  ------------------
  |  Branch (674:9): [True: 1, False: 137]
  ------------------
  675|  2.45k|        strcasecmp(val, "yes") == 0) {
  ------------------
  |  Branch (675:9): [True: 1, False: 136]
  ------------------
  676|  2.31k|        return FLB_TRUE;
  ------------------
  |  |   26|  2.31k|#define FLB_TRUE   !FLB_FALSE
  |  |  ------------------
  |  |  |  |   25|  2.31k|#define FLB_FALSE  0
  |  |  ------------------
  ------------------
  677|  2.31k|    }
  678|    136|    else if (strcasecmp(val, "false") == 0 ||
  ------------------
  |  Branch (678:14): [True: 1, False: 135]
  ------------------
  679|    136|             strcasecmp(val, "off") == 0 ||
  ------------------
  |  Branch (679:14): [True: 1, False: 134]
  ------------------
  680|    136|             strcasecmp(val, "no") == 0) {
  ------------------
  |  Branch (680:14): [True: 1, False: 133]
  ------------------
  681|      3|        return FLB_FALSE;
  ------------------
  |  |   25|      3|#define FLB_FALSE  0
  ------------------
  682|      3|    }
  683|       |
  684|    133|    return -1;
  685|  2.45k|}

flb_worker_init:
  112|  1.17k|{
  113|  1.17k|    FLB_TLS_INIT(flb_worker_ctx);
  ------------------
  |  |   35|  1.17k|#define FLB_TLS_INIT(key)          do {} while (0)
  |  |  ------------------
  |  |  |  Branch (35:49): [Folded - Ignored]
  |  |  ------------------
  ------------------
  114|       |
  115|  1.17k|    return 0;
  116|  1.17k|}
flb_worker_get:
  135|  2.33k|{
  136|  2.33k|    return FLB_TLS_GET(flb_worker_ctx);
  ------------------
  |  |   34|  2.33k|#define FLB_TLS_GET(key)           key
  ------------------
  137|  2.33k|}
flb_worker_exit:
  156|  1.51k|{
  157|  1.51k|    int c = 0;
  158|  1.51k|    struct mk_list *tmp;
  159|  1.51k|    struct mk_list *head;
  160|  1.51k|    struct flb_worker *worker;
  161|       |
  162|  1.51k|    mk_list_foreach_safe(head, tmp, &config->workers) {
  ------------------
  |  |  207|  1.51k|    for (curr = (head)->next, n = curr->next; curr != (head); curr = n, n = curr->next)
  |  |  ------------------
  |  |  |  Branch (207:47): [True: 0, False: 1.51k]
  |  |  ------------------
  ------------------
  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.51k|    return c;
  169|  1.51k|}

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

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

flb_ml_parser_cri:
   54|  1.48k|{
   55|  1.48k|    struct flb_parser *parser;
   56|  1.48k|    struct flb_ml_parser *mlp;
   57|       |
   58|       |    /* Create a Docker parser */
   59|  1.48k|    parser = cri_parser_create(config);
   60|  1.48k|    if (!parser) {
  ------------------
  |  Branch (60:9): [True: 9, False: 1.47k]
  ------------------
   61|      9|        return NULL;
   62|      9|    }
   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: 8, False: 1.46k]
  ------------------
   77|      8|        flb_error("[multiline] could not create 'cri mode'");
  ------------------
  |  |  170|      8|    if (flb_log_check(FLB_LOG_ERROR))                                \
  |  |  ------------------
  |  |  |  |   40|      8|#define FLB_LOG_ERROR   1
  |  |  ------------------
  |  |  |  Branch (170:9): [True: 8, False: 0]
  |  |  ------------------
  |  |  171|      8|        flb_log_print(FLB_LOG_ERROR, NULL, 0, fmt, ##__VA_ARGS__)
  |  |  ------------------
  |  |  |  |   40|      8|#define FLB_LOG_ERROR   1
  |  |  ------------------
  ------------------
   78|      8|        return NULL;
   79|      8|    }
   80|       |
   81|  1.46k|    return mlp;
   82|  1.47k|}
flb_ml_parser_cri.c:cri_parser_create:
   31|  1.48k|{
   32|  1.48k|    struct flb_parser *p;
   33|       |
   34|  1.48k|    p = flb_parser_create("_ml_cri",               /* parser name */
   35|  1.48k|                          "regex",                 /* backend type */
   36|  1.48k|                          FLB_ML_CRI_REGEX,        /* regex */
  ------------------
  |  |   25|  1.48k|  "^(?<time>.+?) (?<stream>stdout|stderr) (?<_p>F|P) (?<log>.*)$"
  ------------------
   37|  1.48k|                          FLB_FALSE,               /* skip_empty */
  ------------------
  |  |   25|  1.48k|#define FLB_FALSE  0
  ------------------
   38|  1.48k|                          FLB_ML_CRI_TIME,         /* time format */
  ------------------
  |  |   27|  1.48k|  "%Y-%m-%dT%H:%M:%S.%L%z"
  ------------------
   39|  1.48k|                          "time",                  /* time key */
   40|  1.48k|                          NULL,                    /* time offset */
   41|  1.48k|                          FLB_TRUE,                /* time keep */
  ------------------
  |  |   26|  1.48k|#define FLB_TRUE   !FLB_FALSE
  |  |  ------------------
  |  |  |  |   25|  1.48k|#define FLB_FALSE  0
  |  |  ------------------
  ------------------
   42|  1.48k|                          FLB_FALSE,               /* time strict */
  ------------------
  |  |   25|  1.48k|#define FLB_FALSE  0
  ------------------
   43|  1.48k|                          FLB_FALSE,               /* time system timezone */
  ------------------
  |  |   25|  1.48k|#define FLB_FALSE  0
  ------------------
   44|  1.48k|                          FLB_FALSE,               /* no bare keys */
  ------------------
  |  |   25|  1.48k|#define FLB_FALSE  0
  ------------------
   45|  1.48k|                          NULL,                    /* parser types */
   46|  1.48k|                          0,                       /* types len */
   47|  1.48k|                          NULL,                    /* decoders */
   48|  1.48k|                          config);                 /* Fluent Bit context */
   49|  1.48k|    return p;
   50|  1.48k|}

flb_ml_parser_docker:
   49|  1.51k|{
   50|  1.51k|    struct flb_parser *parser;
   51|  1.51k|    struct flb_ml_parser *mlp;
   52|       |
   53|       |    /* Create a Docker parser */
   54|  1.51k|    parser = docker_parser_create(config);
   55|  1.51k|    if (!parser) {
  ------------------
  |  Branch (55:9): [True: 7, False: 1.50k]
  ------------------
   56|      7|        return NULL;
   57|      7|    }
   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.50k|    mlp = flb_ml_parser_create(config,                  /* Fluent Bit context */
   95|  1.50k|                               "docker",                /* name           */
   96|  1.50k|                               FLB_ML_ENDSWITH,         /* type           */
  ------------------
  |  |   36|  1.50k|#define FLB_ML_ENDSWITH  2    /* record key/content ends with 'abc' */
  ------------------
   97|  1.50k|                               "\n",                    /* match_str      */
   98|  1.50k|                               FLB_FALSE,               /* negate         */
  ------------------
  |  |   25|  1.50k|#define FLB_FALSE  0
  ------------------
   99|  1.50k|                               FLB_ML_FLUSH_TIMEOUT,    /* flush_ms  */
  ------------------
  |  |   50|  1.50k|#define FLB_ML_FLUSH_TIMEOUT    4000 /* Flush timeout default (milliseconds) */
  ------------------
  100|  1.50k|                               "log",                   /* key_content    */
  101|  1.50k|                               "stream",                /* key_group      */
  102|  1.50k|                               NULL,                    /* key_pattern    */
  103|  1.50k|                               parser,                  /* parser ctx     */
  104|  1.50k|                               NULL);                   /* parser name    */
  105|  1.50k|    if (!mlp) {
  ------------------
  |  Branch (105:9): [True: 19, False: 1.48k]
  ------------------
  106|     19|        flb_error("[multiline] could not create 'docker mode'");
  ------------------
  |  |  170|     19|    if (flb_log_check(FLB_LOG_ERROR))                                \
  |  |  ------------------
  |  |  |  |   40|     19|#define FLB_LOG_ERROR   1
  |  |  ------------------
  |  |  |  Branch (170:9): [True: 19, False: 0]
  |  |  ------------------
  |  |  171|     19|        flb_log_print(FLB_LOG_ERROR, NULL, 0, fmt, ##__VA_ARGS__)
  |  |  ------------------
  |  |  |  |   40|     19|#define FLB_LOG_ERROR   1
  |  |  ------------------
  ------------------
  107|     19|        return NULL;
  108|     19|    }
  109|       |
  110|  1.48k|    return mlp;
  111|  1.50k|}
flb_ml_parser_docker.c:docker_parser_create:
   26|  1.51k|{
   27|  1.51k|    struct flb_parser *p;
   28|       |
   29|  1.51k|    p = flb_parser_create("_ml_json_docker",      /* parser name */
   30|  1.51k|                          "json",                 /* backend type */
   31|  1.51k|                          NULL,                   /* regex */
   32|  1.51k|                          FLB_TRUE,               /* skip_empty */
  ------------------
  |  |   26|  1.51k|#define FLB_TRUE   !FLB_FALSE
  |  |  ------------------
  |  |  |  |   25|  1.51k|#define FLB_FALSE  0
  |  |  ------------------
  ------------------
   33|  1.51k|                          "%Y-%m-%dT%H:%M:%S.%L", /* time format */
   34|  1.51k|                          "time",                 /* time key */
   35|  1.51k|                          NULL,                   /* time offset */
   36|  1.51k|                          FLB_TRUE,               /* time keep */
  ------------------
  |  |   26|  1.51k|#define FLB_TRUE   !FLB_FALSE
  |  |  ------------------
  |  |  |  |   25|  1.51k|#define FLB_FALSE  0
  |  |  ------------------
  ------------------
   37|  1.51k|                          FLB_FALSE,              /* time strict */
  ------------------
  |  |   25|  1.51k|#define FLB_FALSE  0
  ------------------
   38|  1.51k|                          FLB_FALSE,              /* time system timezone */
  ------------------
  |  |   25|  1.51k|#define FLB_FALSE  0
  ------------------
   39|  1.51k|                          FLB_FALSE,              /* no bare keys */
  ------------------
  |  |   25|  1.51k|#define FLB_FALSE  0
  ------------------
   40|  1.51k|                          NULL,                   /* parser types */
   41|  1.51k|                          0,                      /* types len */
   42|  1.51k|                          NULL,                   /* decoders */
   43|  1.51k|                          config);                /* Fluent Bit context */
   44|  1.51k|    return p;
   45|  1.51k|}

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

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

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

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

get_start_state:
   33|  30.3k|{
   34|  30.3k|    struct mk_list *head;
   35|  30.3k|    struct flb_slist_entry *e;
   36|       |
   37|  41.5k|    mk_list_foreach(head, list) {
  ------------------
  |  |  205|  64.9k|#define mk_list_foreach(curr, head) for( curr = (head)->next; curr != (head); curr = curr->next )
  |  |  ------------------
  |  |  |  Branch (205:63): [True: 41.5k, False: 23.4k]
  |  |  ------------------
  ------------------
   38|  41.5k|        e = mk_list_entry(head, struct flb_slist_entry, _head);
  ------------------
  |  |  214|  41.5k|#define mk_list_entry( ptr, type, member ) container_of( ptr, type, member )
  |  |  ------------------
  |  |  |  |   38|  41.5k|#define container_of(ptr, type, member) ({                      \
  |  |  |  |   39|  41.5k|      const typeof( ((type *)0)->member ) *__mptr = (ptr);      \
  |  |  |  |   40|  41.5k|      (type *)( (char *)__mptr - offsetof(type,member) );})
  |  |  ------------------
  ------------------
   39|  41.5k|        if (strcmp(e->str, "start_state") == 0) {
  ------------------
  |  Branch (39:13): [True: 6.87k, False: 34.6k]
  ------------------
   40|  6.87k|            return e;
   41|  6.87k|        }
   42|  41.5k|    }
   43|       |
   44|  23.4k|    return NULL;
   45|  30.3k|}
flb_ml_rule_create:
   52|  30.4k|{
   53|  30.4k|    int ret;
   54|  30.4k|    int first_rule = FLB_FALSE;
  ------------------
  |  |   25|  30.4k|#define FLB_FALSE  0
  ------------------
   55|  30.4k|    struct flb_ml_rule *rule;
   56|       |
   57|  30.4k|    rule = flb_calloc(1, sizeof(struct flb_ml_rule));
   58|  30.4k|    if (!rule) {
  ------------------
  |  Branch (58:9): [True: 22, False: 30.3k]
  ------------------
   59|     22|        flb_errno();
  ------------------
  |  |  232|     22|#define flb_errno() flb_errno_print(errno, __FLB_FILENAME__, __LINE__)
  ------------------
   60|     22|        return -1;
   61|     22|    }
   62|  30.3k|    flb_slist_create(&rule->from_states);
   63|  30.3k|    mk_list_init(&rule->to_state_map);
   64|       |
   65|  30.3k|    if (mk_list_size(&ml_parser->regex_rules) == 0) {
  ------------------
  |  Branch (65:9): [True: 5.51k, False: 24.8k]
  ------------------
   66|  5.51k|        first_rule = FLB_TRUE;
  ------------------
  |  |   26|  5.51k|#define FLB_TRUE   !FLB_FALSE
  |  |  ------------------
  |  |  |  |   25|  5.51k|#define FLB_FALSE  0
  |  |  ------------------
  ------------------
   67|  5.51k|    }
   68|  30.3k|    mk_list_add(&rule->_head, &ml_parser->regex_rules);
   69|       |
   70|       |    /* from_states */
   71|  30.3k|    ret = flb_slist_split_string(&rule->from_states, from_states, ',', -1);
   72|  30.3k|    if (ret <= 0) {
  ------------------
  |  Branch (72:9): [True: 54, False: 30.3k]
  ------------------
   73|     54|        flb_error("[multiline] rule is empty or has invalid 'from_states' tokens");
  ------------------
  |  |  170|     54|    if (flb_log_check(FLB_LOG_ERROR))                                \
  |  |  ------------------
  |  |  |  |   40|     54|#define FLB_LOG_ERROR   1
  |  |  ------------------
  |  |  |  Branch (170:9): [True: 54, False: 0]
  |  |  ------------------
  |  |  171|     54|        flb_log_print(FLB_LOG_ERROR, NULL, 0, fmt, ##__VA_ARGS__)
  |  |  ------------------
  |  |  |  |   40|     54|#define FLB_LOG_ERROR   1
  |  |  ------------------
  ------------------
   74|     54|        flb_ml_rule_destroy(rule);
   75|     54|        return -1;
   76|     54|    }
   77|       |
   78|       |    /* Check if the rule contains a 'start_state' */
   79|  30.3k|    if (get_start_state(&rule->from_states)) {
  ------------------
  |  Branch (79:9): [True: 6.87k, False: 23.4k]
  ------------------
   80|  6.87k|        rule->start_state = FLB_TRUE;
  ------------------
  |  |   26|  6.87k|#define FLB_TRUE   !FLB_FALSE
  |  |  ------------------
  |  |  |  |   25|  6.87k|#define FLB_FALSE  0
  |  |  ------------------
  ------------------
   81|  6.87k|    }
   82|  23.4k|    else if (first_rule) {
  ------------------
  |  Branch (82:14): [True: 0, False: 23.4k]
  ------------------
   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|  30.3k|    rule->regex = flb_regex_create(regex_pattern);
   90|  30.3k|    if (!rule->regex) {
  ------------------
  |  Branch (90:9): [True: 18, False: 30.3k]
  ------------------
   91|     18|        flb_ml_rule_destroy(rule);
   92|     18|        return -1;
   93|     18|    }
   94|       |
   95|       |    /* to_state */
   96|  30.3k|    if (to_state) {
  ------------------
  |  Branch (96:9): [True: 30.3k, False: 0]
  ------------------
   97|  30.3k|        rule->to_state = flb_sds_create(to_state);
   98|  30.3k|        if (!rule->to_state) {
  ------------------
  |  Branch (98:13): [True: 27, False: 30.2k]
  ------------------
   99|     27|            flb_ml_rule_destroy(rule);
  100|     27|            return -1;
  101|     27|        }
  102|  30.3k|    }
  103|       |
  104|       |    /* regex end pattern */
  105|  30.2k|    if (end_pattern) {
  ------------------
  |  Branch (105:9): [True: 0, False: 30.2k]
  ------------------
  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|  30.2k|    return 0;
  114|  30.2k|}
flb_ml_rule_destroy:
  117|  30.3k|{
  118|  30.3k|    struct mk_list *tmp;
  119|  30.3k|    struct mk_list *head;
  120|  30.3k|    struct to_state *st;
  121|       |
  122|  30.3k|    flb_slist_destroy(&rule->from_states);
  123|       |
  124|  30.3k|    if (rule->regex) {
  ------------------
  |  Branch (124:9): [True: 30.3k, False: 72]
  ------------------
  125|  30.3k|        flb_regex_destroy(rule->regex);
  126|  30.3k|    }
  127|       |
  128|       |
  129|  30.3k|    if (rule->to_state) {
  ------------------
  |  Branch (129:9): [True: 30.2k, False: 99]
  ------------------
  130|  30.2k|        flb_sds_destroy(rule->to_state);
  131|  30.2k|    }
  132|       |
  133|  85.0k|    mk_list_foreach_safe(head, tmp, &rule->to_state_map) {
  ------------------
  |  |  207|   115k|    for (curr = (head)->next, n = curr->next; curr != (head); curr = n, n = curr->next)
  |  |  ------------------
  |  |  |  Branch (207:47): [True: 85.0k, False: 30.3k]
  |  |  ------------------
  ------------------
  134|  85.0k|        st = mk_list_entry(head, struct to_state, _head);
  ------------------
  |  |  214|  85.0k|#define mk_list_entry( ptr, type, member ) container_of( ptr, type, member )
  |  |  ------------------
  |  |  |  |   38|  85.0k|#define container_of(ptr, type, member) ({                      \
  |  |  |  |   39|  85.0k|      const typeof( ((type *)0)->member ) *__mptr = (ptr);      \
  |  |  |  |   40|  85.0k|      (type *)( (char *)__mptr - offsetof(type,member) );})
  |  |  ------------------
  ------------------
  135|  85.0k|        mk_list_del(&st->_head);
  136|  85.0k|        flb_free(st);
  137|  85.0k|    }
  138|       |
  139|  30.3k|    if (rule->regex_end) {
  ------------------
  |  Branch (139:9): [True: 0, False: 30.3k]
  ------------------
  140|      0|        flb_regex_destroy(rule->regex_end);
  141|      0|    }
  142|       |
  143|  30.3k|    mk_list_del(&rule->_head);
  144|  30.3k|    flb_free(rule);
  145|  30.3k|}
flb_ml_rule_destroy_all:
  148|  8.48k|{
  149|  8.48k|    struct mk_list *tmp;
  150|  8.48k|    struct mk_list *head;
  151|  8.48k|    struct flb_ml_rule *rule;
  152|       |
  153|  30.2k|    mk_list_foreach_safe(head, tmp, &ml_parser->regex_rules) {
  ------------------
  |  |  207|  38.7k|    for (curr = (head)->next, n = curr->next; curr != (head); curr = n, n = curr->next)
  |  |  ------------------
  |  |  |  Branch (207:47): [True: 30.2k, False: 8.48k]
  |  |  ------------------
  ------------------
  154|  30.2k|        rule = mk_list_entry(head, struct flb_ml_rule, _head);
  ------------------
  |  |  214|  30.2k|#define mk_list_entry( ptr, type, member ) container_of( ptr, type, member )
  |  |  ------------------
  |  |  |  |   38|  30.2k|#define container_of(ptr, type, member) ({                      \
  |  |  |  |   39|  30.2k|      const typeof( ((type *)0)->member ) *__mptr = (ptr);      \
  |  |  |  |   40|  30.2k|      (type *)( (char *)__mptr - offsetof(type,member) );})
  |  |  ------------------
  ------------------
  155|  30.2k|        flb_ml_rule_destroy(rule);
  156|  30.2k|    }
  157|  8.48k|}
flb_ml_rule_init:
  281|  5.39k|{
  282|  5.39k|    int ret;
  283|  5.39k|    struct mk_list *head;
  284|  5.39k|    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|  29.7k|    mk_list_foreach(head, &ml_parser->regex_rules) {
  ------------------
  |  |  205|  35.1k|#define mk_list_foreach(curr, head) for( curr = (head)->next; curr != (head); curr = curr->next )
  |  |  ------------------
  |  |  |  Branch (205:63): [True: 29.7k, False: 5.36k]
  |  |  ------------------
  ------------------
  290|  29.7k|        rule = mk_list_entry(head, struct flb_ml_rule, _head);
  ------------------
  |  |  214|  29.7k|#define mk_list_entry( ptr, type, member ) container_of( ptr, type, member )
  |  |  ------------------
  |  |  |  |   38|  29.7k|#define container_of(ptr, type, member) ({                      \
  |  |  |  |   39|  29.7k|      const typeof( ((type *)0)->member ) *__mptr = (ptr);      \
  |  |  |  |   40|  29.7k|      (type *)( (char *)__mptr - offsetof(type,member) );})
  |  |  ------------------
  ------------------
  291|       |        /* Populate 'rule->to_state_map' list */
  292|  29.7k|        ret = set_to_state_map(ml_parser, rule);
  293|  29.7k|        if (ret == -1) {
  ------------------
  |  Branch (293:13): [True: 31, False: 29.7k]
  ------------------
  294|     31|            return -1;
  295|     31|        }
  296|  29.7k|    }
  297|       |
  298|  5.36k|    return 0;
  299|  5.39k|}
flb_ml_rule.c:set_to_state_map:
  199|  29.7k|{
  200|  29.7k|    int ret;
  201|  29.7k|    struct to_state *s;
  202|  29.7k|    struct mk_list *head;
  203|  29.7k|    struct flb_ml_rule *r;
  204|       |
  205|  29.7k|    if (!rule->to_state) {
  ------------------
  |  Branch (205:9): [True: 0, False: 29.7k]
  ------------------
  206|       |        /* no to_state */
  207|      0|        return 0;
  208|      0|    }
  209|       |
  210|       |    /* Iterate all rules that matches the to_state */
  211|   201k|    mk_list_foreach(head, &ml_parser->regex_rules) {
  ------------------
  |  |  205|   231k|#define mk_list_foreach(curr, head) for( curr = (head)->next; curr != (head); curr = curr->next )
  |  |  ------------------
  |  |  |  Branch (205:63): [True: 201k, False: 29.7k]
  |  |  ------------------
  ------------------
  212|   201k|        r = mk_list_entry(head, struct flb_ml_rule, _head);
  ------------------
  |  |  214|   201k|#define mk_list_entry( ptr, type, member ) container_of( ptr, type, member )
  |  |  ------------------
  |  |  |  |   38|   201k|#define container_of(ptr, type, member) ({                      \
  |  |  |  |   39|   201k|      const typeof( ((type *)0)->member ) *__mptr = (ptr);      \
  |  |  |  |   40|   201k|      (type *)( (char *)__mptr - offsetof(type,member) );})
  |  |  ------------------
  ------------------
  213|       |
  214|       |        /* Check if rule->to_state, matches an existing (registered) from_state */
  215|   201k|        ret = to_states_exists(ml_parser, rule->to_state);
  216|   201k|        if (!ret) {
  ------------------
  |  Branch (216:13): [True: 0, False: 201k]
  ------------------
  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|   201k|        ret = to_states_matches_rule(r, rule->to_state);
  227|   201k|        if (!ret) {
  ------------------
  |  Branch (227:13): [True: 116k, False: 85.0k]
  ------------------
  228|   116k|            continue;
  229|   116k|        }
  230|       |
  231|       |        /* We have a match. Create a 'to_state' entry into the 'to_state_map' list */
  232|  85.0k|        s = flb_malloc(sizeof(struct to_state));
  233|  85.0k|        if (!s) {
  ------------------
  |  Branch (233:13): [True: 31, False: 85.0k]
  ------------------
  234|     31|            flb_errno();
  ------------------
  |  |  232|     31|#define flb_errno() flb_errno_print(errno, __FLB_FILENAME__, __LINE__)
  ------------------
  235|     31|            return -1;
  236|     31|        }
  237|  85.0k|        s->rule = r;
  238|  85.0k|        mk_list_add(&s->_head, &rule->to_state_map);
  239|  85.0k|    }
  240|       |
  241|  29.7k|    return 0;
  242|  29.7k|}
flb_ml_rule.c:to_states_exists:
  161|   201k|{
  162|   201k|    struct mk_list *head;
  163|   201k|    struct mk_list *r_head;
  164|   201k|    struct flb_ml_rule *rule;
  165|   201k|    struct flb_slist_entry *e;
  166|       |
  167|   749k|    mk_list_foreach(head, &ml_parser->regex_rules) {
  ------------------
  |  |  205|   749k|#define mk_list_foreach(curr, head) for( curr = (head)->next; curr != (head); curr = curr->next )
  |  |  ------------------
  |  |  |  Branch (205:63): [True: 749k, False: 0]
  |  |  ------------------
  ------------------
  168|   749k|        rule = mk_list_entry(head, struct flb_ml_rule, _head);
  ------------------
  |  |  214|   749k|#define mk_list_entry( ptr, type, member ) container_of( ptr, type, member )
  |  |  ------------------
  |  |  |  |   38|   749k|#define container_of(ptr, type, member) ({                      \
  |  |  |  |   39|   749k|      const typeof( ((type *)0)->member ) *__mptr = (ptr);      \
  |  |  |  |   40|   749k|      (type *)( (char *)__mptr - offsetof(type,member) );})
  |  |  ------------------
  ------------------
  169|       |
  170|  1.03M|        mk_list_foreach(r_head, &rule->from_states) {
  ------------------
  |  |  205|  1.57M|#define mk_list_foreach(curr, head) for( curr = (head)->next; curr != (head); curr = curr->next )
  |  |  ------------------
  |  |  |  Branch (205:63): [True: 1.03M, False: 547k]
  |  |  ------------------
  ------------------
  171|  1.03M|            e = mk_list_entry(r_head, struct flb_slist_entry, _head);
  ------------------
  |  |  214|  1.03M|#define mk_list_entry( ptr, type, member ) container_of( ptr, type, member )
  |  |  ------------------
  |  |  |  |   38|  1.03M|#define container_of(ptr, type, member) ({                      \
  |  |  |  |   39|  1.03M|      const typeof( ((type *)0)->member ) *__mptr = (ptr);      \
  |  |  |  |   40|  1.03M|      (type *)( (char *)__mptr - offsetof(type,member) );})
  |  |  ------------------
  ------------------
  172|  1.03M|            if (strcmp(e->str, state) == 0) {
  ------------------
  |  Branch (172:17): [True: 201k, False: 828k]
  ------------------
  173|   201k|                return FLB_TRUE;
  ------------------
  |  |   26|   201k|#define FLB_TRUE   !FLB_FALSE
  |  |  ------------------
  |  |  |  |   25|   201k|#define FLB_FALSE  0
  |  |  ------------------
  ------------------
  174|   201k|            }
  175|  1.03M|        }
  176|   749k|    }
  177|       |
  178|      0|    return FLB_FALSE;
  ------------------
  |  |   25|      0|#define FLB_FALSE  0
  ------------------
  179|   201k|}
flb_ml_rule.c:to_states_matches_rule:
  183|   201k|{
  184|   201k|    struct mk_list *head;
  185|   201k|    struct flb_slist_entry *e;
  186|       |
  187|   268k|    mk_list_foreach(head, &rule->from_states) {
  ------------------
  |  |  205|   384k|#define mk_list_foreach(curr, head) for( curr = (head)->next; curr != (head); curr = curr->next )
  |  |  ------------------
  |  |  |  Branch (205:63): [True: 268k, False: 116k]
  |  |  ------------------
  ------------------
  188|   268k|        e = mk_list_entry(head, struct flb_slist_entry, _head);
  ------------------
  |  |  214|   268k|#define mk_list_entry( ptr, type, member ) container_of( ptr, type, member )
  |  |  ------------------
  |  |  |  |   38|   268k|#define container_of(ptr, type, member) ({                      \
  |  |  |  |   39|   268k|      const typeof( ((type *)0)->member ) *__mptr = (ptr);      \
  |  |  |  |   40|   268k|      (type *)( (char *)__mptr - offsetof(type,member) );})
  |  |  ------------------
  ------------------
  189|   268k|        if (strcmp(e->str, state) == 0) {
  ------------------
  |  Branch (189:13): [True: 85.0k, False: 183k]
  ------------------
  190|  85.0k|            return FLB_TRUE;
  ------------------
  |  |   26|  85.0k|#define FLB_TRUE   !FLB_FALSE
  |  |  ------------------
  |  |  |  |   25|  85.0k|#define FLB_FALSE  0
  |  |  ------------------
  ------------------
  191|  85.0k|        }
  192|   268k|    }
  193|       |
  194|   116k|    return FLB_FALSE;
  ------------------
  |  |   25|   116k|#define FLB_FALSE  0
  ------------------
  195|   201k|}

LLVMFuzzerTestOneInput:
  157|    830|{
  158|       |    /* Set flb_malloc_mod to be fuzzer-data dependent */
  159|    830|    if (size < 4) {
  ------------------
  |  Branch (159:9): [True: 2, False: 828]
  ------------------
  160|      2|        return 0;
  161|      2|    }
  162|    828|    flb_malloc_p = 0;
  163|    828|    flb_malloc_mod = *(int*)data;
  164|    828|    data += 4;
  165|    828|    size -= 4;
  166|       |
  167|       |    /* Avoid division by zero for modulo operations */
  168|    828|    if (flb_malloc_mod == 0) {
  ------------------
  |  Branch (168:9): [True: 3, False: 825]
  ------------------
  169|      3|        flb_malloc_mod = 1;
  170|      3|    }
  171|       |
  172|    828|    if (size < 40) {
  ------------------
  |  Branch (172:9): [True: 62, False: 766]
  ------------------
  173|     62|        return 0;
  174|     62|    }
  175|       |
  176|    766|    struct mk_list *map = NULL;
  177|    766|    struct flb_config *config = NULL;
  178|    766|    struct context ctx;
  179|    766|    bzero(&ctx, sizeof(struct context));
  180|    766|    struct mk_list prop;
  181|    766|    bzero(&prop, sizeof(struct mk_list));
  182|       |
  183|    766|    char *fuzz_str1 = get_null_terminated(15, &data, &size);
  184|    766|    char *fuzz_str2 = get_null_terminated(15, &data, &size);
  185|    766|    char *fuzz_str3 = get_null_terminated(size, &data, &size);
  186|       |
  187|  2.29k|    for (int i = 0; i < 2; i++) {
  ------------------
  |  Branch (187:21): [True: 1.53k, False: 766]
  ------------------
  188|  1.53k|        config = flb_config_init();
  189|  1.53k|        if (config) {
  ------------------
  |  Branch (189:13): [True: 1.17k, False: 360]
  ------------------
  190|  1.17k|            memset(&ctx, '\0', sizeof(struct context));
  191|       |
  192|  1.17k|            flb_kv_init(&prop);
  193|  1.17k|            if (flb_kv_item_create(&prop, fuzz_str1, fuzz_str2) != NULL) {
  ------------------
  |  Branch (193:17): [True: 1.16k, False: 5]
  ------------------
  194|       |                /* Assign one of the config maps */
  195|  1.16k|                map = flb_config_map_create(config, configs[i]);
  196|  1.16k|                if (map) {
  ------------------
  |  Branch (196:21): [True: 1.10k, False: 66]
  ------------------
  197|  1.10k|                    if (flb_config_map_set(&prop, map, &ctx) != -1) {
  ------------------
  |  Branch (197:25): [True: 930, False: 171]
  ------------------
  198|    930|                        flb_config_map_properties_check(fuzz_str3, &prop, map);
  199|    930|                    }
  200|  1.10k|                    flb_config_map_destroy(map);
  201|  1.10k|                }
  202|  1.16k|            }
  203|  1.17k|            flb_kv_release(&prop);
  204|  1.17k|            flb_config_exit(config);
  205|  1.17k|        }
  206|  1.53k|    }
  207|       |
  208|    766|    flb_free(fuzz_str1);
  209|    766|    flb_free(fuzz_str2);
  210|    766|    flb_free(fuzz_str3);
  211|    766|    return 0;
  212|    828|}

get_null_terminated:
   29|  2.29k|{
   30|  2.29k|  char *tmp = flb_malloc(size+1);
   31|  2.29k|  if (tmp == NULL) {
  ------------------
  |  Branch (31:7): [True: 8, False: 2.29k]
  ------------------
   32|      8|    tmp = malloc(size+1);
   33|      8|  }
   34|  2.29k|  memcpy(tmp, *data, size);
   35|  2.29k|  tmp[size] = '\0';
   36|       |
   37|       |  /* Modify the fuzz variables */
   38|  2.29k|  *total_data_size -= size;
   39|  2.29k|  *data += size;
   40|       |
   41|  2.29k|  return tmp;
   42|  2.29k|}

